CN107480001A - System recovery method and device - Google Patents

System recovery method and device Download PDF

Info

Publication number
CN107480001A
CN107480001A CN201710477529.6A CN201710477529A CN107480001A CN 107480001 A CN107480001 A CN 107480001A CN 201710477529 A CN201710477529 A CN 201710477529A CN 107480001 A CN107480001 A CN 107480001A
Authority
CN
China
Prior art keywords
user data
data processing
data
parameter
processing parameters
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.)
Withdrawn
Application number
CN201710477529.6A
Other languages
Chinese (zh)
Inventor
吴大鹏
胡清河
熊林
许庆伟
储其方
苟大强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710477529.6A priority Critical patent/CN107480001A/en
Publication of CN107480001A publication Critical patent/CN107480001A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a kind of system recovery method, including:The system recovery command of input is received, the system recovery command carries data processing parameters, and the data processing parameters are used to indicate whether to delete the user data specified;The data processing parameters are written to parameter storage area corresponding with default system recovery flow;Perform the default system and recover flow, before clear operation is performed to specified user data, the data processing parameters of storage are read from the parameter storage area as target data processing parameter;Judge whether the target data processing parameter matches with preset value, if so, the step of described pair of user data specified performs clear operation is then skipped, if it is not, then performing the clear operation to the user data specified.In addition, the embodiment of the invention also discloses a kind of terminal.Using the present invention, the flexibility of data recovery in system recovery procedure can be improved.

Description

System recovery method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of system recovery method and device.
Background technology
During using the terminal device such as smart mobile phone, due to man-machine interaction can produce it is a series of use vestige, this Using vestige include but is not limited to system set (including system language, brightness, volume, network settings etc.), download file and The related data (such as contact person, message registration, photograph, television channel lists) of resource, business, application program setting, under Carry the non-preset application program of installation.To the terminal devices such as smart mobile phone carry out factory reset refer to not again programming or In the case of installation system software, operated by software, cleaning is above-mentioned to use vestige, makes the state of electronic equipment and for the first time State consistency during installation system software.
On the terminal device using Android operation system, due to using partition management mechanism and application management Mechanism determines that above-mentioned to be typically stored in userdata subregions using vestige, the data each applied are stored in data respectively Under subregion.In the prior art, Android operation system provides a kind of method of factory reset, restart system enter it is extensive It is right after in complex pattern (Recovery patterns, the pattern modified to the data inside android system or system) Userdata subregions are formatted, and then will all be emptied using vestige.
That is, in the technical scheme of existing factory reset, while factory reset, can remove Falling to be stored in all customer data of userdata subregions (includes the photo of user's bat, the music of download, video, and installation Software etc.), and sometimes, user may want to retain all or partial user data.
The content of the invention
Based on this, in the present invention, it is proposed that a kind of system recovery method and terminal, may be implemented in factory reset During according to the function of all or part of user data of reservation of the needs selectivity of user.
First aspect, there is provided a kind of system recovery method, including:
The system recovery command of input is received, the system recovery command carries data processing parameters, at the data Reason parameter is used to indicate whether to delete the user data specified;
The data processing parameters are written to parameter storage area corresponding with default system recovery flow;
Perform the default system and recover flow, before clear operation is performed to specified user data, from described The data processing parameters of storage are read in parameter storage area as target data processing parameter;
Judge whether the target data processing parameter matches with preset value, if so, then skipping the described couple of user specified Data perform the step of clear operation, if it is not, then performing the clear operation to the user data specified.
Second aspect, there is provided a kind of terminal, including:
System recovery command receiving unit, for receiving the system recovery command of input, the system recovery command carries There are data processing parameters, the data processing parameters are used to indicate whether to delete the user data specified;
Parameter read-in unit, for the data processing parameters to be written into ginseng corresponding with default system recovery flow Number storage region;
Parameter reading unit, recover flow for performing the default system, it is clear being performed to specified user data Before division operation, the data processing parameters of storage are read from the parameter storage area as target data processing parameter;
DEU data execution unit, for judging whether the target data processing parameter matches with preset value, in the target In the case that data processing parameters match with the preset value, the step that the described pair of user data specified performs clear operation is skipped Suddenly, in the case of the target data processing parameter and the preset value are unmatched, the user data specified is performed The clear operation.
The third aspect, there is provided another terminal, including processor, input equipment, output equipment and memory, the place Device, input equipment, output equipment and memory is managed to be connected with each other, wherein, the memory, which is used to store, supports terminal to perform The application code of method is stated, the processor is arranged to the method for performing above-mentioned first aspect.
Fourth aspect, there is provided a kind of computer-readable recording medium, the computer-readable storage medium are stored with computer Program, the computer program include programmed instruction, and described program instruction makes the computing device when being executed by a processor The method for performing above-mentioned first aspect.
Implement the embodiment of the present invention, will have the advantages that:
After employing said system restoration methods and device, the operation of factory reset is being carried out to user terminal When, the user selected according to corresponding to user is inputting factory reset during system recovery command indicates whether that number is applied in deletion The data processing parameters for the data specified according to, internal memory card data etc., by data processing parameters before system recovery is carried out It is written in parameter storage area corresponding to system recovery, when carrying out system recovery, is determined whether according to data processing parameters User data is deleted, so that when carrying out the operation of factory reset to terminal, selectivity can be needed according to user Reservation either delete all or partial user data, improve the flexibility of data manipulation in system recovery procedure.
Brief description of the drawings
, below will be to embodiment or existing in order to more clearly illustrate the embodiment of the present invention or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of schematic flow sheet of system recovery method in one embodiment;
Fig. 2 is the setting page schematic diagram of factory reset in one embodiment;
Fig. 3 is a kind of schematic flow sheet of system recovery method in one embodiment;
Fig. 4 is that the schematic flow sheet of operation is decrypted to the data of user data subregion in one embodiment;
Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of terminal schematic block diagram that another embodiment of the present invention provides;
Fig. 7 is the structural representation for the computer system for implementing said system restoration methods in one embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
In the present embodiment, it is proposed that a kind of system recovery method, may be implemented in basis during factory reset The function of all or part of user data of reservation of the needs selectivity of user.Specifically, the realization of this method can be dependent on Computer program, the computer program can run on the computer system based on von Neumann system, the computer program It can be the application program that system is recovered.The computer system can be run above computer program such as smart mobile phone, The servers such as tablet personal computer, PC or terminal.
Specifically, as shown in figure 1, said system method comprises the following steps S102-S112:
Step S102:The system recovery command of input is received, the system recovery command carries data processing parameters, institute Data processing parameters are stated to be used to indicate whether to delete the user data specified.
In the present embodiment, user can recover instruction, Huo Zhetong by default physical button input system in terminal Cross in terminal sets interface input system to recover instruction accordingly.In the present embodiment, system recovery command can be recovered The instruction that factory is set.
For example, in application scenarios as shown in Figure 2, Fig. 2 illustrate in a user terminal with factory reset phase The schematic diagram of the setting page of pass.User can input system corresponding with factory reset by the setting page and refer to Order.
Further, in the present embodiment, during factory reset is carried out, user may also select whether to protect The partly or completely user data in original subscriber's terminal is stayed, (is answered for example, retaining and not removing application data with having installed With corresponding application data), in another example, retain and do not remove internal memory data (for example, the photo stored in SD card, Voice data etc.).
It should be noted that user data refers to the user data under the userdata subregions in user terminal, wherein Contain application data and internal memory data.
In application scenarios as shown in Figure 2, whether user can understand internal memory data, Yi Jishi by choosing Whether data corresponding to no clear mounted application are corresponding to select to delete during factory reset or retain Data.Operation is chosen according to what user was carried out in application scenarios as shown in Figure 2, you can generation chooses operation with user's Corresponding data processing parameters.For example, the data processing parameters of generation can be keep_apk, keep_sd, also, it is corresponding Value be 0 or 1, or true or false.
It should be noted that in the present embodiment, data processing parameters can be with more than one, for example, as shown in Figure 2 In application scenarios, data processing parameters include the data processing parameters keep_apk and internal memory data of application data Data processing parameters keep_sd.
In other embodiments, the quantity of data processing parameters can be configured according to the actual requirements.For example, at data Reason parameter, which can also include being directed to each in user terminal, has installed data processing parameters corresponding to the application data of application, That is, user according to the demand of oneself, can choose whether to retain or delete the place of each application data applied Reason mode.
Specifically, the data processing parameters also include at least one application processing parameter for having installed application also, root It may determine whether that removing this has installed application corresponding to application according at least one application processing parameter for having installed application Data.
Step S104:The data processing parameters are written to parameter memory block corresponding with default system recovery flow Domain.
In the present embodiment, can be joined in order that obtaining during performing default system and recovering flow according to data processing It is several corresponding data to be deleted or reservation operations, it is necessary to the data processing parameters are written to system to recover flow and exist In the storage region that can be read during execution, i.e., it is corresponding data processing parameters to be written to default system recovery flow Parameter storage area.For example, the parameter storage area can be recovery patterns/cache/recovery/ Command, wherein, it is to perform default system to recover flow that user, which enters revovery patterns,.
In another optional embodiment, above-mentioned be written to the data processing parameters recovers to flow with default system The process of parameter storage area corresponding to journey is specially:The data processing parameters are broadcasted;The default system is extensive Process corresponding to resurgent journey is written to institute after the data processing parameters of the broadcast are received, by the data processing parameters State default parameter storage area.
That is, receive system recovery command in step s 102 and get corresponding data processing parameters it Afterwards, set application to send broadcast, i.e., broadcasted data processing parameters, so that each process on the backstage of user terminal can be with Receive the data parameters of broadcast.Further, the recovery patterns of ccf layer are receiving the data processing parameters of broadcast Afterwards, data processing parameters are written to default parameter storage area, for example, storage to recovery patterns /cache/ recovery/command。
Step S106:Perform the default system and recover flow, specified user data is performed clear operation it Before, the data processing parameters of storage are read from the parameter storage area as target data processing parameter.
After data processing parameters are written to default system recover flow, you can execution system recover flow to The system and data of user data carry out recovery processing, that is, enter recovery patterns and the data on user terminal are entered Row modification.
After recovery patterns are entered, it is necessary to obtain before the user data on to user terminal operates Fetching, which is shown, is deleted user data or the data processing parameters of reservation operations.As it was previously stated, in step S104, by number Default parameter storage area/the cache/recovery/command being stored according to processing parameter under recovery patterns In, in this step, read from default parameter storage area/cache/recovery/command under recovery patterns Take the data processing parameters of storage.
It should be noted that in the present embodiment, if from the default parameter storage area under recovery patterns/ The data processing parameters of storage are not read in cache/recovery/command, i.e., from pre- under recovery patterns If parameter storage area/cache/recovery/command in be not stored with data processing parameters, in this case, Operation directly is purged to user data.
Step S108:Judge whether the target data processing parameter matches with preset value, if so, then performing step S110:The step of described pair of user data specified performs clear operation is skipped, if it is not, then performing step S112:To the finger Fixed user data performs the clear operation.
The target data processing parameter obtained in step S106 be used to indicating current system recover to need in flow to User data carries out deletion action, or carries out reservation operations.For example, indicating whether the data processing parameters of deletion application data In the case that keep_apk is 0 or false, recovers to delete application data in flow in current system, indicating whether to delete In the case that the data processing parameters keep_apk of application data is 1 or true, recover not delete in flow in current system Application data/reservation application data.
That is, it can be determined for the data specified in user data (for example, referring to according to target data processing parameter Fixed internal memory data or the application data specified or the application data for the certain applications specified etc.) carry out operation be Deletion action or reservation operations.
Wherein, the user data that preset value corresponding with target data processing parameter is specified for reservation, that is to say, that in mesh , it is necessary to retain the user data specified in the case that mark data parameters match with preset value, that is, skip the number of users deleted and specified According to the step of;Conversely, it is necessary to delete the user data specified in the case of target data parameter and preset value are unmatched, Perform the step of clear operation is performed to the user data specified.
In another optional embodiment, if specifying each application for having installed application in data processing parameters Data processing parameters corresponding to data, then in this step, it is necessary to according to the installation set of applications on user terminal, it is determined that often One application data for having installed application is to perform deletion action or reservation operations.That is, at least one installed according to described The application processing parameter of application determines whether that removing each has installed application, the application for having installed application removed for needs Data, application data corresponding to application is installed to this and has performed clear operation, conversely, retaining the application number for having installed application According to.
In the present embodiment, in order to avoid some systems employ full disk encryption technology (Full Disk Encryption, FDE) and cause when being operated to user data, user data can not selectively be deleted The situation of action, before entering recovery patterns and carrying out system recovery, it is also necessary to the user in userdata subregions Operation is decrypted in data, to enter after recovery patterns directly to enter the user data under userdata subregions The selective deletion action of row.
Specifically, as shown in figure 3, methods described also includes:
Step S302:The user data stored in user data storage region is obtained, the user data is decrypted;
Step S304:The storage region where user data after decryption described in carry, is distributed to the use after the decryption The access limit of storage region where user data, so that during the described pair of user data specified performs clear operation Possesses the access limit to the user data specified.
After step s 104, before specific system is performed in entering recovery patterns and recovers flow, it is necessary to The file system of userdata subregions is decrypted.
After the file under to userdata subregions and data are decrypted, userdata subregions are hung over, and to use The access limit of file and data under family distribution userdata subregions.That is, the user for recovery patterns can To be written and read to the file under userdata subregions and data, so as to enter to the file under userdata subregions and data The deletion of row selectivity.
It should be noted that in the present embodiment, if the tool of the data processing parameters carried in system recovery command Body value is deletes all user data, i.e., in the case of not retaining any user data, as performs original system and recover Flow, that is to say, that, it is not necessary to handled according to data processing parameters point situation.In this case, it is not necessary in execution State step S104 parameter read-in step and S106 in parameter read step, can be directly whole by all user data Delete.
That is, after the system recovery command of above-mentioned reception input, in addition to:In the system recovery command In the case that all user data are deleted in the data processing parameters instruction of carrying, perform the default system and recover flow, And delete all user data.
Specifically, as shown in figure 4, Fig. 4 illustrates a kind of flow chart of system recovery method:
Step S402:The system recovery command of input is received, the system recovery command carries data processing parameters, institute Data processing parameters are stated to be used to indicate whether to delete the user data specified;
Step S404:Whether the data processing parameters for judging to carry in the system recovery command indicate to delete all use User data;
If so, then perform step S406:Perform the default system and recover flow, delete all user data;
If it is not, then perform step S408:The data processing parameters are written to corresponding with default system recovery flow Parameter storage area;
Step S410:Perform the default system and recover flow, specified user data is performed clear operation it Before, the data processing parameters of storage are read from the parameter storage area as target data processing parameter;
Step S412:Judge whether the target data processing parameter matches with preset value, if so, then performing step S414:The step of described pair of user data specified performs clear operation is skipped, if it is not, then performing step S416:To the finger Fixed user data performs the clear operation.
Step S402 and step S408-S416 are referring to step S102-S112.
That is, if all user data are deleted in the data processing parameters instruction obtained in step S102, do not protect Any data specified are stayed, then directly performs default system and recovers flow, and skip step S408-S410, are directly deleted All user data, complete whole system recovery process.
In addition, in one embodiment, as shown in Figure 5, it is also proposed that a kind of terminal, may be implemented in factory reset During according to the function of all or part of user data of reservation of the needs selectivity of user.
Specifically, as shown in figure 5, above-mentioned terminal includes:
System recovery command receiving unit 102, for receiving the system recovery command of input, the system recovery command is taken With data processing parameters, the data processing parameters are used to indicate whether to delete the user data specified;
Parameter read-in unit 104, it is corresponding with default system recovery flow for the data processing parameters to be written to Parameter storage area;
Parameter reading unit 106, recover flow for performing the default system, to specified user data execution Before clear operation, the data processing parameters of storage are read from the parameter storage area as target data processing parameter;
DEU data execution unit 108, for judging whether the target data processing parameter matches with preset value, in the mesh In the case that mark data processing parameters match with the preset value, skip the described pair of user data specified and perform clear operation Step, in the case of the target data processing parameter and the preset value are unmatched, the user data specified is held The row clear operation.
Optionally, in one embodiment, parameter read-in unit 104 is additionally operable to carry out the data processing parameters extensively Broadcast;The default system recovers process corresponding to flow after the data processing parameters of the broadcast are received, by described in Data processing parameters are written to the default parameter storage area.
Optionally, in one embodiment, the user data specified includes application data, the data processing parameters Also include at least one application processing parameter for having installed application;The DEU data execution unit 108 is additionally operable to determine to have installed to answer With set, application has been installed for each, determined whether according at least one application processing parameter for having installed application Remove this and application has been installed, if so, then having installed application data corresponding to application to this performs clear operation.
Optionally, in one embodiment, system recovery command receiving unit 102 is additionally operable in the system recovery command In the case that all user data are deleted in the data processing parameters instruction of middle carrying, the DEU data execution unit is called, and delete Except all user data.
Optionally, in one embodiment, as shown in fig. 6, above-mentioned terminal also includes data decryption unit 110 and authority point With unit 112, wherein:The data decryption unit 110 is used to obtain the user data stored in user data storage region, right The user data is decrypted;Depositing where the user data that the authority distribution unit 112 is used for after decryption described in carry Storage area domain, the access limit to the storage region where the user data after the decryption is distributed, so as to specify at described Dui User data possesses the access limit to the user data specified during performing clear operation.
Implement the embodiment of the present invention, will have the advantages that:
After employing said system restoration methods and device, the operation of factory reset is being carried out to user terminal When, the user selected according to corresponding to user is inputting factory reset during system recovery command indicates whether that number is applied in deletion The data processing parameters for the data specified according to, internal memory card data etc., by data processing parameters before system recovery is carried out It is written in parameter storage area corresponding to system recovery, when carrying out system recovery, is determined whether according to data processing parameters User data is deleted, so that when carrying out the operation of factory reset to terminal, selectivity can be needed according to user Reservation either delete all or partial user data, improve the flexibility of data manipulation in system recovery procedure.
In the above-described embodiments, can with it is all or part of by software, hardware, firmware or its any combination come reality It is existing.When being realized using software program, can realize in the form of a computer program product whole or in part.The computer Program product includes one or more computer instructions.When loading on computers and performing the computer program instructions, entirely Portion is partly produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, specially With computer, computer network or other programmable devices.The computer instruction can be stored in computer-readable storage In medium, or the transmission from a computer-readable recording medium to another computer-readable recording medium, for example, the meter The instruction of calculation machine can pass through wired (such as coaxial cable, light from a web-site, computer, server or data center Fine, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, clothes Business device or data center are transmitted.It is any available can be that computer can access for the computer-readable recording medium Medium is either comprising data storage devices such as the integrated server of one or more usable mediums, data centers.It is described to use Medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as it is solid State hard disk Solid State Disk (SSD)) etc..
In one embodiment, as shown in fig. 7, Fig. 7 illustrate it is a kind of run said system restoration methods based on Feng Nuo According to the terminal of the computer system of graceful system.The computer system can be smart mobile phone, tablet personal computer, palm PC, notes The terminal device such as this computer or PC.Specifically, it may include outer input interface 1001, the place connected by system bus Manage device 1002, memory 1003 and output interface 1004.Wherein, outer input interface 1001 can optionally connect including at least network Mouth 10012.Memory 1003 may include external memory 10032 (such as hard disk, CD or floppy disk etc.) and built-in storage 10034. Output interface 1004 can comprise at least the equipment such as display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the foregoing computer system based on von Neumann system, built-in storage is operationally loaded into In 10034, then it is compiled as being transferred in processor 1002 after machine code performing, so that being based on von Neumann system Computer system in form system recovery command receiving unit in logic, parameter read-in unit, parameter reading unit, data Execution unit, data decryption unit and authority distribution unit.And in said system restoration methods implementation procedure, the parameter of input Received by outer input interface 1001, and be transferred in memory 1003 and cache, be then input in processor 1002 Row processing, the result data of processing or be cached in memory 1003 is subsequently handled, or is passed to output interface 1004 are exported.
Specifically, the processor 1002 is used to perform:
The system recovery command of input is received, the system recovery command carries data processing parameters, at the data Reason parameter is used to indicate whether to delete the user data specified;
The data processing parameters are written to parameter storage area corresponding with default system recovery flow;
Perform the default system and recover flow, before clear operation is performed to specified user data, from described The data processing parameters of storage are read in parameter storage area as target data processing parameter;
Judge whether the target data processing parameter matches with preset value, if so, then skipping the described couple of user specified Data perform the step of clear operation, if it is not, then performing the clear operation to the user data specified.
Optionally, in one embodiment, processor 1002 is additionally operable to be broadcasted the data processing parameters;It is described Process is after the data processing parameters of the broadcast are received corresponding to default system recovery flow, by the data processing Parameter read-in is to the default parameter storage area.
Optionally, in one embodiment, processor 1002 is additionally operable to obtain the use stored in user data storage region User data, the user data is decrypted;The storage region where user data after decryption described in carry, is distributed to institute State decryption after user data where storage region access limit, so as to perform removing in the described pair of user data specified Possesses the access limit to the user data specified during operation.
Optionally, in one embodiment, the user data specified includes application data, the data processing parameters Also include at least one application processing parameter for having installed application;Processor 1002 is additionally operable to determine to have installed set of applications, pin Application has been installed to each, has determined whether that removing this has pacified according at least one application processing parameter for having installed application Dress application, if so, then having installed application data corresponding to application to this performs clear operation.
Optionally, in one embodiment, processor 1002 is additionally operable to the data carried in the system recovery command In the case that all user data are deleted in processing parameter instruction, perform the default system and recover flow, and delete all User data.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
It should be appreciated that in embodiments of the present invention, alleged processor can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment can include Trackpad, fingerprint adopts sensor and (is used for finger print information and the side of fingerprint for gathering user To information), microphone etc., output equipment can include display (LCD etc.), loudspeaker etc..
The memory can include read-only storage and random access memory, and provide instruction and data to processor. The a part of of memory can also include nonvolatile RAM.For example, memory can be with storage device type Information.
In the specific implementation, the processor, input equipment, output equipment 803 described in the embodiment of the present invention are executable originally The implementation described in each embodiment of system recovery method that inventive embodiments provide, also can perform the embodiment of the present invention The implementation of described terminal, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program realizes each of foregoing system recovery method when being executed by processor Individual step.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

  1. A kind of 1. system recovery method, it is characterised in that including:
    The system recovery command of input is received, the system recovery command carries data processing parameters, the data processing ginseng Number is used to indicate whether to delete the user data specified;
    The data processing parameters are written to parameter storage area corresponding with default system recovery flow;
    Perform the default system and recover flow, before clear operation is performed to specified user data, from the parameter The data processing parameters of storage are read in storage region as target data processing parameter;
    Judge whether the target data processing parameter matches with preset value, if so, then skipping the described pair of user data specified The step of performing clear operation, if it is not, then performing the clear operation to the user data specified.
  2. 2. system recovery method according to claim 1, it is characterised in that described to be written to the data processing parameters Parameter storage area corresponding with default system recovery flow, including:
    The data processing parameters are broadcasted;
    The default system recovers process corresponding to flow after the data processing parameters of the broadcast are received, by described in Data processing parameters are written to the default parameter storage area.
  3. 3. system recovery method according to claim 1, it is characterised in that methods described also includes:
    The user data stored in user data storage region is obtained, the user data is decrypted;
    The storage region where user data after decryption described in carry, is distributed to depositing where the user data after the decryption The access limit in storage area domain, specified so as to possess during the described pair of user data specified performs clear operation to described User data access limit.
  4. 4. system recovery method according to claim 1, it is characterised in that the user data specified includes applying number According to the data processing parameters also include at least one application processing parameter for having installed application;
    It is described that the clear operation is performed to the user data specified, including:
    It is determined that having installed set of applications, application is installed for each, according at least one application for having installed application Processing parameter determines whether that removing this has installed application, if so, then to this installed application corresponding to application data perform removing Operation.
  5. 5. system recovery method according to claim 1, it is characterised in that it is described receive input system recovery command it Afterwards, in addition to:
    In the case that all user data are deleted in the data processing parameters instruction carried in the system recovery command, perform The default system recovers flow, and deletes all user data.
  6. A kind of 6. terminal, it is characterised in that including:
    System recovery command receiving unit, for receiving the system recovery command of input, the system recovery command carries number According to processing parameter, the data processing parameters are used to indicate whether to delete the user data specified;
    Parameter read-in unit, deposited for the data processing parameters to be written into parameter corresponding with default system recovery flow Storage area domain;
    Parameter reading unit, recover flow for performing the default system, behaviour is removed being performed to specified user data Before work, the data processing parameters of storage are read from the parameter storage area as target data processing parameter;
    DEU data execution unit, for judging whether the target data processing parameter matches with preset value, in the target data In the case that processing parameter matches with the preset value, the step of described pair of user data specified performs clear operation is skipped, In the case of the target data processing parameter and the preset value are unmatched, to described in the user data execution specified Clear operation.
  7. 7. terminal according to claim 6, it is characterised in that the parameter read-in unit is additionally operable to the data processing Parameter is broadcasted;The default system recover process corresponding to flow receive the broadcast data processing parameters it Afterwards, the data processing parameters are written to the default parameter storage area.
  8. 8. terminal according to claim 6, it is characterised in that the terminal also includes data decryption unit and authority distribution Unit, wherein:
    The data decryption unit is used to obtain the user data stored in user data storage region, and the user data is entered Row decryption;
    The storage region that the authority distribution unit is used for where the user data after decryption described in carry, is distributed to the decryption The access limit of the storage region where user data afterwards, so as to perform clear operation in the described pair of user data specified During possess access limit to the user data specified.
  9. 9. a kind of terminal, it is characterised in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store application code, the processing Device is arranged to call described program code, performs the method as described in claim any one of 1-5.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-5.
CN201710477529.6A 2017-06-21 2017-06-21 System recovery method and device Withdrawn CN107480001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710477529.6A CN107480001A (en) 2017-06-21 2017-06-21 System recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710477529.6A CN107480001A (en) 2017-06-21 2017-06-21 System recovery method and device

Publications (1)

Publication Number Publication Date
CN107480001A true CN107480001A (en) 2017-12-15

Family

ID=60593978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710477529.6A Withdrawn CN107480001A (en) 2017-06-21 2017-06-21 System recovery method and device

Country Status (1)

Country Link
CN (1) CN107480001A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN109669810A (en) * 2018-10-18 2019-04-23 西安中兴新软件有限责任公司 Information storage, storage card restoration methods and device, electronic equipment and storage medium
CN111400091A (en) * 2020-03-06 2020-07-10 Oppo(重庆)智能科技有限公司 Factory setting restoring method, factory setting restoring device and mobile terminal
CN112394705A (en) * 2019-08-19 2021-02-23 广东芬尼克兹节能设备有限公司 Method and device for processing exception of control program system parameters
CN112506700A (en) * 2020-11-30 2021-03-16 北京达佳互联信息技术有限公司 Conflict processing method and device, electronic equipment and storage medium
CN112659132A (en) * 2020-12-31 2021-04-16 深圳市海柔创新科技有限公司 System recovery method, device, equipment and control system
WO2021168677A1 (en) * 2020-02-26 2021-09-02 Arris Enterprises Llc Maintaining device settings of a wireless device after a factory default reset operation

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN109669810A (en) * 2018-10-18 2019-04-23 西安中兴新软件有限责任公司 Information storage, storage card restoration methods and device, electronic equipment and storage medium
CN109669810B (en) * 2018-10-18 2023-07-14 西安中兴新软件有限责任公司 Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium
CN112394705A (en) * 2019-08-19 2021-02-23 广东芬尼克兹节能设备有限公司 Method and device for processing exception of control program system parameters
WO2021168677A1 (en) * 2020-02-26 2021-09-02 Arris Enterprises Llc Maintaining device settings of a wireless device after a factory default reset operation
CN111400091A (en) * 2020-03-06 2020-07-10 Oppo(重庆)智能科技有限公司 Factory setting restoring method, factory setting restoring device and mobile terminal
CN111400091B (en) * 2020-03-06 2024-04-26 Oppo(重庆)智能科技有限公司 Factory setting restoration method, factory setting restoration device and mobile terminal
CN112506700A (en) * 2020-11-30 2021-03-16 北京达佳互联信息技术有限公司 Conflict processing method and device, electronic equipment and storage medium
CN112506700B (en) * 2020-11-30 2024-05-14 北京达佳互联信息技术有限公司 Conflict processing method, device, electronic equipment and storage medium
CN112659132A (en) * 2020-12-31 2021-04-16 深圳市海柔创新科技有限公司 System recovery method, device, equipment and control system

Similar Documents

Publication Publication Date Title
CN107480001A (en) System recovery method and device
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
CN109690481A (en) The customization of dynamic function row
CN107861679A (en) A kind of operation processing method, terminal and computer-readable recording medium
CN107181858B (en) Method and terminal for displaying notification message
CN106445663A (en) Application data migration method and device
CN107846511A (en) A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN110633032B (en) Icon display method and device for terminal equipment
CN108073346A (en) A kind of record screen method, terminal and computer readable storage medium
CN107491324A (en) A kind of method and terminal for installing application program
CN107168602A (en) One kind control application drawing calibration method and terminal
CN105556534B (en) For suggesting the electronic equipment and method of response guide when refusing
CN107071284A (en) A kind of photographic method and terminal
CN107656750A (en) Update of plug-in method and device
CN107479806A (en) The method and terminal of a kind of changing interface
CN106547486A (en) A kind of data migration method and device
CN106648287A (en) Method and terminal for replacing application icon
CN106648316A (en) Unlocking method and terminal
CN106406938A (en) Application download method and terminal
CN108984339A (en) Data reconstruction method and Related product
CN108228024A (en) A kind of method of application control, terminal and computer-readable medium
CN107506494A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107145790A (en) A kind of method and terminal for managing application permission
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
CN107436836A (en) The processing method and relevant device of a kind of journal file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171215