CN103699420B - System recovery method and system recovery device - Google Patents
System recovery method and system recovery device Download PDFInfo
- Publication number
- CN103699420B CN103699420B CN201310753474.9A CN201310753474A CN103699420B CN 103699420 B CN103699420 B CN 103699420B CN 201310753474 A CN201310753474 A CN 201310753474A CN 103699420 B CN103699420 B CN 103699420B
- Authority
- CN
- China
- Prior art keywords
- list
- application program
- application
- name
- time
- 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
- Stored Programmes (AREA)
Abstract
The invention provides a kind of system recovery method and a kind of system recovery device, wherein said system recovery method includes: obtain the bag name of the application program started;Judge whether described application program is operation for the first time after installation;Determine run for the first time after described application program is to install time, the bag name of described application program is saved in removing list;When the instruction receiving factory reset, according to the application package name comprised in described removing list, remove the user data of corresponding application programs.The present invention can run by dynamic tracking application program, generate the application list needing to clear up data, to remove vestige and the user data that application program uses when factory reset, need not restarting systems, also without formatting data partition, just can complete factory reset, decrease the elapsed time of factory reset.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of system recovery method and a kind of system recovery dress
Put.
Background technology
During using electronic equipment, owing to man-machine interaction can produce a series of use vestige, this use vestige includes
But it is not limited to system and (including system language, brightness, volume, network settings etc.), account information, the literary composition of download are set
Part and resource, the data (such as contact person, message registration, photograph, television channel lists etc.) that business is relevant, application journey
The non-preset application program that the setting of sequence, download are installed.Electronic equipment is carried out Default Value refer in programming the most again or
In the case of installation system software, operated by software, clear up above-mentioned use vestige, make the state of electronic equipment with the
State consistency during once mounting systems soft ware.
On the terminal unit using Android operation system, partition management mechanism and application management mechanism determine, produce
Raw use vestige is typically stored in data subregion, and the data of each application are left under data subregion respectively, with
" com/com/ " adds under the catalogue that " program bag name " is title.Android operation system provides a kind of MasterClear side
Method, restarts system and enters Recovery pattern, and format data subregion, and then all emptied by use vestige.This
Method needs to restart terminal unit, and is deleted the most in the lump by the normal information file after program parsing and chained library optimization,
Its cleaning work is the most long, and startup time first time after having cleared up is veryer long.According at several moneys
Actual measurement on Android product, the time of the method factory reset is about 15 seconds to 20 seconds, after cleaning for the first time
The time started is about 40 seconds to two minutes, and then system could normally use.
Therefore, the technical problem that time of electronic equipment factory reset becomes urgently to be resolved hurrily how is shortened.
Summary of the invention
The present invention is based on above-mentioned technical problem, it is proposed that a kind of new system recovery technique, dynamically generates and produces use
The application list of vestige, removes the use vestige of application program, when shortening factory reset according to the application list
Between.
In view of this, according to an aspect of the invention, it is provided a kind of system recovery method, including: obtain answering of startup
By the bag name of program;Judge whether described application program is operation for the first time after installation;Determining that described application program is installation
When rear first time is run, the bag name of described application program is saved in removing list;When the instruction receiving factory reset,
According to the application package name comprised in described removing list, remove the user data of corresponding application programs.
By this technical scheme, the application package name started for the first time after installing joins in removing list, extensive receiving
During multiple Default Value instruction, according to removing the application package name comprised in list, remove the user data (bag of corresponding application programs
Include the non-prepackage application program of unloading, and delete the data produced when using application program), so that it may realize factory reset, right
Just can be left in the basket in recovery process in the not application program in this application list, with the saving process time, and without
Restarting systems and the data partition in system is formatted so that the time recovering shipping operations be greatly reduced.
In addition, at application program, just the bag name of this application program is added when being run for the first time removing list, it is not necessary in application journey
All carry out write-once operation during sequence each run, also simplify the generation process removing list, and the bag of application program will not be made
Name repeats in removing list, thus avoids the repetitive operation when factory reset.
According to a further aspect in the invention, it is also proposed that a kind of system recovery device, including: acquiring unit, for obtaining startup
The bag name of application program;First judging unit, is connected to described acquiring unit, is used for judging whether described application program is installation
Rear first time is run;Remove list generation unit, for determining after described application program is to install the at described first judging unit
When once running, the bag name of described application program is saved in removing list;System recovery unit, for recovering receiving
During the instruction that factory is arranged, according to the application package name comprised in described removing list, remove the user data of corresponding application programs.
By this technical scheme, the application package name started for the first time after installing joins in removing list, extensive receiving
During multiple Default Value instruction, according to removing the application package name comprised in list, remove the user data (bag of corresponding application programs
Include the non-prepackage application program of unloading, and delete the data produced when using application program), so that it may realize factory reset, right
Just can be left in the basket in recovery process in the not application program in this application list, with the saving process time, and without
Restarting systems and the data partition in system is formatted so that the time recovering shipping operations be greatly reduced.
In addition, at application program, just the bag name of this application program is added when being run for the first time removing list, it is not necessary in application journey
All carry out write-once operation during sequence each run, also simplify the generation process removing list, and the bag of application program will not be made
Name repeats in removing list, thus avoids the repetitive operation when factory reset.
Accompanying drawing explanation
Fig. 1 shows the schematic diagram of system recovery method according to an embodiment of the invention;
Fig. 2 shows the flow chart of removing row table generating method according to an embodiment of the invention;
Fig. 3 shows the block diagram of system recovery device according to an embodiment of the invention.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the accompanying drawings and be embodied as
The present invention is further described in detail by mode.It should be noted that in the case of not conflicting, the reality of the application
Execute the feature in example and embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention, but, the present invention is all right
Using other to be different from other modes described here to implement, therefore, protection scope of the present invention is not by described below
The restriction of specific embodiment.
Fig. 1 shows the schematic diagram of system recovery method according to an embodiment of the invention.
As it is shown in figure 1, system recovery method may comprise steps of according to an embodiment of the invention, step 102:
Obtain the bag name of the application program started;Step 104: judge whether described application program is operation for the first time after installation;Step
106: determine run for the first time after described application program is to install time, the bag name of described application program is saved in removing list;
Step 108: when the instruction receiving factory reset, according to the application package name comprised in described removing list, removes
The user data of corresponding application programs.
The application package name started for the first time after installing joins in removing list, when receiving factory reset instruction,
According to removing the application package name comprised in list, the user data removing corresponding application programs (includes unloading non-pre-installed applications journey
Sequence, and the data produced when using application program), so that it may realize factory reset, for not in this application list
Application program just can be left in the basket in recovery process, process the time with saving, and without restarting systems and to system
In data partition format so that recover shipping operations time be greatly reduced.In addition, exist at application program
Just the bag name of this application program is added when being run for the first time and remove list, it is not necessary to all carry out once when application program each run
Write operation, also simplify the generation process removing list, and the bag name of application program will not be made to repeat in removing list,
Thus avoid the repetitive operation when factory reset.
In technique scheme, it is preferred that after obtaining the bag name of described application program, it is also possible to including: calling system day
According to described system journal, will, judging whether described application program is to run first the same day, if running first the same day, then judging institute
State whether application program is operation for the first time after installation.
When system calls Application Program Interface, system journal can record time when application program is called and application interface title
Etc. information, and system journal can only store the application program log on the same day, when the date occurs change, can directly delete early stage
Record restarts record, if therefore directly using current system journal can not be removed list accurately.In order to solve
This problem, in the present embodiment, when getting the bag name of application program of startup, utilizes this system journal, with system journal
The application program that the same day of middle record was run is compared, if described this day of application program had been run, then explanation is described should
Have been added to remove list by program bag name, it is not necessary to pass to the bag name of this application program remove list.Thus can reduce weight
Polyphony use, the faster procedure speed of service.If described this day of application program is run first, then this application package name is passed to clearly
Except list, List Management Services decide whether to add this application package name to remove list.Although application program is that the same day is first
Secondary operation, but it was likely to before the same day run, then it is accomplished by inquiring about after whether described application program is installed and transporting for the first time
OK, to determine that described application program is removed in list the need of adding.
In any of the above-described technical scheme, it is preferred that described judge described application program be whether install after the step run for the first time
Suddenly include: judge whether the bag name of described application program is saved in described removing list, if being not held in described removing list,
Then determine that described application program is operation for the first time after installation.
Adjust the bag name of used application program owing to removing in list to record, therefore judge that whether the application program run first the same day is
Run for the first time after installation, need the bag name with or without described application program in inquiry removing list.If removing list comprises institute
State application package name, then illustrate that this application program ran before this day, be not operation for the first time after installation, then without inciting somebody to action
Described application package name adds removes list;Contrary, do not comprise described application package name if removed in list, then illustrate
This application program, for running for the first time after installing, needs to add described application package name to remove in list.
Whether the application program called by removing list to judge is operation for the first time after installation, it is ensured that remove in list identical
Application program will not be repeatedly recorded, when receive recovery dispatch from the factory instruction perform clear operation time, it is not necessary to do rechecking work, reduce
The time of factory reset.
Those skilled in the art can not use system journal to replace it should be appreciated that remove list, and can only be applied by judgement
Whether program is that after installing, removing list is set up in operation for the first time.First, an application program can comprise one to numerous
Program interface, then just have application package name and the allocating time of respective numbers inside system journal, if directly using system
Record in system daily record, the application package name of too much repetition can increase workload when performing to remove work.Furthermore, system day
Will depends on system clock, and embedded device does not usually have mainboard clock circuit and on-board battery due to the reason such as cost, volume,
The limited frequent interruption of systematic electricity, causes system clock unreliable, therefore system journal record unreliable, it is impossible to directly use system
Daily record generates the application list during factory reset.The removing list set up by technique scheme, only application program
When running for the first time after installation, just can record and preserve its application package name, when carrying out factory reset, from preserve
In information obtain list of application clear up, and this remove list foundation need not recording time information, by the record of information with
System time successfully decouples, and the removing list of generation is reliable and stable.
In any of the above-described technical scheme, it is preferred that can also include: obtain the first list preset, by described first list
The bag name of application program add in described removing list, wherein, described first list preserves the application journey that can produce user data
The bag name of sequence;Obtain the second list preset, by the application package name in described second list and the application in described removing list
Program bag name is mated, and deletes the application journey matched with the application package name in described second list from described removing list
Sequence bag name, wherein, described second list preserves the bag name of the application program that will not produce user data.
Owing to can only record the ruuning situation of the application program at interface, foreground in system journal, and some without interface, foreground but can produce
User uses the pre-installed applications program of vestige and data to be missed.And when factory reset, this application program being missed
User data be also required to be deleted, in order to make the list of removing that the present invention proposes also include that these do not have the application program at interface, foreground
Bag name, in a preferred embodiment, preset the first list, comprise in this first list and there is no interface, foreground but useful
The application package name of user data, whether these application programs are crossed all by the application package in this first list at front stage operation
Name is added to removing in list, it is not necessary to judges operation, thus accelerates to remove the formation speed of list.When factory reset, directly
Tap into row data scrubbing, it is ensured that remove the complete exhaustive of list.Meanwhile, known its will not be produced the application program of user data
Bag name is mated with removing list as second place list, and removes this certain applications program bag name from removing list, no matter this portion
Divide application program whether to run all it to be removed from removing list, reduce global purge workload.
In any of the above-described technical scheme, it is preferred that when receiving the instruction of described factory reset, also include removing peripheral hardware
Data are set;The task of arranging data of task and the described peripheral hardware of removing for removing the user data of described corresponding application programs is divided
Join and remove thread accordingly.
By technique scheme, in removing list, have recorded all generation users use the application package name of vestige or data,
When receiving factory reset instruction, need to be purged the use vestige removing all application programs in list, Qi Zhongfei
Pre-installed applications program includes unloading and removes user data, and pre-installed applications program includes removing user setup data and user profile.Extensive
The task of multiple Default Value is many and complicated, and there is no order execution relation between each task and single task work
Work amount is little, removes user data and the reset mode that can use multi-thread concurrent when arranging data of peripheral hardware, multinomial work is divided
It is fitted in multiple thread and carries out, remove in all removing lists and directly shut down after application program, it is not necessary to restarting systems, from
And shorten the time of factory reset.
Fig. 2 shows the flow chart of removing row table generating method according to an embodiment of the invention.
As in figure 2 it is shown, removing list according to an embodiment of the invention generation method step is as follows:
Step 202: application program launching.System calls application program, application program launching, and system journal record calls
Time and application package name.
Step 204: the application program log of record in the Bao Mingyu system journal of the application program of startup is compared
Right, it is judged that whether it is to run first the same day, if running first the same day, then turn to step 206, otherwise turn to step
208。
Step 206: this application package name is compared with the application package name removed in list, it is judged that whether it
For running for the first time after installing (if not this application package name in removing list, it is determined that this application program is peace
Run for the first time after dress), if running for the first time after An Zhuaning, then turn to step 210, otherwise turn to step 208.
Step 208: this application package name is not preserved to removing list.Although described application program is to transport first the same day
Row but be not install after run for the first time, the most do not preserve to removing list.
Step 210: this application package name is preserved to removing list.Described application program is to run first and be the same day
Run for the first time after installation, then this application package name is preserved to removing list.
In android system, uniquely wrap name by each application program and be identified and manage, be arranged on same
Application program in terminal unit, does not have the bag name of repetition.Bag name information is included in application program
In AndroidManifest.xml.When set up applications, PackageManager can resolve this program, entitled to wrap
Mark combines other information and generates data structure, for application management.To obtain and to record in the present embodiment, i.e.
The bag name of the application program for running.When user starts an application program, Android can show at application interface
Behind foreground, notice Logging Service (UsageStatsService.noteResumeComponent ()), notice is wrapped
Contain the class name at application package name and interface.
System journal can only store the application log on the same day, when the date occurs change, can directly delete early stage record
Restart.Secondly, it carries out record in units of program interface, and an application program can comprise one to numerous
Program interface, too much information can increase the workload obtaining list of application.Again, it depends on system clock, and embedding
Embedded system does not usually have mainboard RTC clock circuit and on-board battery due to the reason such as cost, volume, and systematic electricity has
Shi Jingchang interrupts, and causes system clock unreliable, therefore causes the unreliable of log recording.Therefore, traditional day is relied on
The information that will recording mechanism preserves also is insecure, it is impossible to be used directly to generate program listing during factory reset.
Therefore, in the present invention, Logging Service (UsageStatsService) is improved, first will be applied journey
The log on the same day preserved in sequence Bao Mingyu Logging Service is compared, if this this day of application program has transported
Went, do not processed.If confirming, this application package name without log, is then stepped into by this program by the forms of broadcasting
Journey is sent to background service (FactoryService).
Background service (FactoryService) is the service class for the special exploitation of Default Value work, is used for receiving this broadcast,
This application package name is preserved to removing list, and the removing providing application programming interfaces (API) to return preservation arranges
Table, and other API are for carrying out the related work of Default Value.FactoryService can open after starting up of terminal automatically
Dynamic operation.It has registered radio receiver, it is possible to receives the above-mentioned broadcast that Logging Service sends, by application package
Name is saved in internal database.
Logging Service mechanism due to android system only preserves the log on the same day, wraps in broadcast so sending
The application package name contained was likely to before the same day run, and therefore first FactoryService can inquire about
The removing list preserved, the bag name of repetition will not be recorded.
Therefore, when application program runs for the first time, record and preserve its bag name information, when carrying out Default Value, from
The information preserved obtains list of application clear up.The method need not recording time information, by the record of information be
The system time successfully decouples, and the program listing of generation is reliable and stable.
Above-mentioned system recovery algorithm based on Logging Service, the application program that can only monitor interface, foreground runs,
And the System Privileges application program of product prepackage, having plenty of and there is no foreground man machine interface, have in this class method also can be
Vestige or data that user uses are recorded during operation.Therefore, the present invention establishes blacklist mechanism on aforementioned base,
In the research and development of products stage, to the known system application that can produce user data, directly add its bag name to blacklist
In (the i.e. first list).When ultimately generating removing list, whether this application crosses all by this black name at front stage operation
Application package name in list is added to remove in list, and these pre-installed applications programs are directly carried out data scrubbing.
Same, in the application program of product prepackage, also having a lot of program is known will not to produce user data, because of
This establishes white list (the i.e. second list).When ultimately generating removing list, no matter whether this application is at front stage operation
Cross, all by it from removing removal list, to reduce overall work amount.It should be noted that, except above-mentioned application program
The cleaning work of user data, the also work of removing Default Value data, such as 1) unloading nonsystematic pre-installed applications journey
Sequence, this function can configure, delivers flag bit and enable/stop word function in FactoryService interface method;2)
Empty data and the user profile of the settings such as cable network, WiFi wireless network, bluetooth;3) volume, brightness etc. are emptied
System is arranged and the data of service logic;4) resource such as file that other-end generates when running or downloads.
In order to improve cleaning speed further, in the present embodiment, it is also possible to use multithreading, multinomial work is divided
Being scattered in multiple thread carry out, UI main thread does not undertake groundwork, to process user key-press response and the boundary that upgrades in time
Face.
Therefore, according to technical scheme can intelligently filters application program, generate the simplest needs and clear up number of users
According to the application list, it is possible to directly unload non-prepackage application program, worked by multi-thread concurrent, by shipping operations
Time decrease about ten seconds, and decrease user operation step, and then improve the efficiency of factory reset.
By said method, user has only to click on a button, it is possible to start Default Value operation.Operation was carried out
Cheng Zhong, can export information on interface, including work at present title and progress etc., when operating process is complete,
The prompting that on interface, output function completes, user sees that this prompting can directly be shut down.
Fig. 3 shows the block diagram of system recovery device according to an embodiment of the invention.
As it is shown on figure 3, system recovery device 300 according to an embodiment of the invention, including: acquiring unit 302,
For obtaining the bag name of the application program of startup;First judging unit 304, is connected to described acquiring unit 302, is used for judging described
Whether application program is operation for the first time after installation;Remove list generation unit 306, at described first judging unit 304
Determine described application program be install after when running for the first time, the bag name of described application program is saved in removing list;System
Recovery unit 308, for when the instruction receiving factory reset, according to the application package comprised in described removing list
Name, removes the user data of corresponding application programs.
The application package name started for the first time after installing joins in removing list, when receiving factory reset instruction,
According to removing the application package name comprised in list, the user data removing corresponding application programs (includes unloading non-pre-installed applications journey
Sequence, and delete the data produced when using application program), so that it may realize factory reset, for not at this Application Column
Application program in table just can be left in the basket in recovery process, processes the time with saving, and without restarting systems and right
Data partition in system formats, so that the time recovering shipping operations is greatly reduced.In addition, in application journey
The bag name of this application program is just added by sequence when being run for the first time removes list, it is not necessary to all carry out when application program each run
Write-once operates, and also simplify the generation process removing list, and the bag name of application program will not be made to repeat in removing list
Occur, thus avoid the repetitive operation when factory reset.
In technique scheme, it is preferred that can also include: the second judging unit 310, at described acquiring unit 302
After obtaining the bag name of described application program, calling system daily record, judge whether described application program is to work as according to described system journal
Day is run first, if running first the same day, then judges whether described application program is operation for the first time after installation.
When system calls Application Program Interface, system journal can record time when application program is called and application interface title
Etc. information, and system journal can only store the application program log on the same day, when the date occurs change, can directly delete early stage
Record restarts record, if therefore directly using current system journal can not be removed list accurately.In order to solve
This problem, in the present embodiment, when getting the bag name of application program of startup, utilizes this system journal, with system journal
The application program that the same day of middle record was run is compared, if described this day of application program had been run, then explanation is described should
Have been added to remove list by program bag name, it is not necessary to pass to the bag name of this application program remove list.Thus can reduce weight
Polyphony use, the faster procedure speed of service.If described this day of application program is run first, then this application package name is passed to clearly
Except list, List Management Services decide whether to add this application package name to remove list.Although application program is that the same day is first
Secondary operation, but it was likely to before the same day run, then it is accomplished by inquiring about after whether described application program is installed and transporting for the first time
OK, to determine that described application program is removed in list the need of adding.
In technique scheme, it is preferred that whether described first judging unit 304 is additionally operable to judge the bag name of described application program
It is saved in described removing list, if being not held in described removing list, it is determined that described application program is first time after installation
Run.
Adjust the bag name of used application program owing to removing in list to record, therefore judge that whether the application program run first the same day is
Run for the first time after installation, need the bag name with or without described application program in inquiry removing list.If removing list comprises institute
State application package name, then illustrate that this application program ran before this day, be not operation for the first time after installation, then without inciting somebody to action
Described application package name adds removes list;Contrary, do not comprise described application package name if removed in list, then illustrate
This application program, for running for the first time after installing, needs to add described application package name to remove in list.By removing list
Judge whether the application program called is operation for the first time after installation, it is ensured that removing identical application program in list will not be weighed
Multiple record, when receive recovery dispatch from the factory instruction perform clear operation time, it is not necessary to do rechecking work, reduce factory reset time
Between.
Those skilled in the art can not use system journal to replace it should be appreciated that remove list, and can only be applied by judgement
Whether program is that after installing, removing list is set up in operation for the first time.First, an application program can comprise one to numerous
Program interface, then just have application package name and the allocating time of respective numbers inside system journal, if directly using system
Record in system daily record, the application package name of too much repetition can increase workload when performing to remove work.Furthermore, system day
Will depends on system clock, and embedded device does not usually have mainboard clock circuit and on-board battery due to the reason such as cost, volume,
The limited frequent interruption of systematic electricity, causes system clock unreliable, therefore system journal record unreliable, it is impossible to directly use system
Daily record generates the application list during factory reset.The removing list set up by technique scheme, only application program
When running for the first time after installation, just can record and preserve its application package name, when carrying out factory reset, from preserve
In information obtain list of application clear up, and this remove list foundation need not recording time information, by the record of information with
System time successfully decouples, and the removing list of generation is reliable and stable.
In any of the above-described technical scheme, it is preferred that also include: the first updating block 312, for obtaining the first default list,
The bag name of the application program in described first list being added in described removing list, wherein, described first list is preserved and can be produced
The bag name of the application program of user data;Second updating block 314, for obtaining the second default list, by described second list
In application package name mate with the application package name in described removing list, from described removing list delete with described
The application package name that application package name in second list matches, wherein, described second list is preserved and will not be produced user
The bag name of the application program of data.
Owing to can only record the ruuning situation of the application program at interface, foreground in system journal, and some without interface, foreground but can produce
User uses the pre-installed applications program of vestige and data to be missed.And when factory reset, this application program being missed
User data be also required to be deleted, in order to make the list of removing that the present invention proposes also include that these do not have the application program at interface, foreground
Bag name, in a preferred embodiment, preset the first list, comprise in this first list and there is no interface, foreground but useful
The application package name of user data, whether these application programs are crossed all by the application package in this first list at front stage operation
Name is added to removing in list, it is not necessary to judges operation, thus accelerates to remove the formation speed of list.When factory reset, directly
Tap into row data scrubbing, it is ensured that remove the complete exhaustive of list.Meanwhile, known its will not be produced the application program of user data
Bag name is mated with removing list as second place list, and removes this certain applications program bag name from removing list, no matter this portion
Divide application program whether to run all it to be removed from removing list, reduce global purge workload.
In any of the above-described technical scheme, it is preferred that described system recovery unit 308 is at the finger receiving described factory reset
When making, be additionally operable to removing peripheral hardware arranges data;Described system recovery unit 308 includes: thread allocation unit 3082, be used for be
Line is removed in the task of removing the user data of described corresponding application programs and the task distribution arranging data removing described peripheral hardware accordingly
Journey.
By technique scheme, in removing list, have recorded all generation users use the application package name of vestige or data,
When receiving factory reset instruction, needing to be purged application datas whole in removing list, the most non-prepackage should
Including unloading by program and remove user data, pre-installed applications program includes removing user setup data and user profile.Recovery is dispatched from the factory
Arrange task many and complicated, and there is no between each task order execution relation and also single task workload not
Greatly, remove user data and the reset mode that multi-thread concurrent can be used when data are set of peripheral hardware, multinomial work is assigned to many
Individual thread is carried out, removes in all removing lists and directly shut down after application program, it is not necessary to restarting systems, shorten and recover
The time of Default Value.
Being described in detail according to technical scheme above in association with accompanying drawing, the present invention can dynamic tracking application program fortune
OK, generate the application list needing to clear up data, to remove the vestige that application program uses when factory reset
And user data, it is not necessary to restarting systems, it is not required that format data partition, it is possible to complete recovery and dispatch from the factory and set
Put, decrease the elapsed time of factory reset.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the technology of this area
For personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made is any
Amendment, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (10)
1. a system recovery method, it is characterised in that including:
Obtain the bag name of the application program started;
Judge whether described application program is operation for the first time after installation;
Determine run for the first time after described application program is to install time, by the Bao Mingbao of described application program
Exist and remove in list;
When the instruction receiving factory reset, according to the application package comprised in described removing list
Name, removes the user data of corresponding application programs.
System recovery method the most according to claim 1, it is characterised in that obtaining described application journey
After the bag name of sequence, also include:
According to described system journal, calling system daily record, judges whether described application program is to run first the same day,
If the same day is run first, then judge whether described application program is operation for the first time after installation.
System recovery method the most according to claim 1, it is characterised in that the described application of described judgement
Whether program is that the step run for the first time after installation includes:
Judge whether the bag name of described application program is saved in described removing list, if be not held in described clearly
Except in list, it is determined that described application program is operation for the first time after installation.
System recovery method the most according to claim 3, it is characterised in that also include:
Obtain the first list preset, the bag name of the application program in described first list is added described removing
In list, wherein, described first list preserves the bag name of the application program that can produce user data;
Obtain the second list preset, by the application package name in described second list and described removing list
In application package name mate, from described removing list delete with described second list in application journey
The application package name that sequence bag name matches, wherein, described second list is preserved and will not be produced user data
The bag name of application program.
System recovery method the most according to any one of claim 1 to 4, it is characterised in that connecing
When receiving the instruction of described factory reset, also include removing peripheral hardware arranges data;
For removing the task of the user data of described corresponding application programs and removing the data that arrange of described peripheral hardware
Thread is removed in task distribution accordingly.
6. a system recovery device, it is characterised in that including:
Acquiring unit, for obtaining the bag name of the application program of startup;
First judging unit, is connected to described acquiring unit, is used for judging whether described application program is to install
Run for the first time afterwards;
Remove list generation unit, for determining that described application program is installation at described first judging unit
When rear first time is run, the bag name of described application program is saved in removing list;
System recovery unit, for when the instruction receiving factory reset, according to described removing list
In the application package name that comprises, remove the user data of corresponding application programs.
System recovery device the most according to claim 6, it is characterised in that also include:
Second judging unit, after obtain the bag name of described application program at described acquiring unit, calls
According to described system journal, system journal, judges whether described application program is to run first the same day, if the same day
Run first, then judge whether described application program is operation for the first time after installation.
System recovery device the most according to claim 6, it is characterised in that described first judging unit
Be additionally operable to judge whether the bag name of described application program is saved in described removing list, if be not held in described clearly
Except in list, it is determined that described application program is operation for the first time after installation.
System recovery device the most according to claim 8, it is characterised in that also include:
First updating block, for obtaining the first default list, by the application program in described first list
Bag name add in described removing list, wherein, described first list preserves the application that can produce user data
The bag name of program;
Second updating block, for obtaining the second default list, by the application program in described second list
The application package name removed in list described in Bao Mingyu is mated, and deletes with described from described removing list
The application package name that application package name in second list matches, wherein, described second list is preserved
The bag name of the application program of user data will not be produced.
10. according to the system recovery device according to any one of claim 6 to 9, it is characterised in that institute
Stating system recovery unit when receiving the instruction of described factory reset, be additionally operable to remove peripheral hardware arranges number
According to;
Described system recovery unit includes:
Thread allocation unit, for task and the removing institute of the user data for removing described corresponding application programs
Thread is removed in the task distribution arranging data stating peripheral hardware accordingly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310753474.9A CN103699420B (en) | 2013-12-31 | 2013-12-31 | System recovery method and system recovery device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310753474.9A CN103699420B (en) | 2013-12-31 | 2013-12-31 | System recovery method and system recovery device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103699420A CN103699420A (en) | 2014-04-02 |
CN103699420B true CN103699420B (en) | 2017-01-04 |
Family
ID=50360959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310753474.9A Active CN103699420B (en) | 2013-12-31 | 2013-12-31 | System recovery method and system recovery device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103699420B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104036199B (en) * | 2014-06-12 | 2016-10-05 | 上海交通大学 | Disk private data residual leak detection method for android system |
CN104038634A (en) * | 2014-06-25 | 2014-09-10 | 深圳市中兴移动通信有限公司 | Mobile terminal and privacy disclosure prevention method thereof |
CN104252373B (en) * | 2014-10-17 | 2018-04-10 | 北京奇虎科技有限公司 | Remove the method and device of application data |
CN104503702B (en) * | 2014-12-12 | 2017-07-04 | 中国科学院信息工程研究所 | A kind of method that equipment safety is formatted |
CN104375873A (en) * | 2014-12-13 | 2015-02-25 | 李凯 | Method and system for administrating authority by power supply states |
CN105872436A (en) * | 2015-11-30 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Video calling method, video calling system and display device |
CN106254133B (en) * | 2016-08-29 | 2019-05-10 | 西可通信技术设备(河源)有限公司 | Mobile terminal of mobile telephone system high factory reset flag bit management-control method |
CN106569851B (en) * | 2016-10-21 | 2020-10-02 | 海信视像科技股份有限公司 | Application program processing method and device |
CN106599151A (en) * | 2016-12-07 | 2017-04-26 | Tcl集团股份有限公司 | Method and system for parallel cleaning of Android engineering useless resources |
CN107273135B (en) * | 2017-06-26 | 2021-03-05 | 福州汇思博信息技术有限公司 | Method for restoring factory settings of terminal equipment |
CN111191213B (en) * | 2018-11-14 | 2023-11-10 | 华为终端有限公司 | Method for deleting security service and electronic equipment |
CN112068988B (en) * | 2019-06-10 | 2024-05-10 | 海信视像科技股份有限公司 | Method and system for restoring factory settings in parallel by double systems |
CN112068989B (en) * | 2019-06-10 | 2024-03-26 | 海信视像科技股份有限公司 | Processing method and device for dual-system parallel recovery of factory setting exception |
CN112068987B (en) * | 2019-06-10 | 2024-08-23 | 海信视像科技股份有限公司 | Method and device for quickly restoring factory settings |
CN112416379B (en) * | 2021-01-21 | 2021-06-01 | 统信软件技术有限公司 | Application program installation method and device, computing equipment and readable storage medium |
CN113190383A (en) * | 2021-05-14 | 2021-07-30 | 上海龙旗科技股份有限公司 | Method and system for obtaining factory reset result of electronic equipment |
CN113505105A (en) * | 2021-06-23 | 2021-10-15 | 惠州Tcl云创科技有限公司 | Factory setting restoration processing method and device for mobile terminal, mobile terminal and medium |
CN114861209B (en) * | 2022-05-24 | 2024-06-04 | Oppo广东移动通信有限公司 | Method, device and terminal for acquiring occupied information of memory space |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184118A (en) * | 2011-06-15 | 2011-09-14 | 奇智软件(北京)有限公司 | System recovery method |
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
CN103092664A (en) * | 2013-02-07 | 2013-05-08 | 珠海市君天电子科技有限公司 | Processing method and device of data file of android system |
CN103268239A (en) * | 2013-05-15 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Application program management method and device of mobile terminal and mobile terminal |
-
2013
- 2013-12-31 CN CN201310753474.9A patent/CN103699420B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184118A (en) * | 2011-06-15 | 2011-09-14 | 奇智软件(北京)有限公司 | System recovery method |
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
CN103092664A (en) * | 2013-02-07 | 2013-05-08 | 珠海市君天电子科技有限公司 | Processing method and device of data file of android system |
CN103268239A (en) * | 2013-05-15 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Application program management method and device of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103699420A (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103699420B (en) | System recovery method and system recovery device | |
CN102349062B (en) | Method and system for synchronizing browser caches across devices and web services | |
CN103229144B (en) | Preheating software is installed | |
CN110569130B (en) | Cross-process communication method, device and equipment | |
CN105955782A (en) | Application program running control method and device | |
CN102043655A (en) | Method and system for carrying out advanced uninstall on software | |
CN105653425A (en) | Complicated event processing engine based monitoring system | |
CN105955740B (en) | software management method and device | |
CN106371874A (en) | Plug-in data loading method and equipment | |
CN102346673A (en) | Method and device for upgrading mobile phone system | |
CN107656750A (en) | Update of plug-in method and device | |
CN113727333A (en) | Downloading method and system of customized application | |
CN104216802B (en) | Memory database recovery method and device | |
CN107040576A (en) | Information-pushing method and device, communication system | |
CN107729042A (en) | Mobile solution upgrade method and device, storage medium, electronic equipment | |
CN105824660A (en) | Application program updating method and terminal | |
CN109901849A (en) | Application program installation method, device, electronic equipment and storage medium | |
CN117056115B (en) | Application program repairing method and device, storage medium and electronic equipment | |
CN102164314B (en) | Data management method and device based on digital television terminal middleware | |
CN110045969A (en) | Application program installation method, server, system, device and storage medium | |
CN106028142A (en) | Upgrading control method and upgrading control apparatus for playing devices | |
CN107102876A (en) | Application pushing method and device | |
CN107544894B (en) | Log processing method and device and server | |
CN112732660A (en) | Intervention type file transmission method, device and system | |
CN111984293A (en) | Information processing method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |