CN105335244B - Method for application recovery - Google Patents
Method for application recovery Download PDFInfo
- Publication number
- CN105335244B CN105335244B CN201410401081.6A CN201410401081A CN105335244B CN 105335244 B CN105335244 B CN 105335244B CN 201410401081 A CN201410401081 A CN 201410401081A CN 105335244 B CN105335244 B CN 105335244B
- Authority
- CN
- China
- Prior art keywords
- application
- application program
- information
- execution
- recovery
- 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.)
- Active
Links
Landscapes
- Retry When Errors Occur (AREA)
- Stored Programmes (AREA)
Abstract
The present invention proposes a kind of application recovery method, and this method includes the following steps:(A1)Setting recovery point marks in the application;(A2)The execution information of the application program is recorded based on the recovery point during the application program is run;(A3)State after the application program surprisingly exits and restarts therewith based on the execution information recorded by the application recovery to before exiting.Application recovery method disclosed in this invention can make state of the application program before being automatically reverted to exit after surprisingly exiting and restart.
Description
Technical field
The present invention relates to the methods for application recovery, more particularly, to the application journey on mobile terminal
The method of the recovery of sequence.
Background technology
Currently, increasingly extensive and different field the type of business applied with computer and networks becomes increasingly abundant,
For operating in different hardware platforms(Such as mobile terminal)On the system failure countermeasure of application program become increasingly
It is important.
In existing technical solution, when the application program for causing to be currently running due to hardware or resource distribution is unexpected
When exiting, after the application program is restarted, user needs to execute many more manipulations again to return to state when application program exits.
Therefore there are the following problems for existing technical solution:Application program can not be restored to after surprisingly exiting and move back
State before going out, it is cumbersome and systematic entirety can decline so as to cause user's operation.
Accordingly, there exist following demands:There is provided can be automatically reverted to after the application program restarting surprisingly exited
The application recovery method of state before exiting.
Invention content
In order to solve the problems existing in the prior art scheme, propose can be in the application surprisingly exited by the present invention
The application recovery method of the state before exiting is automatically reverted to after program restarting.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of application recovery method, the application recovery method include the following steps:
(A1)Setting recovery point marks in the application;
(A2)During the application program is run letter is executed based on what the recovery point recorded the application program
Breath;
(A3)It will be described based on the execution information recorded after the application program surprisingly exits and restarts therewith
State of the application recovery to before exiting.
In scheme disclosed above, it is preferable that the step(A1)Further comprise:Based on the application program
It executes logic setting recovery point to mark, wherein the program code between each two recovery point label is defined a recovery section.
In scheme disclosed above, it is preferable that the step(A2)Further comprise:In the application program launching
When create and store associated with application program program execution state label.
In scheme disclosed above, it is preferable that the step(A2)Further comprise:When the application program is at certain
When a section start for restoring section starts to execute, generates the execution under current state and record information, and the execution is recorded and is believed
Breath storage is recorded to corresponding information in file, the current state information for executing record information and including the application program
(Such as current ambient parameter information).
In scheme disclosed above, it is preferable that the step(A2)Further comprise:It is executed in the application program
To the branch point for being related to logic variation(Such as skip operation, function call, thread creation etc.)When, it is generated according to logical order
Execution under current state records information, and the execution is recorded information storage and is recorded in file to corresponding information, described
Execute the current logic transition information that record information includes the application program(Such as the parameter called, the function called
The key messages such as name).
In scheme disclosed above, it is preferable that the step(A2)Further comprise:When the application program is normal
When exiting, program execution state label associated with the application program is removed, and remove associated with the application program
All execution record information, and when the application exception exits, program execution state associated with the application program
Label and execution record information are retained.
In scheme disclosed above, it is preferable that the step(A3)Further comprise:The application program again
After startup, detects program execution state associated with the application program and mark whether exist, and if it is present solve successively
Each of analysis information record file corresponding with the application program executes record information, and according to the application program parsed
The state of status information and logic transition information by the application recovery to before exiting(I.e. basis each executes record successively
Application state information in information and/or the simulation of logic transition information execute user's operation with by application recovery to moving back
State before going out).
In scheme disclosed above, it is preferable that storing said program executes status indication and institute in a manner of encrypted
State execution record information.
In scheme disclosed above, it is preferable that the sensitive data of user is not stored in the execution record information
In, which is re-entered during the recovery of the application program by user.
Application recovery method disclosed in this invention has following advantages:The application program surprisingly exited can be made to exist
The state before exiting is automatically reverted to after restarting, it is easy and systematic entirety can improve so as to cause user's operation.
Description of the drawings
In conjunction with attached drawing, technical characteristic of the invention and advantage will be more fully understood by those skilled in the art, wherein:
Fig. 1 is the flow chart of application recovery method according to an embodiment of the invention;
Fig. 2 is the example of the realization process of application recovery method according to an embodiment of the invention.
Specific implementation mode
Fig. 1 is the flow chart of application recovery method according to an embodiment of the invention.As shown in Figure 1, institute of the present invention
Disclosed application recovery method includes the following steps:(A1)Setting recovery point marks in the application;(A2)Described
Application program records the execution information of the application program based on the recovery point during running;(A3)Journey is applied described
Shape based on the execution information recorded by the application recovery to before exiting after sequence is surprisingly exited and restarted therewith
State.
Preferably, in application recovery method disclosed in this invention, the step(A1)Further comprise:It is based on
The execution logic setting recovery point of the application program marks, wherein the program code between each two recovery point label is determined
One recovery section of justice.
Preferably, in application recovery method disclosed in this invention, the step(A2)Further comprise:Institute
It is created when stating application program launching and stores program execution state label associated with the application program.
Preferably, in application recovery method disclosed in this invention, the step(A2)Further comprise:Work as institute
Application program is stated when the section start of some recovery section starts to execute, the execution under current state is generated and records information, and will
The execution records information storage and is recorded in file to corresponding information, and the record information that executes includes the application program
Current state information(Such as current ambient parameter information).
Preferably, in application recovery method disclosed in this invention, the step(A2)Further comprise:Institute
It states application program and goes to the branch point for being related to logic variation(Such as skip operation, function call, thread creation etc.)When, according to
The execution under current state is generated according to logical order and records information, and execution record information storage is remembered to corresponding information
It records in file, the current logic transition information for executing record information and including the application program(Such as called parameter,
The key messages such as the function name called).
Preferably, in application recovery method disclosed in this invention, the step(A2)Further comprise:Work as institute
When stating application program and normally exiting, program execution state label associated with the application program is removed, and removing is answered with this
Information is recorded with the associated all execution of program, and when the application exception exits, it is associated with the application program
Program execution state label and execute record information be retained.
Preferably, in application recovery method disclosed in this invention, the step(A3)Further comprise:Institute
After stating application program restarting, detects program execution state associated with the application program and mark whether exist, and such as
Fruit exists, then each of parsing information record file corresponding with the application program executes and records information successively, and according to
State of the application state information and logic transition information parsed by the application recovery to before exiting(I.e. successively
According to it is each execute record information in application state information and/or logic transition information simulation execute user's operation with will
State of the application recovery to before exiting).
Preferably, in application recovery method disclosed in this invention, storing said program is held in a manner of encrypted
Row status indication and the execution record information.
Preferably, in application recovery method disclosed in this invention, the sensitive data of user(Such as user's input
Password)It is not stored in the execution record information, the sensitive information is during the recovery of the application program by user
It re-enters.Even if as a result, in the case where information record file is stolen, the sensitive data of user will not be leaked, from
And considerably improve the safety of system.
Fig. 2 is the example of the realization process of application recovery method according to an embodiment of the invention.It is shown in Fig. 2 go out
Example in, the basic recovery process of application program is as follows:(1)Application program is gone at " starting zero ";(2)Application program connects
It receives " input one ", and Rule of judgment, selects execution route therewith(Assuming that this executes left hand path, and currently execute record
The content of information is:" input:" input one ", judging result:"Yes" ")(3)Application program execution judges two, and receives " input
Two " and Rule of judgment, select path for left side therewith(Currently executing the content of record information is:" input:" input two ",
Judging result:"Yes" ");(4)Application program is gone to " terminating one ";(5)It, will be certainly when program goes to " starting zero " again
Dynamicly input is recorded from execution in information and is read out, is then put into the implementation procedure of application program.Therefore when again
When secondary executing application, the execution flow of application program is identical as last execution as sequence, and thus application program is last
Implementing result is identical as last implementing result.
Therefore application recovery method disclosed in this invention has following advantages:It can make surprisingly to exit
Application program is automatically reverted to the state before exiting after restarting, so as to cause user's operation simplicity and system entirety
Performance improves.
Although the present invention is described by above-mentioned preferred embodiment, way of realization is not limited to
Above-mentioned embodiment.It should be realized that:In the case where not departing from spirit and scope of the present invention, those skilled in the art can be with
Different change and modification are made to the present invention.
Claims (8)
1. a kind of application recovery method, the application recovery method includes the following steps:
A1:Setting recovery point marks in the application;
A2:The execution information of the application program is recorded based on the recovery point during the application program is run;
A3:Journey is applied by described based on the execution information recorded after the application program surprisingly exits and restarts therewith
Sequence is restored to the state before exiting, wherein the step A1 further comprises:Execution logic setting based on the application program
Recovery point marks, wherein the program code between each two recovery point label is defined as a recovery section.
2. application recovery method according to claim 1, which is characterized in that the step A2 further comprises:
It is created when the application program launching and stores program execution state label associated with the application program.
3. application recovery method according to claim 2, which is characterized in that the step A2 further comprises:When
The application program generates the execution under current state and records information when the section start of some recovery section starts to execute, and
The execution is recorded information storage to record in file to corresponding information, the execution record information includes the application program
Current state information.
4. application recovery method according to claim 3, which is characterized in that the step A2 further comprises:
When the application program goes to the branch point for being related to logic variation, is generated according to logical order and execute record under current state
Information, and the execution is recorded into information storage and is recorded in file to corresponding information, the execution record information includes described
The current logic transition information of application program.
5. application recovery method according to claim 4, which is characterized in that the step A2 further comprises:When
When the application program normally exits, program execution state label associated with the application program is removed, and remove and be somebody's turn to do
The associated all execution of application program record information, and when the application exception exits, it is related to the application program
The program execution state of connection marks and executes record information and is retained.
6. application recovery method according to claim 5, which is characterized in that the step A3 further comprises:
After the application program restarting, detects program execution state associated with the application program and mark whether exist, and
If it is present parsing each of information record file corresponding with the application program successively executes record information, and root
State according to the application state information and logic transition information parsed by the application recovery to before exiting.
7. application recovery method according to claim 6, which is characterized in that the storing said program in a manner of encrypted
It executes status indication and the execution records information.
8. application recovery method according to claim 7, which is characterized in that the sensitive data of user is not stored in
In the execution record information, which is re-entered during the recovery of the application program by user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410401081.6A CN105335244B (en) | 2014-08-15 | 2014-08-15 | Method for application recovery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410401081.6A CN105335244B (en) | 2014-08-15 | 2014-08-15 | Method for application recovery |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105335244A CN105335244A (en) | 2016-02-17 |
CN105335244B true CN105335244B (en) | 2018-08-10 |
Family
ID=55285799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410401081.6A Active CN105335244B (en) | 2014-08-15 | 2014-08-15 | Method for application recovery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105335244B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955803A (en) * | 2016-04-22 | 2016-09-21 | 上海斐讯数据通信技术有限公司 | Terminal and method for recovering state of application program |
CN112882804A (en) | 2016-08-17 | 2021-06-01 | 华为技术有限公司 | Method and device for starting application |
CN106502820A (en) * | 2016-11-28 | 2017-03-15 | 深圳天珑无线科技有限公司 | Application crashes processing method and processing device |
CN109614266B (en) * | 2018-12-05 | 2021-07-02 | 北京和利时***工程有限公司 | Data synchronization method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354677A (en) * | 2008-09-11 | 2009-01-28 | 青岛海信移动通信技术股份有限公司 | Method for detecting and restoring application program running state and restoring device thereof |
CN103092315A (en) * | 2013-01-09 | 2013-05-08 | 惠州Tcl移动通信有限公司 | Mobile terminal capable of recovering application program after restart |
CN103678019A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for automatically restoring browser |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8352799B2 (en) * | 2010-02-12 | 2013-01-08 | Symantec Corporation | Data corruption prevention during application restart and recovery |
-
2014
- 2014-08-15 CN CN201410401081.6A patent/CN105335244B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354677A (en) * | 2008-09-11 | 2009-01-28 | 青岛海信移动通信技术股份有限公司 | Method for detecting and restoring application program running state and restoring device thereof |
CN103678019A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for automatically restoring browser |
CN103092315A (en) * | 2013-01-09 | 2013-05-08 | 惠州Tcl移动通信有限公司 | Mobile terminal capable of recovering application program after restart |
Also Published As
Publication number | Publication date |
---|---|
CN105335244A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8789045B2 (en) | Rejuvenation processing device, rejuvenation processing system, computer program, and data processing method | |
CN105335244B (en) | Method for application recovery | |
JP4728565B2 (en) | Failure recovery apparatus, failure recovery method and program | |
US8984123B2 (en) | Rejuvenation processing device, rejuvenation processing system, computer program, and data processing method | |
JP6639665B2 (en) | Method, apparatus and terminal for terminal-based wakelock control | |
CN105404536B (en) | Method for updating terminal software and terminal software upgrading device | |
JP4239989B2 (en) | Fault recovery system, fault recovery device, rule creation method, and fault recovery program | |
CN103677870A (en) | System upgrading method and system upgraded by means of method | |
CN112100027A (en) | Server maintenance method, device, equipment and machine readable storage medium | |
CN103761474A (en) | Method and device for monitoring execution time of monitoring method | |
CN108037932B (en) | SPI-NAND configuration file acquisition method and device | |
CN104516796A (en) | Command set based network element backup and recovery method and device | |
CN102722669B (en) | Completeness verification method of operating system | |
CN105573788A (en) | Patch processing method and device as well as patch generation method and device | |
CN103425932A (en) | Signature calibration method and terminal device | |
JP2006065440A (en) | Process management system | |
CN103123603B (en) | The method of debug system and the operation of execution debug system | |
CN111382983B (en) | Workflow control method, workflow node and system | |
CN114168389A (en) | Method and device for recovering CAD file, storage medium and processor | |
CN110673793B (en) | Storage device node event management method and system, electronic device and storage medium | |
US8914678B2 (en) | Systems and methods for debugging model based message sequences | |
JP4998455B2 (en) | Failure recovery apparatus, failure recovery method and program | |
US20140173333A1 (en) | Sever and method for handling errors of programs | |
CN108121562A (en) | Firmware version switching method, electronic equipment and BIOS chips | |
CN107729022B (en) | Method and device for unloading application program and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |