CN108228388A - A kind of method and terminal for restoring setting - Google Patents

A kind of method and terminal for restoring setting Download PDF

Info

Publication number
CN108228388A
CN108228388A CN201810023430.3A CN201810023430A CN108228388A CN 108228388 A CN108228388 A CN 108228388A CN 201810023430 A CN201810023430 A CN 201810023430A CN 108228388 A CN108228388 A CN 108228388A
Authority
CN
China
Prior art keywords
terminal
information
carry
data partition
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810023430.3A
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.)
Hisense Mobile Communications Technology Co Ltd
Qingdao Hisense Medical Equipment Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Qingdao Hisense Medical 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 Hisense Mobile Communications Technology Co Ltd, Qingdao Hisense Medical Equipment Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201810023430.3A priority Critical patent/CN108228388A/en
Publication of CN108228388A publication Critical patent/CN108228388A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/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
    • 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/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of methods and terminal for restoring setting, and operation deletion all customer data is formatted for solving the problem of factory reset in the prior art to data partition.In the embodiment of the present invention, when terminal judges to be switched on reason for into Recovery patterns, data subregion is decrypted according to the solution confidential information read;According to the data partition after the carry information carry decryption read;Into after Recovery patterns, retain the target directory in the data partition after decryption, delete other catalogues;Carry out data partition recovery processing.The embodiment of the present invention enters in Recovery mode process, rear mount is decrypted to data partition, makes terminal after Recovery patterns are entered, retains the target directory for needing to retain in data partition after decrypting, other catalogues for being not required to retain are deleted, carry out data partition recovery processing.This mode can retain the user data that user's needs retain when carrying out factory reset.

Description

A kind of method and terminal for restoring setting
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method and terminal for restoring setting.
Background technology
With constantly popularizing for mobile communication technology, application and function based on terminal are increasingly abundanter, and user uses eventually The scene at end is also more and more, can not only be answered or made a phone call using terminal, can also utilize terminal browsing webpage, read Novel listens to music, viewing video etc..
At present, if user selects to restore the default setting of terminal, user needs to select in the setting options of terminal extensive It appears again factory's setting options.Terminal can restart after the instruction for receiving factory reset option, and enter Recovery (recovery) Pattern is formatted data partition, restarts again set initial parameter for each application later.
Factory reset is carried out using formatting scheme in the prior art, under this mode, due to data partition Format manipulation is carried out, if user's factory reset, all data of user can all delete, such as contact person, figure Piece etc..
To sum up, factory reset needs to be formatted data partition operation in the prior art, can delete all User data.
Invention content
The present invention provides a kind of method and terminal for restoring setting, to solve factory reset needs in the prior art The problem of operation is formatted to data partition, all user data can be deleted.
The present invention provides a kind of method for restoring setting, and this method includes:
When terminal judges to be switched on reason to enter recovery Recovery patterns, according to the solution confidential information read to data point Area is decrypted;
The terminal is according to the data partition after the carry information carry decryption read;
After the terminal enters Recovery patterns, retain the target directory in the data partition after decryption, and delete it His catalogue;
The terminal carries out data partition recovery processing.
The embodiment of the present invention provides a kind of terminal for restoring setting, which includes:
At least one processing unit and at least one storage unit, wherein, the storage unit has program stored therein, and works as institute When stating program and being performed by the processing unit so that the processing unit performs following process:
When judging to be switched on reason for into Recovery patterns, data subregion is solved according to the solution confidential information read It is close;
According to the data partition after the carry information carry decryption read;
Into after Recovery patterns, retain the target directory in the data partition after decryption, and delete other catalogues;
Carry out data partition recovery processing.
The embodiment of the present invention provides a kind of terminal for restoring setting, which includes:
Deciphering module, for judge be switched on reason for into Recovery patterns when, according to the solution confidential information pair read Data partition is decrypted;
Data partition after carry module, the carry information carry decryption read for basis;
Processing module, for entering Recovery patterns after, retain the target directory in the data partition after decryption, and delete Except other catalogues;
Restore processing module, carry out data partition recovery processing.
In the embodiment of the present invention, when terminal judges to be switched on reason for into Recovery patterns, according to the decryption read Data partition is decrypted in information;According to the data partition after the carry information carry decryption read;Into Recovery After pattern, retain the target directory in the data partition after decryption, and delete other catalogues;It carries out at data partition recovery Reason.Since the embodiment of the present invention is during Recovery patterns are entered, data partition is decrypted then carry so that For terminal after Recovery patterns are entered, can retain needs the target directory retained after decrypting in data partition, deletes other The catalogue retained is not needed to, carries out data partition recovery processing.This mode can also retain when carrying out factory reset User needs the user data retained.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of method for restoring setting of the embodiment of the present invention;
Fig. 2 is " factory reset " option schematic diagram in user of embodiment of the present invention click terminal " setting ";
Fig. 3 is the type of user data that terminal of the embodiment of the present invention is shown to user;
Fig. 4 is the entire flow figure for the method that the embodiment of the present invention restores setting;
Fig. 5 is the terminal schematic diagram of the first recovery setting of the embodiment of the present invention;
Fig. 6 is second of terminal schematic diagram for restoring setting of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention is made below in conjunction with attached drawing into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention rather than whole implementation Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work All other embodiment, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of method for restoring setting, this method includes:
When step 100, terminal judge to be switched on reason to enter recovery Recovery patterns, according to the solution confidential information read Data partition is decrypted;
Step 101, the terminal are according to the data partition after the carry information carry decryption read;
After step 102, the terminal enter Recovery patterns, retain the target directory in the data partition after decryption, And delete other catalogues;
Step 103, the terminal carry out data partition recovery processing.
In the embodiment of the present invention, when terminal judges to be switched on reason for into Recovery patterns, according to the decryption read Data partition is decrypted in information;According to the data partition after the carry information carry decryption read;Into Recovery After pattern, retain the target directory in the data partition after decryption, and delete other catalogues;It carries out at data partition recovery Reason.Since the embodiment of the present invention is during Recovery patterns are entered, data partition is decrypted then carry so that For terminal after Recovery patterns are entered, can retain needs the target directory retained after decrypting in data partition, deletes other The catalogue retained is not needed to, carries out data partition recovery processing.This mode can also retain when carrying out factory reset User needs the user data retained.
Since the embodiment of the present invention is encrypted in data partition, is carried out under the premise of carry, all read operations All it is that user is returned to after decrypting, all information for being written to data partition are all to write data partition, institute after encrypting With, the embodiment of the present invention there is no the encrypted state of change data subregion, after factory reset when first powering on not It needs data partition to be encrypted operation, so as to which the available machine time can also be shortened.
The carry of the embodiment of the present invention refers to data partition being mounted under certain catalogue so that terminal can pass through the catalogue The data of data partition are read out.
In specific implementation, user is by clicking " factory reset " option (as shown in Figure 2) in terminal " setting ", Terminal can show the type for the user data that can retain to user, and then user is to type (such as Fig. 3 of the user data of appearance It is shown) it is selected;
User is needed the directory information of data type retained to be retained in label subregion by terminal;
Wherein, label subregion is for the diag subregions of storing directory information or cache subregions;
Also, if label subregion is stored in cache subregions, then increases in cache/recovery/command files Information reserve.dir fields;For enter recovery patterns after, will be in cache/recovery/command The catalogue that reserve.dir fields are specified is as target directory.
Terminal determines that user needs the corresponding catalogue of data type preserved, terminal, which will mark, to be believed according to the selection of user Breath is saved in the subregion without file system, such as diag subregions;
If label information is saved in diag subregions by terminal, during starting diag subregions, label letter is got Cease and be filled into/proc/cmdline files in, judge whether to enter recovery patterns when restarting for terminal.
Also, all positions of diag subregions are there are default value, if being not written into new value, then what is got is silent Recognize value, and do not include file system in diag subregions.
Since whether terminal belongs to containing label information the early stage rank of starting procedure in startup stage judge mark subregion Section, if label information is saved to the subregion with file system, then this stage can not normally carry, reading, can lead Terminal is caused to cause to judge by accident, so label information to be stored in the diag subregions without file system.
User can be needed the directory information of data type retained to be stored in diag subregions or cache subregions by terminal In cache/recovery/command files in;
If target information is stored in cache subregions, can rapidly be performed to enter terminal after recovery patterns Corresponding processing, then increase the information reserve.dir fields in cache/recovery/command files;
After entering recovery patterns as a result, terminal is by the information in cache/recovery/command files The catalogue that reserve.dir fields are specified is as target directory.
For example, the data type that user wants to retain is related people and picture, then terminal is by the corresponding catalogue of contact person Directory information and the directory information of the corresponding catalogue of picture are stored in label subregion.
After the completion of above-mentioned steps, terminal can also set the label information of decryption and carry needs, the mark in subregion is marked Note information function is the data type that terminal judges user's preservation whether in need after restart, if not provided, just according to existing Mode factory reset, if so, then according to the scheme factory reset of the embodiment of the present invention.
There are many modes of label information that setting of embodiment of the present invention decryption and carry need, different set-up modes, The mode that terminal judges after restarting is also different, is introduced separately below.
Mode one, the mark mode using 1 and 0, such as the label information that can be needed 1 as decryption and carry, 0 makees Not need to the label information of decryption and carry needs, such terminal is needed to read in label subregion after restarting on judgement symbol position Numerical value be 1 or 0, if 1 label information for determining that decryption and carry need, if 0, it is determined that do not decrypt The label information needed with carry.
Mode two using label and by the way of not marking, i.e., if user needs the data type preserved, is divided in label The label information that setting decryption and carry need in area, if user does not need to preserve any data type, not in label point Any information, such terminal is set to need the label letter for whether having decryption and carry needs in judge mark subregion after restarting in area Breath, if there is, it is determined that there is the label information of decryption and carry needs, if it is not, determining without decryption and carry needs Label information.
After label information is set up, it is into recovery patterns that terminal, which can set booting reason, and is opened again It is dynamic.
After terminal restarting, terminal will determine whether to enter recovery patterns according to booting reason, if not It needs to enter recovery patterns, then terminal will directly boot up action;
If necessary to enter recovery patterns, the label for whether having decryption and carry needs in terminal judge mark subregion Information;
If there is label information, terminal reads carry information and encryption information.
If without label information, terminal is operated according to the scheme of prior art factory reset, needs logarithm It is formatted according to subregion.
For example, during terminal restarts, terminal parsing/proc/cmdline files, according to/proc/ Label information in cmdline files obtains current booting the reason is that in order to enter Recovery patterns and determine parsing the One RC files or the 3rd RC files.
In force, solution confidential information and carry information can be placed in the first RC files by the embodiment of the present invention, so eventually End needs to load the solution confidential information in the first RC files of the first RC file acquisitions when needing to read solution confidential information and carry information With carry information.
First RC files of the embodiment of the present invention and the 3rd RC used using the factory reset scheme of the prior art File is different, is a new RC file;
Since factory reset scheme and the OTA upgrading of the prior art are required for loading same RC files, in order not to Influence the factory reset scheme of the prior art and OTA upgradings;
The embodiment of the present invention defines a new RC file, such as init.recovery.rc, and confidential information is solved for storing With carry information;
2nd RC files can be Init.rc, for storing the information of normal boot-strap;
3rd RC files can be Init.rc, for storing the information of prior art factory reset scheme.
Due to that could realize carry after only data partition is decrypted, so terminal is determining that decryption and carry need to After the label information wanted, data subregion is decrypted using the solution confidential information read in the first RC files, later to profit The carry information read in the first RC files carries out carry to the data partition after decryption.
After data partition carry is completed, terminal enters Recovery patterns.
Here enter after Recovery patterns due to having had determined label information before, it is possible to directly read label Directory information in subregion.
Due to being provided with the label information of decryption and carry needs before terminal in subregion is marked, so the present invention is implemented Whether example enters Recovery patterns in terminal can also label information in judge mark subregion again, specific judgment mode with Judgment mode presented hereinbefore is identical, it is possibility to have two kinds of judgment modes, details are not described herein.
If without label information, operation can be directly formatted to data partition.
If the first RC files are init.recovery.rc files, the 3rd RC files are init.rc files, then terminal exists Whether there is label information in judge mark subregion again after into Recovery patterns, if containing label information, then terminal Parse init.recovery.rc files;If label information is not contained, then terminal parses init.rc files.
Optionally, terminal described will mark the catalogue stored in subregion to believe after the directory information in reading label subregion Corresponding catalogue is ceased as target directory.
For example, user needs to retain contact person and pictorial information, then the directory information stored in label subregion just includes The directory information of the corresponding catalogue of contact person and the directory information of the corresponding catalogue of contact person, terminal is by the two directory informations pair The catalogue answered is as target directory.
If terminal stores directory information into cache/recovery/command files, terminal is needing to read During directory information, directory information can be read from cache/recovery/command files.
Optionally, terminal retains all data under target directory, deletes other catalogues.
Such as terminal enter Recovery patterns after, according in cache/recovery/command files Recovery.type information, which is determined, specifically enters whether Recovery patterns need to preserve user data;
If terminal stores directory information into cache/recovery/command files, and cache/ Contain reserve.dir in recovery/command files;
So terminal reads reserve.dir from cache/recovery/command files first, then, terminal from The directory listing for needing to preserve is read in reserve.dir.
Specifically, terminal when performing delete operation, judge catalogue that current directory and reserve.dir preserve whether one It causes, if unanimously, then retain;Otherwise it deletes.
For example, reserve.dir=path 1;path 2;path 3;
Terminal judges whether contain path 1 in current directory when performing delete operation;path 2;path 3;If Have, then preserve, otherwise, delete.
After retaining target directory and deleting other catalogues or formatting system subregion, terminal can change booting reason For normal boot-strap, then terminal restarting.
Factory reset or OTA (Over the air technology, under space are carried out after user in order to prevent Load technology) upgrading, after other catalogues are deleted, terminal also needs to delete the label information marked in subregion or in advance If information replaces the label information.
Different here according to the mode of label information setting, processing mode is also different:
If the 1st, using aforesaid way one, i.e., using 1 and 0 mark mode, then terminal replace the mark with presupposed information Remember information, for example 1 is decryption and the label information of carry needs, then presupposed information is exactly 0;
If subregion that is, using label and by the way of not marking, then the 2, is marked described in terminal deletion using aforesaid way two In the label information.
It is normal boot-strap in terminal modifications booting reason, then after terminal restarting, can also judges the reason that is switched on.
After determining booting reason for normal boot-strap, according to the carry information carry data read from the 2nd RC files Subregion;
The terminal creates the database each applied in the data partition, and is the silent of each application configuration manufacture Recognize parameter value.
Wherein, default parameters is mainly the database default value defined in software, for example, default ring tone, acquiescence suspend mode when Between, the screen intensity etc. of acquiescence;
Default parameters is mainly used for:Each application can all read data when startup from database, so as to really Recognize the action of execution, the effect of display etc.;It is operated by factory reset, software is determined when the data of database are restored to manufacture The default value of justice, that is, reached state when dispatching from the factory.
As shown in figure 4, introduce a kind of entire flow figure of method for restoring setting provided in an embodiment of the present invention:
Step 400, terminal select user to need the data type pair retained after the instruction of factory reset is received The directory information answered is retained in label subregion;
Step 401, terminal set solution confidential information and the label information of carry information in subregion is marked;
Step 402, terminal setting booting reason are into Recovery patterns, and are restarted;
Step 403, terminal judge whether booting reason is into Recovery patterns, if performing step 404;Otherwise Jump out this flow;
Whether there is label information in step 404, terminal judge mark subregion, if so, then performing step 405;Otherwise, it holds Row step 407;
Data subregion is decrypted in the solution confidential information of step 405, terminal in the label subregion read;
The carry information of step 406, terminal in the label subregion read hangs the data partition after decryption It carries;
Step 407, terminal enter Recovery patterns;
Whether contain label information in step 408, terminal judge mark subregion, if so, then performing step 409;Otherwise, Perform step 412;
Step 409, terminal will mark the corresponding catalogue of directory information stored in subregion as target directory;
Step 410, terminal retain target directory, and delete other catalogues;
Label information in step 411, terminal deletion label subregion, and perform step 413;
Step 412, terminal deletion all customer data, formatting system subregion;
Step 413, terminal modifications booting reason are normal boot-strap, and restart;
Step 414, terminal judge whether booting reason is normal boot-strap, if it is, performing step 415;Otherwise it jumps out This flow;
Step 415, terminal are according to the carry information carry data partition read in the 2nd RC files;
Step 416, terminal create the database each applied in data partition, and are the silent of each application configuration manufacture Recognize parameter value.
Wherein, since step 404 and step 408 are all whether to contain label information in judge mark subregion, specific real Shi Zhong can only carry out step 404, can also only carry out step 408, and two steps all employ in this flow.
An embodiment of the present invention provides a kind of computer can storage medium, be stored thereon with computer program, the program quilt The step of processor realizes the method in Fig. 4 when performing.
Based on same inventive concept, a kind of terminal for restoring setting is additionally provided in the embodiment of the present invention, due to the terminal The principle solved the problems, such as is similar to the method for the embodiment of the present invention, therefore the implementation of the terminal may refer to the implementation of method, weight Multiple part repeats no more.
As shown in figure 5, the embodiment of the present invention provides a kind of terminal for restoring setting, which includes:
At least one processing unit 500 and at least one storage unit 501, wherein, the storage unit 501 is stored with Program, when described program is performed by the processing unit 500 so that the processing unit 500 performs following process:
When judging to be switched on reason for into Recovery patterns, data subregion is solved according to the solution confidential information read It is close;
According to the data partition after the carry information carry decryption read;
Into after Recovery patterns, retain the target directory in the data partition after decryption, and delete other catalogues;
Carry out data partition recovery processing.
Optionally, the processing unit 500 is additionally operable to:
Before data subregion is decrypted according to the solution confidential information read, solution secret letter is read from the first RC files Breath;Before according to the data partition after the carry information carry read decryption, carry information is read from the first RC files.
Optionally, the processing unit 500 is additionally operable to:
When judging to be switched on reason for into Recovery patterns, data subregion is solved according to the solution confidential information read Before close, the label information in need for reading solution confidential information and carry information in determining label subregion;Retain the data after decryption Before target directory in subregion, using the corresponding catalogue of directory information stored in the label subregion as target directory.
Optionally, which further includes:
It determines to need the data type corresponding catalogue retained during factory reset, and store to the label subregion In;And
Setting needs to read solution confidential information and the label information of carry information in the label subregion.
Optionally, the processing unit 500 is specifically used for:
It deletes the label information in the label subregion or replaces the label information with presupposed information.
Optionally, the processing unit 500 is specifically used for:
Data partition recovery processing is carried out, modification booting reason is normal boot-strap, and restart;
After booting reason is normal boot-strap, according to the carry information carry data point read from the 2nd RC files Area;
The database each applied is created in the data partition, and is the default parameters of each application configuration manufacture Value.
As shown in fig. 6, the embodiment of the present invention provides a kind of terminal for restoring setting, which includes:
Deciphering module 600, for judge be switched on reason for into Recovery patterns when, according to the solution confidential information read Data partition is decrypted;
Data partition after carry module 601, the carry information carry decryption read for basis;
Processing module 602, for enter Recovery patterns after, retain decryption after data partition in target directory, And delete other catalogues;
Restore processing module 603, carry out data partition recovery processing.
Optionally, the deciphering module 600 is additionally operable to:
Before data subregion is decrypted according to the solution confidential information read, solution secret letter is read from the first RC files Breath;Before according to the carry procedure information carry data partition read, carry information is read from the first RC files.
Optionally, the processing module 602 is additionally operable to:
Before data subregion is decrypted according to the solution confidential information read, solution secret letter is read from the first RC files Breath;Before according to the data partition after the carry information carry read decryption, carry information is read from the first RC files.
Optionally, the processing module 602 is additionally operable to:
When judging to be switched on reason for into Recovery patterns, data subregion is solved according to the solution confidential information read Before close, the label information in need for reading solution confidential information and carry information in determining label subregion;Retain the data after decryption Before target directory in subregion, using the corresponding catalogue of directory information stored in the label subregion as target directory.
Optionally, which further includes:
It determines to need the data type corresponding catalogue retained during factory reset, and store to the label subregion In;And
Setting needs to read solution confidential information and the label information of carry information in the label subregion.
Optionally, the processing module 602 is specifically used for:
It deletes the label information in the label subregion or replaces the label information with presupposed information.
Optionally, the processing module 602 is specifically used for:
Data partition recovery processing is carried out, modification booting reason is normal boot-strap, and restart;
After booting reason is normal boot-strap, according to the carry information carry data point read from the 2nd RC files Area;
The database each applied is created in the data partition, and is the default parameters of each application configuration manufacture Value.
Above by reference to showing according to the method, apparatus (system) of the embodiment of the present application and/or the frame of computer program product Figure and/or flow chart describe the application.It should be understood that it can realize that block diagram and/or flow illustrate by computer program instructions One block of figure and the combination of block diagram and/or the block of flowchart illustration.These computer program instructions can be supplied to logical With computer, the processor of special purpose computer and/or other programmable data processing units, to generate machine so that via meter The instruction establishment that calculation machine processor and/or other programmable data processing units perform is used to implement block diagram and/or flow chart block In specified function/action method.
Correspondingly, the application can also be implemented with hardware and/or software (including firmware, resident software, microcode etc.).More Further, the application can take computer to can be used or the shape of computer program product on computer readable storage medium Formula there is the computer realized in the medium can be used or computer readable program code, to be made by instruction execution system It is used with or with reference to instruction execution system.In the present context, computer can be used or computer-readable medium can be with It is arbitrary medium, can includes, stores, communicates, transmits or transmit program, is made by instruction execution system, device or equipment It is used with or with reference to instruction execution system, device or equipment.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (14)

  1. A kind of 1. method for restoring setting, which is characterized in that this method includes:
    Terminal judge be switched on reason be enter recovery Recovery patterns when, according to the solution confidential information read to data subregion into Row decryption;
    The terminal is according to the data partition after the carry information carry decryption read;
    After the terminal enters Recovery patterns, retain the target directory in the data partition after decryption, and delete others Catalogue;
    The terminal carries out data partition recovery processing.
  2. 2. the method as described in claim 1, which is characterized in that the terminal is according to the solution confidential information read to data subregion Before being decrypted, further include:
    The terminal reads solution confidential information from the first RC files;
    Before the terminal is according to the data partition after the carry information carry decryption read, further include:
    The terminal reads carry information from the first RC files.
  3. 3. the method as described in claim 1, which is characterized in that the terminal judges to be switched on reason for into Recovery patterns When, before data subregion is decrypted according to the solution confidential information read, further include:
    The terminal determine label subregion in it is in need read solution confidential information and carry information label information;
    Before the terminal retains the target directory in the data partition after decryption, further include:
    The terminal is using the corresponding catalogue of directory information stored in the label subregion as target directory.
  4. 4. method as claimed in claim 3, which is characterized in that this method further includes:
    The terminal determines to need the data type corresponding catalogue retained during factory reset, and stores to the label point Qu Zhong;And
    Terminal setting in the label subregion needs to read solution confidential information and the label information of carry information.
  5. 5. method as claimed in claim 3, which is characterized in that the terminal carries out data partition recovery processing, including:
    The label information in subregion is marked described in the terminal deletion or replaces the label information with presupposed information.
  6. 6. the method as described in Claims 1 to 5 is any, which is characterized in that the terminal carries out data partition recovery processing, packet It includes:
    The terminal modifications booting reason is normal boot-strap, and restart;
    The terminal is after booting reason is normal boot-strap, according to the carry information carry data read from the 2nd RC files Subregion;
    The terminal creates the database each applied in the data partition, and is the acquiescence ginseng of each application configuration manufacture Numerical value.
  7. 7. a kind of terminal for restoring setting, which is characterized in that the terminal includes:
    At least one processing unit and at least one storage unit, wherein, the storage unit has program stored therein, when the journey When sequence is performed by the processing unit so that the processing unit performs following process:
    When judging to be switched on reason for into Recovery patterns, data subregion is decrypted according to the solution confidential information read;
    According to the data partition after the carry information carry decryption read;
    Into after Recovery patterns, retain the target directory in the data partition after decryption, and delete other catalogues;
    Carry out data partition recovery processing.
  8. 8. terminal as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
    Before data subregion is decrypted according to the solution confidential information read, solution confidential information is read from the first RC files; Before according to the data partition after the carry information carry read decryption, carry information is read from the first RC files.
  9. 9. terminal as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
    When judging to be switched on reason for into Recovery patterns, it is decrypted to data subregion according to the solution confidential information read Before, the label information in need for reading solution confidential information and carry information in determining label subregion;Retain the data partition after decryption In target directory before, using the corresponding catalogue of directory information that stores in the label subregion as target directory.
  10. 10. terminal as claimed in claim 9, which is characterized in that the terminal further includes:
    It determines to need the data type corresponding catalogue retained during factory reset, and stores into the label subregion;With And
    Setting needs to read solution confidential information and the label information of carry information in the label subregion.
  11. 11. terminal as claimed in claim 9, which is characterized in that the processing unit is specifically used for:
    It deletes the label information in the label subregion or replaces the label information with presupposed information.
  12. 12. the terminal as described in claim 7~11 is any, which is characterized in that the processing unit is specifically used for:
    Data partition recovery processing is carried out, modification booting reason is normal boot-strap, and restart;
    After booting reason is normal boot-strap, according to the carry information carry data partition read from the 2nd RC files;
    The database each applied is created in the data partition, and is the default parameter value of each application configuration manufacture.
  13. 13. a kind of terminal for restoring setting, which is characterized in that the terminal includes:
    Deciphering module, for judge be switched on reason for into Recovery patterns when, according to the solution confidential information read to data Subregion is decrypted;
    Carry module, for according to the data partition after the carry information carry decryption read;
    Processing module after entering Recovery patterns, retains the target directory in the data partition after decryption, and delete it His catalogue;
    Restore processing module, carry out data partition recovery processing.
  14. 14. a kind of computer can storage medium, be stored thereon with computer program, which is characterized in that the program is held by processor The step of the method as any such as claim 1~6 is realized during row.
CN201810023430.3A 2018-01-10 2018-01-10 A kind of method and terminal for restoring setting Pending CN108228388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810023430.3A CN108228388A (en) 2018-01-10 2018-01-10 A kind of method and terminal for restoring setting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810023430.3A CN108228388A (en) 2018-01-10 2018-01-10 A kind of method and terminal for restoring setting

Publications (1)

Publication Number Publication Date
CN108228388A true CN108228388A (en) 2018-06-29

Family

ID=62641745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810023430.3A Pending CN108228388A (en) 2018-01-10 2018-01-10 A kind of method and terminal for restoring setting

Country Status (1)

Country Link
CN (1) CN108228388A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542676A (en) * 2018-10-26 2019-03-29 歌尔科技有限公司 Method, apparatus, equipment and the storage medium of factory reset
CN109669810A (en) * 2018-10-18 2019-04-23 西安中兴新软件有限责任公司 Information storage, storage card restoration methods and device, electronic equipment and storage medium
CN110059056A (en) * 2019-04-18 2019-07-26 北京思特奇信息技术股份有限公司 The distributed system read/writable detection method of multinode multifile, device, equipment
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium
CN111400094A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, device, equipment and medium for restoring factory settings of server system
CN112306374A (en) * 2019-07-31 2021-02-02 深圳Tcl新技术有限公司 Data clearing method, mobile terminal and storage medium
CN112948182A (en) * 2021-03-30 2021-06-11 广东九联科技股份有限公司 Set top box emergency backup recovery upgrading method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718272A (en) * 2016-02-22 2016-06-29 青岛海信移动通信技术股份有限公司 Method for restoring factory settings of terminal and terminal
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN106445745A (en) * 2016-10-09 2017-02-22 青岛海信移动通信技术股份有限公司 Terminal device and method for recovering factory settings
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718272A (en) * 2016-02-22 2016-06-29 青岛海信移动通信技术股份有限公司 Method for restoring factory settings of terminal and terminal
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN106445745A (en) * 2016-10-09 2017-02-22 青岛海信移动通信技术股份有限公司 Terminal device and method for recovering factory settings
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109542676A (en) * 2018-10-26 2019-03-29 歌尔科技有限公司 Method, apparatus, equipment and the storage medium of factory reset
CN110059056A (en) * 2019-04-18 2019-07-26 北京思特奇信息技术股份有限公司 The distributed system read/writable detection method of multinode multifile, device, equipment
CN112306374A (en) * 2019-07-31 2021-02-02 深圳Tcl新技术有限公司 Data clearing method, mobile terminal and storage medium
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium
CN111400094A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, device, equipment and medium for restoring factory settings of server system
CN112948182A (en) * 2021-03-30 2021-06-11 广东九联科技股份有限公司 Set top box emergency backup recovery upgrading method and system
CN112948182B (en) * 2021-03-30 2024-01-30 广东九联科技股份有限公司 Method and system for recovering and upgrading emergency backup of set top box

Similar Documents

Publication Publication Date Title
CN108228388A (en) A kind of method and terminal for restoring setting
US20120260202A1 (en) Customized launching of applications
CN110659512B (en) Picture management method, device, terminal and storage medium
US20100093396A1 (en) Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device
US20080014990A1 (en) Method of locating a mobile communication system for providing anti theft and data protection during successive boot-up procedure
CN110781699B (en) NFC card switching method and device
CN105824836B (en) Screenshot sharing method and device, and information receiving method and device
US20060069925A1 (en) Content processing device, content accumulation medium, content processing method and content processing program
CN112148163B (en) Screen recording method and device and electronic equipment
CN106101358A (en) A kind of method of contact person information updating and smart machine
JP2009225000A (en) Program for controlling information distribution to foldable cellular phone
CN110866580B (en) Preprocessing method and device for configuring NFC smart card
CN110022558A (en) The encryption and decryption method and electronic device and storage medium of a kind of upgrade package
CN103765925B (en) Method and corresponding system for accessing at least one service
CN106778295B (en) File storage method, file display method, file storage device, file display device and terminal
CN105792347A (en) Network registering method and mobile terminal
CN112463199A (en) System upgrading method and terminal
KR20080097059A (en) Methods for managing user contents of communication terminal
US10218505B1 (en) Server based settings for client software with asymmetric signing
CN104796531A (en) Method and system for protecting information privacy
CN112016080A (en) Application authority management method and device and electronic equipment
CN107968799B (en) Information acquisition method, terminal equipment and system
CN106934616A (en) A kind of service implementation method and device based on NFC technique
CN115291759A (en) Information processing method and device and electronic equipment
CN110704157B (en) Application starting method, related device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication