CN106445745A - Terminal device and method for recovering factory settings - Google Patents

Terminal device and method for recovering factory settings Download PDF

Info

Publication number
CN106445745A
CN106445745A CN201610878930.6A CN201610878930A CN106445745A CN 106445745 A CN106445745 A CN 106445745A CN 201610878930 A CN201610878930 A CN 201610878930A CN 106445745 A CN106445745 A CN 106445745A
Authority
CN
China
Prior art keywords
default value
selective recovery
user
recovery default
terminal unit
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
CN201610878930.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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610878930.6A priority Critical patent/CN106445745A/en
Publication of CN106445745A publication Critical patent/CN106445745A/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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a terminal device and a method for recovering factory settings thereof; the method for recovering factory settings of the terminal device includes steps of monitoring broadcasting information of selectively recovering factory settings; when the broadcasting information of selectively recovering factory settings is monitored, obtaining user reserve data from a system configuration file, and storing to a buffer zone; through using the selective recovering factory settings service predefined in the system service, visiting the user data in a user data subzone, and executing the selective recovery of factory settings of the terminal device on the user data visited according to the user reserve data in the buffer zone. The terminal device and the method for recovering factory settings thereof can realize the selective recovery of factory settings when the terminal device is under the encrypting state.

Description

Terminal unit and its method for factory reset
Technical field
The present invention relates to field of terminal equipment, the more particularly to a kind of method of terminal unit and its factory reset.
Background technology
During the use of terminal unit, user can install some applications according to the demand of oneself.Fortune with application OK, corresponding application data will be produced in terminal unit, and the memory space of occupied terminal equipment.Storage due to terminal unit Space is limited, and as the use time of terminal unit increases, the user data in memory space (is for example applied and corresponding Application data) be consequently increased, the operation for causing to apply is become not smooth, or even interim card occurs.
For this purpose, factory reset function in terminal unit, is generally additionally arranged, by the overall thing to user data subregion Reason formats the removing for realizing user data, and then it is not smooth to efficiently solve the operation for causing to apply because of limited storage space Or even the problem of interim card.
But, existing factory reset function not only cleans up interim user data, also while cleaning up Useful user data (such as media data, account, password, contact person etc.), and cause poor user experience.
In order to further solve the above problems, selective recovery Default Value function is also additionally arranged in terminal unit, i.e., Selection according to user is conducted interviews to the user data in user data subregion and selective clearing.
With the upgrading of android system, in terminal unit, introduce encryption function, i.e., user data subregion is carried out plus Close, the privacy of user is thereby protected, increases the safety of user's using terminal equipment.However, in terminal unit in encryption shape The access failure of user data in user data subregion during state, can be caused, and causes the mistake of selective recovery Default Value function Effect.
Therefore, when terminal unit is in encrypted state, how to realize selective recovery Default Value is urgently to solve now Problem certainly.
Content of the invention
Based on this, it is an object of the present invention to provide a kind of method of terminal unit factory reset, for solving The problem of selective recovery Default Value cannot be realized when certainly terminal unit is in encrypted state in prior art.
Additionally, further object is that a kind of terminal unit of offer, sets for solving terminal in prior art Standby in encrypted state when cannot realize the problem of selective recovery Default Value.
In order to solve above-mentioned technical problem, the technical solution adopted in the present invention includes:
A kind of method of terminal unit factory reset, including:Monitor selective recovery Default Value broadcast;? When listening to selective recovery Default Value broadcast, obtain user's retention data in the CONFIG.SYS, and store to Relief area;Predefined selective recovery Default Value service in being serviced by calling system, to the use in user data subregion User data conducts interviews, and executes terminal unit according to the user's retention data in the relief area to the user data having access to Selective recovery Default Value.
A kind of terminal unit, including:Message monitoring unit, for monitoring selective recovery Default Value broadcast;Number According to memory element, for when selective recovery Default Value broadcast is listened to, obtaining user in CONFIG.SYS Retention data, and store to relief area;Service call unit, for predefined selective recovery in being serviced by calling system Default Value is serviced, and the user data in user data subregion is conducted interviews, and is retained according to the user in the relief area Data execute the selective recovery Default Value of terminal unit to the user data having access to.
Compared with prior art, the invention has the advantages that:
Predefined selective recovery Default Value service in being serviced by calling system, to the use in user data subregion User data conducts interviews, and executes the choosing of terminal unit to the user data having access to according to the user's retention data in relief area The factory reset of selecting property.
Due to predefined selective recovery Default Value service call be based on android system application layer realize , therefore, even if terminal unit is in encrypted state, application layer can also pass through vold process automatically to user data subregion Carry out carry, and then access indirectly the user data in the user data subregion of encryption, so as to realize terminal unit in plus Selective recovery Default Value during close state, it is to avoid in prior art terminal unit in encrypted state when, user data User data in subregion cannot be accessed and cause the problem of selective recovery Default Value disabler.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The present invention can be limited.
Description of the drawings
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement for meeting the present invention Example, and be used for together explaining the principle of the present invention in description.
Fig. 1 is a kind of block diagram of the terminal unit according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for the terminal unit factory reset according to an exemplary embodiment;
Fig. 3 is the flow process of the method for another kind of terminal unit factory reset according to an exemplary embodiment Figure;
Fig. 4 is the flow process of the method for another kind of terminal unit factory reset according to an exemplary embodiment Figure;
Fig. 5 be Fig. 2 correspond to embodiment in step 250 one embodiment flow chart;
Fig. 6 is the flow process of the method for another kind of terminal unit factory reset according to an exemplary embodiment Figure;
Fig. 7 be in application scenarios a kind of method of terminal unit factory reset implement schematic diagram;
Fig. 8 is a kind of block diagram of the terminal unit according to an exemplary embodiment;
Fig. 9 is the block diagram of another kind of terminal unit according to an exemplary embodiment;
Figure 10 is the block diagram of another kind of terminal unit according to an exemplary embodiment;
Figure 11 be Fig. 8 correspond to embodiment in service call unit one embodiment block diagram;
Figure 12 is the block diagram of another kind of terminal unit according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the present invention, will hereinafter be described in more detail, these accompanying drawings It is not intended to limit the scope of present inventive concept by any mode with word description, but by reference to specific embodiment is Those skilled in the art illustrate idea of the invention.
Specific embodiment
Here in detail explanation will be executed to exemplary embodiment, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some that described in detail in claims, the present invention.
As it was previously stated, in order to improve Consumer's Experience, it is to avoid terminal unit is removed all when limited memory space is cleared up User data, and cause the loss of some useful user data (such as media data, account, password, contact person etc.), Selective recovery Default Value function is additionally arranged in terminal unit.
Existing selective recovery Default Value function generally includes two kinds:
The first, arrange multiple user data subregions, for example, user data for user data when terminal unit dispatches from the factory Subregion 1 is used for storing picture, video, music, the document that downloads etc. user data, and user data subregion 2 is then used for storing using The user data such as the application that family is installed and application data that application is accordingly produced when running.Selective recovery Default Value is Certain user data subregion is carried out totally Physical Formatting, for example, user selects to remove application and corresponding application data, Then terminal unit only executes factory reset to user data subregion 2.
Second, all of user data all shares same user data subregion, and user is selected to protect by terminal unit The user's retention data that stays is stored to relief area (cache), when selective recovery Default Value is executed according to user's encumbrance According to the user data for removing the non-selected reservation of user.
No matter which kind of mode above-mentioned, terminal unit is required for entering recovery when selective recovery Default Value is executed (reset) pattern is to pass through access of the carry user data subregion realization to user data under recovery pattern and then complete The selective clearing of paired user data.
However, when terminal unit is in encrypted state, cannot carry user data subregion under recovery pattern so that User data cannot be accessed, and then cause selective recovery Default Value disabler.
Therefore, in order to realize selective recovery Default Value when terminal unit is in encrypted state, spy proposes one kind The method of terminal unit factory reset.The method runs on terminal unit, and for example, the terminal unit can be intelligent handss Machine, can also be that other are mounted with the electronic equipment of android system and similar equipment.
Refer to a kind of block diagram of terminal unit that Fig. 1, Fig. 1 are according to an exemplary embodiment.Need explanation It is that the terminal unit 100 is an example for adapting to the present invention, and for example, the terminal unit 100 can be smart mobile phone, Can also be that other are mounted with the electronic equipment of android system, and must not believe that the terminal unit 100 is there is provided to this Any restriction of bright range.The terminal unit 100 can not be construed to need to rely on or must be with showing in Fig. 1 One or more part in the exemplary terminal unit 100 for going out.
As shown in figure 1, terminal unit 100 includes memorizer 101, storage control 103, one or more (in figure is only shown Go out one) processor 105, Peripheral Interface 107, radio-frequency module 109, locating module 111, photographing module 113, audio-frequency module 115, Touch Screen 117 and key-press module 119.These components are mutually communicated by one or more communication bus/holding wire 121.
It is appreciated that structure shown in Fig. 1 is only illustrate, terminal unit 100 may also include more more than shown in Fig. 1 or more Few component, or with the component different from shown in Fig. 1.Each component shown in Fig. 1 can adopt hardware, software or its Combine to realize.
Wherein, memorizer 101 can be used to store software program and module, the such as terminal in exemplary embodiment of the present The corresponding programmed instruction of the method and device of equipment factory reset and module, processor 105 is stored in storage by operation Programmed instruction in device 101, so as to execute various functions and data processing, that is, realizes above-mentioned terminal unit factory reset Method.
The carrier that memorizer 101 is stored as resource, can be random storage medium, such as high speed random access memory, non- Volatile memory, such as one or more magnetic storage devices, flash memory or other solid-state memories.Storage mode can be Of short duration storage or permanently store.
Peripheral Interface 107 can include at least one wired or wireless network interface, an at least connection in series-parallel translation interface, at least One input/output interface and at least USB interface etc., for being coupled to memorizer by outside various input/output devices 101 and processor 105, to realize the communication with outside various input/output devices.
Radio-frequency module 109 is used for transceiving electromagnetic ripple, realizes the mutual conversion of electromagnetic wave and the signal of telecommunication, so as to pass through communication network Network is communicated with other equipment.Communication network includes cellular telephone networks, WLAN or Metropolitan Area Network (MAN), above-mentioned communication network Network can use various communication standards, agreement and technology.
Locating module 111 is used for obtaining the geographical position being currently located of terminal unit 100.The example of locating module 111 Including but not limited to GPS (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 113 is under the jurisdiction of photographic head, for shooting picture or video.The picture of shooting or video can be deposited Store up to memorizer 101, can also be sent to host computer by radio-frequency module 109.
Audio-frequency module 115 provides a user with audio interface, and which may include one or more microphone interfaces, one or more Speaker interface and one or more earphone interfaces.Interacting for voice data is carried out with miscellaneous equipment by audio interface.Sound Frequency can also be sent by radio-frequency module 109 according to storing to memorizer 101.
Touch Screen 117 provides an operation interface between terminal unit 100 and user.Specifically, user can pass through The operation interface carries out input operation, for example, the gesture operation such as click on, touch, sliding, so that the input behaviour of terminal unit 100 pairs Responded.In by terminal unit 100 output then formed by any one form of word, picture or video or combination Hold and output is displayed to the user that by Touch Screen 117.
Key-press module 119 includes at least one button, in order to provide the interface is input into by user to terminal unit 100, User can make terminal unit 100 execute different functions by pressing different buttons.For example, sound regulating key is available for using The regulation to the wave volume that terminal unit 100 is played is realized at family.
Additionally, also can equally realize the present invention by hardware circuit or hardware circuit with reference to software instruction, therefore, realize The present invention is not limited to any specific hardware circuit, software and a combination of both.
Fig. 2 is referred to, in one exemplary embodiment, a kind of method of terminal unit factory reset is applied to Fig. 1 The terminal unit 100 of shown implementation environment, the method for this kind of terminal unit factory reset can be held by terminal unit 100 OK, may comprise steps of:
Step 210, monitors selective recovery Default Value broadcast.
Selective recovery Default Value broadcast be for notifying terminal user to need to carry out selective recovery to go out Factory is arranged.Based on this, terminal unit, will in order to be known when user needs to carry out selective recovery Default Value in time Selective recovery Default Value broadcast is monitored.
Further, when user has carried out the selection behaviour of selective recovery Default Value in the operation interface of terminal unit When making, selective recovery Default Value broadcast is generated and is broadcasted, and then it is extensive to cause terminal unit to listen to the selectivity Multiple Default Value broadcast.
Step 230, when selective recovery Default Value broadcast is listened to, obtains user in CONFIG.SYS Retention data, and store to relief area.
When selective recovery Default Value broadcast is listened to, terminal unit has known that user needs to be selected Property factory reset.
So-called selective recovery Default Value refers to not carry out user data subregion entirely in factory reset Disk is Physical Formatting, and only the user data of the non-selected reservation of user is purged.Therefore, dispatch from the factory carrying out selective recovery Before setting, need to carry out the acquisition of user's retention data, to know that user selects the user for retaining by user's retention data Which data have.
CONFIG.SYS is generated when user carries out the selection operation of selective recovery Default Value, is wherein preserved The content related to the selection operation carried out by user, i.e. user's retention data.
For example, represent the selective listing for being available for user's selection in operation interface, the selective listing includes media number According to the option such as, account and password, contact person, application and corresponding application data, if user have selected contact people option, generate CONFIG.SYS in preserve user's retention data be contact people option.
Thus, user's retention data will be obtained by CONFIG.SYS.After user's retention data is obtained, you can will User's retention data is stored to relief area, in order to carry out follow-up selective recovery Default Value.
Step 250, in being serviced by calling system, predefined selective recovery Default Value service, divides to user data User data in area conducts interviews, and executes terminal according to the user's retention data in relief area to the user data having access to The selective recovery Default Value of equipment.
Predefined selective recovery Default Value service is available for application layer and calls, in order to execute according to user's retention data The selective recovery Default Value of terminal unit.
After storing user's retention data in the buffer, you can carry out the predefined selective recovery Default Value Serviced calls, to realize the selective recovery Default Value of terminal unit.
Specifically, no matter whether terminal unit is in encrypted state, by vold process automatically carry user data Subregion, realizes the access to the user data in user data subregion.After user data is had access to, you can according to relief area In user's retention data carry out selective clearing to the user data having access to, that is, retain the use involved by user's retention data User data, removes the user data of the non-selected reservation of user.
By process as above, it is achieved that the selective recovery Default Value of terminal unit in application layer, i.e., at end End in encrypted state when, by vold process automatically carry encryption user data subregion, and then indirectly to encryption The access of user data in user data subregion, extensive with the selectivity that this user data that realizes to having access to executes terminal unit Multiple Default Value, it is to avoid in prior art terminal unit in encrypted state when, the user data in user data subregion is no Method is accessed and causes the problem of selective recovery Default Value disabler.
On the other hand, due to having carried out the predefined of selective recovery Default Value service, the selection not only can be defined Property factory reset service need execute function, and can be the selective recovery Default Value service definition rank relatively High execution authority, thus avoid terminal unit in prior art carries out also needing to exploitation during selective recovery Default Value respectively Plant and execute authority and cause the affected problem of security of system.This can not only reduce because lack corresponding execution authority and User data is caused to remove the probability of failure, while the user data for also reducing the more privacy such as user account, password is stolen The risk for taking, it is ensured that the safety of user's using terminal equipment.
Fig. 3 is referred to, in one exemplary embodiment, before step 210, method as above can also include following Step:
Step 310, intercepts and obtains triggering the selective recovery Default Value instruction for generating.
Selective recovery Default Value entrance will be set up for selective recovery Default Value function in terminal unit, if user Need terminal unit that selective recovery Default Value is carried out, will be clicked in the selective recovery Default Value entrance accordingly Operation.
After the clicking operation that user is completed in the selective recovery Default Value entrance, generate in terminal unit Corresponding selective recovery Default Value instruction, and then terminal unit is intercepted obtain the selective recovery Default Value and refer to Order.
Certainly, in other embodiments, existing factory reset entrance can also be utilized in terminal unit, to carry out What the factory reset that triggering is generated was instructed intercepts.Intercept obtain the factory reset instruction when, by operation circle Show in face that selective listing carries out the acquisition of user's retention data.If user's retention data is got, selectivity is subsequently carried out Factory reset, if not getting user's retention data, subsequently carries out factory reset.
Step 330, obtains, according to the instruction of selective recovery Default Value, user's retention data that triggering is generated.
After terminal unit is intercepted and obtains the instruction of selective recovery Default Value, further will open up in the operation interface Existing selective listing, so that user selects which the user data for retaining required for which has.
For example, the selective listing in operation interface includes media data, account and password, contact person, applies and corresponding The data options such as application data, user is completed selective recovery and goes out by clicking on the contact people option in the option list The selection operation that factory is arranged.
After user completes the selection operation of selective recovery Default Value, terminal unit is obtained to be entered with user Content, i.e. user's retention data of the selection operation correlation of row.In other words, user's retention data is the choosing for being carried out by user Select what operation triggering was generated, what which represented is only the data options related to user data, for example, user's retention data is contact People option.
Step 350, user's retention data is stored in CONFIG.SYS, generates and broadcast selective recovery and dispatch from the factory setting Put broadcast.
After user's retention data is obtained, you can in preserving user's retention data to CONFIG.SYS.More preferably, The storage format of CONFIG.SYS is json, improves the storage efficiency of user's retention data with this.
When user's retention data is preserved, selective recovery Default Value broadcast is will additionally generate, and then by broadcast The selective recovery Default Value broadcast so that terminal unit is by monitoring the selective recovery Default Value broadcast Know that user needs to carry out selective recovery Default Value.
Fig. 4 is referred to, in one exemplary embodiment, before step 250, method as above can also include following Step:
Step 410, before the shutdown process that terminal unit is entered executes the unloading of user data subregion, in parsing relief area Identify with the presence or absence of selective recovery Default Value.
Selective recovery Default Value will be carried out in shutdown process, and terminal can be entered by calling the interface of restarting of itself Enter shutdown process, the power-off operation that can also be triggered by responding user enters shutdown process.
For example, terminal unit will be made by calling the interface of restarting of itself before selective recovery Default Value is carried out Obtain terminal unit and enter shutdown process.
Specifically, restart interface to be called, corresponding reset command in terminal unit, can be got, and then by response Reset command is executed restarts.
It should be appreciated that restart including shutdown process and starting up's flow process, based on this, after response reset command, whole End equipment initially enters shutdown process.
Further, as selective recovery Default Value needs to visit the user data in user data subregion Ask, therefore, after shutdown process is entered, selective recovery Default Value will be carried out before the unloading of user data subregion, with Avoid because terminal unit can not find user data subregion and cause the failure of user data selective clearing.
Further, before the unloading of user data subregion is executed, whether terminal unit will be to carrying out selective recovery Default Value makees to judge, when avoiding user from carrying out selective recovery Default Value with this, terminal unit has carried out unnecessary Process.
Wherein, selective recovery Default Value mark is generated when user's retention data is stored to relief area.Change and Yan Zhi, selective recovery Default Value mark is generated when terminal unit listens to selective recovery Default Value broadcast , which may be used to represent that user needs to carry out selective recovery Default Value.
Therefore, whether terminal unit is to carrying out the judgement of selective recovery Default Value by whether depositing in parsing relief area Realize in selective recovery Default Value mark.
If there is selective recovery Default Value mark in relief area, step 250 is entered so that terminal unit is by adjusting Selective recovery Default Value with predefined selective recovery Default Value service execution terminal unit in system service.
If conversely, there is no selective recovery Default Value mark in relief area, terminal unit executes existing shutdown Flow process and starting up's flow process.
By process as above, it is achieved that the selective recovery Default Value in shutdown process, it is to avoid transport The application of row causes the problem of application crashes because its corresponding user data is eliminated, and effectively further improves user's Experience.
On the other hand, before selective recovery Default Value is carried out, selective recovery Default Value mark is carried out first Parsing, avoid terminal unit from carrying out unnecessary process with this, so as to be effectively improved the treatment effeciency of terminal unit.
Fig. 5 is referred to, in one exemplary embodiment, step 250 may comprise steps of:
Step 251, is serviced by selective recovery Default Value is obtained in system service.
As it was previously stated, terminal unit needs to predefine in calling system service to carry out selective recovery Default Value Selective recovery Default Value service.
Therefore, before the calling of selective recovery Default Value service is carried out, terminal unit will be by entering in system service The acquisition of row selective recovery Default Value service.
Step 253, calls the retention data Processing Interface in the service of selective recovery Default Value, is parsed by relief area Go out user's retention data, and the user's retention data to parsing carries out process formation script file of classifying.
After the service of selective recovery Default Value is got, will be by calling in the service of selective recovery Default Value Predefined interface executes the selective recovery Default Value of terminal unit.
As user's retention data is the content related to the selection operation carried out by user, which is based primarily upon mankind's language Speech, to be convenient to user's understanding, and terminal unit needs to make which be based on machine language in order to which is used, to be convenient to Terminal unit is executed.
For this purpose, predefined interface includes retention data Processing Interface, the retention data Processing Interface is in order to buffering User's retention data in area is parsed and classification is processed, so that the user after terminal unit can better profit from processing protects Residual is according to execution selective recovery Default Value.
Further, after user's retention data completes to parse and classification is processed, terminal unit will be also made after process User's retention data dynamic formation script file, for example, terminal unit can call existing Linux command to carry out script file Dynamic generation, with the speed of this accelerating selection factory reset, shorten the time of selective recovery Default Value, so as to The treatment effeciency of terminal unit is further improved.
Step 255, is input into using script file as interface, calls the selectivity in the service of selective recovery Default Value extensive Multiple Default Value interface carries out selective clearing to the user data in user data subregion.
Further, predefined interface also includes selective recovery Default Value interface, and the selective recovery goes out Factory arranges interface in order to execute selective recovery Default Value.
Specifically, after according to the user's retention data dynamic formation script file after process, will be with the script file It is input into as interface, and selective clearing is carried out to the user data in user data subregion according to the script file of input, Retain the user data in script file involved by user's retention data, remaining user data is removed, terminal is completed with this and is set Standby selective recovery Default Value.
By process as above, when terminal unit is in encrypted state, the user data that encrypts can not only be divided User data in area conducts interviews, and without the need for executing authority accordingly according to the user data exploitation that removes, both ensure that Security of system, it is ensured that terminal unit executes the success rate of selective recovery Default Value.
Fig. 6 is referred to, in one exemplary embodiment, before step 251, method as above can also include following Step:
Step 510, retention data Processing Interface and selective recovery Default Value interface defined in interface statement.
Step 530, goes out according to retention data Processing Interface and selective recovery Default Value interface definition selective recovery Factory arranges service.
As it was previously stated, terminal unit needs selectivity in calling system service to carry out selective recovery Default Value Factory reset is serviced.
The selective recovery Default Value service is to execute the service of selective recovery Default Value in order to terminal unit, can To understand, before this, selective recovery Default Value service is not there are in system service, needs to be defined which, can Call for application layer.
Selective recovery Default Value function includes two parts:A part is to obtain user's retention data, so that terminal sets Which the standby user data for knowing that user's needs retain has;Another part is the choosing for executing user data according to user's retention data Selecting property is removed, and then completes selective recovery Default Value.
Based on this, in interface statement, retention data Processing Interface and selective recovery Default Value interface is carried out respectively Definition, with by enabling two interfaces to be called the definition of two interfaces, and then realizes selective recovery and dispatches from the factory Function is set.
After interface definition is completed, you can carry out selective recovery Default Value service by two interfaces for defining Definition so that by calling selective recovery Default Value service, that is, complete in selective recovery Default Value service The calling of above-mentioned two interface.
Step 550, selective recovery Default Value service is added to system service.
After selective recovery Default Value service completes definition, you can add it in system service, so that eventually End equipment can be by getting the selective recovery Default Value service, and then by calling the selective recovery in system service Selective recovery Default Value function is realized in Default Value service.
By process as above, it is achieved that it is predefined that selective recovery Default Value is serviced, not only so that selecting Property factory reset can be realized based on application layer, with this avoid terminal unit in encrypted state when recovery pattern Down cannot carry user data subregion problem, and enable the selective recovery Default Value service that higher level is set Execution authority, avoided with this also need to when terminal unit carries out selective recovery Default Value to develop various execution authorities and Cause the affected problem of security of system.
Fig. 7 is a kind of flow chart of the method for terminal unit factory reset in application scenarios.
As shown in fig. 7, user passes through execution step 601, confirm selective recovery Default Value is executed, select which to need to protect The user data for staying so that terminal unit gets corresponding user's retention data.
Terminal unit passes through execution step 602, preserves user's retention data in CONFIG.SYS, while generating and wide Broadcast selective recovery Default Value broadcast so that terminal unit passes through execution step 603, listens to the selective recovery and goes out Factory arranges broadcast, and then causes terminal unit to pass through execution step 604, and selective recovery Default Value is identified and user Retention data is stored respectively to relief area.
After the storage for completing relief area, terminal unit passes through execution step 605, restarts interface acquisition weight by calling Order is opened, and by responding reset command to enter shutdown process.
Before shutdown process executes the unloading of user data subregion, terminal unit passes through execution step 606, judges relief area In with the presence or absence of selective recovery Default Value identify, if not existing, enter step 607 so that terminal unit is directly executed Restart.
If conversely, existing, step 608 is entered, the service of selective recovery Default Value is obtained, and passes through execution step 609, call predefined interface in the service of selective recovery Default Value to execute the choosing of the user data in user data subregion Selecting property is removed, and completes selective recovery Default Value function with this.
After selective recovery Default Value function is completed, terminal unit is executed by execution step 610 restarts.
In embodiments of the present invention, in being serviced by calling system, predefined selective recovery Default Value service, right User data in user data subregion conducts interviews, and according to the user's retention data in relief area to the number of users that has access to According to the selective recovery Default Value for executing terminal unit.
By process as above, when terminal unit is in encrypted state, the user data that encrypts can not only be divided User data in area conducts interviews, it is achieved that terminal unit is in selective recovery Default Value function during encrypted state, And without the need for authority being executed according to the user data exploitation removed is corresponding, both ensure that security of system, it is ensured that terminal Equipment executes the success rate of selective recovery Default Value.
On the other hand, selective recovery Default Value function being realized in shutdown process, also transports while avoiding The application of row causes the problem of application crashes because corresponding application data is eliminated, and effectively further improves user with this Experience.
Following for apparatus of the present invention embodiment, can be used for executing terminal unit factory reset involved in the present invention Method.For the details not disclosed in apparatus of the present invention embodiment, refer to terminal unit involved in the present invention and recover The embodiment of the method that factory is arranged.
Fig. 8 is referred to, in one exemplary embodiment, a kind of terminal unit 700 is included but is not limited to:Message monitoring unit 710th, data storage cell 730 and service call unit 750.
Wherein, message monitoring unit 710 is used for monitoring selective recovery Default Value broadcast.
Data storage cell 730 is used for when selective recovery Default Value broadcast is listened to, in system configuration text User's retention data is obtained in part, and is stored to relief area.
Service call unit 750 be used for serviced by calling system in predefined selective recovery Default Value service, User data in user data subregion is conducted interviews, and according to the user's retention data in relief area to the user that has access to Data execute the selective recovery Default Value of terminal unit.
Fig. 9 is referred to, in one exemplary embodiment, terminal unit as above 700 is also included but is not limited to:Instruction Intercept unit 810, data capture unit 830 and message generation unit 850.
Wherein, instruction is intercepted unit 810 and is obtained triggering the selective recovery Default Value for generating instruction for intercepting.
Data capture unit 830 is used for obtaining, according to the instruction of selective recovery Default Value, user's encumbrance that triggering is generated According to.
Message generation unit 850 is used for user's retention data to be stored in CONFIG.SYS, generates and broadcast selection Property factory reset broadcast.
Figure 10 is referred to, in one exemplary embodiment, terminal unit as above 700 is also included but is not limited to:Mark Know resolution unit 910.
Wherein, the shutdown process that identification (RNC-ID) analytic unit 910 is used for entering in terminal unit executes the unloading of user data subregion Before, identify with the presence or absence of selective recovery Default Value in parsing relief area.Selective recovery Default Value mark be with Family retention data is generated when storing to relief area.
If it has, then notifying service call unit 750.
Figure 11 is referred to, in one exemplary embodiment, service call unit 750 is included but is not limited to:Service acquisition mould Block 751, Processing Interface calling module 753 and reseting interface calling module 755.
Wherein, service acquisition module 751 is used for by acquisition selective recovery Default Value service in system service.
Processing Interface calling module 753 is used for calling the retention data process in selective recovery Default Value service to connect Mouthful, by parsing user's retention data in relief area, and the process that carries out classifying of the user's retention data to parsing forms script File.
Reseting interface calling module 755 is input into using script file as interface, calls selective recovery Default Value service In selective recovery Default Value interface selective clearing is carried out to the user data in user data subregion.
Figure 12 is referred to, in one exemplary embodiment, terminal unit as above 700 is also included but is not limited to:Connect Mouth definition unit 1010, service definition unit 1030 and service adding device 1050.
Wherein, interface definition unit 1010 is used for retention data Processing Interface and selective recovery defined in interface statement Default Value interface.
Service definition unit 1030 is used for according to retention data Processing Interface and selective recovery Default Value interface definition Selective recovery Default Value is serviced.
Service adding device 1050 is used for adding selective recovery Default Value service to system service.
It should be noted that the terminal unit provided by above-described embodiment is when selective recovery Default Value is executed, only Be illustrated with the division of above-mentioned each functional module, in practical application, can as desired by above-mentioned functions distribution by Different functional modules are completed, i.e., the internal structure of terminal unit will be divided into different functional modules, to complete above description All or part of function.
In addition, the terminal unit provided by above-described embodiment is belonged to the embodiment of the method for terminal unit factory reset Same design, wherein modules execute the concrete mode of operation and have been described in detail in embodiment of the method, herein Repeat no more.
The preferable examples embodiment of the above, the only present invention, is not intended to limit embodiment of the present invention, this Field those of ordinary skill can be very easily carried out corresponding flexible or repair according to central scope and the spirit of the present invention Change, therefore protection scope of the present invention should be defined by the protection domain required by claims.

Claims (10)

1. a kind of method of terminal unit factory reset, it is characterised in that include:
Monitor selective recovery Default Value broadcast;
When selective recovery Default Value broadcast is listened to, user's retention data is obtained in CONFIG.SYS, and Store to relief area;
Predefined selective recovery Default Value service in being serviced by calling system, to the number of users in user data subregion According to conducting interviews, and execute the choosing of terminal unit to the user data having access to according to the user's retention data in the relief area The factory reset of selecting property.
2. the method for claim 1, it is characterised in that the step of the monitoring selective recovery Default Value broadcast Before rapid, methods described also includes:
Intercept and obtain triggering the selective recovery Default Value instruction for generating;
User's retention data that triggering is generated is obtained according to selective recovery Default Value instruction;
User's retention data is stored in the CONFIG.SYS, generates and broadcast the selective recovery and dispatch from the factory setting Put broadcast.
3. the method for claim 1, it is characterised in that in the calling system service, predefined selective recovery goes out Factory arranges service, executes the step of the selective recovery Default Value of terminal unit according to the user's retention data in the relief area Before rapid, methods described also includes:
Before the shutdown process that the terminal unit is entered executes the unloading of user data subregion, whether parse in the relief area There is selective recovery Default Value mark, the selective recovery Default Value mark is stored in user's retention data Generate during to the relief area;
If it has, then predefined selective recovery Default Value service in calling system service is entered, according to the relief area In user's retention data execute terminal unit selective recovery Default Value the step of.
4. the method for claim 1, it is characterised in that in the calling system service, predefined selective recovery goes out Factory arranges service, executes the step of the selective recovery Default Value of terminal unit according to the user's retention data in the relief area Suddenly include:
Serviced by selective recovery Default Value is obtained in the system service;
The retention data Processing Interface in selective recovery Default Value service is called, by institute being parsed in the relief area User's retention data is stated, and the user's retention data to parsing carries out process formation script file of classifying;
It is input into as interface using the script file, calls the selective recovery in the selective recovery Default Value service to go out Factory arranges interface and carries out selective clearing to the user data in the user data subregion.
5. method as claimed in claim 4, it is characterised in that described dispatched from the factory by obtaining selective recovery in the system service Before the step of arranging service, methods described also includes:
The retention data Processing Interface and selective recovery Default Value interface defined in interface statement;
Dispatch from the factory and set according to the retention data Processing Interface and selective recovery described in selective recovery Default Value interface definition The service of putting;
The selective recovery Default Value service is added to the system service.
6. a kind of terminal unit, it is characterised in that include:
Message monitoring unit, for monitoring selective recovery Default Value broadcast;
Data storage cell, for when selective recovery Default Value broadcast is listened to, obtaining in CONFIG.SYS Family retention data is taken, and is stored to relief area;
Service call unit, for predefined selective recovery Default Value service in being serviced by calling system, to user User data in data partition conducts interviews, and according to the user's retention data in the relief area to the number of users that has access to According to the selective recovery Default Value for executing terminal unit.
7. terminal unit as claimed in claim 6, it is characterised in that the terminal unit also includes:
Unit is intercepted in instruction, is obtained triggering the selective recovery Default Value for generating instruction for intercepting;
Data capture unit, for obtaining, according to selective recovery Default Value instruction, user's encumbrance that triggering is generated According to;
Message radio unit, for user's retention data is stored in the CONFIG.SYS, generates and broadcasts institute State selective recovery Default Value broadcast.
8. terminal unit as claimed in claim 6, it is characterised in that the terminal unit also includes:
Identification (RNC-ID) analytic unit, for, before the shutdown process that the terminal unit is entered executes the unloading of user data subregion, solving Analyse in the relief area and identify with the presence or absence of selective recovery Default Value, selective recovery Default Value mark be in institute State and generate when user's retention data is stored to the relief area;
If it has, then notifying the service call unit.
9. terminal unit as claimed in claim 6, it is characterised in that the service call unit includes:
Service acquisition module, for by acquisition selective recovery Default Value service in the system service;
Processing Interface calling module, for calling the retention data Processing Interface in selective recovery Default Value service, By user's retention data is parsed in the relief area, and classification process is carried out to the user's retention data for parsing Form script file;
Reseting interface calling module, is input into using the script file as interface, calls the selective recovery Default Value to take Selective recovery Default Value interface in business carries out selective clearing to the user data in the user data subregion.
10. terminal unit as claimed in claim 9, it is characterised in that the terminal unit also includes:
Interface definition unit, for the retention data Processing Interface and selective recovery Default Value defined in stating in interface Interface;
Service definition unit, for according to the retention data Processing Interface and selective recovery Default Value interface definition Selective recovery Default Value is serviced;
Service adding device, for adding the selective recovery Default Value service to the system service.
CN201610878930.6A 2016-10-09 2016-10-09 Terminal device and method for recovering factory settings Pending CN106445745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610878930.6A CN106445745A (en) 2016-10-09 2016-10-09 Terminal device and method for recovering factory settings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610878930.6A CN106445745A (en) 2016-10-09 2016-10-09 Terminal device and method for recovering factory settings

Publications (1)

Publication Number Publication Date
CN106445745A true CN106445745A (en) 2017-02-22

Family

ID=58172095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610878930.6A Pending CN106445745A (en) 2016-10-09 2016-10-09 Terminal device and method for recovering factory settings

Country Status (1)

Country Link
CN (1) CN106445745A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273135A (en) * 2017-06-26 2017-10-20 福州汇思博信息技术有限公司 Recover the method for terminal device Default Value
CN107704337A (en) * 2017-08-22 2018-02-16 北京珠穆朗玛移动通信有限公司 Method, mobile terminal and the device with store function of factory reset
CN108235101A (en) * 2017-12-28 2018-06-29 深圳Tcl数字技术有限公司 Smart television initial method, smart television and computer readable storage medium
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN109542676A (en) * 2018-10-26 2019-03-29 歌尔科技有限公司 Method, apparatus, equipment and the storage medium of factory reset
CN112035171A (en) * 2020-08-12 2020-12-04 中电科技(北京)有限公司 Factory setting restoration method and system based on UEFI firmware
CN112237051A (en) * 2018-06-05 2021-01-15 昕诺飞控股有限公司 System, method and device for enabling factory reset of luminaires
WO2021168677A1 (en) * 2020-02-26 2021-09-02 Arris Enterprises Llc Maintaining device settings of a wireless device after a factory default reset operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222527A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Method and system for protecting terminal key configuration
US20090225168A1 (en) * 2008-03-07 2009-09-10 Sony Corporation Recovery of service mode data corruption
CN102222027A (en) * 2011-06-20 2011-10-19 中兴通讯股份有限公司 Method and device for restoring factory settings of terminal
CN105718272A (en) * 2016-02-22 2016-06-29 青岛海信移动通信技术股份有限公司 Method for restoring factory settings of terminal and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222527A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Method and system for protecting terminal key configuration
US20090225168A1 (en) * 2008-03-07 2009-09-10 Sony Corporation Recovery of service mode data corruption
CN102222027A (en) * 2011-06-20 2011-10-19 中兴通讯股份有限公司 Method and device for restoring factory settings of terminal
CN105718272A (en) * 2016-02-22 2016-06-29 青岛海信移动通信技术股份有限公司 Method for restoring factory settings of terminal and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何泾沙: "《移动智能系统测试原理与实践》", 30 June 2016, 机械工业出版社 *
吴倩等: "《Android安全机制解析与应用实践》", 31 May 2013, 机械工业出版社 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273135A (en) * 2017-06-26 2017-10-20 福州汇思博信息技术有限公司 Recover the method for terminal device Default Value
CN107704337A (en) * 2017-08-22 2018-02-16 北京珠穆朗玛移动通信有限公司 Method, mobile terminal and the device with store function of factory reset
CN107704337B (en) * 2017-08-22 2020-08-25 北京珠穆朗玛移动通信有限公司 Factory setting restoring method, mobile terminal and device with storage function
CN108235101A (en) * 2017-12-28 2018-06-29 深圳Tcl数字技术有限公司 Smart television initial method, smart television and computer readable storage medium
CN108235101B (en) * 2017-12-28 2021-04-16 深圳Tcl数字技术有限公司 Smart television initialization method, smart television and computer readable storage medium
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN112237051A (en) * 2018-06-05 2021-01-15 昕诺飞控股有限公司 System, method and device for enabling factory reset of luminaires
CN112237051B (en) * 2018-06-05 2023-09-05 昕诺飞控股有限公司 System, method and apparatus for implementing factory reset of luminaires
CN109542676A (en) * 2018-10-26 2019-03-29 歌尔科技有限公司 Method, apparatus, equipment and the storage medium of factory reset
WO2021168677A1 (en) * 2020-02-26 2021-09-02 Arris Enterprises Llc Maintaining device settings of a wireless device after a factory default reset operation
CN112035171A (en) * 2020-08-12 2020-12-04 中电科技(北京)有限公司 Factory setting restoration method and system based on UEFI firmware
CN112035171B (en) * 2020-08-12 2023-10-03 昆仑太科(北京)技术股份有限公司 Factory setting restoration method and system based on UEFI firmware

Similar Documents

Publication Publication Date Title
CN106445745A (en) Terminal device and method for recovering factory settings
CN108124252A (en) A kind of method, terminal and computer readable storage medium for obtaining information
CN104883658B (en) The processing method of virtual card information and system
CN105100059A (en) Method, device and system for processing high-concurrent requests
CN105553963B (en) The control method and device of positioning service
CN104660821A (en) Method for controlling using duration of terminal as well as mobile terminal
CN105160530A (en) Mobile terminal and information processing method
CN104915119B (en) Terminal desktop icon method of adjustment and device
CN105611631A (en) Method and device for distributing radio-frequency resources of mobile phone
CN104902448B (en) Follow the trail of the method and system of mobile terminal
WO2018121649A1 (en) Incoming call management method and apparatus
CN104346560A (en) Security authentication method and security authentication device
CN106095464B (en) A kind of method and device of the seamless operation of application program
CN105099669A (en) Recording encryption and decryption method and device
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN103514075A (en) Method and device for monitoring API function calling in mobile terminal
CN106791123A (en) User terminal and application processing method
CN104020999A (en) Management method and system of application programs
CN106790942B (en) Voice messaging intelligence store method and device
CN106331055A (en) Identifier generation device and method
CN102124761B (en) System for maintaining the broadcasting information in usim unlock environment and method thereof
US20140109187A1 (en) Secure provisioning of commercial off-the-shelf (cots) devices
CN106126377A (en) The method and device of system start-up
CN107437994A (en) A kind of method and device of safe memory mobile terminal password
CN105549986B (en) Device and method are fast arranged in system service

Legal Events

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

Application publication date: 20170222