CN109343996A - Mobile terminal restarts localization method, mobile terminal and computer readable storage medium - Google Patents

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109343996A
CN109343996A CN201811281640.9A CN201811281640A CN109343996A CN 109343996 A CN109343996 A CN 109343996A CN 201811281640 A CN201811281640 A CN 201811281640A CN 109343996 A CN109343996 A CN 109343996A
Authority
CN
China
Prior art keywords
mobile terminal
log
multimedia device
key message
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.)
Pending
Application number
CN201811281640.9A
Other languages
Chinese (zh)
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.)
Nubia 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 CN201811281640.9A priority Critical patent/CN109343996A/en
Publication of CN109343996A publication Critical patent/CN109343996A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/079Root cause analysis, i.e. error or fault diagnosis
    • 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/0751Error or fault detection not based on redundancy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

The invention discloses a kind of mobile terminals to restart localization method, mobile terminal and computer readable storage medium, the method comprising the steps of: after monitoring that the multimedia device for presetting key message point corresponding position in mobile terminal Kernel layer multimedia management module is in abnormality, reading the corresponding abnormal mark of multimedia device;Abnormal identify is matched with the log mark prestored;If abnormal mark identifies successful match with log, associated log information is identified according to log identifier lookup and log, and obtain the progress information of process corresponding with multimedia device;Log is restarted according to progress information and log information generation, and log positioning mobile terminal is restarted with basis and restarts reason.The present invention improves positioning mobile terminal and restarts the efficiency of reason, and reduces human cost.

Description

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to fields of communication technology more particularly to a kind of mobile terminal to restart localization method, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become people's work and life Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole End the reason of being restarted automatically may be it is already present before city on mobile terminals, only developer does not have found.At this point, User needs the mobile terminal returning factory, carries out a large amount of test job by tester, to determine original that mobile terminal is restarted Cause.Currently, the method for restart pressure test to mobile terminal operating system is still using manual testing in testing field Method, restart mobile phone manually, then carry out pressure test.However, this test method excessively labor intensive and time, especially It is to the lower mobile terminal of loophole BUG recurrence rate, for example, mobile terminal, which restarts 1000 times, just may only occur once or several times The investment of BUG, time and manpower is excessive and output very little, it is obvious that reboot operation reason occurs for this analysis mobile terminal Way is extremely inefficient.
Summary of the invention
It is a primary object of the present invention to propose that a kind of mobile terminal restarts localization method, mobile terminal and computer-readable Storage medium, it is intended to solve the problems, such as existing the reason of being unable to fast positioning of mobile terminal generation reboot operation.
To achieve the above object, the present invention provides a kind of mobile terminals to restart localization method, and the mobile terminal is restarted Localization method includes:
As the more matchmakers for monitoring to preset key message point corresponding position in mobile terminal Kernel layer multimedia management module After body device is in abnormality, the corresponding abnormal mark of the multimedia device is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the multimedia device;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer multimedia management module to be corresponded to After the multimedia device of position is in abnormality, reading the step of corresponding exception of the multimedia device identifies includes:
When the Monitoring instruction for detecting default key message point in monitoring mobile terminal Kernel layer multimedia management module Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the multimedia device of the key message point corresponding position is in abnormality according to the state value;
If the multimedia device is in abnormality, the corresponding abnormal mark of the multimedia device is read.
Optionally, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the multimedia device is in normal condition according to the first state value of preset quantity, according to Second reading frequency reads the second state value of the key message point preset quantity;
If all determining that the multimedia device is in normal condition according to second state value of preset quantity, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Optionally, described that the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction First state value the step of after, further includes:
If determining that the multimedia device is in abnormality according to a first state value, the movement is detected Whether terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Optionally, described that log is restarted according to the progress information and log information generation, to restart according to Log positioned before the step of mobile terminal restarts reason, further includes:
Judge getting in the first preset time after the progress information whether monitor the key message again The multimedia device of point corresponding position is in abnormality;
If at the multimedia device for monitoring the key message point corresponding position again in first preset time In abnormality, then the progress information is stored.
Optionally, described that log is restarted according to the progress information and log information generation, to restart according to Log positioned after the step of mobile terminal restarts reason, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer multimedia management module to be corresponded to After the multimedia device of position is in abnormality, before reading the multimedia device corresponding abnormal the step of identifying, also Include:
Determine the recognition node of multimedia administration module call flow in Kernel layers described, load node, operation node, Instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk read-write Running node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Optionally, described to monitor that key message point is preset in mobile terminal Kernel layer multimedia management module to be corresponded to After the multimedia device of position is in abnormality, before reading the multimedia device corresponding abnormal the step of identifying, also Include:
It determines and monitors the Monitoring instruction pair whether the key message point corresponding position multimedia device is in abnormality The thread answered, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory, It processor and is stored in the mobile terminal that can be run on the memory and on the processor and restarts finder, the shifting Dynamic terminal, which is restarted, realizes that mobile terminal as described above restarts the step of localization method when finder is executed by the processor Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with mobile terminal on storage medium and restarts finder, the mobile terminal is restarted real when finder is executed by processor The step of mobile terminal now as described above restarts localization method.
The present invention, which passes through to work as, monitors that key message point is preset in mobile terminal Kernel layer multimedia management module to be corresponded to After the multimedia device of position is in abnormality, the corresponding abnormal mark of the multimedia device is read;By the abnormal mark Know and is matched with the log mark prestored;If the abnormal mark identifies successful match with the log, according to the day Will identifier lookup and the log identify associated log information, and obtain the process letter of process corresponding with the multimedia device Breath;Log is restarted according to the progress information and log information generation, positions the movement to restart log according to Terminal restarts reason.It realizes before reboot operation does not occur for mobile terminal, behaviour can be restarted by obtaining mobile terminal in advance Make it is corresponding restart log, in order to which after reboot operation occurs for mobile terminal, corresponding staff can be according to restarting day Will quickly determines the reason of causing mobile terminal to be restarted, and improves positioning mobile terminal and restarts the efficiency of reason, and reduces Human cost.
Detailed description of the invention
A kind of Fig. 1 hardware structural diagram of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment;
Fig. 4 is a kind of flow diagram of step S10 in the embodiment of the present invention;
Fig. 5 is the flow diagram that mobile terminal of the present invention restarts localization method 3rd embodiment;
Fig. 6 is the flow diagram that mobile terminal of the present invention restarts localization method fourth embodiment.
The realization, the function and the advantages of the object of the present invention will be explained referring to attached drawing in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit 103, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with And the equal components of power supply 111.It will be understood by those skilled in the art that 100 structure of mobile terminal shown in Fig. 1 is not constituted to shifting The restriction of dynamic terminal 100, mobile terminal 100 may include components more more or fewer than diagram, or combine certain components, or The different component layout of person.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal 100:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive by Wi-Fi module 102 It sends e-mails, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although figure 1 shows Wi-Fi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal 100, it completely can be with It omits within the scope of not changing the essence of the invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide executed to mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 100, utilizes various interfaces and the entire mobile terminal of connection Various pieces by running or execute the software program and/or module that are stored in memory 109, and are called and are stored in Data in reservoir 109 execute the various functions and processing data of mobile terminal 100, to carry out entirety to mobile terminal 100 Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, processor 110 is for calling the mobile terminal stored in memory 109 in mobile terminal shown in Fig. 1 Restart finder, and execute following operation:
When monitor in mobile terminal 100Kernel layer multimedia management module preset key message point corresponding position it is more After medium device is in abnormality, the corresponding abnormal mark of the multimedia device is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the multimedia device;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal 100 restarts reason.
Further, described to monitor to preset key message in mobile terminal 100Kernel layer multimedia management module After the multimedia device of point corresponding position is in abnormality, corresponding abnormal the step of the identifying packet of the multimedia device is read It includes:
When the monitoring for detecting default key message point in monitoring mobile terminal 100Kernel layer multimedia management module refers to After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the multimedia device of the key message point corresponding position is in abnormality according to the state value;
If the multimedia device is in abnormality, the corresponding abnormal mark of the multimedia device is read.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the multimedia device is in normal condition according to the first state value of preset quantity, according to Second reading frequency reads the second state value of the key message point preset quantity;
If all determining that the multimedia device is in normal condition according to second state value of preset quantity, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart Finder, to perform the steps of
If determining that the multimedia device is in abnormality according to a first state value, the movement is detected Whether terminal 100 occurs reboot operation;
If reboot operation does not occur for the mobile terminal 100, the key message point is read according to the 4th reading frequency State value.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy Before opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109 The mobile terminal 100 of storage restarts finder, to perform the steps of
Judge getting in the first preset time after the progress information whether monitor the key message again The multimedia device of point corresponding position is in abnormality;
If at the multimedia device for monitoring the key message point corresponding position again in first preset time In abnormality, then the progress information is stored.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy After opening the step of log positioning mobile terminal 100 restarts reason, processor 110 is also used to call and deposit in memory 109 The mobile terminal 100 of storage restarts finder, to perform the steps of
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor to preset key message in mobile terminal 100Kernel layer multimedia management module After the multimedia device of point corresponding position be in abnormality, read the multimedia device corresponding abnormal the step of identifying it Before, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder, to realize following step It is rapid:
Determine the recognition node of multimedia administration module call flow in Kernel layers described, load node, operation node, Instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk read-write Running node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor to preset key message in mobile terminal 100Kernel layer multimedia management module After the multimedia device of point corresponding position be in abnormality, read the multimedia device corresponding abnormal the step of identifying it Before, processor 110 is also used to that the mobile terminal stored in memory 109 100 is called to restart finder, to realize following step It is rapid:
It determines and monitors the Monitoring instruction pair whether the key message point corresponding position multimedia device is in abnormality The thread answered, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned terminal hardware structure and communications network system, propose that mobile terminal of the present invention restarts localization method Each embodiment.
The present invention provides a kind of mobile terminal and restarts localization method.
Referring to Fig. 3, Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment.
In the present embodiment, the embodiment that mobile terminal restarts localization method is provided, it should be noted that although flowing Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein The step of.
In the present embodiment, mobile terminal restarts localization method and includes:
Step S10, when monitor in mobile terminal Kernel layer multimedia management module preset key message point correspond to position After the multimedia device set is in abnormality, the corresponding abnormal mark of multimedia device is read.
The present invention in mobile terminal Kernel layer multimedia management module primarily directed to needing using multimedia device Scene, in multimedia administration module, mobile terminal is classified according to the usage scenario of multimedia device, will such as be initialized more The process of medium device is divided into one kind, the process of multimedia device will be called to be divided into one kind, will discharge the process of multimedia device It is divided into one kind etc..After to using the scene of multimedia device to classify, mobile terminal determines that every one kind after sorting is more The corresponding call flow of medium device and/or sequential logic, are standardized call flow and/or sequential logic, that is, are adjusting With key message point is arranged in process and/or the main functional node of sequential logic, to obtain the corresponding mark of multimedia administration module The call flow of standardization and its internal basic function sequential logic.As determined calling stream during initializing multimedia device Journey and/or sequential logic, the major function of corresponding call flow and/or sequential logic during initializing multimedia device Key message point is set in node.Wherein, Kernel layers be mobile terminal system kernel layer, be mainly used for being initialized into Thread management, memory management, load Display (display), Camera Driver (camera driving) and Binder Driver Related works such as (Binder drivings), and for creating Core Operational thread kworkder, traps thread ksoftirqd and soft The kernels finger daemon such as interrupt thread thermal.
When mobile terminal monitors to preset the more of key message point corresponding position in its Kernel layer multimedia management module After medium device is in abnormality, mobile terminal reads the corresponding abnormal mark of multimedia device.Wherein, key message point is The information point being set in advance in the corresponding call flow of multimedia administration module and its internal basic function sequential logic, is used to Whether monitoring call flow and sequential logic are in the information point of abnormality.When monitoring call flow and/or sequential logic The multimedia device of corresponding key message point is when in an abnormal state, confirms at corresponding call flow and/or sequential logic In abnormality.Multimedia device corresponding exception, which is identified as, to be pre-set, for indicating that multimedia device is in abnormal The mark of state.It should be noted that the abnormal mark of the corresponding multimedia device of difference key message point is different.It is more The setting rule that medium device identifies extremely is arranged according to specific needs, as long as guaranteeing to identify different key messages The corresponding multimedia device of point.In the present embodiment, multimedia device is in abnormality and is represented by media exception.
Further, include: referring to Fig. 4, step S10
Step S11 presets key message point when detecting in monitoring mobile terminal Kernel layer multimedia management module After Monitoring instruction, the state value of key message point is read according to Monitoring instruction.
Step S12 determines whether the multimedia device of key message point corresponding position is in abnormality according to state value.
Step S13 reads the corresponding abnormal mark of multimedia device if multimedia device is in abnormality.
When mobile terminal detects that monitoring the monitoring for presetting key message point in its Kernel layer multimedia management module refers to After order, the state value of default key message point is read according to Monitoring instruction, and default key message point pair is determined according to state value Answer whether the multimedia device of position is in abnormality.If determining the multimedia of key message point corresponding position according to state value Device is in abnormality, and mobile terminal then reads the corresponding abnormal mark of multimedia device.If being determined according to state value crucial The multimedia device of information point corresponding position is in normal condition, then it represents that and there is no corresponding exceptions to identify for multimedia device, Mobile terminal reads abnormal mark corresponding less than multimedia device.
Wherein, there are corresponding relationships with abnormality for state value.In the present embodiment, between state value and abnormality Corresponding relationship limits according to specific needs, herein with no restrictions.It such as may be configured as when some corresponding shape of key message point When state value is " 0 ", it is determined that the multimedia device of key message point corresponding position is in normal condition;When some key message point When corresponding state value is " 1 ", it is determined that the multimedia device of key message point corresponding position is in abnormality.In this implementation In example, multimedia device, which is in abnormality, can be regarded as multimedia device exception.
Step S20 matches abnormal identify with the log mark prestored.
Step S30 is associated with according to log identifier lookup with log mark if abnormal mark identifies successful match with log Log information, and obtain the progress information of corresponding with multimedia device process.
After getting multimedia device corresponding abnormal mark, mobile terminal can then be triggered acquired exception mark Matched matching instruction is carried out with the log mark stored in storage reboot operation reason data library.When the triggering matching instruction Afterwards, mobile terminal matches abnormal mark with log mark according to the matching instruction.If abnormal mark and log mark With success, it is associated that mobile terminal then identifies lookup and log mark in the database of storage reboot operation reason according to log Log information, and obtain the progress information that process corresponding with multimedia device carries out.It should be noted that the log is identified as and leads Cause the corresponding mark of log information of mobile terminal reboot operation.Wherein, log information includes but is not limited to multimedia administration mould There is the position of multimedia device exception in the nodename and multimedia administration module for occurring multimedia device exception in block.Into Journey information includes but is not limited to work as that multimedia device is when in an abnormal state, the title of corresponding process, that is, relate to thing process title, The title for being associated with thread and the ID (identification, identity) and thread that relate to thing process interaction or association process The functional node of ID and the corresponding multimedia administration module of key message point.
In the present embodiment, when mark is consistent with the log mark prestored extremely, then confirm what exception was identified and prestored Log identifies successful match;If abnormal mark and the log mark prestored are inconsistent, the abnormal log for identifying and prestoring is confirmed It fails to match for mark.Such as when being identified as a extremely, is found in the database to identify the log of a mark, then confirm abnormal mark Successful match is identified with the log prestored, otherwise, then confirms that it fails to match for the abnormal log mark for identifying and prestoring.In other realities It applies in example, may be configured as then confirming the abnormal log for identifying and prestoring when mark is associated with the log mark prestored extremely Successful match is identified, otherwise, confirms that it fails to match for the abnormal log mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated log is identified as a2, if when the exception that some key message point corresponds to multimedia device is identified as a1, and in data The log mark for being identified as a2 is found in library, then confirms the abnormal log mark successful match for identifying and prestoring, otherwise, confirmation It fails to match for the abnormal log mark for identifying and prestoring.
Step S40 restarts log according to progress information and log information generation, restarts log positioning mobile terminal with basis Restart reason.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation Will, and log will be restarted and exported to designated position, in order to which mobile terminal is after occurring reboot operation, corresponding staff can With quick obtaining, this restarts log, quickly determines that lead to mobile terminal reboot operation restarts reason according to log is restarted.
Further, restart in logging process according to progress information and log information generation, mobile terminal is according to specific Format generation restart log, in order to which corresponding staff can quickly analyze mobile terminal according to log is restarted The reason of reboot operation.
Further, mobile terminal restarts localization method further include:
Step a, determines whether monitoring key message point corresponding position multimedia device is in the Monitoring instruction of abnormality Corresponding thread, and thread is deployed in Kernel layers of Kthreadd process and kernel process.
Further, mobile terminal determines when disposing Kernel layers of process and monitors its Kernel layer multimedia management The Monitoring instruction whether multimedia device that module presets key point corresponding position is in abnormality corresponds to thread, and will monitoring In the Kthreadd process and kernel process for instructing corresponding thread to be deployed in Kernel layers, in order to can be with monitored over time Whether the multimedia device in Kernel layer multimedia management module is in abnormality.It should be noted that Monitoring instruction pair The thread answered is independently operated in the terminal.
The present embodiment, which passes through to work as, to be monitored to preset key message point pair in mobile terminal Kernel layer multimedia management module After answering the multimedia device of position to be in abnormality, the corresponding abnormal mark of multimedia device is read;By abnormal mark and in advance The log mark deposited is matched;If abnormal mark identifies successful match with log, according to log identifier lookup and log mark Know associated log information, and obtains the progress information of process corresponding with multimedia device;According to progress information and log information Log is restarted in generation, is restarted log positioning mobile terminal with basis and is restarted reason.It realizes and does not restart behaviour in mobile terminal Before work, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart log, in order to restart in mobile terminal After operation, corresponding staff can quickly determine the reason of causing mobile terminal to be restarted according to log is restarted, and it is fixed to improve Position mobile terminal restarts the efficiency of reason, and reduces human cost.
Further, propose that mobile terminal of the present invention restarts the second embodiment of localization method based on first embodiment.It moves The difference for the first embodiment that the second embodiment that dynamic terminal restarts localization method restarts localization method with mobile terminal is, root According to Monitoring instruction read key message point state value the step of include:
Step b reads the first state value of key message point preset quantity according to Monitoring instruction according to the first reading frequency.
Step c, if all being determined according to the first state value of preset quantity, multimedia device is in normal condition, according to the Second state value of two reading frequencies reading key message point preset quantity.
Step d, if all being determined according to the second state value of preset quantity, multimedia device is in normal condition, according to the The third state value of three reading frequencies reading key message point, wherein the second reading frequency is greater than the first reading frequency, less than the Three reading frequencies.
Process of the mobile terminal in the state value for reading key message point according to Monitoring instruction are as follows: mobile terminal is according to monitoring The first state value of key message point preset quantity is read in instruction according to the first reading frequency, and judges read preset quantity First state value whether can determine that multimedia device is in normal condition.If the first state value of read preset quantity It can determine that multimedia device is in normal condition, then read the second of key message point preset quantity according to the second reading frequency State value, and judge whether the second state value of read preset quantity can determine that multimedia device is in normal condition. If the second state value of read preset quantity can determine that multimedia device is in normal condition, frequency is read according to third Rate reads the third state value of key message point preset quantity, to determine key message point corresponding position according to third state value Whether multimedia device is in abnormality.
Wherein, the second reading frequency is greater than the first reading frequency, and is less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity are arranged according to specific needs, and such as the first reading frequency can be arranged It is primary to be read at interval of 1 second, the second reading frequency is set as reading once at interval of 3 seconds, third reading frequency is arranged Primary to read at interval of 5 seconds, preset quantity is set as 5.I.e. when mobile terminal according to Monitoring instruction continuous 5 times with 1 second between After the state value of reading all shows that multimedia device is in normal condition, 5 key message points pair were continuously read at interval of 3 seconds The state value answered, if 5 state values read at interval of 3 seconds all showed that multimedia device is in normal condition, at interval of 5 seconds The corresponding state value of 5 key message points is continuously read, determines key according to 5 state values continuously read at interval of 5 seconds Whether the multimedia device of information point corresponding position is in abnormality.
It should be noted that in other embodiments, the reading that the dotted state value of key message is read in setting can be further added by Frequency, if all show that multimedia device is in normal condition at interval of 5 state values that 5 seconds continuously read, at interval of 8 Second continuously reads the corresponding state value of 5 key message points.It is without limitation in the present embodiment.
Further, mobile terminal restarts localization method further include:
Step e, if determining that multimedia device is in abnormality according to a first state value, detecting mobile terminal is No generation 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 multimedia device is in abnormality according to a first state value, whether mobile terminal then detects it Reboot operation occurs.If reboot operation does not occur for mobile terminal, mobile terminal reads key message according to the 4th reading frequency The state value of point.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, mobile terminal It then detects whether to detect the Monitoring instruction for monitoring and presetting the dotted state value of key message in its Kernel layer multimedia management module. Wherein, the 4th reading frequency is arranged according to specific needs, and such as the 4th reading frequency may be configured as and the first reading frequency phase Deng being 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 It 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 Multimedia device be in abnormality, and reboot operation does not occur for mobile terminal, and mobile terminal is then read according 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 key message point.
It is understood that if determining that multimedia device is in abnormal according to second state value or third state value State, mobile terminal then detect whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in multimedia administration module key message point When the multimedia device of corresponding position is in normal condition, increase the reading frequency for reading the dotted state value of key message, more When medium device is in normal condition, the number for reading the dotted state value of key message is reduced.
Further, propose that mobile terminal of the present invention restarts the 3rd embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the 3rd embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, referring to Fig. 5, mobile terminal restarts localization method further include:
Log is restarted in step S50, storage, and determines that is stored in the second preset time restarts log.
Step S60 executes de-redundancy operation to the log information stored in the second preset time, to save memory space.
After log is restarted in generation, log is restarted in mobile terminal storage, and determines the weight stored in the second preset time Log is opened, and de-redundancy operation is executed to the log of restarting stored in the second preset time, it is empty with the storage for saving mobile terminal Between.Specifically, in executing de-redundancy operating process, only storage belongs to one of same class reboot operation and restarts log, deletes Such reboot operation stored it is corresponding it is other restart log, what corresponding record belonged to same class reboot operation restarts log number Whether amount, and corresponding multimedia device have been changed into normal condition from abnormality, and record the multimedia device from different Normal state is changed into the fringe time of normal condition.Wherein, the second preset time is arranged according to specific needs, such as can be by Two preset times are set as 45 minutes, 60 minutes or 100 minutes etc..It should be noted that restart log carry out classification deposit During storage, it can also can classify according to the position restarted according to classification storage is carried out the reason of restarting, This is with no restrictions.
Such as when the multimedia device abnormal phenomenon that mobile terminal occurs in this 60 minutes at 10 points to 11 points, and it is mobile eventually Storing 1000 restarts log altogether in end.At this point, mobile terminal can be changed into normally in multimedia device from abnormality Before state, the log of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 restart in log, have 520 restart 1 class reboot operation of log corresponding A, restart log for 360 and correspond to B1 class reboot operation, restart log for 120 and correspond to C1 class reboot operation, then only one A1 class reboot operation is corresponding restarts log for storage, deletes remaining 519 A1 class reboot operation It is corresponding to restart log, and recording the corresponding quantity for restarting log of A1 class reboot operation is 520;Store a B1 class reboot operation It is corresponding to restart log, it deletes remaining 359 B1 class reboot operations is corresponding and restart log, and it is corresponding to record B1 class reboot operation The quantity for restarting log be 360;It stores that a C1 class reboot operation is corresponding to restart log, deletes remaining 119 C1 class weight Open operation it is corresponding restart log, and record the corresponding quantity for restarting log of C1 class reboot operation be 120.
It should be noted that the de-redundancy operation scheme be readily applicable to progress information and log information, when into When journey information and log information carry out de-redundancy operation, specific operating process and the carry out de-redundancy for restarting log was operated Journey is consistent, and this will not be repeated here.
The present embodiment is mobile whole to save by carrying out de-redundancy operation to the log of restarting stored in the second preset time The memory space at end.
Further, mobile terminal restarts localization method further include:
Step g judges getting whether monitor key message point in the first preset time after progress information again The multimedia device of corresponding position is in abnormality.
Step h, if monitoring again in the first preset time, the multimedia device of key message point corresponding position is in Abnormality, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information Whether monitor that the multimedia device of key message point corresponding position is in abnormality in first preset time again.If Monitor that the multimedia device of key message point corresponding position is in abnormality in one preset time again, mobile terminal is then deposited The progress information is stored up, to restart log according to progress information generation.Further, if not supervised again in the first preset time The multimedia device for measuring key message point corresponding position is in abnormality, and mobile terminal then deletes acquired process letter Breath.Wherein, the first preset time is arranged according to specific needs, can such as set the first preset time to 3 minutes, and 5 minutes, Or 8 minutes etc..
Further, for mobile terminal in storage process information process, mobile terminal determines the acquisition for obtaining progress information Time, according to acquisition time storage process information from front to back, up front by the carry out information arrangement finally obtained.
In the present embodiment, by judging whether monitor that multimedia device is in abnormal again in the first preset time State determines whether storage process information, to control the quantity of stored progress information, to save the storage of mobile terminal Space.
Further, propose that mobile terminal of the present invention restarts the fourth embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the fourth embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, referring to Fig. 6, mobile terminal restarts localization method further include:
Step S70 determines the recognition node of multimedia administration module call flow in Kernel layers, load node, operation Node, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk Read-write operation node.
Step S80, recognition node, load node, operation node, instruction dispatch node, striding course data communication node, It unloads node, memory source application and discharges and key message point is set in node and disk read-write running node.
In order to can in accurate Kernel layer of fast positioning of mobile terminal multimedia administration module generation reboot operation original Cause.Mobile terminal determines the recognition node of multimedia administration module call flow in its Kernel layers, load node, operation section Point, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk are read Write operation node, and recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unload It carries node, memory source application and discharges and key message point is set in node and disk read-write running node, to pass through the pass Whether the multimedia device of key information point monitoring corresponding node is in abnormality.It is understood that recognition node, load section Point, operation node, instruction dispatch node, striding course data communication node, unloading node, memory source application and release node, And disk read-write running node is node important in multimedia administration module call flow.Frequency control node is more The frequency control node of medium device.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal is determined Key message is arranged in the corresponding each functional node of sequential logic in the sequential logic of each function in multimedia administration module Point.Such as the sequential logic of some function in multimedia administration module are as follows: A → B → C → D, then in A node, B node, C node 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 determination restart The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layer or is multimedia in Kernel layers The appearance such as management module lead to reboot operation extremely.
The present embodiment by the recognition node of the call flow in multimedia administration module, load node, operation node, refer to Enable allotment node, striding course data communication node, unloading node, memory source application and release node and disk read-write behaviour Make node setting key message point, corresponding multimedia device is judged by each key message point in monitoring multimedia administration module Whether part is in abnormality, and reboot operation occurs to position important node in mobile multimedia terminal management module call flow Restart reason.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
It is stored with mobile terminal on the computer readable storage medium and restarts finder, the mobile terminal is restarted fixed Position program realizes following steps when being executed by processor:
As the more matchmakers for monitoring to preset key message point corresponding position in mobile terminal Kernel layer multimedia management module After body device is in abnormality, the corresponding abnormal mark of the multimedia device is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the multimedia device;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Further, described to monitor to preset key message point pair in mobile terminal Kernel layer multimedia management module After answering the multimedia device of position to be in abnormality, reading the step of corresponding exception of the multimedia device identifies includes:
When the Monitoring instruction for detecting default key message point in monitoring mobile terminal Kernel layer multimedia management module Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the multimedia device of the key message point corresponding position is in abnormality according to the state value;
If the multimedia device is in abnormality, the corresponding abnormal mark of the multimedia device is read.
Further, the step of state value that the key message point is read according to the Monitoring instruction includes:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determining that the multimedia device is in normal condition according to the first state value of preset quantity, according to Second reading frequency reads the second state value of the key message point preset quantity;
If all determining that the multimedia device is in normal condition according to second state value of preset quantity, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Further, described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
If determining that the multimedia device is in abnormality according to a first state value, the movement is detected Whether terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy Before opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Judge getting in the first preset time after the progress information whether monitor the key message again The multimedia device of point corresponding position is in abnormality;
If at the multimedia device for monitoring the key message point corresponding position again in first preset time In abnormality, then the progress information is stored.
Further, described that log is restarted according to the progress information and log information generation, according to described heavy After opening the step of log positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to monitor to preset key message point pair in mobile terminal Kernel layer multimedia management module After answering the multimedia device of position to be in abnormality, before reading the multimedia device corresponding abnormal the step of identifying, The mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
Determine the recognition node of multimedia administration module call flow in Kernel layers described, load node, operation node, Instruction dispatch node, striding course data communication node, unloading node, memory source application and release node and disk read-write Running node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading Key message point is set in node, memory source application and release node and disk read-write running node.
Further, described to monitor to preset key message point pair in mobile terminal Kernel layer multimedia management module After answering the multimedia device of position to be in abnormality, before reading the multimedia device corresponding abnormal the step of identifying, The mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
It determines and monitors the Monitoring instruction pair whether the key message point corresponding position multimedia device is in abnormality The thread answered, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
Computer readable storage medium specific embodiment of the present invention is restarted localization method with above-mentioned mobile terminal and is respectively implemented Example is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal restarts localization method, which is characterized in that the mobile terminal restarts localization method and includes:
When the multimedia device for monitoring to preset key message point corresponding position in mobile terminal Kernel layer multimedia management module After part is in abnormality, the corresponding abnormal mark of the multimedia device is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, identified according to the log identifier lookup and the log Associated log information, and obtain the progress information of process corresponding with the multimedia device;
Log is restarted according to the progress information and log information generation, positions the movement to restart log according to Terminal restarts reason.
2. mobile terminal as described in claim 1 restarts localization method, which is characterized in that described to monitor mobile terminal After the multimedia device of default key message point corresponding position is in abnormality in Kernel layer multimedia management module, read The step of multimedia device corresponding abnormal mark includes:
After detecting the Monitoring instruction of default key message point in monitoring mobile terminal Kernel layer multimedia management module, root The state value of the key message point is read according to the Monitoring instruction;
Determine whether the multimedia device of the key message point corresponding position is in abnormality according to the state value;
If the multimedia device is in abnormality, the corresponding abnormal mark of the multimedia device is read.
3. mobile terminal as claimed in claim 2 restarts localization method, which is characterized in that described to be read according to the Monitoring instruction The step of taking the state value of the key message point include:
The first state value of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction;
If all determining that the multimedia device is in normal condition according to the first state value of preset quantity, according to second Reading frequency reads the second state value of the key message point preset quantity;
If all determining that the multimedia device is in normal condition according to second state value of preset quantity, according to third Reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first and reads Frequency is less than the third reading frequency.
4. mobile terminal as claimed in claim 3 restarts localization method, which is characterized in that described to be pressed according to the Monitoring instruction After the step of reading the first state value of the key message point preset quantity according to the first reading frequency, further includes:
If determining that the multimedia device is in abnormality according to a first state value, the mobile terminal is detected Whether reboot operation is occurred;
If reboot operation does not occur for the mobile terminal, the state of the key message point is read according to the 4th reading frequency Value.
5. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Before, further includes:
Judge getting whether monitor the key message point pair in the first preset time after the progress information again The multimedia device of position is answered to be in abnormality;
If monitoring again in first preset time, the multimedia device of the key message point corresponding position is in different Normal state then stores the progress information.
6. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Log is restarted in log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Afterwards, further includes:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor The multimedia device that key message point corresponding position is preset in mobile terminal Kernel layer multimedia management module is in abnormal shape After state, before the step of reading the multimedia device corresponding abnormal mark, further includes:
Determine the recognition node of multimedia administration module call flow in Kernel layers described, load node, operation node, instruction Deploy node, striding course data communication node, unloading node, memory source application and release node and disk read-write operation Node;
In the recognition node, load node, operation node, instruction dispatch node, striding course data communication node, unloading section Key message point is set in point, memory source application and release node and disk read-write running node.
8. as mobile terminal as claimed in any one of claims 1 to 6 restarts localization method, which is characterized in that described to monitor The multimedia device that key message point corresponding position is preset in mobile terminal Kernel layer multimedia management module is in abnormal shape After state, before the step of reading the multimedia device corresponding abnormal mark, further includes:
The Monitoring instruction for determining whether the monitoring key message point corresponding position multimedia device is in abnormality is corresponding Thread, and the thread is deployed in described Kernel layers of Kthreadd process and kernel process.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Mobile terminal that is upper and can running on the processor restarts finder, and it is described that the mobile terminal restarts finder The step of restarting localization method such as mobile terminal described in any item of the claim 1 to 8 is realized when processor executes.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium mobile whole Finder is restarted at end, and the mobile terminal, which is restarted, to be realized when finder is executed by processor as any in claim 1 to 8 The step of mobile terminal described in restarts localization method.
CN201811281640.9A 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Pending CN109343996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811281640.9A CN109343996A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811281640.9A CN109343996A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109343996A true CN109343996A (en) 2019-02-15

Family

ID=65312570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811281640.9A Pending CN109343996A (en) 2018-10-30 2018-10-30 Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109343996A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951591A (en) * 2019-03-12 2019-06-28 上海龙旗科技股份有限公司 Mobile phone device abnormality monitoring method and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080090071A (en) * 2007-04-04 2008-10-08 삼성전자주식회사 Mobile terminal and method for restoring of system when error occur in mobile terminal
CN102662785A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Method and device for acquiring kernel error messages of Android system
CN102819466A (en) * 2012-06-29 2012-12-12 华为技术有限公司 Method and device for processing operating system exceptions
CN103942113A (en) * 2013-11-21 2014-07-23 小米科技有限责任公司 System restarting reason detection method, device and terminal equipment
US20180032401A1 (en) * 2015-04-08 2018-02-01 Huawei Technologies Co., Ltd. System running method and intelligent terminal
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080090071A (en) * 2007-04-04 2008-10-08 삼성전자주식회사 Mobile terminal and method for restoring of system when error occur in mobile terminal
CN102662785A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Method and device for acquiring kernel error messages of Android system
CN102819466A (en) * 2012-06-29 2012-12-12 华为技术有限公司 Method and device for processing operating system exceptions
CN103942113A (en) * 2013-11-21 2014-07-23 小米科技有限责任公司 System restarting reason detection method, device and terminal equipment
US20180032401A1 (en) * 2015-04-08 2018-02-01 Huawei Technologies Co., Ltd. System running method and intelligent terminal
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951591A (en) * 2019-03-12 2019-06-28 上海龙旗科技股份有限公司 Mobile phone device abnormality monitoring method and equipment
CN109951591B (en) * 2019-03-12 2021-10-08 上海龙旗科技股份有限公司 Method and equipment for monitoring abnormity of mobile phone device

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
CN107291586A (en) The analysis method and device of a kind of application program
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN109753425A (en) Pop-up processing method and processing device
CN109165110A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN108255631A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
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
CN108089937A (en) Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN108196969A (en) Restart monitoring and localization method, mobile terminal and computer readable storage medium
CN109298964A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN110191465A (en) Authority control method, mobile terminal and computer readable storage medium
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN108228423A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108076200A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108268335A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on system service
CN109343996A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109117309A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215