The content of the invention
The application provides a kind of storage method of terminal data, recovers the method and device of terminal default setting, to solveThe prior art does not possess the problem of terminal default setting content is recovered in part.
The application provides a kind of storage method of terminal data, including:
The default value of terminal setting option is stored in backup file;
Classified according to preset condition to the terminal setting option;It will be needed wherein when recovering default setting extensive in the lumpThe multiple terminal setting option is classified as one kind;All setting options when the terminal setting option dispatches from the factory including terminal device and/orUser is the setting option of the application program of installing terminal equipment;The degree of association of the preset condition between different setting option contentsOr different setting option owning applications;
Different classes of terminal setting option is respectively stored in different configuration files;
By user data storage in the data file.
Preferably, the different classes of setting option includes:Wireless and network class setting option, terminal device associated class are setItem and safety-related class setting option.
Preferably, it is described to store user data in the data file, including:
Classified according to user preset condition to the user data;
Different classes of user data is respectively stored in different data files.
Preferably, it is described to store user data in the data file, including:
The user data is stored in the data file according to system default mode.
Correspondingly, the application also provides a kind of storage device of terminal data, including:
Default value storage unit, for the default value of terminal setting option to be stored in backup file;
Setting option taxon, for being classified according to preset condition to the terminal setting option;To wherein it recoverThe terminal setting option for needing to recover in the lump during default setting is classified as one kind;The terminal setting option dispatches from the factory including terminal deviceWhen all setting options and/or user for installing terminal equipment application program setting option;The preset condition sets for differencePut the degree of association between a content or different setting option owning applications;
Setting option storage unit, for different classes of terminal setting option to be respectively stored in different configuration files;
User data storage unit, for user data to be stored in the data file.
Preferably, the different classes of setting option includes:Wireless and network class setting option, terminal device associated class are setItem and safety-related class setting option.
Preferably, it is described to store user data in the data file, including:
Classified according to user preset condition to the user data;
Different classes of user data is respectively stored in different data files.
Preferably, it is described to store user data in the data file, including:
The user data is stored in the data file according to system default mode.
In addition, the application also provides a kind of method for recovering terminal default setting, including:
Reception input is used to select from the terminal setting option and user data according to preset condition classifiedRecover the selection instruction of content;The recovery content is a kind of or more Terminal Type setting options and/or the user data;The endAll setting options of end setting option when dispatching from the factory including terminal device and/or user for the application program of installing terminal equipment setting;The degree of association or different setting option owning application of the preset condition between different setting option contents;
The recovery content selected according to the selection instruction is from the difference for being stored with different classes of terminal setting option respectivelyConfiguration file and being stored with the data file of the user data delete corresponding configuration file and/or data textPart;
If the recovery content is the terminal setting option, according to the standby of the default value for being stored with the terminal setting optionRecover the default value of the terminal setting option in content described in part file access pattern.
Preferably, the recovery content is a kind of or more Terminal Type setting options and/or the user data.
Preferably, further include:
Receive the instruction of restarting of input;
Restart terminal device.
Correspondingly, the application also provides a kind of device for recovering terminal default setting, including:
Selection instruction receiving unit, is used to set from the terminal according to preset condition classified for reception inputPut the selection instruction that selection in item and user data recovers content;The recovery content for a kind of or more Terminal Type setting options and/Or the user data;All setting options and/or user when the terminal setting option dispatches from the factory including terminal device set for terminalThe setting option of the application program of standby installation;The degree of association or different setting option of the preset condition between different setting option contentsOwning application;
File deletes unit, for different classes of from being stored with respectively according to the recovery content that the selection instruction selectsThe different configuration files of terminal setting option and it is stored with the data file of the user data and deletes corresponding configuration fileAnd/or the data file;
Default value recovery unit, if being the terminal setting option for the recovery content, basis is stored with the endHold the default value of the terminal setting option recovered described in the backup file access pattern of the default value of setting option in content.
Preferably, the recovery content is a kind of or more Terminal Type setting options and/or the user data.
Preferably, further include:
Instruction of restarting receiving unit, for receiving the instruction of restarting of input;
Restarting terminal device unit, for restarting terminal device.
Compared with prior art, the application has the following advantages:
The storage method for the terminal data that the application provides, the method and device for recovering terminal default setting, by by eventuallyThe default value of end setting option is stored in backup file;Classified according to preset condition to the terminal setting option;By differenceThe terminal setting option of classification is respectively stored in different configuration files;By user data storage in the data file, so as toEnough realize independent recovered part or whole terminal setting options and/or single clear user data, and then realize that terminal is recovered in partDefault setting content, is user-friendly.
Embodiment
In this application, the storage method and device and a kind of recovery terminal acquiescence of a kind of terminal data are each providedThe method and apparatus of setting.It is described in detail one by one in the following embodiments.
As shown in Figure 1, the flow chart of the storage method embodiment of its terminal data provided for the application.The method bagInclude following steps:
Step S101:The default value of terminal setting option is stored in backup file.
For terminal device when dispatching from the factory, its internal setting option has default value, such as:Network switching, screen intensity, keypad toneThere is its factory-default Deng setting option.Terminal device after user's use, its internal setting option may be by user moreChange.So in order to when recovering default setting, it would be desirable to which the terminal setting option of recovery returns to default value when dispatching from the factory, and needs advanceThe default value of terminal setting option is stored in backup file.Specifically, can be by the acquiescence of all setting options of terminal deviceValue is stored in same backup file, corresponding whole to be read when recovering terminal setting option from the backup fileHold the default value of setting option;Classification can also be carried out according to the preset condition in subsequent step to the default value of terminal setting option to depositStorage, is stored in different backup files, can be read when recovering terminal setting option from corresponding backup file correspondingThe default value of terminal setting option.So that in order to which when recovering terminal default setting, the value of terminal setting option can be reverted toDefault value, is user-friendly.
Step S102:Classified according to preset condition to the terminal setting option.
User only needs the default value of recovered part terminal setting option sometimes in using terminal device procedures, but existingRecovery terminal default setting method, all terminal setting options can be returned to when recovering terminal default setting when dispatching from the factoryState, can not meet the needs of user's recovered part terminal setting option, so that user need not recover default settingThe value of terminal setting option also returns to default value, is brought to user and uses upper inconvenient and unnecessary trouble.So in order to canPartly to recover the value of terminal setting option, can be classified according to preset condition to all terminal setting options, by those extensive, it is necessary to which the terminal setting option recovered in the lump is classified as one kind during multiple default setting, in order to be able to realize independent recovered part or completePortion's terminal setting option, is user-friendly.
In the present embodiment, all setting options and/or user when the terminal setting option dispatches from the factory including terminal device areThe setting option of the application program of installing terminal equipment.All setting options when terminal device dispatches from the factory, e.g., screen intensity, keypad toneDeng setting option.
In the present embodiment, the degree of association or different setting options that the preset condition can be between different setting option contentsOwning application.Such as, classified according to the degree of association between different setting option contents to terminal setting option, can be by terminalSetting option is divided into:Wireless and network class setting option, it includes the setting options such as mobile network, data network, WLAN, bluetooth;EquipmentAssociated class setting option, it includes:The setting options such as contextual model, the tinkle of bells, screen display, time and date;Safety-related class is set, it includes the setting options such as screen locking mode, unlocking pin.Such as, according to different setting option owning applications to terminal setting optionClassify, terminal setting option can be divided into:Clock application class setting option, it includes, and clock application program is all to be setPut item;Calendar applications class setting option, it includes all setting options of calendar applications.Some other situations, it is describedPreset condition can also be other conditions.Such as, often classified according to user with demand to terminal setting option.
Step S103:Different classes of terminal setting option is respectively stored in different configuration files.
Classified in above-mentioned steps according to preset condition to the terminal setting option, then needing will be different classes ofTerminal setting option is respectively stored in different configuration files.When user is configured the value of terminal setting option, can incite somebody to actionThe amended value is stored in corresponding configuration file., can when user needs to recover certain a kind of or more Terminal Type setting optionTo delete corresponding configuration file.In order to realize independent recovered part or whole terminal setting options, it is user-friendly.
In the present embodiment, the different classes of setting option includes:It is wireless related to network class setting option, terminal deviceClass setting option and safety-related class setting option.
Step S104:By user data storage in the data file.
There is no user data in its embedded memory card when terminal device dispatches from the factory, the terminal device after user's use, can produceSome raw user data, e.g., the application downloaded, contact person, message registration, short message, picture, video, music etc..Terminal deviceThese user data can be stored in its embedded memory card.The existing method for recovering terminal default setting is by terminal setting optionState when dispatching from the factory is returned to, while empties the user data in embedded memory card (application downloaded, contact person, call noteRecord, short message, picture, video, music etc.);Once carry out, can not meet so as to cause to recover setting option and removing user dataThe demand of user's single clear user data.So in order to can be with single clear user data, need to be by terminal setting option and userData separate, and different classes of terminal setting option is stored in different configuration files by above-mentioned steps, need here by withUser data stores in the data file.
In the present embodiment, it is described to store user data in the data file, including:According to user preset condition to instituteUser data is stated to classify;Different classes of user data is respectively stored in different data files.In order to can be moreUser data is removed easy to user, user data can be also subjected to classification storage, specifically, can be according to the demand bar of userPart classifies user data, different classes of user data is respectively stored in different data files.
In the present embodiment, it is described to store user data in the data file, including:According to system default mode by instituteUser data is stated to be stored in the data file.
In the above-described embodiment, there is provided a kind of storage method of terminal data, corresponding, the application also carriesFor a kind of storage device of terminal data.Fig. 2 is refer to, it implements to illustrate for a kind of storage device of terminal data of the applicationIt is intended to.Since device embodiment is substantially similar to embodiment of the method, so describing fairly simple, related part is real referring to methodApply the part explanation of example.Device embodiment described below is only schematical.
A kind of storage device of the terminal data of the present embodiment, including:
Default value storage unit 201, for the default value of terminal setting option to be stored in backup file;
Setting option taxon 202, for being classified according to preset condition to the terminal setting option;
Setting option storage unit 203, for different classes of terminal setting option to be respectively stored in different configuration filesIn;
User data storage unit 204, for user data to be stored in the data file.
Preferably, all setting options and/or user when the terminal setting option dispatches from the factory including terminal device set for terminalThe setting option of the application program of standby installation.
Preferably, journey is applied belonging to the degree of association or different setting options of the preset condition between different setting option contentsSequence.
Preferably, the different classes of setting option includes:Wireless and network class setting option, terminal device associated class are setItem and safety-related class setting option.
Preferably, it is described to store user data in the data file, including:
Classified according to user preset condition to the user data;
Different classes of user data is respectively stored in different data files.
Preferably, it is described to store user data in the data file, including:
The user data is stored in the data file according to system default mode.
Corresponding with the storage method of above-mentioned terminal data, the application also provides a kind of side for recovering terminal default settingMethod.Please refer to Fig.3, a kind of flow diagram of the embodiment of the method for its recovery terminal default setting provided for the application, thisThe embodiment part identical with first embodiment content repeats no more, and refers to the appropriate section in embodiment one.The application carriesA kind of method of the recovery terminal default setting supplied includes:
Step S301:Receive being used for from the terminal setting option and number of users classified according to preset condition for inputRecover the selection instruction of content according to middle selection.
Terminal setting option and user data, the storage method stored according to above-mentioned terminal data are stored.WithWhen family needs recover terminal default setting, terminal device can show that selection recovers the interface of content, e.g., in selection recoveryThe interface of appearance can show " removing user data " option, " recover wireless and network class is set " option, " restorer associated classSetting " option, " recovering safety-related class to set " option, " recovering other systems to set " option.User can be from as above optionMiddle selection one or more needs the content recovered.Specific user can be clicked in the corresponding corresponding recovery of option selectionHold, terminal device receives input by user be used for from the terminal setting option and user data classified according to preset conditionMiddle selection recovers the selection instruction of content.
In the present embodiment, the recovery content is a kind of or more Terminal Type setting options and/or the user data.So as toUser can be according to the independent recovered part of demand or whole terminal setting options and/or single clear user data of oneself.
Step S302:Set according to the recovery content that the selection instruction selects from different classes of terminal is stored with respectivelyDifferent configuration files and being stored with the data file of the user data delete corresponding configuration file and/or describedData file.
Such as, the recovery content of user's selection needs deletion to be stored with accordingly at this time to recover wireless and network class settingWireless and network class setting option configuration file.Terminal setting option can individually be recovered so as to fulfill user, without deleting at the same timeUser data;User can be with the user data of single clear terminal device, and does not have to recover terminal setting option at the same time;User is extensiveDuring multiple terminal setting option, it can not have to recover whole terminal setting options, can only recover a certain Terminal Type setting option.In order toWhen terminal device only has the relevant part of certain Terminal Type setting option and occurs abnormal, it can individually recover this Terminal Type setting option to solveCertainly terminal device is abnormal., can be with single clear user data in the user data during user wants removing terminal device.It is i.e. realNow independent recovered part or whole terminal setting options and/or single clear user data, and then realize that terminal acquiescence is recovered in partSet content, is user-friendly.
Step S303:If the recovery content is the terminal setting option, basis is stored with the terminal setting optionRecover the default value of the terminal setting option in content described in the backup file access pattern of default value.
If the recovery content is the terminal setting option, after corresponding configuration file is deleted, it is also necessary to which this is matched somebody with somebodyThe value for putting the terminal setting option stored in file returns to state when dispatching from the factory.Due in the storage method pair according to terminal dataWhen terminal data is stored, the default value of terminal setting option is stored in backup file, as long as so according to storageThere is the backup file of the default value of the terminal setting option, you can to recover the acquiescence of the terminal setting option in the recovery contentValue.
In the present embodiment, further include:Receive the instruction of restarting of input;Restart terminal device.
In the above-described embodiment, there is provided a kind of method for recovering terminal default setting, corresponding, the applicationA kind of device for recovering terminal default setting is also provided.Refer to Fig. 4 its for the application a kind of recovery terminal default settingDevice embodiment schematic diagram.Since device embodiment is substantially similar to embodiment of the method, so describe fairly simple, correlationPlace illustrates referring to the part of embodiment of the method.Device embodiment described below is only schematical.
A kind of device of the recovery terminal default setting of the present embodiment, including:
Selection instruction receiving unit 401, for being used for from the end classified according to preset condition for reception inputHold the selection instruction of selection recovery content in setting option and user data;
File deletes unit 402, for according to the recovery content that the selection instruction selects from being stored with inhomogeneity respectivelyThe different configuration files of other terminal setting option configure accordingly with deletion in the data file of the user data is stored withFile and/or the data file;
Default value recovery unit 403, it is according to being stored with if being the terminal setting option for the recovery contentRecover the default value of the terminal setting option in content described in the backup file access pattern of the default value of terminal setting option.
Preferably, the recovery content is a kind of or more Terminal Type setting options and/or the user data.
Preferably, further include:
Instruction of restarting receiving unit, for receiving the instruction of restarting of input;
Restarting terminal device unit, for restarting terminal device.
A kind of storage method of the terminal data provided above the application, the method and device for recovering terminal default settingEmbodiment be described in detail, specific case used herein explains the principle and embodiment of the applicationState, the explanation of above example is only intended to help to understand the present processes and its core concept;Meanwhile for this areaThose skilled in the art, according to the thought of the application, in specific embodiments and applications there will be changes.To sum up instituteState, this specification content should not be construed as the limitation to the application.