CN109165110A - Mobile terminal restarts localization method, mobile terminal and computer readable storage medium - Google Patents
Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109165110A CN109165110A CN201810851626.1A CN201810851626A CN109165110A CN 109165110 A CN109165110 A CN 109165110A CN 201810851626 A CN201810851626 A CN 201810851626A CN 109165110 A CN109165110 A CN 109165110A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- log
- equipment running
- key message
- running frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminals to restart localization method, mobile terminal and computer readable storage medium, the method comprising the steps of: after monitoring that the equipment running frequency strategy for presetting key message point corresponding position in Kernel layers of device frequency management module of mobile terminal is in abnormality, reading the corresponding abnormal mark of equipment running frequency strategy;Abnormal identify is matched with the log mark prestored;If abnormal mark identifies successful match with log, associated log information is identified according to log identifier lookup and log, and obtain the progress information of process corresponding with equipment running frequency strategy;Log is restarted according to progress information and log information generation, and log positioning mobile terminal is restarted with basis and restarts reason.The present invention improves positioning mobile terminal and restarts the efficiency of reason, and reduces human cost.
Description
Technical field
The present invention relates to fields of communication technology more particularly to a kind of mobile terminal to restart localization method, mobile terminal and meter
Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become people's work and life
Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole
End the reason of being restarted automatically may be it is already present before city on mobile terminals, only developer does not have found.At this point,
User needs the mobile terminal returning factory, carries out a large amount of test job by tester, to determine original that mobile terminal is restarted
Cause.Currently, the method for restart pressure test to mobile terminal operating system is still using manual testing in testing field
Method, restart mobile phone manually, then carry out pressure test.However, this test method excessively labor intensive and time, especially
It is to the lower mobile terminal of loophole BUG recurrence rate, for example, mobile terminal, which restarts 1000 times, just may only occur once or several times
The investment of BUG, time and manpower is excessive and output very little, it is obvious that reboot operation reason occurs for this analysis mobile terminal
Way is extremely inefficient.
Summary of the invention
It is a primary object of the present invention to propose that a kind of mobile terminal restarts localization method, mobile terminal and computer-readable
Storage medium, it is intended to solve the problems, such as existing the reason of being unable to fast positioning of mobile terminal generation reboot operation.
To achieve the above object, the present invention provides a kind of mobile terminals to restart localization method, and the mobile terminal is restarted
Localization method includes:
When monitoring that presetting key message point corresponding position in Kernel layers of device frequency management module of mobile terminal sets
After received shipment line frequency strategy is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log
Associated log information is identified, and obtains the progress information of process corresponding with the equipment running frequency strategy;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to
Mobile terminal restarts reason.
Optionally, described to monitor to preset key message point pair in Kernel layers of device frequency management module of mobile terminal
After answering the equipment running frequency strategy of position to be in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
The step of include:
When the monitoring for detecting default key message point in mobile terminal Kernel layers of device frequency management module of monitoring refers to
After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the equipment running frequency strategy of the key message point corresponding position is in different according to the state value
Normal state;
If the equipment running frequency strategy is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often mark.
Optionally, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction
Value;
If all determining that the equipment running frequency strategy is in normal condition according to the first state value of preset quantity,
The second state value of the key message point preset quantity is then read according to the second reading frequency;
If all determining that the equipment running frequency strategy is in normal condition according to second state value of preset quantity,
The third state value of the key message point is then read according to third reading frequency, wherein second reading frequency is greater than institute
The first reading frequency is stated, the third reading frequency is less than.
Optionally, described that the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction
First state value the step of after, further includes:
If determining that the equipment running frequency strategy is in abnormality according to a first state value, institute is detected
State whether mobile terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency
State value.
Optionally, described that log is restarted according to the progress information and log information generation, to restart according to
Log positioned before the step of mobile terminal restarts reason, further includes:
Judge getting in the first preset time after the progress information whether monitor the key message again
The equipment running frequency strategy of point corresponding position is in abnormality;
If monitoring the equipment running frequency of the key message point corresponding position again in first preset time
Strategy is in abnormality, then stores the progress information.
Optionally, described that log is restarted according to the progress information and log information generation, to restart according to
Log positioned after the step of mobile terminal restarts reason, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, described to monitor to preset key message point pair in Kernel layers of device frequency management module of mobile terminal
After answering the equipment running frequency strategy of position to be in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
The step of before, further includes:
Determine the recognition node of device frequency management module call flow in Kernel layers described, load node, operation section
Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read
Write operation node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading
Key message point is set in node, memory source application and release node and disk read-write running node.
Optionally, described to monitor to preset key message point pair in Kernel layers of device frequency management module of mobile terminal
After answering the equipment running frequency strategy of position to be in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
The step of before, further includes:
It determines and monitors the monitoring whether the key message point corresponding position equipment running frequency strategy is in abnormality
Corresponding thread is instructed, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory,
It processor and is stored in the mobile terminal that can be run on the memory and on the processor and restarts finder, the shifting
Dynamic terminal, which is restarted, realizes that mobile terminal as described above restarts the step of localization method when finder is executed by the processor
Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
It is stored with mobile terminal on storage medium and restarts finder, the mobile terminal is restarted real when finder is executed by processor
The step of mobile terminal now as described above restarts localization method.
The present invention, which passes through to work as, to be monitored to preset key message point pair in Kernel layers of device frequency management module of mobile terminal
After answering the equipment running frequency strategy of position to be in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
Know;Abnormal identify is matched with the log mark prestored;If the abnormal mark is matched into log mark
Function then identifies associated log information according to the log identifier lookup and the log, and obtains and equipment operation frequency
Rate strategy corresponds to the progress information of process;Log is restarted according to the progress information and log information generation, according to institute
It states to restart log and position the mobile terminal and restarts reason.It realizes before reboot operation does not occur for mobile terminal, obtains in advance
Taking mobile terminal that can occur, reboot operation is corresponding to restart log, in order to mobile terminal occur reboot operation after, accordingly
Staff can quickly determine the reason of causing mobile terminal to be restarted according to log is restarted, and improve positioning mobile terminal and restart
The efficiency of reason, and reduce human cost.
Detailed description of the invention
A kind of Fig. 1 hardware structural diagram of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment;
Fig. 4 is a kind of flow diagram of step S10 in the embodiment of the present invention;
Fig. 5 is the flow diagram that mobile terminal of the present invention restarts localization method 3rd embodiment;
Fig. 6 is the flow diagram that mobile terminal of the present invention restarts localization method fourth embodiment.
The realization, the function and the advantages of the object of the present invention will be explained referring to attached drawing in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit
103, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with
And the equal components of power supply 111.It will be understood by those skilled in the art that 100 structure of mobile terminal shown in Fig. 1 is not constituted to shifting
The restriction of dynamic terminal 100, mobile terminal 100 may include components more more or fewer than diagram, or combine certain components, or
The different component layout of person.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal 100:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive by Wi-Fi module 102
It sends e-mails, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although figure
1 shows Wi-Fi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal 100, it completely can be with
It omits within the scope of not changing the essence of the invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is received or
The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit
103 can also provide executed to mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound,
Message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 100, utilizes various interfaces and the entire mobile terminal of connection
Various pieces by running or execute the software program and/or module that are stored in memory 109, and are called and are stored in
Data in reservoir 109 execute the various functions and processing data of mobile terminal 100, to carry out entirety to mobile terminal 100
Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, processor 110 is for calling the mobile terminal stored in memory 109 in mobile terminal shown in Fig. 1
Restart finder, and execute following operation:
When monitoring to preset key message point corresponding position in 100Kernel layers of device frequency management module of mobile terminal
After equipment running frequency strategy is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log
Associated log information is identified, and obtains the progress information of process corresponding with the equipment running frequency strategy;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to
Mobile terminal 100 restarts reason.
Further, described to monitor to preset crucial letter in 100Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of breath point corresponding position is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often the step of mark includes:
When the monitoring for detecting default key message point in mobile terminal 100Kernel layers of device frequency management module of monitoring
After instruction, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the equipment running frequency strategy of the key message point corresponding position is in different according to the state value
Normal state;
If the equipment running frequency strategy is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often mark.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction
Value;
If all determining that the equipment running frequency strategy is in normal condition according to the first state value of preset quantity,
The second state value of the key message point preset quantity is then read according to the second reading frequency;
If all determining that the equipment running frequency strategy is in normal condition according to second state value of preset quantity,
The third state value of the key message point is then read according to third reading frequency, wherein second reading frequency is greater than institute
The first reading frequency is stated, the third reading frequency is less than.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction
After the step of first state value of amount, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart
Finder, to perform the steps of
If determining that the equipment running frequency strategy is in abnormality according to a first state value, institute is detected
State whether mobile terminal 100 occurs reboot operation;
If reboot operation does not occur for the mobile terminal 100, the key message point is read according to the 4th reading frequency
State value.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy
Before opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109
The mobile terminal 100 of storage restarts finder, to perform the steps of
Judge getting in the first preset time after the progress information whether monitor the key message again
The equipment running frequency strategy of point corresponding position is in abnormality;
If monitoring the equipment running frequency of the key message point corresponding position again in first preset time
Strategy is in abnormality, then stores the progress information.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy
After opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109
The mobile terminal 100 of storage restarts finder, to perform the steps of
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor to preset crucial letter in 100Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of breath point corresponding position is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often before the step of mark, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder,
To perform the steps of
Determine the recognition node of device frequency management module call flow in Kernel layers described, load node, operation section
Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read
Write operation node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading
Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor to preset crucial letter in 100Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of breath point corresponding position is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often before the step of mark, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder,
To perform the steps of
It determines and monitors the monitoring whether the key message point corresponding position equipment running frequency strategy is in abnormality
Corresponding thread is instructed, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned terminal hardware structure and communications network system, propose that mobile terminal of the present invention restarts localization method
Each embodiment.
The present invention provides a kind of mobile terminal and restarts localization method.
Referring to Fig. 3, Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment.
In the present embodiment, the embodiment that mobile terminal restarts localization method is provided, it should be noted that although flowing
Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein
The step of.
In the present embodiment, mobile terminal restarts localization method and includes:
Step S10, it is corresponding when monitoring to preset key message point in Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of position is in abnormality, the corresponding abnormal mark of equipment running frequency strategy is read.
The present invention primarily directed to needed in Kernel layers of device frequency management module of mobile terminal using equipment run frequency
The scene of rate strategy, in device frequency management module, mobile terminal is according to the corresponding usage scenario of equipment running frequency strategy
Classify, such as will initially be divided into process a kind of, that equipment running frequency strategy will be called to equipment running frequency strategy
It is divided into one kind etc..After being classified according to the usage scenario of equipment running frequency strategy, mobile terminal is determined after sorting
The corresponding call flow of every one kind equipment running frequency strategy and/or sequential logic, carry out call flow and/or sequential logic
Key message point is arranged, that is, in call flow and/or the main functional node of sequential logic to obtain device frequency in standardization
Management module corresponds to standardized call flow and its internal basic function sequential logic.Such as determine initialization apparatus running frequency
Call flow and/or sequential logic in strategic process, in the corresponding call flow of initialization apparatus running frequency strategy and/or
Key message point is set in the major function node of sequential logic.Wherein, the Kernel layers of system kernel layer for mobile terminal, it is main
Be used to carry out initialization management of process, memory management, load Display (display), Camera Driver (camera driving) and
The related works such as Binder Driver (Binder driving), and for creating Core Operational thread kworkder, traps thread
The kernels finger daemon such as ksoftirqd and traps thread thermal.
When mobile terminal monitors to preset key message point corresponding position in its Kernel layers of device frequency management module
After equipment running frequency strategy is in abnormality, mobile terminal reads the corresponding abnormal mark of equipment running frequency strategy.Its
In, key message point is to be set in advance in the corresponding call flow of device frequency management module and its internal basic function timing to patrol
Information point in volume, for monitoring whether call flow and sequential logic are in the information point of abnormality.When monitoring to call
The equipment running frequency strategy of process and/or the corresponding key message point of sequential logic is when in an abnormal state, confirms corresponding
Call flow and/or sequential logic are in abnormality.The corresponding exception of equipment running frequency strategy, which is identified as, to be pre-set
, for indicating that equipment running frequency strategy is in the mark of abnormality.It should be noted that different key message points are corresponding
The abnormal mark of equipment running frequency strategy be different.The setting rule of equipment running frequency policies anomaly mark can root
Be arranged according to specific need, as long as guarantee can identify the corresponding equipment running frequency strategy of different key message points.
In the present embodiment, equipment running frequency strategy is in abnormality and is represented by devfreq exception.
Further, include: referring to Fig. 4, step S10
Step S11 presets key message point when detecting in mobile terminal Kernel layers of device frequency management module of monitoring
Monitoring instruction after, according to Monitoring instruction read key message point state value.
Step S12 determines whether the equipment running frequency strategy of key message point corresponding position is in different according to state value
Normal state.
It is corresponding different to read equipment running frequency strategy if equipment running frequency strategy is in abnormality by step S13
Often mark.
When mobile terminal detects the monitoring of default key message point in its Kernel layers of device frequency management module of monitoring
After instruction, the state value of default key message point is read according to Monitoring instruction, and default key message point is determined according to state value
Whether the equipment running frequency strategy of corresponding position is in abnormality.If determining key message point corresponding position according to state value
Equipment running frequency strategy be in abnormality, mobile terminal then reads the corresponding abnormal mark of equipment running frequency strategy.
If determining that the equipment running frequency strategy of key message point corresponding position is in normal condition according to state value, then it represents that equipment fortune
For line frequency strategy there is no corresponding abnormal mark, mobile terminal reads abnormal mark corresponding less than equipment running frequency strategy
Know.
Wherein, there are corresponding relationships with abnormality for state value.In the present embodiment, between state value and abnormality
Corresponding relationship limits according to specific needs, herein with no restrictions.It such as may be configured as when some corresponding shape of key message point
When state value is " 0 ", it is determined that the equipment running frequency strategy of key message point corresponding position is in normal condition;When some key
When the corresponding state value of information point is " 1 ", it is determined that the equipment running frequency strategy of key message point corresponding position is in abnormal
State.In the present embodiment, equipment running frequency strategy, which is in abnormality, can be regarded as equipment running frequency policies anomaly.
Step S20 matches abnormal identify with the log mark prestored.
Step S30 is associated with according to log identifier lookup with log mark if abnormal mark identifies successful match with log
Log information, and obtain the progress information of corresponding with equipment running frequency strategy process.
After getting equipment running frequency strategy corresponding abnormal mark, mobile terminal can then trigger will be acquired different
Often mark carries out matched matching instruction with the log mark stored in reboot operation reason data library is stored.When the triggering matching
After instruction, mobile terminal matches abnormal mark with log mark according to the matching instruction.If abnormal mark and log mark
Know successful match, mobile terminal then is identified to search in the database of storage reboot operation reason according to log and be closed with log mark
The log information of connection, and obtain the progress information that process corresponding with equipment running frequency strategy carries out.It should be noted that the day
Will, which is identified as, leads to the corresponding mark of the log information of mobile terminal reboot operation.Wherein, log information includes but is not limited to set
It is set in the nodename and device frequency management module for occurring equipment running frequency policies anomaly in standby frequency management module
The position of received shipment line frequency policies anomaly.Progress information includes but is not limited to work as equipment running frequency strategy to be in abnormality
When, the title of corresponding process relates to the title of thing process, the title of association thread and relates to thing process interaction or association process
ID (identification, identity) and Thread Id and the corresponding device frequency management module of key message point
Functional node.
In the present embodiment, when mark is consistent with the log mark prestored extremely, then confirm what exception was identified and prestored
Log identifies successful match;If abnormal mark and the log mark prestored are inconsistent, the abnormal log for identifying and prestoring is confirmed
It fails to match for mark.Such as when being identified as a extremely, is found in the database to identify the log of a mark, then confirm abnormal mark
Successful match is identified with the log prestored, otherwise, then confirms that it fails to match for the abnormal log mark for identifying and prestoring.In other realities
It applies in example, may be configured as then confirming the abnormal log for identifying and prestoring when mark is associated with the log mark prestored extremely
Successful match is identified, otherwise, confirms that it fails to match for the abnormal log mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as
When associated log is identified as a2, if when the exception that some key message point corresponds to equipment running frequency strategy is identified as a1, and
The log mark for being identified as a2 is found in the database, then confirms the abnormal log mark successful match for identifying and prestoring, it is no
Then, it fails to match for the abnormal log mark for identifying and prestoring of confirmation.
Step S40 restarts log according to progress information and log information generation, restarts log positioning mobile terminal with basis
Restart reason.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation
Will, and log will be restarted and exported to designated position, in order to which mobile terminal is after occurring reboot operation, corresponding staff can
With quick obtaining, this restarts log, quickly determines that lead to mobile terminal reboot operation restarts reason according to log is restarted.
Further, restart in logging process according to progress information and log information generation, mobile terminal is according to specific
Format generation restart log, in order to which corresponding staff can quickly analyze mobile terminal according to log is restarted
The reason of reboot operation.
Further, mobile terminal restarts localization method further include:
Step a, determines whether monitoring key message point corresponding position equipment running frequency strategy is in the prison of abnormality
It surveys and instructs corresponding thread, and thread is deployed in Kernel layers of Kthreadd process and kernel process.
Further, mobile terminal determines its Kernel layers of device frequency pipe of monitoring when disposing Kernel layers of process
The Monitoring instruction whether the equipment running frequency strategy that reason module presets key point corresponding position is in abnormality corresponds to thread,
And the corresponding thread of Monitoring instruction is deployed in Kernel layers of Kthreadd process and kernel process, in order to can be complete
Whether the equipment running frequency strategy that journey monitors in Kernel layers of device frequency management module is in abnormality.It needs to illustrate
It is that the corresponding thread of Monitoring instruction is independently operated in the terminal.
The present embodiment, which passes through to work as, to be monitored to preset key message point in Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of corresponding position is in abnormality, the corresponding abnormal mark of equipment running frequency strategy is read;
Abnormal identify is matched with the log mark prestored;If abnormal mark identifies successful match with log, according to log mark
Know to search and identify associated log information with log, and obtains the progress information of process corresponding with equipment running frequency strategy;Root
Log is restarted according to progress information and log information generation, and log positioning mobile terminal is restarted with basis and restarts reason.It realizes
Before reboot operation does not occur for mobile terminal, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart log, so as to
In after reboot operation occurs for mobile terminal, corresponding staff can quickly determination leads to mobile terminal according to log is restarted
The reason of restarting improves positioning mobile terminal and restarts the efficiency of reason, and reduce human cost.
Further, propose that mobile terminal of the present invention restarts the second embodiment of localization method based on first embodiment.It moves
The difference for the first embodiment that the second embodiment that dynamic terminal restarts localization method restarts localization method with mobile terminal is, root
According to Monitoring instruction read key message point state value the step of include:
Step b reads the first state value of key message point preset quantity according to Monitoring instruction according to the first reading frequency.
Step c, if all being determined according to the first state value of preset quantity, equipment running frequency strategy is in normal condition,
The second state value of key message point preset quantity is read according to the second reading frequency.
Step d, if all being determined according to the second state value of preset quantity, equipment running frequency strategy is in normal condition,
The third state value of key message point is read according to third reading frequency, wherein the second reading frequency is greater than the first reading frequency,
Less than third reading frequency.
Process of the mobile terminal in the state value for reading key message point according to Monitoring instruction are as follows: mobile terminal is according to monitoring
The first state value of key message point preset quantity is read in instruction according to the first reading frequency, and judges read preset quantity
First state value whether can determine that equipment running frequency strategy is in normal condition.If the first of read preset quantity
State value can determine that equipment running frequency strategy is in normal condition, then it is pre- to read key message point according to the second reading frequency
If the second state value of quantity, and judge whether the second state value of read preset quantity can determine equipment running frequency
Strategy is in normal condition.If the second state value of read preset quantity can determine that equipment running frequency strategy is in just
Normal state then reads the third state value of key message point preset quantity, according to third state value according to third reading frequency
Determine whether the equipment running frequency strategy of key message point corresponding position is in abnormality.
Wherein, the second reading frequency is greater than the first reading frequency, and is less than third reading frequency.First reading frequency,
Two reading frequencies, third reading frequency and preset quantity are arranged according to specific needs, and such as the first reading frequency can be arranged
It is primary to be read at interval of 1 second, the second reading frequency is set as reading once at interval of 3 seconds, third reading frequency is arranged
Primary to read at interval of 5 seconds, preset quantity is set as 5.I.e. when mobile terminal according to Monitoring instruction continuous 5 times with 1 second between
After the state value of reading all shows that equipment running frequency strategy is in normal condition, at interval of the 5 crucial letters of continuous reading in 3 seconds
The corresponding state value of breath point, if 5 state values read at interval of 3 seconds all show that equipment running frequency strategy is in normal shape
State then continuously read the corresponding state value of 5 key message points at interval of 5 seconds, according to 5 shapes continuously read at interval of 5 seconds
State value determines whether the equipment running frequency strategy of key message point corresponding position is in abnormality.
It should be noted that in other embodiments, the reading that the dotted state value of key message is read in setting can be further added by
Frequency, if all show that equipment running frequency strategy is in normal condition at interval of 5 state values that 5 seconds continuously read, with
The corresponding state value of 5 key message points was continuously read at interval of 8 seconds.It is without limitation in the present embodiment.
Further, mobile terminal restarts localization method further include:
Step e detects movement if determining that equipment running frequency strategy is in abnormality according to a first state value
Whether terminal occurs reboot operation.
Step f reads the state of key message point according to the 4th reading frequency if reboot operation does not occur for mobile terminal
Value.
Further, if reading the first shape of key message point preset quantity according to the first reading frequency according to Monitoring instruction
During state value, determine that equipment running frequency strategy is in abnormality according to a first state value, mobile terminal then detects
Whether it occurs reboot operation.If reboot operation does not occur for mobile terminal, mobile terminal reads according to the 4th reading frequency and closes
The state value of key information point.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, move
Dynamic terminal, which then detects whether to detect in its Kernel layers of device frequency management module of monitoring, presets the dotted state value of key message
Monitoring instruction.Wherein, the 4th reading frequency is arranged according to specific needs, and such as the 4th reading frequency may be configured as reading with first
It takes frequency equal, is both configured to read at interval of 1 second primary;Or it is set as unequal with the first reading frequency, such as by the 4th
Reading frequency is set as reading at interval of 0.8 second primary or primary every reading in 2 seconds.
In order to make it easy to understand, illustrating the process: when mobile terminal according to Monitoring instruction according to continuous at interval of 1 second
During reading 5 dotted state value of key message, if the state value of the key message point read according to the 3rd second determines corresponding position
Equipment running frequency strategy be in abnormality, and reboot operation do not occur for mobile terminal, mobile terminal then according at interval of
The state value (at this point, the 4th reading frequency is set as reading once for 0.8 second) of a 0.8 key message point of reading.
It is understood that if being determined at equipment running frequency strategy according to second state value or third state value
In abnormality, mobile terminal then detects whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in device frequency management module key message
When the equipment running frequency strategy of point corresponding position is in normal condition, increase the reading frequency for reading the dotted state value of key message
Rate, to reduce the number for reading the dotted state value of key message when equipment running frequency strategy is in normal condition.
Further, propose that mobile terminal of the present invention restarts the 3rd embodiment of localization method based on first embodiment.It moves
Dynamic terminal restarts the 3rd embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment
It is not, referring to Fig. 5, mobile terminal restarts localization method further include:
Log is restarted in step S50, storage, and determines that is stored in the second preset time restarts log.
Step S60 executes de-redundancy operation to the log information stored in the second preset time, to save memory space.
After log is restarted in generation, log is restarted in mobile terminal storage, and determines the weight stored in the second preset time
Log is opened, and de-redundancy operation is executed to the log of restarting stored in the second preset time, it is empty with the storage for saving mobile terminal
Between.Specifically, in executing de-redundancy operating process, only storage belongs to one of same class reboot operation and restarts log, deletes
Such reboot operation stored it is corresponding it is other restart log, what corresponding record belonged to same class reboot operation restarts log number
Whether amount, and corresponding equipment running frequency strategy have been changed into normal condition from abnormality, and record equipment operation
Frequency policies are changed into the fringe time of normal condition from abnormality.Wherein, the second preset time according to specific needs and
Setting, such as the second preset time can be set to 45 minutes, 60 minutes or 100 minutes.It should be noted that restarting
It, can be according to carrying out classification storage the reason of restarting during log carries out classification storage, it can also be according to restarting
Position is classified, herein with no restrictions.
Such as when the equipment running frequency policies anomaly phenomenon that mobile terminal occurs in this 60 minutes at 10 points to 11 points, and
Storing 1000 restarts log altogether in mobile terminal.At this point, mobile terminal can be in equipment running frequency strategy from abnormal shape
State is changed into before normal condition, and the log of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 weights
It opens in log, there are 520 to restart 1 class reboot operation of log corresponding A, restart log for 360 and correspond to B1 class reboot operation, 120
Restart log and correspond to C1 class reboot operation, then only one A1 class reboot operation is corresponding restarts log for storage, deletes remaining 519
A1 class reboot operation is corresponding to restart log, and recording the corresponding quantity for restarting log of A1 class reboot operation is 520;Storage one
B1 class reboot operation is corresponding to restart log, deletes remaining 359 B1 class reboot operations are corresponding and restart log, and record B1 class
The corresponding quantity for restarting log of reboot operation is 360;It stores that a C1 class reboot operation is corresponding to restart log, deletes remaining
119 C1 class reboot operations are corresponding to restart log, and recording the corresponding quantity for restarting log of C1 class reboot operation is 120.
It should be noted that the de-redundancy operation scheme be readily applicable to progress information and log information, when into
When journey information and log information carry out de-redundancy operation, specific operating process and the carry out de-redundancy for restarting log was operated
Journey is consistent, and this will not be repeated here.
The present embodiment is mobile whole to save by carrying out de-redundancy operation to the log of restarting stored in the second preset time
The memory space at end.
Further, mobile terminal restarts localization method further include:
Step g judges getting whether monitor key message point in the first preset time after progress information again
The equipment running frequency strategy of corresponding position is in abnormality.
Step h, if monitoring the equipment running frequency plan of key message point corresponding position again in the first preset time
It is slightly in abnormality, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information
Whether monitor that the equipment running frequency strategy of key message point corresponding position is in abnormality in first preset time again.
If monitoring again in the first preset time, the equipment running frequency strategy of key message point corresponding position is in abnormality,
Mobile terminal then stores the progress information, to restart log according to progress information generation.Further, if when first is default
Interior not monitor that the equipment running frequency strategy of key message point corresponding position is in abnormality again, mobile terminal is then deleted
Except acquired progress information.Wherein, the first preset time is arranged according to specific needs, can such as set the first preset time
It is set to 3 minutes, 5 minutes or 8 minutes etc..
Further, for mobile terminal in storage process information process, mobile terminal determines the acquisition for obtaining progress information
Time, according to acquisition time storage process information from front to back, up front by the carry out information arrangement finally obtained.
In the present embodiment, by judging whether monitor again at equipment running frequency strategy in the first preset time
Storage process information is determined whether in abnormality, to control the quantity of stored progress information, to save mobile terminal
Memory space.
Further, propose that mobile terminal of the present invention restarts the fourth embodiment of localization method based on first embodiment.It moves
Dynamic terminal restarts the fourth embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment
It is not, referring to Fig. 6, mobile terminal restarts localization method further include:
Step S70 determines the recognition node of device frequency management module call flow in Kernel layers, load node, fortune
Row node, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and magnetic
Disk read-write operation node.
Step S80, recognition node, load node, operation node, instruction dispatch node, striding course data communication node,
It unloads node, memory source application and discharges and key message point is set in node and disk read-write running node.
In order to can device frequency management module generation reboot operation in accurate Kernel layer of fast positioning of mobile terminal
Reason.Mobile terminal determines the recognition node of device frequency management module call flow in its Kernel layers, load node, operation
Node, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk
Read-write operation node, and recognition node, load node, operation node, instruction dispatch node, striding course data communication node,
It unloads node, memory source application and discharges and key message point is set in node and disk read-write running node, by being somebody's turn to do
Whether the equipment running frequency strategy of key message point monitoring corresponding node is in abnormality.It is understood that identification section
Point, load node, operation node, instruction dispatch node, striding course data communication node, unloading node, memory source application and
It discharges node and disk read-write running node is node important in device frequency management module call flow.Frequency
Control node is the frequency control node of equipment running frequency strategy.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal is determined
Crucial letter is arranged in the sequential logic of each function in device frequency management module in the corresponding each functional node of sequential logic
Breath point.Such as the sequential logic of some function in device frequency management module are as follows: A → B → C → D, then in A node, B node, C section
Key message point is respectively set in point and D node.
It is understood that due to being arranged in the call flow of mobile terminal disparate modules corresponding with service and sequential logic
Key message point, therefore, determine mobile terminal occur reboot operation after, can also according to the key message point determination restart
The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layer or is equipment frequency in Kernel layers
The appearance such as rate management module lead to reboot operation extremely.
The present embodiment by the recognition node of the call flow in device frequency management module, load node, operation node,
Instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk read-write
Key message point is arranged in running node, and corresponding equipment is judged by key message point each in monitoring device frequency management module
Whether running frequency strategy is in abnormality, to position important node in mobile terminal device frequency management module call flow
Reboot operation occurs restarts reason.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
It is stored with mobile terminal on the computer readable storage medium and restarts finder, the mobile terminal is restarted fixed
Position program realizes following steps when being executed by processor:
When monitoring that presetting key message point corresponding position in Kernel layers of device frequency management module of mobile terminal sets
After received shipment line frequency strategy is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log
Associated log information is identified, and obtains the progress information of process corresponding with the equipment running frequency strategy;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to
Mobile terminal restarts reason.
Further, described to monitor to preset key message point in Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of corresponding position is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
The step of knowledge includes:
When the monitoring for detecting default key message point in mobile terminal Kernel layers of device frequency management module of monitoring refers to
After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the equipment running frequency strategy of the key message point corresponding position is in different according to the state value
Normal state;
If the equipment running frequency strategy is in abnormality, it is corresponding different to read the equipment running frequency strategy
Often mark.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction
Value;
If all determining that the equipment running frequency strategy is in normal condition according to the first state value of preset quantity,
The second state value of the key message point preset quantity is then read according to the second reading frequency;
If all determining that the equipment running frequency strategy is in normal condition according to second state value of preset quantity,
The third state value of the key message point is then read according to third reading frequency, wherein second reading frequency is greater than institute
The first reading frequency is stated, the third reading frequency is less than.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction
After the step of first state value of amount, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
If determining that the equipment running frequency strategy is in abnormality according to a first state value, institute is detected
State whether mobile terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency
State value.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy
Before opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor
Shi Shixian following steps:
Judge getting in the first preset time after the progress information whether monitor the key message again
The equipment running frequency strategy of point corresponding position is in abnormality;
If monitoring the equipment running frequency of the key message point corresponding position again in first preset time
Strategy is in abnormality, then stores the progress information.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy
After opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor
Shi Shixian following steps:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor to preset key message point in Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of corresponding position is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
Before the step of knowledge, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
Determine the recognition node of device frequency management module call flow in Kernel layers described, load node, operation section
Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read
Write operation node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading
Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor to preset key message point in Kernel layers of device frequency management module of mobile terminal
After the equipment running frequency strategy of corresponding position is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
Before the step of knowledge, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
It determines and monitors the monitoring whether the key message point corresponding position equipment running frequency strategy is in abnormality
Corresponding thread is instructed, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
Computer readable storage medium specific embodiment of the present invention is restarted localization method with above-mentioned mobile terminal and is respectively implemented
Example is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include the other elements being not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of mobile terminal restarts localization method, which is characterized in that the mobile terminal restarts localization method and includes:
When the equipment fortune for monitoring to preset key message point corresponding position in Kernel layers of device frequency management module of mobile terminal
After line frequency strategy is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, identified according to the log identifier lookup and the log
Associated log information, and obtain the progress information of process corresponding with the equipment running frequency strategy;
Log is restarted according to the progress information and log information generation, positions the movement to restart log according to
Terminal restarts reason.
2. mobile terminal as described in claim 1 restarts localization method, which is characterized in that described to monitor mobile terminal
The equipment running frequency strategy that key message point corresponding position is preset in Kernel layers of device frequency management module is in abnormal shape
After state, reading the step of corresponding exception of the equipment running frequency strategy identifies includes:
After detecting the Monitoring instruction of default key message point in mobile terminal Kernel layers of device frequency management module of monitoring,
The state value of the key message point is read according to the Monitoring instruction;
Determine whether the equipment running frequency strategy of the key message point corresponding position is in abnormal shape according to the state value
State;
If the equipment running frequency strategy is in abnormality, the corresponding abnormal mark of the equipment running frequency strategy is read
Know.
3. mobile terminal as claimed in claim 2 restarts localization method, which is characterized in that described to be read according to the Monitoring instruction
The step of taking the state value of the key message point include:
The first state value of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction;
If all determining that the equipment running frequency strategy is in normal condition according to the first state value of preset quantity, press
The second state value of the key message point preset quantity is read according to the second reading frequency;
If all determining that the equipment running frequency strategy is in normal condition according to second state value of preset quantity, press
The third state value of the key message point is read according to third reading frequency, wherein second reading frequency is greater than described the
One reading frequency is less than the third reading frequency.
4. mobile terminal as claimed in claim 3 restarts localization method, which is characterized in that described to be pressed according to the Monitoring instruction
After the step of reading the first state value of the key message point preset quantity according to the first reading frequency, further includes:
If determining that the equipment running frequency strategy is in abnormality according to a first state value, the shifting is detected
Whether dynamic terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the state of the key message point is read according to the 4th reading frequency
Value.
5. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and
Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it
Before, further includes:
Judge getting whether monitor the key message point pair in the first preset time after the progress information again
The equipment running frequency strategy of position is answered to be in abnormality;
If monitoring the equipment running frequency strategy of the key message point corresponding position again in first preset time
In abnormality, then the progress information is stored.
6. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and
Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it
Afterwards, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor
At the equipment running frequency strategy for presetting key message point corresponding position in Kernel layers of device frequency management module of mobile terminal
After abnormality, before the step of reading the equipment running frequency strategy corresponding abnormal mark, further includes:
It determines the recognition node of device frequency management module call flow in Kernel layers described, load node, operation node, refer to
Enable allotment node, striding course data communication node, unloading node, memory source application and release node and disk read-write behaviour
Make node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading section
Key message point is set in point, memory source application and release node and disk read-write running node.
8. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor
At the equipment running frequency strategy for presetting key message point corresponding position in Kernel layers of device frequency management module of mobile terminal
After abnormality, before the step of reading the equipment running frequency strategy corresponding abnormal mark, further includes:
It determines and monitors the Monitoring instruction whether the key message point corresponding position equipment running frequency strategy is in abnormality
Corresponding thread, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory
Mobile terminal that is upper and can running on the processor restarts finder, and it is described that the mobile terminal restarts finder
The step of restarting localization method such as mobile terminal described in any item of the claim 1 to 8 is realized when processor executes.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium mobile whole
Finder is restarted at end, and the mobile terminal, which is restarted, to be realized when finder is executed by processor as any in claim 1 to 8
The step of mobile terminal described in restarts localization method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810851626.1A CN109165110A (en) | 2018-07-27 | 2018-07-27 | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810851626.1A CN109165110A (en) | 2018-07-27 | 2018-07-27 | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109165110A true CN109165110A (en) | 2019-01-08 |
Family
ID=64898647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810851626.1A Pending CN109165110A (en) | 2018-07-27 | 2018-07-27 | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109165110A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111786814A (en) * | 2020-06-05 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Log processing method and device |
CN113268377A (en) * | 2021-04-25 | 2021-08-17 | 山东英信计算机技术有限公司 | Abnormal state data backup method, system and storage medium |
CN117479201A (en) * | 2023-12-26 | 2024-01-30 | 杭州纵横通信股份有限公司 | Base station operation and maintenance management method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006154991A (en) * | 2004-11-26 | 2006-06-15 | Fujitsu Ltd | Information processing system, control method of information processing system, monitoring device, monitoring program, and maintenance program |
CN102662785A (en) * | 2012-04-12 | 2012-09-12 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring kernel error messages of Android system |
CN102819466A (en) * | 2012-06-29 | 2012-12-12 | 华为技术有限公司 | Method and device for processing operating system exceptions |
CN103942113A (en) * | 2013-11-21 | 2014-07-23 | 小米科技有限责任公司 | System restarting reason detection method, device and terminal equipment |
US20180032401A1 (en) * | 2015-04-08 | 2018-02-01 | Huawei Technologies Co., Ltd. | System running method and intelligent terminal |
CN108040159A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving |
-
2018
- 2018-07-27 CN CN201810851626.1A patent/CN109165110A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006154991A (en) * | 2004-11-26 | 2006-06-15 | Fujitsu Ltd | Information processing system, control method of information processing system, monitoring device, monitoring program, and maintenance program |
CN102662785A (en) * | 2012-04-12 | 2012-09-12 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring kernel error messages of Android system |
CN102819466A (en) * | 2012-06-29 | 2012-12-12 | 华为技术有限公司 | Method and device for processing operating system exceptions |
CN103942113A (en) * | 2013-11-21 | 2014-07-23 | 小米科技有限责任公司 | System restarting reason detection method, device and terminal equipment |
US20180032401A1 (en) * | 2015-04-08 | 2018-02-01 | Huawei Technologies Co., Ltd. | System running method and intelligent terminal |
CN108040159A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111786814A (en) * | 2020-06-05 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Log processing method and device |
CN111786814B (en) * | 2020-06-05 | 2024-05-28 | 腾讯科技(深圳)有限公司 | Log processing method and device |
CN113268377A (en) * | 2021-04-25 | 2021-08-17 | 山东英信计算机技术有限公司 | Abnormal state data backup method, system and storage medium |
CN117479201A (en) * | 2023-12-26 | 2024-01-30 | 杭州纵横通信股份有限公司 | Base station operation and maintenance management method and system |
CN117479201B (en) * | 2023-12-26 | 2024-04-09 | 杭州纵横通信股份有限公司 | Base station operation and maintenance management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052412A (en) | Restart Fault Locating Method, mobile terminal and computer readable storage medium | |
CN108040159A (en) | Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving | |
CN108920306A (en) | What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing | |
CN108121613A (en) | Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page | |
CN108012031A (en) | Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium | |
CN108196968A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN108052430A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN109165110A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN110113779A (en) | Test method, system, test platform, mobile terminal and the medium of eSIM card | |
CN109753425A (en) | Pop-up processing method and processing device | |
CN109783370A (en) | A kind of log grasping means, terminal and computer readable storage medium | |
CN108255631A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN109002547A (en) | Journal file storage method, mobile terminal and computer readable storage medium | |
CN108052437A (en) | Restart localization method, mobile terminal and computer readable storage medium | |
CN108182123A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN108089937A (en) | Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation | |
CN108196969A (en) | Restart monitoring and localization method, mobile terminal and computer readable storage medium | |
CN109298964A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN109582565A (en) | Prevent the method, terminal and computer storage medium of application crashes | |
CN109710338A (en) | A kind of searching method of mobile terminal, mobile terminal and storage medium | |
CN108076200A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN108228423A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN108268335A (en) | Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on system service | |
CN109343996A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN109117309A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190108 |
|
RJ01 | Rejection of invention patent application after publication |