CN110083489A - Mobile terminal collapses processing method, mobile terminal and storage medium - Google Patents

Mobile terminal collapses processing method, mobile terminal and storage medium Download PDF

Info

Publication number
CN110083489A
CN110083489A CN201910324744.1A CN201910324744A CN110083489A CN 110083489 A CN110083489 A CN 110083489A CN 201910324744 A CN201910324744 A CN 201910324744A CN 110083489 A CN110083489 A CN 110083489A
Authority
CN
China
Prior art keywords
mobile terminal
counter
collapses
collapse
numerical value
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
CN201910324744.1A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910324744.1A priority Critical patent/CN110083489A/en
Publication of CN110083489A publication Critical patent/CN110083489A/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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of mobile terminal collapse processing method, mobile terminal and storage mediums.Mobile terminal collapse processing method includes: periodically to obtain current time according to prefixed time interval under mobile terminal-opening state and save as the record time;By reading the numerical value in the first counter, determine whether mobile terminal collapses before this booting;If collapsing, the last time saved in the time will be recorded, protect the time collapsed for mobile terminal.The temporal information that mobile terminal collapses each time can be effectively recorded in the embodiment of the present invention, so that be able to detect that after mobile terminal-opening this booting be normal boot-strap or in mobile terminal last time use process collapse after by user's enforced reset caused by, the efficiency of troubleshooting when improving mobile terminal fault collapse, and terminal operator repair system loophole easy to remove, promote mobile terminal stability.

Description

Mobile terminal collapses processing method, mobile terminal and storage medium
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of mobile terminal collapse processing method, mobile terminal And storage medium.
Background technique
Currently, mobile terminal technology is fast-developing, in order to adapt to the greater demand and management of user, it is contemplated that mobile The system of terminal will be more complicated.In the system of such complicated mobile terminal, before mobile terminal factory, manufacturer is for moving The test of dynamic terminal is limited after all, and after mobile terminal factory, a large amount of buyer is inevitably gone out when using the mobile terminal The problem of existing CRASH (collapse).
In the prior art, most mobile terminals are using the structure of not pluggable battery, and when there is CRASH, user can be with Achieve the purpose that enforced reset mobile terminal by certain key combination set by manufacturer, for example long-pressing power button ten seconds answer The mode of position mobile terminal achievees the purpose that reset movement terminal.
Currently, after enforced reset, mobile terminal system be not aware that this booting be after being collapsed by mobile terminal by force Reset causes, therefore can have some problems, for example, being mounted with its mounted file of the software of half for a long time in mobile terminal In be resident, and the system of mobile terminal does not know its presence after enforced reset is restarted, these files is appointed to occupy storage for a long time Space.And only determined the collapse relevant information of mobile terminal could position mobile terminal these there are the problem of, carry out pair It should solve, therefore, the crash info of mobile terminal mobile terminal in use is for user, mobile terminal maintenace point and fortune It is vital for seeking commercial city, currently, obtaining mobile terminal crash info without effective means.
Summary of the invention
The embodiment of the present invention provides a kind of mobile terminal collapse processing method, mobile terminal and storage medium, improves shifting The efficiency of troubleshooting when dynamic terminal fault collapse, and terminal operator repair system loophole easy to remove, promote mobile terminal Stability.
In a first aspect, the application provides a kind of mobile terminal collapse processing method, mobile terminal and storage medium, it is applied to Mobile terminal, the mobile terminal include memory, and the memory is power down nonvolatile memory, preset in the memory Have and identify the first the counter whether mobile terminal collapses, the mobile terminal collapse processing method includes:
Under mobile terminal-opening state, when periodically obtaining current time according to prefixed time interval and saving as record Between;
By reading the numerical value in first counter, determine whether the mobile terminal collapses before this booting It bursts;
If so, the last time that will be saved in the record time, saves as the mobile terminal and collapses The routed time.
Further, the numerical value by reading in first counter, determines that the mobile terminal is opened at this Whether collapsed before machine, comprising:
Read the numerical value in first counter;
If the numerical value is the first numerical value, determine that the mobile terminal is collapsed before this booting.
Further, the numerical value by reading in first counter, determines that the mobile terminal is opened at this Whether collapsed before machine, further includes:
If the numerical value is second value, determine that the mobile terminal does not collapse before this booting.
Further, it is additionally provided in the memory of the mobile terminal and identifies the number that the mobile terminal collapses The second counter, the mobile terminal collapses processing method further include:
Under the mobile terminal-opening state, the value of second counter is read, by second counter Second counter is written back after value plus one;
When the mobile terminal normal shutdown, second counter is read, the value of second counter is subtracted one After be written back second counter.
Further, the mobile terminal collapses processing method further include:
Under the mobile terminal-opening state, the finger for reading the number information that the mobile terminal collapses is obtained It enables;
The value of second counter is subtracted one by the numerical value for reading second counter, obtains the mobile terminal hair The number of raw collapse.
Second aspect, the application provide a kind of mobile terminal, and the mobile terminal includes memory, and the memory is to fall Electric nonvolatile memory presets in the memory and identifies the first the counter whether mobile terminal collapses, the shifting Dynamic terminal further include:
Acquiring unit, for periodically obtaining current time simultaneously according to prefixed time interval under mobile terminal-opening state Save as the record time;
Determination unit, for determining that the mobile terminal is opened at this by reading the numerical value in first counter Whether collapsed before machine;
Crash info storage unit, if being collapsed before this booting for the mobile terminal, by the record The last time saved in time, save as the time that the mobile terminal collapses.
Further, the determining module is specifically used for:
Read the numerical value in first counter;
If the numerical value is the first numerical value, determine that the mobile terminal is collapsed before this booting;
If the numerical value is second value, determine that the mobile terminal does not collapse before this booting.
Further, it is additionally provided in the memory of the mobile terminal and identifies the number that the mobile terminal collapses The second counter, the mobile terminal further includes collapse counting unit, and the collapse counting unit is specifically used for:
Under the mobile terminal-opening state, the value of second counter is read, by second counter Second counter is written back after value plus one;
When the mobile terminal normal shutdown, second counter is read, the value of second counter is subtracted one After be written back second counter.
Further, the collapse counting unit is specifically also used to:
Under the mobile terminal-opening state, the finger for reading the number information that the mobile terminal collapses is obtained It enables;
The value of second counter is subtracted one by the numerical value for reading second counter, obtains the mobile terminal hair The number of raw collapse.
The third aspect, the application provide a kind of storage medium, and the storage medium is stored with a plurality of instruction, and described instruction is suitable It is loaded in processor, to execute the step in the collapse processing method of mobile terminal described in any one of first aspect.
The embodiment of the present invention periodically obtains current time and is protected under mobile terminal-opening state, according to prefixed time interval Save as the record time;By reading the numerical value in first counter, determine the mobile terminal before this booting whether It collapses;If collapsing, the last time that will be saved in the record time, the mobile terminal is saved as The time collapsed.The temporal information that mobile terminal collapses each time can be effectively recorded in the embodiment of the present invention, so as to move It is able to detect that this booting is normal boot-strap or due to collapsing in mobile terminal last time use process after dynamic terminal booting Afterwards by user's enforced reset caused by, the efficiency of troubleshooting, and end easy to remove when improving mobile terminal fault collapse Operator's repair system loophole is held, mobile terminal stability is promoted.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is one embodiment flow diagram of mobile terminal collapse processing method in the embodiment of the present invention;
Fig. 2 is one embodiment structural schematic diagram of mobile terminal in the embodiment of the present invention;
Fig. 3 is another example structure schematic diagram of mobile terminal in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
In this application, " exemplary " word is used to indicate " being used as example, illustration or explanation ".Described herein as Any embodiment of " exemplary " is not necessarily to be construed as or more advantage more more preferable than other embodiments.In order to appoint this field What technical staff can be realized and use the present invention, gives and is described below.In the following description, it arranges for purposes of explanation Details is gone out.It should be appreciated that those skilled in the art will realize that the case where not using these specific details Under the present invention also may be implemented.In other examples, well known structure and process will not be described in detail, to avoid need not The details wanted makes description of the invention become obscure.Therefore, the present invention be not intended to be limited to shown in embodiment, but with meet The widest scope of principle and feature disclosed in the present application is consistent.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes The intrinsic other step or units of journey, method, product or equipment.
The terms " system " and " network " are often used interchangeably herein.The terms "and/or", only It is a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, can indicates: individually There are A, exist simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent forward-backward correlation pair As if a kind of relationship of "or".
The embodiment of the present invention provides a kind of mobile terminal collapse processing method, mobile terminal and storage medium, individually below It is described in detail.
Firstly, providing a kind of mobile terminal collapse processing method in the embodiment of the present invention, it is applied to mobile terminal, the shifting Dynamic terminal includes memory, and the memory is power down nonvolatile memory, and the mark movement is preset in the memory The first counter whether terminal collapses, the mobile terminal collapse processing method includes: to press under mobile terminal-opening state Current time is periodically obtained according to prefixed time interval and saves as the record time;By reading the number in first counter Value, determines whether the mobile terminal collapses before this booting;If so, nearest by being saved in the record time The primary time saves as the time that the mobile terminal collapses.
As shown in Figure 1, one embodiment flow diagram of processing method is collapsed for mobile terminal in the embodiment of the present invention, The mobile terminal includes memory, and the memory is power down nonvolatile memory, and mark institute is preset in the memory The first counter whether mobile terminal collapses is stated, the mobile terminal collapse processing method includes:
S101, under mobile terminal-opening state, current time is periodically obtained according to prefixed time interval and saves as note Record the time.
In the embodiment of the present invention, under mobile terminal-opening state, it can periodically be obtained according to prefixed time interval current Time simultaneously saves as the record time, wherein prefixed time interval can be 5s, 10s, 30s or 1min etc., optionally, in this hair In bright some embodiments, a time preserving module can be set in mobile terminal memory, obtained dedicated for saving this step The time value taken.Certainly, in some other embodiment of the present invention, it can be and this step is saved by some documents (such as table) Suddenly the time value obtained.
S102, by reading the numerical value in first counter, determine the mobile terminal before this booting whether It collapses, if so, step S103 is executed, if it is not, can not operate.
In the embodiment of the present invention, the first counter is set in a memory in the mobile terminal, the value of first counter is used In identifying whether the mobile terminal collapses, the value of first counter first reads the first counter after mobile terminal-opening Value, and the value of the first counter is set as the first numerical value, the value of the first counter is set as second in mobile terminal shutdown Numerical value, the numerical value by reading in first counter described at this time, determine the mobile terminal before this booting whether It collapses, may include: the numerical value read in first counter;If the numerical value is the first numerical value, the shifting is determined Dynamic terminal is collapsed before this booting.The numerical value of the first counter is even first read after mobile terminal-opening, if the numerical value For the first numerical value, it was demonstrated that mobile terminal does not revert to second value normally without last shutdown, is hair before this booting Raw collapse leads to abnormal shutdown, and the first counter still maintains the numerical value of booting.
Likewise, the numerical value by reading in first counter, determines the mobile terminal in this booting It is preceding whether to collapse, if can also include: the numerical value be second value, determine the mobile terminal before this booting not It collapses.The numerical value of the first counter is even first read after mobile terminal-opening, if the numerical value is second value, it was demonstrated that mobile The value of the first counter normally reverts to second value after the shutdown of terminal last time, and the mobile terminal last time is normal shutdown, There is no collapses before this booting.
It should be understood that the first numerical value and second value difference in the embodiment of the present invention, and the first numerical value and second value It is 1 for natural number, such as the first numerical value, second value 0, certainly, and in other embodiments of the present invention, the first numerical value and second Numerical value can also be other numerical value, such as the first numerical value is 1, and second value is 2 etc..
S103, the last time that will be saved in the record time, save as the mobile terminal and collapse Time.
In the embodiment of the present invention, when step S102 determines that mobile terminal is collapsed before this booting, by the note The last time saved in the record time, save as the time that the mobile terminal collapses.It i.e. will be in step S101 The last time saved in the record time, save as the time that the mobile terminal collapses.
The embodiment of the present invention periodically obtains current time and is protected under mobile terminal-opening state, according to prefixed time interval Save as the record time;By reading the numerical value in first counter, determine the mobile terminal before this booting whether It collapses;If collapsing, the last time that will be saved in the record time, the mobile terminal is saved as The time collapsed.The temporal information that mobile terminal collapses each time can be effectively recorded in the embodiment of the present invention, so as to move It is able to detect that this booting is normal boot-strap or due to collapsing in mobile terminal last time use process after dynamic terminal booting Afterwards by user's enforced reset caused by, the efficiency of troubleshooting, and end easy to remove when improving mobile terminal fault collapse Operator's repair system loophole is held, mobile terminal stability is promoted.
In some embodiment of the invention, collapse number occurs for the ease of statistics mobile terminal, the mobile terminal The second counter for identifying the number that the mobile terminal collapses is additionally provided in memory, the mobile terminal collapses at this time Routed processing method can also include: to read the value of second counter under the mobile terminal-opening state, will be described The value of second counter is written back second counter after adding one;When the mobile terminal normal shutdown, described the is read Two counters are written back second counter after subtracting one for the value of second counter.
After mobile terminal normal boot-strap, it is written back described second after the value of second counter is added one and counts Device when mobile terminal normal shutdown, is written back second counter after subtracting one for the value of second counter, but mobile When terminal is collapsed, the step of being written back the second counter after subtracting one for the value of the second counter not will do it.
So primary collapse occurs for mobile terminal, the numerical value of the second counter will add 1.Therefore, in mobile terminal-opening The value of the second counter is read under state, then is exactly that mobile terminal once collapsed after subtracting one for the value of second counter Number.Specifically, the i.e. described mobile terminal collapses processing method further include: under the mobile terminal-opening state, obtain and read The instruction for the number information for taking the mobile terminal to collapse;The numerical value for reading second counter is counted described second The value of number device subtracts one, obtains the number that the mobile terminal collapses.For example, obtaining time for reading the mobile terminal collapse The instruction of number information, the numerical value for reading second counter is 10, then the number collapsed is 10-1=9 times.
It should be noted that the initial value of the second counter can be 0, i.e., once all there is no collapses for mobile terminal When, when normal boot-strap, the value of the second counter is 1, and when mobile terminal normal shutdown, the value of the second counter reverts to 0 again.
In addition, data are not lost in memory when in order to ensure mobile terminal collapse, and in the embodiment of the present invention, memory It is stored for power down nonvolatile memory, such as embedded memory (Embedded Multi Media Card, EMMC), FLASH Device etc..
Processing method is collapsed in order to more preferably implement mobile terminal in the embodiment of the present invention, collapses processing method in mobile terminal On basis, a kind of mobile terminal is also provided in the embodiment of the present invention, the mobile terminal includes memory, and the memory is Power down nonvolatile memory presets in the memory and identifies the first the counter whether mobile terminal collapses, such as Fig. 2 It is shown, the mobile terminal 200 further include:
Acquiring unit 201, for periodically obtaining current time according to prefixed time interval under mobile terminal-opening state And save as the record time;
Determination unit 202, for determining the mobile terminal at this by reading the numerical value in first counter Whether collapsed before booting;
Crash info storage unit 203, if being collapsed before this booting for the mobile terminal, by the note The last time saved in the record time, save as the time that the mobile terminal collapses.
Acquiring unit of the embodiment of the present invention 201 periodically obtains under mobile terminal-opening state, according to prefixed time interval Current time simultaneously saves as the record time;Determination unit 202 determines the shifting by reading the numerical value in first counter Whether dynamic terminal collapses before this booting;If collapsing, crash info storage unit 203 is by the record time The last time of middle preservation, save as the time that the mobile terminal collapses.Can have in the embodiment of the present invention The temporal information that effect record mobile terminal collapses each time, so as to be able to detect that this booting is normal after mobile terminal-opening Booting or after being collapsed in mobile terminal last time use process by user's enforced reset caused by, improve it is mobile eventually The efficiency of troubleshooting when holding failure collapse, and terminal operator repair system loophole easy to remove, promote mobile terminal and stablize Property.
Further, the determining module 202 is specifically used for:
Read the numerical value in first counter;
If the numerical value is the first numerical value, determine that the mobile terminal is collapsed before this booting;
If the numerical value is second value, determine that the mobile terminal does not collapse before this booting.
Further, the second counter is additionally provided in the memory of the mobile terminal, the mobile terminal further includes Counting unit is collapsed, the collapse counting unit 203 is specifically used for:
Under the mobile terminal-opening state, the value of second counter is read, by second counter Second counter is written back after value plus one;
When the mobile terminal normal shutdown, second counter is read, the value of second counter is subtracted one After be written back second counter.
Further, the collapse counting unit 203 is specifically also used to:
Under the mobile terminal-opening state, the finger for reading the number information that the mobile terminal collapses is obtained It enables;
The value of second counter is subtracted one by the numerical value for reading second counter, obtains the mobile terminal hair The number of raw collapse.
By using mobile terminal described in embodiment as above, failure when further improving mobile terminal fault collapse The efficiency of exclusion, and terminal operator repair system loophole easy to remove promote mobile terminal stability.
Correspondingly, the embodiment of the present invention also provides a kind of mobile terminal, as shown in figure 3, the mobile terminal may include penetrating Frequently (RF, Radio Frequency) circuit 301, include one or more the memory of computer readable storage medium 302, input unit 303, display unit 304, sensor 305, voicefrequency circuit 306, Wireless Fidelity (WiFi, Wireless Fidelity) module 307, the processor 308 and the components such as power supply 309 that include one or more than one processing core. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 3 does not constitute the restriction to mobile terminal, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.Wherein:
RF circuit 301 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 308 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 301 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 301 can also by wireless communication with network and its He communicates equipment.Any communication standard or agreement can be used in the wireless communication, and including but not limited to global system for mobile telecommunications is deposited Storage media (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), it is CDMA (CDMA, Code Division Multiple Access), wide Band CDMA (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 302 can be used for storing software program and module, and processor 308 is stored in memory 302 by operation Software program and module, thereby executing various function application and data processing.Memory 302 can mainly include storage journey Sequence area and storage data area, wherein application program needed for storing program area can store operation storage medium, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile terminal Data (such as audio data, phone directory etc.) etc..In addition, memory 302 may include high-speed random access memory, may be used also To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 302 can also include Memory Controller, to provide processor 308 and 303 pairs of input unit storages The access of device 302.
In the embodiment of the present invention, memory 302 may include the first counter for identifying the mobile terminal and whether collapsing With the second counter for identifying the number that the mobile terminal collapses.
Input unit 303 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment In, input unit 303 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 308, and can reception processing Order that device 308 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 303 can also include other input equipments.Specifically, other are defeated Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Display unit 304 can be used for showing information input by user or the information and mobile terminal that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 304 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, Processor 308 is sent to determine the type of touch event, is followed by subsequent processing device 308 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 3 Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated Function out.
Mobile terminal may also include at least one sensor 305, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include 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, and proximity sensor can close display surface when mobile terminal is moved in one's ear Plate and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) The size of acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for movement The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that terminal can also configure, it is no longer superfluous herein It states.
Voicefrequency circuit 306, loudspeaker, microphone can provide the audio interface between user and mobile terminal.Voicefrequency circuit Electric signal after the audio data received conversion can be transferred to loudspeaker, it is defeated to be converted to voice signal by loudspeaker by 306 Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 306 Data, then by after the processing of audio data output processor 308, such as another mobile terminal is sent to through RF circuit 301, or Audio data is exported to memory 302 to be further processed.Voicefrequency circuit 306 is also possible that earphone jack, to provide The communication of peripheral hardware earphone and mobile terminal.
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 307 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 shows Go out WiFi module 307, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Processor 308 is the control centre of mobile terminal, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 302, and calls and be stored in memory 302 Interior data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile phone.Optionally, it handles Device 308 may include one or more processing cores;Preferably, processor 308 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation storage medium of application processor, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 308.
Mobile terminal further includes the power supply 309 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Source control storage medium and processor 308 are logically contiguous, thus charged, discharged by the realization management of power management storage medium, And the functions such as power managed.Power supply 309 can also include one or more direct current or AC power source, recharge storage The random components such as medium, power failure detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, processor 308 in mobile terminal can according to following instruction, by one or more application program into The corresponding executable file of journey is loaded into memory 302, and runs by processor 308 storage answering in the memory 302 With program, to realize various functions.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed Device is loaded, to execute the step in any mobile terminal collapse processing method provided by the embodiment of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
It is provided for the embodiments of the invention a kind of mobile terminal collapse processing method, mobile terminal and storage medium above It is described in detail, used herein a specific example illustrates the principle and implementation of the invention, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of mobile terminal collapses processing method, which is characterized in that be applied to mobile terminal, the mobile terminal includes storage Device, the memory are power down nonvolatile memory, preset what whether the mark mobile terminal collapsed in the memory First counter, the mobile terminal collapse processing method include:
Under mobile terminal-opening state, current time is periodically obtained according to prefixed time interval and saves as the record time;
By reading the numerical value in first counter, determine whether the mobile terminal collapses before this booting;
If so, the last time that will be saved in the record time, saves as what the mobile terminal collapsed Time.
2. mobile terminal according to claim 1 collapses processing method, which is characterized in that described by reading described first Numerical value in counter, determines whether the mobile terminal collapses before this booting, comprising:
Read the numerical value in first counter;
If the numerical value is the first numerical value, determine that the mobile terminal is collapsed before this booting.
3. mobile terminal according to claim 2 collapses processing method, which is characterized in that described by reading described first Numerical value in counter, determines whether the mobile terminal collapses before this booting, further includes:
If the numerical value is second value, determine that the mobile terminal does not collapse before this booting.
4. mobile terminal according to claim 1 collapses processing method, which is characterized in that the memory of the mobile terminal In be additionally provided with the second counter for identifying the number that the mobile terminal collapses, the mobile terminal collapse processing method Further include:
Under the mobile terminal-opening state, the value of second counter is read, the value of second counter is added Second counter is written back after one;
When the mobile terminal normal shutdown, second counter is read, after subtracting one for the value of second counter again Write back second counter.
5. mobile terminal according to claim 4 collapses processing method, which is characterized in that the mobile terminal collapse processing Method further include:
Under the mobile terminal-opening state, the instruction for reading the number information that the mobile terminal collapses is obtained;
The value of second counter is subtracted one, obtains the mobile terminal and collapse by the numerical value for reading second counter Routed number.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, and the memory, which is that power down is not volatile, to be deposited Reservoir, presets in the memory and identifies the first the counter whether mobile terminal collapses, and the mobile terminal also wraps It includes:
Acquiring unit, for periodically obtaining current time according to prefixed time interval and saving under mobile terminal-opening state To record the time;
Determination unit, for determining the mobile terminal before this booting by reading the numerical value in first counter Whether collapse;
Crash info storage unit, if being collapsed before this booting for the mobile terminal, by the record time The last time of middle preservation, save as the time that the mobile terminal collapses.
7. mobile terminal according to claim 6, which is characterized in that the determining module is specifically used for:
Read the numerical value in first counter;
If the numerical value is the first numerical value, determine that the mobile terminal is collapsed before this booting;
If the numerical value is second value, determine that the mobile terminal does not collapse before this booting.
8. mobile terminal according to claim 6, which is characterized in that be additionally provided with mark in the memory of the mobile terminal Know the second counter of the number that the mobile terminal collapses, the mobile terminal further includes collapse counting unit, described Collapse counting unit is specifically used for:
Under the mobile terminal-opening state, the value of second counter is read, the value of second counter is added Second counter is written back after one;
When the mobile terminal normal shutdown, second counter is read, after subtracting one for the value of second counter again Write back second counter.
9. mobile terminal according to claim 8, which is characterized in that the collapse counting unit is specifically also used to:
Under the mobile terminal-opening state, the instruction for reading the number information that the mobile terminal collapses is obtained;
The value of second counter is subtracted one, obtains the mobile terminal and collapse by the numerical value for reading second counter Routed number.
10. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 5 described in any item mobile terminal collapse processing methods is required with perform claim.
CN201910324744.1A 2019-04-22 2019-04-22 Mobile terminal collapses processing method, mobile terminal and storage medium Pending CN110083489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910324744.1A CN110083489A (en) 2019-04-22 2019-04-22 Mobile terminal collapses processing method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910324744.1A CN110083489A (en) 2019-04-22 2019-04-22 Mobile terminal collapses processing method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110083489A true CN110083489A (en) 2019-08-02

Family

ID=67416075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910324744.1A Pending CN110083489A (en) 2019-04-22 2019-04-22 Mobile terminal collapses processing method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110083489A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235466A (en) * 2020-10-16 2021-01-15 Tcl通讯(宁波)有限公司 Crash information prompting method and device, storage medium and mobile terminal
CN112783743A (en) * 2021-01-26 2021-05-11 深圳融安网络科技有限公司 Log generation method, terminal device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487402B1 (en) * 2000-03-20 2009-02-03 Palmsource, Inc. Graceful recovery from and avoidance of crashes due to notification of third party applications
CN103902423A (en) * 2012-12-26 2014-07-02 联芯科技有限公司 Method and system for debugging crash of central processor
CN104331339A (en) * 2014-11-20 2015-02-04 惠州Tcl移动通信有限公司 Mobile terminal crash detecting method and system, and mobile terminal
CN108152706A (en) * 2017-12-18 2018-06-12 Tcl移动通信科技(宁波)有限公司 Mobile terminal and power management chip restart detection process method and storage medium
US20180322016A1 (en) * 2017-05-05 2018-11-08 Dell Products L.P. System and method to capture stored data following system crash

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487402B1 (en) * 2000-03-20 2009-02-03 Palmsource, Inc. Graceful recovery from and avoidance of crashes due to notification of third party applications
CN103902423A (en) * 2012-12-26 2014-07-02 联芯科技有限公司 Method and system for debugging crash of central processor
CN104331339A (en) * 2014-11-20 2015-02-04 惠州Tcl移动通信有限公司 Mobile terminal crash detecting method and system, and mobile terminal
US20180322016A1 (en) * 2017-05-05 2018-11-08 Dell Products L.P. System and method to capture stored data following system crash
CN108152706A (en) * 2017-12-18 2018-06-12 Tcl移动通信科技(宁波)有限公司 Mobile terminal and power management chip restart detection process method and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235466A (en) * 2020-10-16 2021-01-15 Tcl通讯(宁波)有限公司 Crash information prompting method and device, storage medium and mobile terminal
CN112783743A (en) * 2021-01-26 2021-05-11 深圳融安网络科技有限公司 Log generation method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN104519485B (en) Communication means, device and system between a kind of terminal
EP3015978A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN106453511B (en) A kind of data back up method and equipment
CN104571787B (en) A kind of message display method and communication terminal
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN104169856A (en) Sidebar menu display method and apparatus, and terminal
CN104252341B (en) The client device of the skin change method of application program, device and application program
CN104571979B (en) A kind of method and apparatus for realizing split view
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
US20150019764A1 (en) Information displaying method, mobile terminal device and non-transitory computer readable storage medium
CN104077184B (en) A kind of course control method and computer system of application program
CN103813127A (en) Video call method, terminal and system
CN104869465A (en) Video playing control method and device
CN106385485A (en) Call recording method, call recording device and mobile terminal
CN104346028B (en) Address field display methods, device and mobile terminal
CN106210838B (en) Caption presentation method and device
CN103399706A (en) Page interaction method, device and terminal
CN110083489A (en) Mobile terminal collapses processing method, mobile terminal and storage medium
CN105653112A (en) Method and device for displaying floating layer
CN107153715B (en) Method and device for adding file on page
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN104615451B (en) A kind of method and device starting application
CN104461485B (en) A kind of method and user equipment of forms coloring
CN106254673A (en) Terminal fall detection method and device

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: 20190802