CN108563582A - Restart localization method, mobile terminal and readable storage medium storing program for executing based on power management - Google Patents

Restart localization method, mobile terminal and readable storage medium storing program for executing based on power management Download PDF

Info

Publication number
CN108563582A
CN108563582A CN201810407293.3A CN201810407293A CN108563582A CN 108563582 A CN108563582 A CN 108563582A CN 201810407293 A CN201810407293 A CN 201810407293A CN 108563582 A CN108563582 A CN 108563582A
Authority
CN
China
Prior art keywords
power
mobile terminal
daily record
advanced configuration
node
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.)
Granted
Application number
CN201810407293.3A
Other languages
Chinese (zh)
Other versions
CN108563582B (en
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuohongwei Technology Co ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810407293.3A priority Critical patent/CN108563582B/en
Publication of CN108563582A publication Critical patent/CN108563582A/en
Application granted granted Critical
Publication of CN108563582B publication Critical patent/CN108563582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error 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 the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0742Error 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 the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of to restart localization method, mobile terminal and readable storage medium storing program for executing based on power management, and this approach includes the following steps:After the advanced configuration for monitoring the default key message point corresponding position in Kernel layers of power management module of mobile terminal exception occurs with power-management interface, advanced configuration abnormal mark corresponding with power-management interface is read;Abnormal identify is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, associated log information is identified according to daily record identifier lookup and daily record, and obtain and the progress information of advanced configuration corresponding process with power-management interface;Restart daily record according to progress information and log information generation, restarting daily record positioning mobile terminal with basis restarts reason.The present invention improves the efficiency for the reason of reboot operation occurs for positioning mobile terminal, and reduces human cost.

Description

Restart localization method, mobile terminal and readable storage medium storing program for executing based on power management
Technical field
The present invention relates to field of communication technology more particularly to it is a kind of based on power management restart localization method, it is mobile eventually End and readable storage medium storing program for executing.
Background technology
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become what people worked and lived Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole Automatically the reason of restarting may be already present before city on mobile terminals at end, and only developer does not have found.At this point, User needs the mobile terminal returning factory, and a large amount of test job is carried out by tester, causes mobile terminal to occur with determination The reason of restarting.
Currently, in testing field, the method for restart pressure test to mobile terminal operating system is still using people The method of work test, restarts mobile phone, then carries out pressure test manually.However, this test method excessively labor intensive and when Between, especially to the lower mobile terminal of loophole BUG recurrence rates, for example, mobile terminal, which restarts 1000 times, just may only occur one The input of secondary or BUG several times, time and manpower is excessive and output very little, it is obvious that this analysis mobile terminal restarts behaviour The way for making reason is extremely inefficient.Therefore, how fast positioning of mobile terminal occur reboot operation the reason of be at present urgently Problem to be solved.
Invention content
It is a primary object of the present invention to propose a kind of to restart localization method, mobile terminal and readable based on power management Storage medium, it is intended to the technical issues of solving the reason of how reboot operation occurs for fast positioning of mobile terminal.
To achieve the above object, what the present invention provides a kind of based on power management restarts localization method, described based on electricity The localization method of restarting of source control includes:
When monitoring the advanced of the default key message point corresponding position in Kernel layers of power management module of mobile terminal After configuration exception occurs with power-management interface, the advanced configuration abnormal mark corresponding with power-management interface is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and is obtained and the progress information of the advanced configuration corresponding process with power-management interface;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Optionally, the default key message point monitored in Kernel layers of power management module of mobile terminal of working as corresponds to After the advanced configuration of position exception occurs with power-management interface, it is corresponding with power-management interface different to read the advanced configuration Often the step of mark includes:
When the Monitoring instruction for detecting the default key message point in monitoring Kernel layers of power management module of mobile terminal Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether are the advanced configuration of the key message point corresponding position and power-management interface according to the state value Occur abnormal;
If the advanced configuration exception occurs with power-management interface, the advanced configuration and power-management interface are read Corresponding abnormal mark.
Optionally, the step of reading the state value of the key message point according to the Monitoring instruction include:
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 the first state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the second state value of the key message point preset quantity is read according to the second reading frequency;
If second state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the third state value of the key message point is read according to third reading frequency, wherein second reading frequency is big In first reading frequency, it is less than the third reading frequency.
Optionally, the of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of one state value, further include:
If determining that the advanced configuration exception occurs with power-management interface according to a first state value, detect Whether the 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, daily record is restarted according to the progress information and log information generation, to restart daily record according to Before positioning the step of mobile terminal restarts reason, further include:
Judge whether monitor the key message again in the first preset time after getting the progress information The advanced configuration of point corresponding position occurs abnormal with power-management interface;
If monitoring the advanced configuration and electricity of the key message point corresponding position again in first preset time There is exception in source control interface, then stores the progress information.
Optionally, daily record is restarted according to the progress information and log information generation, to restart daily record according to After positioning the step of mobile terminal restarts reason, further include:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, the default key message point monitored in Kernel layers of power management module of mobile terminal of working as corresponds to After the advanced configuration of position exception occurs with power-management interface, it is corresponding with power-management interface different to read the advanced configuration Often before the step of mark, further include:
Determine it is Kernel layers described in power management module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Optionally, the default key message point monitored in Kernel layers of power management module of mobile terminal of working as corresponds to After the advanced configuration of position exception occurs with power-management interface, it is corresponding with power-management interface different to read the advanced configuration Often before the step of mark, further include:
It is abnormal to determine whether the advanced configuration for monitoring the key message point corresponding position occurs with power-management interface Thread, and the thread is deployed in described Kernel layers of kthreadd processes and kernel processes.
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 on the memory and what can be run on the processor restarts finder based on power management, The restarting based on power management is realized as described above based on power management when finder is executed by the processor The step of restarting localization method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The finder of restarting based on power management is stored on storage medium, the finder of restarting based on power management is located Manage realized when device executes it is as described above based on power management the step of restarting localization method.
The present invention is corresponded to by working as the default key message point monitored in Kernel layers of power management module of mobile terminal After the advanced configuration of position exception occurs with power-management interface, it is corresponding with power-management interface different to read the advanced configuration Often mark;Abnormal identify is matched with the daily record mark to prestore;If the abnormal mark and daily record mark With success, then associated log information is identified according to the daily record identifier lookup and the daily record, and obtains and advanced match with described Set the progress information of process corresponding with power-management interface;Restart day according to the progress information and log information generation Will restarts reason to restart the daily record positioning mobile terminal according to.It realizes and reboot operation does not occur in mobile terminal Before, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart daily record, in order to restart behaviour in mobile terminal After work, corresponding staff can improve positioning according to the reason of quick determination of daily record causes mobile terminal to be restarted is restarted Mobile terminal restarts the efficiency of the reason of failure, and reduces human cost.
Description of the drawings
A kind of Fig. 1 hardware architecture diagrams of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is that the present invention is based on the flow diagrams for restarting localization method first embodiment of power management;
Fig. 4 is that the present invention is based on a kind of flows for restarting step S101 in localization method first embodiment of power management to show It is intended to;
Fig. 5 is that the present invention is based on the flow diagrams for restarting localization method 3rd embodiment of power management;
Fig. 6 is that the present invention is based on the flow diagrams for restarting localization method fourth embodiment of power management.
The realization, the function and the advantages of the object of the present invention will be explained with reference to attached drawing in conjunction with the embodiments.
Specific implementation mode
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, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have 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, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer 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, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving 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 moving 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 arrangement of person.
The all parts of mobile terminal 100 are specifically introduced with reference to Fig. 1:
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 radio communication.Above-mentioned wireless communication can use any 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 Send e-mails, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.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 is omitted in the range for the essence for not changing 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, it is that radio frequency unit 101 or Wi-Fi module 102 are 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 with 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 loud speaker, 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, size and the direction of gravity are can detect that 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 may 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 is arranged 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 user on it or neighbouring touch operation (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 lever etc. It is one or more, do not limit herein specifically.
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 to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, 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 the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field 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, 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, in mobile terminal shown in Fig. 1, processor 110 be used to call stored in memory 109 based on power supply Finder is restarted in management, and executes following operation:
When the height for monitoring the default key message point corresponding position in 100Kernel layers of power management module of mobile terminal After grade configuration exception occurs with power-management interface, the advanced configuration abnormal mark corresponding with power-management interface is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and is obtained and the progress information of the advanced configuration corresponding process with power-management interface;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal 100 restarts reason.
Further, described to work as the default key message monitored in 100Kernel layers of power management module of mobile terminal After the advanced configuration of point corresponding position exception occurs with power-management interface, the advanced configuration and power-management interface pair are read The step of abnormal mark answered includes:
When the monitoring for detecting the default key message point in monitoring 100Kernel layers of power management module of mobile terminal refers to After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether are the advanced configuration of the key message point corresponding position and power-management interface according to the state value Occur abnormal;
If the advanced configuration exception occurs with power-management interface, the advanced configuration and power-management interface are read Corresponding abnormal mark.
Further, the step of reading the state value of the key message point according to the Monitoring instruction include:
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 the first state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the second state value of the key message point preset quantity is read according to the second reading frequency;
If second state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the third state value of the key message point is read according to third reading frequency, wherein second reading frequency is big In first reading frequency, it is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, processor 110 is additionally operable to that the restarting based on power management stored in memory 109 is called to determine Position program, to realize following steps:
If determining that the advanced configuration exception occurs with power-management interface according to a first state value, detect Whether the 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, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call to be stored in memory 109 Finder is restarted based on power management, to realize following steps:
Judge whether monitor the key message again in the first preset time after getting the progress information The advanced configuration of point corresponding position occurs abnormal with power-management interface;
If monitoring the advanced configuration and electricity of the key message point corresponding position again in first preset time There is exception in source control interface, then stores the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call to be stored in memory 109 Finder is restarted based on power management, to realize following steps:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to work as the default key message monitored in 100Kernel layers of power management module of mobile terminal After the advanced configuration of point corresponding position exception occurs with power-management interface, the advanced configuration and power-management interface pair are read Before the step of abnormal mark answered, processor 110 is additionally operable to call the restarting based on power management stored in memory 109 Finder, to realize following steps:
Determine it is Kernel layers described in power management module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to work as the default key message monitored in 100Kernel layers of power management module of mobile terminal After the advanced configuration of point corresponding position exception occurs with power-management interface, the advanced configuration and power-management interface pair are read Before the step of abnormal mark answered, processor 110 is additionally operable to call the restarting based on power management stored in memory 109 Finder, to realize following steps:
It is abnormal to determine whether the advanced configuration for monitoring the key message point corresponding position occurs with power-management interface Thread, and the thread is deployed in described Kernel layers of kthreadd processes and kernel processes.
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, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands 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 some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources 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 it is to be understood that the present invention 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., it does not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, propose to restart positioning the present invention is based on power management Each embodiment of method.
The present invention provides a kind of restarting localization method based on power management.
It is that the present invention is based on the flow diagrams for restarting localization method first embodiment of power management with reference to Fig. 3, Fig. 3.
In the present embodiment, the embodiment for restarting localization method based on power management is provided, it should be noted that though So logical order is shown in flow charts, but in some cases, it can be with different from shown by sequence execution herein Or the step of description.
In the present embodiment, being somebody's turn to do the localization method of restarting based on power management includes:
Step S101, when monitoring that the default key message point in Kernel layers of power management module of mobile terminal corresponds to position After the advanced configuration set exception occurs with power-management interface, advanced configuration abnormal mark corresponding with power-management interface is read Know.
The present invention is needed primarily directed in Kernel layers of power management module of mobile terminal using advanced configuration and electricity The scene of source control interface (Advanced Configuration and Power Management Interface, ACPI), In power management module, according to the attribute of advanced configuration and power-management interface to using advanced configuration and power-management interface Scene classify, and condition limitation is carried out to sorted advanced configuration and power-management interface, obtains power management mould Block corresponds to standardized call flow and its internal basic function sequential logic, and specifically classifying rules and restrictive condition can bases It specifically needs and is arranged, be not particularly limited herein.Wherein, the Kernel layers of system kernel layer for mobile terminal, is mainly used for Carry out initialization management of process, memory management, load Display (display), Camera Driver (camera driving) and Binder The related works such as Driver (Binder drivings), and for creating Core Operational thread kworkder, traps thread The kernels finger daemon such as ksoftirqd and traps thread thermal.
When mobile terminal monitors the height of the default key message point corresponding position in its Kernel layers of power management module After grade configuration exception occurs with power-management interface, mobile terminal reads advanced configuration abnormal mark corresponding with power-management interface Know.Wherein, key message point is to be set in advance in the corresponding call flow of power management module and its internal basic function sequential Information point in logic, for monitoring whether call flow and sequential logic abnormal information point occur.It is flowed when monitoring to call When journey and/or the advanced configuration of the corresponding key message point of sequential logic occur abnormal with power-management interface, confirm corresponding Call flow and/or sequential logic occur abnormal.Advanced configuration exception corresponding with power-management interface, which is identified as, to be pre-set Alright, for indicating that abnormal mark occur in advanced configuration and power-management interface.It should be noted that different key message points Corresponding advanced configuration and the abnormal mark of power-management interface are different.Advanced configuration is marked extremely with power-management interface The setting rule of knowledge can be arranged according to specific needs, advanced match as long as ensureing can to identify that different key message points are corresponding It sets and power-management interface.
Further, include with reference to Fig. 4, step S101:
Step S1011, when detect monitoring Kernel layers of power management module of mobile terminal in default key message point Monitoring instruction after, according to Monitoring instruction read key message point state value.
Step S1012 determines that the advanced configuration of key message point corresponding position is with power-management interface according to state value No appearance is abnormal.
Step S1013 reads advanced configuration and is connect with power management if advanced configuration exception occurs with power-management interface The corresponding abnormal mark of mouth.
When mobile terminal detects that the monitoring of the default key message point in its Kernel layers of power management module of monitoring refers to After order, the state value for presetting key message point is read according to Monitoring instruction, and determined according to state value and preset key message point pair Whether the advanced configuration and power-management interface for answering position there is exception.If determining key message point corresponding position according to state value Advanced configuration and power-management interface occur abnormal, it is corresponding with power-management interface different that mobile terminal then reads advanced configuration Often mark.If determining that the advanced configuration of key message point corresponding position does not occur exception with power-management interface according to state value, Then indicating advanced configuration, there is no corresponding exceptions to identify with power-management interface, and mobile terminal is read less than advanced configuration and electricity The corresponding abnormal mark of source control interface.
Wherein, state value is in correspondence with abnormality.In the present embodiment, between state value and abnormality Correspondence can limit according to specific needs, not be limited herein.It such as may be configured as working as some corresponding shape of key message point When state value is " 0 ", it is determined that the advanced configuration of key message point corresponding position does not occur exception with power-management interface;When some When the corresponding state value of key message point is " 1 ", it is determined that the advanced configuration of key message point corresponding position connects with power management Mouth occurs abnormal.
Step S102 matches abnormal identify with the daily record mark to prestore.
Step S103 is closed if abnormal mark identifies successful match with daily record according to daily record identifier lookup and daily record mark The log information of connection, and obtain and the progress information of advanced configuration corresponding process with power-management interface.
After getting advanced configuration corresponding with power-management interface abnormal mark, mobile terminal is by acquired exception It identifies and is matched with the daily record mark stored in storage reboot operation reason data library.If abnormal mark is matched with daily record mark Success, mobile terminal then identifies to search in the database of storage reboot operation reason according to daily record identifies associated day with daily record Will information, and obtain and the advanced configuration progress information that corresponding process carries out with power-management interface.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 not limited to electricity Occur in source control module advanced configuration with occur in the nodename and power management module of power-management interface exception it is advanced The position of configuration and power-management interface exception.Progress information includes but not limited to when advanced configuration and power-management interface occur When abnormal, the title of corresponding process, that is, the title for relating to thing process, the title for being associated with thread, with relate to thing process interaction or be associated with The ID (identification, identity) and Thread Id of process and the corresponding power management module of key message point Functional node.
In the present embodiment, when mark is consistent with the daily record mark to prestore extremely, then confirm what exception identified and prestored Daily record identifies successful match;If abnormal mark and the daily record mark to prestore are inconsistent, the abnormal daily record 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 daily record mark of a, then confirm abnormal mark Successful match is identified with the daily record to prestore, otherwise, then confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.In other realities It applies in example, may be configured as then confirming the abnormal daily record for identifying and prestoring when mark is associated with the daily record mark to prestore extremely Successful match is identified, otherwise, confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated daily record is identified as a2, if when some key message point corresponds to advanced configuration and the exception of power-management interface is identified as A1, and find the daily record mark for being identified as a2 in the database, then confirm that abnormal identify matches into the daily record mark to prestore Otherwise work(confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.
Step S104 restarts daily record according to progress information and log information generation, with mobile eventually according to daily record positioning is restarted Restart reason in end.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation Will, and daily record 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 daily record, quickly determines that lead to mobile terminal reboot operation restarts reason according to daily record is restarted.
Further, in restarting logging process according to progress information and log information generation, mobile terminal is according to specific Format generation restart daily record, in order to which corresponding staff can quickly analyze mobile terminal according to daily record is restarted The reason of reboot operation.
Further, being somebody's turn to do the localization method of restarting based on power management further includes:
It is abnormal to determine whether monitoring key message point corresponding position advanced configuration occurs with power-management interface by step a The corresponding thread of Monitoring instruction, and thread is deployed in Kernel layers of kthreadd processes and kernel processes.
Further, mobile terminal determines its Kernel layers of power management mould of monitoring when disposing Kernel layers of process Block presets the advanced configuration of key point corresponding position and whether power-management interface the corresponding thread of abnormal Monitoring instruction occurs, and The corresponding thread of Monitoring instruction is deployed in Kernel layers of kthreadd processes and kernel processes, in order to can be whole Whether the advanced configuration in Kernel layers of power management module of monitoring there is exception with power-management interface.It needs to illustrate It is that the corresponding thread of Monitoring instruction is independently operated in the terminal.
The present embodiment is by working as the default key message point pair monitored in Kernel layers of power management module of mobile terminal After answering the advanced configuration of position and power-management interface exception occur, advanced configuration exception corresponding with power-management interface is read Mark;Abnormal identify is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, according to day Will identifier lookup and daily record identify associated log information, and obtain with advanced configuration corresponding process with power-management interface into Journey information;Restart daily record according to progress information and log information generation, restarting daily record positioning mobile terminal with basis 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 day Will, in order to which after reboot operation occurs for mobile terminal, corresponding staff can quickly determination causes according to daily record is restarted The reason of mobile terminal is restarted, improves the efficiency for the reason of positioning mobile terminal restarts failure, and reduces manpower Cost.
Further, the second implementation for restarting localization method the present invention is based on power management is proposed based on first embodiment Example.The second embodiment for restarting localization method based on power management and the first reality for restarting localization method based on power management Applying example, difference lies in include according to the step of state value of Monitoring instruction reading key message point:
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 it is different all to determine that advanced configuration does not occur with power-management interface according to the first state value of preset quantity Often, then the second state value of key message point preset quantity is read according to the second reading frequency.
Step d, if it is different all to determine that advanced configuration does not occur with power-management interface according to the second state value of preset quantity Often, then the third state value of key message point is read according to third reading frequency, wherein the second reading frequency is more than first and reads Frequency is less than third reading frequency.
Mobile terminal is in the process of state value for reading key message point according to Monitoring instruction: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 advanced configuration and power-management interface do not occur exception.If read preset quantity First state value can determine that advanced configuration does not occur exception with power-management interface, then read according to the second reading frequency crucial Second state value of information point preset quantity, and it is advanced to judge whether the second state value of read preset quantity can determine Configuration does not occur exception with power-management interface.If the second state value of read preset quantity can determine advanced configuration with Power-management interface does not occur exception, then the third state value of key message point preset quantity is read according to third reading frequency, To determine whether the advanced configuration of key message point corresponding position exception occurs with power-management interface according to third state value.
Wherein, the second reading frequency is more than the first reading frequency, and is less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity can be 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 be 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 advanced configuration exception does not occur with power-management interface, at interval of 5 passes of continuous reading in 3 seconds The corresponding state value of key information point, if 5 state values read at interval of 3 seconds all show advanced configuration with power-management interface not There is exception, then the corresponding state value of 5 key message points was continuously read at interval of 5 seconds, according to what is continuously read at interval of 5 seconds Whether 5 state values there is exception come the advanced configuration and power-management interface for determining key message point corresponding position.
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 showing that advanced configuration does not occur exception with power-management interface at interval of 5 state values that 5 seconds continuously read When, continuously to read the corresponding state value of 5 key message points at interval of 8 seconds.This is not particularly limited in the present embodiment.
Further, being somebody's turn to do the localization method of restarting based on power management further includes:
Step e detects shifting if determining that advanced configuration exception occurs with power-management interface according to a first state value Whether dynamic 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 advanced configuration exception occurs with power-management interface according to a first state value, mobile terminal is then examined Survey whether it occurs reboot operation.If reboot operation does not occur for mobile terminal, mobile terminal is read according to the 4th reading frequency The state value of key message point.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, Mobile terminal then detects whether to detect the dotted state value of default key message in its Kernel layers of power management module of monitoring Monitoring instruction.Wherein, the 4th reading frequency can be 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 House dog occur abnormal, and reboot operation does not occur for mobile terminal, and mobile terminal is then primary crucial according to being read at interval of 0.8 The state value (at this point, the 4th reading frequency is set as reading once for 0.8 second) of information point.
If it is understood that determining advanced configuration and power management according to second state value or third state value There is exception in interface, and mobile terminal then detects whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in power management module key message point pair When the advanced configuration of position and power-management interface being answered not to occur abnormal, increase the reading frequency for reading the dotted state value of key message Rate, when advanced configuration and power-management interface do not occur abnormal, to reduce the number for reading the dotted state value of key message.
Further, the third implementation for restarting localization method the present invention is based on power management is proposed based on first embodiment Example.The 3rd embodiment for restarting localization method based on power management and restart localization method first based on power management And/or difference lies in reference to Fig. 5, be somebody's turn to do the localization method of restarting based on power management further includes second embodiment:
Daily record is restarted in step S105, storage, and determines that is stored in the second preset time restarts daily record.
Step S106 executes de-redundancy operation, to save memory space to the log information stored in the second preset time.
After daily record is restarted in generation, daily record is restarted in mobile terminal storage, and determines the weight stored in the second preset time Daily record is opened, and de-redundancy operation is executed to the daily record 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 daily record, deletes Such reboot operation for being stored it is corresponding it is other restart daily record, what corresponding record belonged to same class reboot operation restarts daily record number Whether amount, and corresponding house dog have been changed into normal condition from abnormality, and record the house dog and turn from abnormality Become the fringe time of normal condition.Wherein, the second preset time can be arranged according to specific needs, such as can by second it is default when Between be set as 45 minutes, 60 minutes or 100 minutes etc..It should be noted that carrying out classification storage process to restarting daily record In, it can also classify according to the position restarted, not do herein according to classification storage is carried out the reason of restarting Limitation.
Such as when mobile terminal advanced configuration and the exception of power-management interface occurs in this 60 minutes at 10 points to 11 points Phenomenon, and storing 1000 restarts daily record altogether in mobile terminal.At this point, mobile terminal can be in advanced configuration and power management Before interface is changed into normal condition from abnormality, the daily record of restarting for belonging to same category of reboot operation is divided into one kind. If this 1000 restart in daily record, there are 520 to restart 1 class reboot operation of daily record corresponding A, restart daily record for 360 and correspond to B1 class weights It opens operation, restarts daily record for 120 and correspond to C1 class reboot operations, then only one A1 class reboot operation is corresponding restarts daily record for storage, It deletes remaining 519 A1 class reboot operations is corresponding and restart daily record, and record A1 class reboot operations and correspond to the quantity for restarting daily record It is 520;One B1 class reboot operation is corresponding restarts daily record for storage, deletes remaining 359 B1 class reboot operations are corresponding and restart Daily record, and it is 360 to record the corresponding quantity for restarting daily record of B1 class reboot operations;It is corresponding heavy to store a C1 class reboot operation Daily record is opened, remaining is deleted 119 C1 class reboot operations is corresponding and restart daily record, and records that C1 class reboot operations are corresponding to restart day The quantity of will 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 daily record 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 daily record of restarting stored in the second preset time The memory space at end.
Further, being somebody's turn to do the localization method of restarting based on power management further includes:
Step g judges whether monitor key message point again in the first preset time after getting progress information The advanced configuration of corresponding position occurs abnormal with power-management interface.
Step h, if monitoring the advanced configuration and power supply of key message point corresponding position again in the first preset time There is exception in management interface, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information It is different whether to monitor that the advanced configuration of key message point corresponding position and power-management interface occur in first preset time again Often.If being monitored again in the first preset time, the advanced configuration of key message point corresponding position occurs with power-management interface Abnormal, mobile terminal then stores the progress information, to restart daily record according to progress information generation.Further, if first It is abnormal not monitor that the advanced configuration of key message point corresponding position and power-management interface occur in preset time again, it is mobile Terminal then deletes acquired progress information.Wherein, the first preset time can be arranged according to specific needs, such as can be pre- by first If the time is set as 3 minutes, 5 minutes or 8 minutes etc..
In the present embodiment, by judging whether monitor advanced configuration and power management again in the first preset time There is exception to improve the accuracy rate that positioning mobile terminal restarts reason in interface.
Further, the 4th implementation for restarting localization method the present invention is based on power management is proposed based on first embodiment Example.The fourth embodiment for restarting localization method based on power management and restart localization method first based on power management And/or difference lies in reference to Fig. 6, the localization method of restarting based on power management further includes second embodiment:
Step S107 determines the recognition node of power management module call flow in Kernel layers, load node, initialization Node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node, with And disk read-write running node.
Step S108, in recognition node, load node, initialization node, operation node, instruction dispatch node, striding course Key message is set in data communication node, unloading node, resource bid and release node and disk read-write running node Point.
In order to can be in accurate Kernel layer of fast positioning of mobile terminal the reason of power management module generation reboot operation. Mobile terminal determines the recognition node of power management module call flow in its Kernel layers, load node, initialization node, fortune Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Write operation node, and in recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Key message point is set in communication node, unloading node, resource bid and release node and disk read-write running node, with The advanced configuration of corresponding node is monitored by the key message point and whether power-management interface exception occurs.It is appreciated that It is recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data communication node, unloading Node, resource bid and release node and disk read-write running node are important in power management module call flow Node.
Further, in order to which the reason of restarting of reboot operation can occur with fast positioning of mobile terminal, mobile terminal determines Key message is arranged in the corresponding each functional node of sequential logic in the sequential logic of each function in power management module Point.As the sequential logic of some function in power management module is:A → B → C → D, then in A nodes, B node, C nodes and D Key message point is respectively set in 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 determine restart The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layers or is power supply pipe in Kernel layers The appearance such as reason module lead to reboot operation extremely.
The present embodiment passes through the recognition node of the call flow in power management module, load node, initialization node, fortune Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Key message point is arranged in write operation node, is judged by monitoring each key message point in power management module corresponding advanced Whether configuration there is exception with power-management interface, is sent out with positioning important node in mobile terminal power management module call flow Raw reboot operation restarts reason.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
The finder of restarting based on power management is stored on the computer readable storage medium, it is described to be based on power supply Following steps are realized in restarting when finder is executed by processor for management:
When monitoring the advanced of the default key message point corresponding position in Kernel layers of power management module of mobile terminal After configuration exception occurs with power-management interface, the advanced configuration abnormal mark corresponding with power-management interface is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and is obtained and the progress information of the advanced configuration corresponding process with power-management interface;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Further, described to work as the default key message point pair monitored in Kernel layers of power management module of mobile terminal After answering the advanced configuration of position and power-management interface exception occur, it is corresponding with power-management interface to read the advanced configuration Extremely the step of mark, includes:
When the Monitoring instruction for detecting the default key message point in monitoring Kernel layers of power management module of mobile terminal Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether are the advanced configuration of the key message point corresponding position and power-management interface according to the state value Occur abnormal;
If the advanced configuration exception occurs with power-management interface, the advanced configuration and power-management interface are read Corresponding abnormal mark.
Further, the step of reading the state value of the key message point according to the Monitoring instruction include:
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 the first state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the second state value of the key message point preset quantity is read according to the second reading frequency;
If second state value according to preset quantity all determines that the advanced configuration does not occur with power-management interface It is abnormal, then the third state value of the key message point is read according to third reading frequency, wherein second reading frequency is big In first reading frequency, it is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, the restarting based on power management realizes following step when finder is executed by processor Suddenly:
If determining that the advanced configuration exception occurs with power-management interface according to a first state value, detect Whether the 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, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal restarts reason, the finder of restarting based on power management is held by processor Following steps are realized when row:
Judge whether monitor the key message again in the first preset time after getting the progress information The advanced configuration of point corresponding position occurs abnormal with power-management interface;
If monitoring the advanced configuration and electricity of the key message point corresponding position again in first preset time There is exception in source control interface, then stores the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal restarts reason, the finder of restarting based on power management is held by processor Following steps are realized when row:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to work as the default key message point pair monitored in Kernel layers of power management module of mobile terminal After answering the advanced configuration of position and power-management interface exception occur, it is corresponding with power-management interface to read the advanced configuration Before the step of abnormal mark, the restarting when finder is executed by processor based on power management realizes following steps:
Determine it is Kernel layers described in power management module call flow recognition node, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to work as the default key message point pair monitored in Kernel layers of power management module of mobile terminal After answering the advanced configuration of position and power-management interface exception occur, it is corresponding with power-management interface to read the advanced configuration Before the step of abnormal mark, the restarting when finder is executed by processor based on power management realizes following steps:
It determines and monitors whether the key message point corresponding position advanced configuration abnormal line occurs with power-management interface Journey, and the thread is deployed in described Kernel layers of kthreadd processes and kernel processes.
Computer readable storage medium specific implementation mode of the present invention restarts localization method with above-mentioned based on power management Each specific embodiment it is essentially identical, details are not described herein.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only 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 this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every 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 restarting localization method based on power management, which is characterized in that described to restart localization method applied to mobile whole End, it is described to restart localization method and include the following steps:
When the advanced configuration for monitoring the default key message point corresponding position in Kernel layers of power management module of mobile terminal After there is exception with power-management interface, the advanced configuration abnormal mark corresponding with power-management interface is read;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, identified according to the daily record identifier lookup and the daily record Associated log information, and obtain and the progress information of the advanced configuration corresponding process with power-management interface;
Restart daily record according to the progress information and log information generation, the movement is positioned to restart daily record according to Terminal restarts reason.
2. restarting localization method based on power management as described in claim 1, which is characterized in that described to monitor to move The advanced configuration of default key message point corresponding position in Kernel layers of power management module of terminal goes out with power-management interface Now after exception, reading the step of advanced configuration exception corresponding with power-management interface identifies includes:
After the Monitoring instruction for detecting the default key message point in monitoring Kernel layers of power management module of mobile terminal, root The state value of the key message point is read according to the Monitoring instruction;
Determine whether the advanced configuration of the key message point corresponding position occurs with power-management interface according to the state value It is abnormal;
If the advanced configuration exception occurs with power-management interface, it is corresponding with power-management interface to read the advanced configuration Abnormal mark.
3. restarting localization method based on power management as claimed in claim 2, which is characterized in that according to the Monitoring instruction The step of state value for reading the key message point includes:
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 advanced configuration does not occur exception with power-management interface 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 advanced configuration does not occur exception with power-management interface 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 more than institute The first reading frequency is stated, the third reading frequency is less than.
4. restarting localization method based on power management as claimed in claim 3, which is characterized in that 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 include:
If determining that the advanced configuration and power-management interface appearance are abnormal according to a first state value, described in detection Whether mobile 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. restarting localization method based on power management as described in claim 1, which is characterized in that according to the progress information Restart daily record with log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Before, further include:
Judge whether monitor the key message point pair again in the first preset time after getting the progress information The advanced configuration of position and power-management interface is answered to occur abnormal;
If monitoring the advanced configuration and power supply pipe of the key message point corresponding position again in first preset time It manages interface and exception occurs, then store the progress information.
6. restarting localization method based on power management as described in claim 1, which is characterized in that according to the progress information Restart daily record with log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Afterwards, further include:
Restart daily record described in storage, and determine stored in the second preset time described in restart daily record;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as claim 1 to 6 any one of them restarts localization method based on power management, which is characterized in that described to work as Monitor the advanced configuration and power supply of the default key message point corresponding position in Kernel layers of power management module of mobile terminal After exception occurs in management interface, before reading the step of advanced configuration exception corresponding with power-management interface identifies, also Including:
Determine it is Kernel layers described in power management module call flow recognition node, load node, initialization node, operation Node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk read-write Running node;
In the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data communication section Key message point is set in point, unloading node, resource bid and release node and disk read-write running node.
8. as claim 1 to 6 any one of them restarts localization method based on power management, which is characterized in that described to work as Monitor the advanced configuration and power supply of the default key message point corresponding position in Kernel layers of power management module of mobile terminal After exception occurs in management interface, before reading the step of advanced configuration exception corresponding with power-management interface identifies, also Including:
Determine whether the advanced configuration for monitoring the key message point corresponding position and power-management interface abnormal thread occur, And the thread is deployed in described Kernel layers of kthreadd processes and kernel processes.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Above and what can be run on the processor restarts finder based on power management, and the restarting based on power management is determined Position program realizes that restarting based on power management is determined as described in any item of the claim 1 to 8 when being executed by the processor The step of position method.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on electricity Source control restarts finder, and the restarting based on power management is realized when finder is executed by processor as right is wanted Ask described in any one of 1 to 8 based on power management the step of restarting localization method.
CN201810407293.3A 2018-04-28 2018-04-28 Restart positioning method based on power management, mobile terminal and readable storage medium Active CN108563582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810407293.3A CN108563582B (en) 2018-04-28 2018-04-28 Restart positioning method based on power management, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810407293.3A CN108563582B (en) 2018-04-28 2018-04-28 Restart positioning method based on power management, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108563582A true CN108563582A (en) 2018-09-21
CN108563582B CN108563582B (en) 2022-11-29

Family

ID=63537621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810407293.3A Active CN108563582B (en) 2018-04-28 2018-04-28 Restart positioning method based on power management, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108563582B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004013714A (en) * 2002-06-10 2004-01-15 Mitsubishi Electric Corp Communication terminal, debugging information notification system, and computer program
CN101046765A (en) * 2006-03-29 2007-10-03 华为技术有限公司 Method for positioning fault of software
CN106682162A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Log management method and device
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN107766222A (en) * 2017-10-31 2018-03-06 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004013714A (en) * 2002-06-10 2004-01-15 Mitsubishi Electric Corp Communication terminal, debugging information notification system, and computer program
CN101046765A (en) * 2006-03-29 2007-10-03 华为技术有限公司 Method for positioning fault of software
CN106682162A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Log management method and device
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN107766222A (en) * 2017-10-31 2018-03-06 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108563582B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN108040159A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108052412A (en) Restart Fault Locating Method, mobile terminal and computer readable storage medium
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
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN109753425A (en) Pop-up processing method and processing device
CN107704133A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN112148579A (en) User interface testing method and device
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
CN109002547A (en) Journal file storage method, mobile terminal and computer readable storage medium
CN108089937A (en) Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN108182123A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN108255631A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN107766222A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107765922A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN108268335A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on system service
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
CN107943397A (en) A kind of note generation method, mobile terminal and computer-readable recording medium
CN108228423A (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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221108

Address after: 518000 318, innovation square, wisdom Valley, 542 Minzhi Avenue, Xinniu community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Zhuohongwei Technology Co.,Ltd.

Address before: 518057 Dazu Innovation Building, 9018 Beihuan Avenue, Nanshan District, Shenzhen City, Guangdong Province, 6-8, 10-11, 6 and 6-10 floors in Area A, B and C

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant