CN105335244A - Application program recovery method - Google Patents
Application program recovery method Download PDFInfo
- Publication number
- CN105335244A CN105335244A CN201410401081.6A CN201410401081A CN105335244A CN 105335244 A CN105335244 A CN 105335244A CN 201410401081 A CN201410401081 A CN 201410401081A CN 105335244 A CN105335244 A CN 105335244A
- Authority
- CN
- China
- Prior art keywords
- application program
- application
- information
- execution
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Retry When Errors Occur (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an application program recovery method. The method comprises the following steps: (A1) setting a recovery point mark in an application program; (A2) recording execution information of the application program on the basis of the recovery point mark in the running process of the application program; and (A3) recovering the application program to the state before exit on the basis of the recorded execution information after the application program exits accidently and is restarted. The application program recovery method disclosed by the invention is capable of automatically recovering the application to the state before exit after the application program exits accidently and is restarted.
Description
Technical field
The present invention relates to the method for application recovery, more specifically, relate to the method for the recovery of the application program on mobile terminal.
Background technology
At present, along with the becoming increasingly abundant of class of business of the increasingly extensive and different field of cyber-net application, the system failure countermeasure for the application program operated on different hardware platforms (such as mobile terminal) becomes more and more important.
In existing technical scheme, when causing the application program run surprisingly to exit due to hardware or resource distribution reason, after this application program is restarted, user needs again to perform many more manipulations to get back to state when application program exits.
Therefore there are the following problems for existing technical scheme: application program cannot return to the state before exiting after unexpected exiting, thus the loaded down with trivial details and entire system performance of user operation is caused to decline.
Therefore, there is following demand: provide the application recovery method that automatically can return to the state before exiting after the unexpected application program exited restarts.
Summary of the invention
In order to solve the problem existing for above-mentioned prior art, the present invention proposes the application recovery method that automatically can return to the state before exiting after the unexpected application program exited restarts.
The object of the invention is to be achieved through the following technical solutions:
A kind of application recovery method, described application recovery method comprises the following steps:
(A1) recovery point mark is set in the application;
(A2) in the execution information of described application program run duration based on application program described in described recovery point label record;
(A3) after described application program surprisingly exits and restarts thereupon based on recorded execution information by described application recovery to the state before exiting.
In scheme disclosed above, preferably, described step (A1) comprises further: the actuating logic based on described application program arranges recovery point mark, and wherein, the program code between every two recovery points mark is defined one and recovers section.
In scheme disclosed above, preferably, described step (A2) comprises further: create when described application program launching and store the program execution state be associated with this application program and mark.
In scheme disclosed above, preferably, described step (A2) comprises further: when described application program starts to perform at the section start of certain recovery section, generate the execution recorded information under current state, and described execution recorded information is stored in corresponding information log file, described execution recorded information comprises the current state information (such as current ambient parameter information) of described application program.
In scheme disclosed above, preferably, described step (A2) comprises further: when described application program performs take-off point (such as the skip operation, function call, thread creation etc.) relating to logic variation, the execution recorded information under current state is generated according to logical order, and described execution recorded information being stored in corresponding information log file, described execution recorded information comprises current logic transition information key messages such as () such as called parameter, the function names called of described application program.
In scheme disclosed above, preferably, described step (A2) comprises further: when described application program normally exits, remove the program execution state be associated with this application program to mark, and remove all execution recorded informations be associated with this application program, and when described application exception exits, the program execution state be associated with this application program marks and performs recorded information and is retained.
In scheme disclosed above, preferably, described step (A3) comprises further: after described application program restarts, detect the program execution state be associated with this application program and mark whether to exist, and if exist, then resolve each execution recorded information in the information log file corresponding with this application program successively, and according to the application state information parsed and logic transition information by described application recovery to before exiting state (namely successively according to the application state information in each execution recorded information and/or the simulation of logic transition information perform user operation with by application recovery to the state before exiting).
In scheme disclosed above, preferably, with the mode storing said program executing state of encrypting mark and described execution recorded information.
In scheme disclosed above, preferably, the sensitive data of user is not stored in described execution recorded information, and this sensitive information is re-entered by user between the convalescence of described application program.
Application recovery method disclosed in this invention has following advantages: can make the unexpected application program exited after restarting, automatically return to the state before exiting, thus causes simple and convenient user operation and the raising of entire system performance.
Accompanying drawing explanation
By reference to the accompanying drawings, technical characteristic of the present invention and advantage will be understood better by those skilled in the art, wherein:
Fig. 1 is the process flow diagram of application recovery method according to an embodiment of the invention;
Fig. 2 is the example of the implementation procedure of application recovery method according to an embodiment of the invention.
Embodiment
Fig. 1 is the process flow diagram of application recovery method according to an embodiment of the invention.As shown in Figure 1, application recovery method disclosed in this invention comprises the following steps: that (A1) arranges recovery point mark in the application; (A2) in the execution information of described application program run duration based on application program described in described recovery point label record; (A3) after described application program surprisingly exits and restarts thereupon based on recorded execution information by described application recovery to the state before exiting.
Preferably, in application recovery method disclosed in this invention, described step (A1) comprises further: the actuating logic based on described application program arranges recovery point mark, and wherein, the program code between every two recovery points mark is defined one and recovers section.
Preferably, in application recovery method disclosed in this invention, described step (A2) comprises further: create when described application program launching and store the program execution state be associated with this application program and mark.
Preferably, in application recovery method disclosed in this invention, described step (A2) comprises further: when described application program starts to perform at the section start of certain recovery section, generate the execution recorded information under current state, and described execution recorded information is stored in corresponding information log file, described execution recorded information comprises the current state information (such as current ambient parameter information) of described application program.
Preferably, in application recovery method disclosed in this invention, described step (A2) comprises further: when described application program performs take-off point (such as the skip operation, function call, thread creation etc.) relating to logic variation, the execution recorded information under current state is generated according to logical order, and described execution recorded information being stored in corresponding information log file, described execution recorded information comprises current logic transition information key messages such as () such as called parameter, the function names called of described application program.
Preferably, in application recovery method disclosed in this invention, described step (A2) comprises further: when described application program normally exits, remove the program execution state be associated with this application program to mark, and remove all execution recorded informations be associated with this application program, and when described application exception exits, the program execution state be associated with this application program marks and performs recorded information and is retained.
Preferably, in application recovery method disclosed in this invention, described step (A3) comprises further: after described application program restarts, detect the program execution state be associated with this application program and mark whether to exist, and if exist, then resolve each execution recorded information in the information log file corresponding with this application program successively, and according to the application state information parsed and logic transition information by described application recovery to before exiting state (namely successively according to the application state information in each execution recorded information and/or the simulation of logic transition information perform user operation with by application recovery to the state before exiting).
Preferably, in application recovery method disclosed in this invention, with the mode storing said program executing state of encrypting mark and described execution recorded information.
Preferably, in application recovery method disclosed in this invention, the sensitive data (password of such as user's input) of user is not stored in described execution recorded information, and this sensitive information is re-entered by user between the convalescence of described application program.Thus, even if when information log file is stolen, the sensitive data of user also can not be revealed, thus considerably improves the security of system.
Fig. 2 is the example of the implementation procedure of application recovery method according to an embodiment of the invention.In example illustrated in fig. 2, the basic rejuvenation of application program is as follows: (1) application program performs " initial zero " place; (2) application program receives " input one ", and Rule of judgment, select execution route (to suppose that this performs left hand path thereupon, and the content of current execution recorded information is: " input: " input one "; judged result: "Yes" ") (3) application program performs judgement two, and receives " input two ", and Rule of judgment, selecting paths is left side (content of current execution recorded information is: " input: " input two ", judged result: "Yes" ") thereupon; (4) application program performs " terminating one "; (5) when program performs " initial zero " again, automatically input will be read out from execution recorded information, then be put in the implementation of application program.Therefore when executive utility again, the execution flow process of application program performs identical with order with the last time, and the last execution result of application program is identical with the execution result of last time thus.
Therefore application recovery method disclosed in this invention has following advantages: the unexpected application program exited can be made after restarting automatically to return to the state before exiting, thus cause simple and convenient user operation and the raising of entire system performance.
Although the present invention is described by above-mentioned preferred implementation, its way of realization is not limited to above-mentioned embodiment.Should be realized that: when not departing from purport of the present invention and scope, those skilled in the art can make different changes and amendment to the present invention.
Claims (9)
1. an application recovery method, described application recovery method comprises the following steps:
(A1) recovery point mark is set in the application;
(A2) in the execution information of described application program run duration based on application program described in described recovery point label record;
(A3) after described application program surprisingly exits and restarts thereupon based on recorded execution information by described application recovery to the state before exiting.
2. application recovery method according to claim 1, it is characterized in that, described step (A1) comprises further: the actuating logic based on described application program arranges recovery point mark, and wherein, the program code between every two recovery points mark is defined one and recovers section.
3. application recovery method according to claim 2, is characterized in that, described step (A2) comprises further: create when described application program launching and store the program execution state be associated with this application program and mark.
4. application recovery method according to claim 3, it is characterized in that, described step (A2) comprises further: when described application program starts to perform at the section start of certain recovery section, generate the execution recorded information under current state, and described execution recorded information is stored in corresponding information log file, described execution recorded information comprises the current state information (such as current ambient parameter information) of described application program.
5. application recovery method according to claim 4, it is characterized in that, described step (A2) comprises further: when described application program performs take-off point (such as the skip operation, function call, thread creation etc.) relating to logic variation, the execution recorded information under current state is generated according to logical order, and described execution recorded information being stored in corresponding information log file, described execution recorded information comprises current logic transition information key messages such as () such as called parameter, the function names called of described application program.
6. application recovery method according to claim 5, it is characterized in that, described step (A2) comprises further: when described application program normally exits, remove the program execution state be associated with this application program to mark, and remove all execution recorded informations be associated with this application program, and when described application exception exits, the program execution state be associated with this application program marks and performs recorded information and is retained.
7. application recovery method according to claim 6, it is characterized in that, described step (A3) comprises further: after described application program restarts, detect the program execution state be associated with this application program and mark whether to exist, and if exist, then resolve each execution recorded information in the information log file corresponding with this application program successively, and according to the application state information parsed and logic transition information by described application recovery to before exiting state (namely successively according to the application state information in each execution recorded information and/or the simulation of logic transition information perform user operation with by application recovery to the state before exiting).
8. application recovery method according to claim 7, is characterized in that, with the mode storing said program executing state of encrypting mark and described execution recorded information.
9. application recovery method according to claim 8, is characterized in that, the sensitive data of user is not stored in described execution recorded information, and this sensitive information is re-entered by user between the convalescence of described application program.
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 true CN105335244A (en) | 2016-02-17 |
CN105335244B 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) |
Cited By (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 |
CN106502820A (en) * | 2016-11-28 | 2017-03-15 | 深圳天珑无线科技有限公司 | Application crashes processing method and processing device |
CN109614266A (en) * | 2018-12-05 | 2019-04-12 | 北京和利时系统工程有限公司 | A kind of method of data synchronization and device |
US11132219B2 (en) | 2016-08-17 | 2021-09-28 | Huawei Technologies Co., Ltd. | Starting method for applications which are closed automatically based on the insufficient memory of the system |
Citations (4)
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 |
US20110202795A1 (en) * | 2010-02-12 | 2011-08-18 | Symantec Corporation | Data corruption prevention during application restart and recovery |
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 |
-
2014
- 2014-08-15 CN CN201410401081.6A patent/CN105335244B/en active Active
Patent Citations (4)
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 |
US20110202795A1 (en) * | 2010-02-12 | 2011-08-18 | Symantec Corporation | Data corruption prevention during application restart and recovery |
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 |
Cited By (5)
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 |
US11132219B2 (en) | 2016-08-17 | 2021-09-28 | Huawei Technologies Co., Ltd. | Starting method for applications which are closed automatically based on the insufficient memory of the system |
CN106502820A (en) * | 2016-11-28 | 2017-03-15 | 深圳天珑无线科技有限公司 | Application crashes processing method and processing device |
CN109614266A (en) * | 2018-12-05 | 2019-04-12 | 北京和利时系统工程有限公司 | A kind of method of data synchronization and device |
CN109614266B (en) * | 2018-12-05 | 2021-07-02 | 北京和利时系统工程有限公司 | Data synchronization method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105335244B (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2409838C2 (en) | Archiving data in virtual application enviroinment | |
CN104102506B (en) | A kind of Android Acceleration of starting methods based on ARM platforms | |
US9104511B2 (en) | Method and computation node for processing application data | |
CN102722394B (en) | Start upgrading method of embedded equipment | |
CN105335244A (en) | Application program recovery method | |
CN105373419A (en) | Background application operation method and system | |
CN107291510B (en) | Rapid starting method for Linux vehicle-mounted information system | |
CN103077043A (en) | Method for fast starting and operating Linux | |
CN103761474A (en) | Method and device for monitoring execution time of monitoring method | |
CN109271414B (en) | IPC-based database local communication auditing method | |
CN104899049A (en) | File deletion method and device | |
CN108037932B (en) | SPI-NAND configuration file acquisition method and device | |
CN113704117A (en) | Algorithm testing system, method and device | |
CN112306411A (en) | Data storage method and device, nonvolatile storage medium and processor | |
CN103092660A (en) | Delivery configuration and production configuration safe and fast switching method for embedded device | |
CN102750202B (en) | Data protection method and device | |
CN103902336A (en) | Method and device for controlling starting of operating system | |
CN103049343A (en) | Method and device for restoring operating system blue screen | |
US20130047009A1 (en) | Computing device, storage medium and method for testing stability of server | |
CN103049374A (en) | Automatic testing method and device | |
CN107357717B (en) | Method, device and equipment for detecting configuration errors | |
CN110019260B (en) | User data updating method and related equipment | |
CN112181830B (en) | Memory leak detection method, device, terminal and medium | |
CN101986662A (en) | Widget instance operation method and system | |
CN103136234A (en) | Data processing method and data processing device |
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 |