CN107273135B - Method for restoring factory settings of terminal equipment - Google Patents

Method for restoring factory settings of terminal equipment Download PDF

Info

Publication number
CN107273135B
CN107273135B CN201710493360.3A CN201710493360A CN107273135B CN 107273135 B CN107273135 B CN 107273135B CN 201710493360 A CN201710493360 A CN 201710493360A CN 107273135 B CN107273135 B CN 107273135B
Authority
CN
China
Prior art keywords
application
factory
terminal equipment
restoration
restoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710493360.3A
Other languages
Chinese (zh)
Other versions
CN107273135A (en
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.)
Fujian Huisibo Digital Technology Co ltd
Original Assignee
Fuzhou Huisibo Information 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 Fuzhou Huisibo Information Technology Co ltd filed Critical Fuzhou Huisibo Information Technology Co ltd
Priority to CN201710493360.3A priority Critical patent/CN107273135B/en
Publication of CN107273135A publication Critical patent/CN107273135A/en
Application granted granted Critical
Publication of CN107273135B publication Critical patent/CN107273135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for restoring factory settings of terminal equipment, which comprises the following steps: acquiring all applications installed on the terminal equipment; acquiring an application which is selected by a user and needs to be filtered; removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded; and unloading the application needing to be unloaded. The user can select the application needing to be filtered, so that when factory settings are restored, only the application which the user wants to clean is unloaded, the application which the user wants to keep is not cleaned, and the user only needs to simply select the application without knowing various parameters.

Description

Method for restoring factory settings of terminal equipment
Technical Field
The invention relates to the technical field of factory restoration, in particular to a method for restoring factory settings of terminal equipment.
Background
After a terminal device such as a mobile phone or a POS device is used for a period of time, so-called "junk files" are left in the system, and when a user wants to restore the settings of the terminal device to an original state, the user needs to restore factory settings to solve these problems. Restoring factory settings resets the settings of the terminal device and deletes all the "junk files".
The existing terminal equipment basically has a factory resetting function, but after the factory resetting is carried out, the terminal equipment is restored to the state just produced. In fact, usually, the user only wants to delete part of the applications and data, and for some important applications and data, such as daily necessary chat applications, address books, and the like, the user wants to keep. Therefore, the conventional factory reset method cannot meet the requirements of users.
Chinese patent publication No. CN 103377058A proposes a method for restoring factory settings of a terminal device, which includes: when a user selects factory restoration setting on terminal equipment or before factory restoration setting, determining parameters which are selected by the user on the terminal equipment and need factory restoration setting; and carrying out factory resetting operation on the parameters which are selected by the user and need to be reset.
However, in the method, the user needs to be very familiar with the parameters, and in practical applications, many users may not be interested in knowing how to configure the parameters specifically, and if the configuration is omitted, the excessive parameters are easy to cause the user to operate by mistake.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for restoring the factory setting of the terminal equipment is provided, and the user can restore the factory setting of the terminal equipment only by simply selecting the terminal equipment.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for restoring factory settings of terminal equipment comprises the following steps:
acquiring all applications installed on the terminal equipment;
acquiring an application which is selected by a user and needs to be filtered;
removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded;
and unloading the application needing to be unloaded.
The invention provides another technical scheme as follows:
a method for restoring factory settings of terminal equipment comprises the following steps:
acquiring all applications installed on the terminal equipment;
acquiring an application which is selected by a user and needs to be filtered;
removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded;
uninstalling the application needing to be uninstalled;
clearing data of an SD card and data of a cache partition which are arranged in the terminal equipment;
acquiring an application which needs to be pre-installed by a user;
and installing the application needing to be pre-installed.
The invention provides another technical scheme as follows:
a method for restoring factory settings of terminal equipment comprises the following steps:
selecting one of the methods for restoring the factory settings of the terminal equipment to restore the factory settings;
judging whether factory setting restoration is successful or not;
if not, recording the failure times of factory setting recovery;
restarting the terminal equipment to restore factory settings;
and if the failure times of factory setting recovery reach preset times, prompting recovery failure.
The invention has the beneficial effects that:
(1) for the first scheme, the user can select the application to be filtered, so that when factory settings are restored, only the application which the user wants to clean is unloaded, the application which the user wants to keep is not cleaned, and the user only needs to simply select the application without knowing various parameters, so that the method has the advantage of easiness in operation.
(2) For the second scheme, the user can select the application to be filtered and also can select the application to be preinstalled, and the application to be preinstalled is restored to the initial installation state, so that the data cleaning of the part of the application is completed, and the part of the application is reserved.
(3) For the third scheme, any operation of the user may change the environment of the system before factory setting recovery is performed, so that a situation that factory setting recovery fails may occur, but the present invention has a chance of retry for several times, for example, after the first recovery fails, the terminal device is restarted, the environment variable is reset to the initial state, and factory setting recovery is retried, so that the factory setting recovery success can be ensured to a great extent.
Drawings
Fig. 1 is a schematic flowchart of a method for restoring factory settings of a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for restoring factory settings of a terminal device according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for restoring factory settings of a terminal device according to a first embodiment of the present invention;
fig. 4 is a schematic flowchart of application uninstallation in a method for restoring factory settings of a terminal device according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for restoring factory settings of terminal devices according to a second embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for restoring factory settings of terminal devices according to a third embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for restoring factory settings of terminal devices according to a fourth embodiment of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: and acquiring the application needing to be filtered selected by the user, and removing the application needing to be filtered from all the applications to obtain the application needing to be unloaded. So that the user-selected application can be retained.
Referring to fig. 1, the present invention provides:
a method for restoring factory settings of terminal equipment comprises the following steps:
acquiring all applications installed on the terminal equipment;
acquiring an application which is selected by a user and needs to be filtered;
removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded;
and unloading the application needing to be unloaded.
Further, uninstalling the application to be uninstalled specifically includes:
unloading the application needing to be unloaded;
judging whether the application unloading is successful;
if not, recording the times of the application unloading failure;
restarting the terminal equipment;
continuously acquiring all the installed applications;
and if the times of the application unloading failure reach preset times, prompting the unloading failure.
As can be seen from the above description, by setting a number of retry opportunities, when the application is unsuccessfully uninstalled, the terminal device is restarted, and the application that was unsuccessfully uninstalled is uninstalled again, so that the probability of successful application uninstallation is increased, and the reliability of factory setting recovery is improved. The preset number of times may be set to three times.
Referring to fig. 2, another technical solution of the present invention is:
a method for restoring factory settings of terminal equipment comprises the following steps:
acquiring all applications installed on the terminal equipment;
acquiring an application which is selected by a user and needs to be filtered;
removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded;
uninstalling the application needing to be uninstalled;
acquiring an application which needs to be pre-installed by a user;
and installing the application needing to be pre-installed.
Further, installing the application to be preinstalled specifically includes:
installing an application which needs to be pre-installed;
judging whether the application installation is successful;
if so, prompting that the installation is successful;
if not, recording the times of the application installation failure;
restarting the terminal equipment;
continuously acquiring all the installed applications;
and if the times of the application uninstalling failure reach preset times, prompting the installation failure.
As can be seen from the above description, by setting a number of retry opportunities, when the application fails to be installed, the terminal device is restarted, and the application that failed to be installed is uninstalled again, so that the probability of successful application installation is increased, and the reliability of factory setting recovery is improved.
Further, after the uninstalling the application that needs to be uninstalled and before acquiring the application that the user needs to be preinstalled, the method further includes:
and clearing data of an SD card and data of a cache partition which are arranged in the terminal equipment.
As can be seen from the above description, the SD card and the cache partition store cache data and some configuration data, and more thorough data cleaning is realized by cleaning the SD card and the cache partition.
Further, after the uninstalling the application that needs to be uninstalled and before acquiring the application that the user needs to be preinstalled, the method further includes:
and clearing the system data in the terminal equipment.
As can be seen from the above description, system data is not cleaned in general, but the invention provides a function of selecting cleaning system data, and it should be noted that cleaning the SD card, the cache partition and the system data are all user-selectable.
Further, uninstalling the application to be uninstalled specifically includes:
unloading the application needing to be unloaded;
judging whether the application unloading is successful;
if yes, prompting that the unloading is successful;
if not, recording the times of the application unloading failure;
restarting the terminal equipment;
continuously acquiring all the installed applications;
and if the times of the application unloading failure reach preset times, prompting the unloading failure.
The invention adopts another technical scheme that:
a method for restoring factory settings of terminal equipment comprises the following steps:
selecting one of the methods for restoring the factory settings of the terminal equipment to restore the factory settings;
judging whether factory setting restoration is successful or not;
if not, recording the failure times of factory setting recovery;
restarting the terminal equipment to restore factory settings;
and if the failure times of factory setting recovery reach preset times, prompting recovery failure.
Further, after recording the number of times of failure of factory setting restoration, before restarting the terminal device to perform factory setting restoration, the method further includes: recording relevant parameters of factory setting recovery failure;
restarting the terminal device to restore factory settings specifically comprises:
restarting the terminal equipment;
acquiring related parameters of last factory setting recovery;
and restoring the factory settings again according to the related parameters of the last factory setting restoration.
As can be seen from the above description, when factory setting restoration fails, relevant parameters for factory setting restoration are recorded, so that after the terminal device is restarted, factory setting restoration can be performed again using the relevant parameters, so as to improve the success rate of factory setting restoration.
Further, after selecting one of the methods for restoring factory settings of terminal equipment to restore factory settings, the method further includes:
recording relevant parameters of factory setting restoration;
if the power failure occurs, restarting the terminal equipment;
judging whether incomplete factory restoration setting operation exists according to the relevant parameters of the factory restoration;
and executing incomplete factory restoration setting operation.
As can be seen from the above description, when the terminal device restores the factory settings, the system may be powered off due to various reasons, so that the operation of restoring the factory settings is interrupted, and the operation may fail. By the method, after the terminal equipment is restarted, the factory-leaving background service is restored to automatically detect whether incomplete restoration operation exists or not, and if yes, the incomplete restoration operation is continued.
Further, after selecting one of the methods for restoring factory settings of terminal equipment to restore factory settings, the method further includes:
creating a flag for recording the start of execution of factory setting restoration; the mark is deleted after factory setting is successfully restored;
recording relevant parameters of factory setting restoration;
if the power failure occurs, restarting the terminal equipment;
judging whether the mark exists or not;
if so, acquiring relevant parameters for factory setting recovery to obtain incomplete factory recovery setting operation;
and executing incomplete factory restoration setting operation.
As can be seen from the above description, the pass setting flag is used to determine whether there is an incomplete factory reset operation. In the actual design, other modes may be adopted in addition to the above modes.
The following are specific embodiments of the present invention, and before describing the embodiments of the present invention, several concepts will be described:
white list application: the application is not unloaded and the data is not cleaned in the factory setting process.
Pre-installation application: refers to an application that will be actively reinstalled after the factory setup is restored. The user may select whether the application needs to be uninstalled or whether the application needs to be preinstalled by setting the application to a whitelist application or a preinstalled application.
Referring to fig. 3 and 4, a first embodiment of the present invention is:
for convenience of subsequent description, the method for restoring factory settings of a terminal device in this embodiment is referred to as a shallow restoration method for short, and includes:
s101: acquiring all application lists installed on the terminal equipment;
s102: acquiring a white list application list selected by a user and a pre-installed application list; taking the white list application and the pre-installed application as applications needing filtering;
s103: removing the applications needing to be filtered from all the application lists to obtain an application list needing to be unloaded; the white list application, the pre-installation application and the application needing to be uninstalled are all multiple;
s104: and sequentially reading the applications needing to be unloaded according to the application list needing to be unloaded for unloading.
Specifically, when each application is uninstalled, the method specifically includes the following steps:
s1041: unloading the application;
s1042: judging whether the application unloading is successful;
s1043: if the uninstalling is successful, continuing the uninstalling of the next application, and if all the applications needing to be uninstalled are successfully uninstalled, displaying an interface for prompting the successful uninstalling; if the uninstalling fails, recording the times of the application uninstalling failure, and executing S1044;
s1044: restarting the terminal equipment;
s1045: judging whether the application unloading failure times reach 3 times or not; if not, executing S101; if yes, executing S1046;
s1046: and displaying an interface for prompting the unloading failure, and continuously displaying the interface.
For example: if the applications 1 to 10 are all the applications installed on the terminal equipment, listing all the application lists A as the applications 1 to 10; if the white list application list B is application 1-2 and the pre-installed application list C is application 3-5, applications 6-10 exist in the application list D to be unloaded; reading the first application in the list D, namely the application 6, unloading the application 6, then judging whether the unloading of the application 6 is successful, if the unloading of the application 6 is failed, recording an unloading failure log, and adding 1 to the unloading failure times (because the application 6 is the first unloading failure at this time, the unloading failure times is 1 at this time); restarting the terminal equipment, judging whether the failure frequency reaches 3 times, if the failure frequency does not reach 3 times, re-entering the step of listing all applications of the terminal equipment, and if the failure frequency reaches 3 times, continuously displaying an interface for prompting unloading failure. If the application 6 is unloaded successfully, the next application in the list a, i.e. the application 7, is read, and the subsequent steps are continued.
In the shallow recovery method of this embodiment, both the white list application and the pre-installed application are filtered, and only the white list removal application and the pre-installed application are uninstalled. The method mainly aims at the condition that a user wants to only clean redundant applications of the system, and meanwhile, selection of white list applications and pre-installed applications is provided to meet the user-defined unloading requirements of the user.
Referring to fig. 5, a second embodiment of the present invention is:
for convenience of subsequent description, the method for restoring factory settings of a terminal device in this embodiment is referred to as a deep restoration method, and includes:
s201: acquiring all application lists installed on the terminal equipment;
s202: acquiring a white list application list and a pre-installed application list selected by a user; using the white list as the application needing filtering;
s203: removing the applications needing to be filtered from all the application lists to obtain an application list needing to be unloaded; the method comprises the following steps that a plurality of white list applications, pre-installed applications and applications needing to be uninstalled are provided;
s204: sequentially reading the applications needing to be unloaded from the application list needing to be unloaded for unloading; specifically, when each application is uninstalled, the method specifically includes the following steps: s2041: unloading the application; s2042: judging whether the application unloading is successful; s2043: if the uninstalling is successful, continuing the uninstalling of the next application, and if all the applications needing to be uninstalled are successfully uninstalled, displaying an interface for prompting the successful uninstalling; if the uninstalling fails, recording the times of the uninstalling failure of the application, and executing S2044; s2044: restarting the terminal equipment; s2045: judging whether the application unloading failure times reach 3 times or not; if not, executing S201; if yes, go to S2046; s2046: displaying an interface for prompting the unloading failure, wherein the interface is continuously displayed;
if all the applications in the application list needing to be unloaded are unloaded, executing S205;
s205: clearing data of an SD card and data of a cache partition which are arranged in the terminal equipment;
s2061: clearing system data in the terminal equipment, wherein the system data comprises WIFI setting information, BT setting information, system logs, system attributes, application information, ring tones, contacts, short messages and the like; s2062: judging whether the system data is successfully cleared; s2063: if the clearing is successful, executing S207; if the removal fails, recording whether the number of times of the system data removal failure reaches 3 times, and if not, executing S2061; if so, displaying an interface for prompting the system to fail in data clearing, and continuously displaying the interface; it should be noted that, the user can select whether to clear the data of the SD card, the data of the cache partition, and the system data;
s207: acquiring a pre-installation application list;
s209: sequentially reading installation packages of the applications needing to be preinstalled according to the preinstalled application list, and installing the applications by using the read installation packages; specifically, when each application is installed, the method specifically includes the following steps: s2091: installing the application; s2092: judging whether the application installation is successful; s2093: if the installation is successful, continuing to install the next application, and if all the applications in the pre-installation list are successfully installed, displaying an interface for prompting the successful installation; if the installation fails, recording the times of the application installation failure, and executing S2094; s2094: restarting the terminal equipment; s2095: judging whether the application installation failure times reach 3 times or not; if not, executing S201; if yes, go to S2096; s2006: and displaying an interface for prompting the failure of installation, wherein the interface is continuously displayed.
For example: if the applications 1 to 10 are all the applications installed on the terminal equipment, listing all the application lists A as the applications 1 to 10; if the white list application list B is an application 1-2 and the pre-installed application list C is an application 3-5, the application 3-10 exists in the application list D to be unloaded; the application in the list D is uninstalled, and the specific uninstalling process is as described in the example of the embodiment, and is not described herein again. And after the application in the list D is unloaded, clearing the system data according to the data of the SD card and the data of the cache partition, and after the system data is cleared, obtaining the list C, sequentially obtaining installation packages of the applications 3-10 for application installation, wherein clearing of the system data and installation of each application have 3 retries like the application unloading.
The deep recovery method of the embodiment filters out the white list application, unloads the applications except the white list application, cleans up data of the SD card, data of the cache partition and system data, and also installs the application which needs to be preinstalled. The method mainly aims at the situation that a user wants to deeply clean the system, but simultaneously provides functions of selecting a white list application and a preinstalled application, selectively cleaning system data and the like to meet different requirements of the user.
Referring to fig. 6, a third embodiment of the present invention is:
a method for restoring factory settings of terminal equipment comprises the following steps:
s1: selecting the shallow recovery method of the first embodiment or the deep recovery method of the second embodiment to carry out factory setting recovery on the terminal equipment;
s2: judging whether factory setting restoration is successful or not;
s3: if factory setting fails to be restored; creating a first mark, wherein the first mark is used for indicating that factory setting recovery fails; recording relevant parameters of the recovery, wherein the relevant parameters comprise: number of failures, deep/shallow recovery, whether to clear system data, failed steps performed (unload/clear data/reload), etc.; recording the failure times of factory setting recovery, and executing S4; if factory setting is successfully restored, judging whether a first mark exists, if so, deleting the first mark, and executing S4, otherwise, directly executing S4;
s4: restarting the terminal equipment; judging whether the first mark exists or not; if the first mark exists, judging whether the failure frequency of factory setting recovery reaches 3 times; if not, acquiring the related parameters of the last recovery and executing S1; if the failure times of factory setting recovery reach 3 times, displaying an interface prompting recovery failure, and continuously displaying the interface; and if the first mark does not exist, ending the flow.
It should be noted that the created first flag is used to indicate that factory setting restoration fails, and is deleted when factory setting restoration succeeds. There are several implementations of this first marker: for example, a file record, a system attribute record, an application attribute record, or the like, factory settings may be restored to a service (background service), the background service is automatically started when the system is started, and whether the first flag exists is determined after the system is started.
Referring to fig. 7, a fourth embodiment of the present invention is:
a method for restoring factory settings of a terminal device, which is different from the third embodiment, after S1, the method further includes:
s5: creating a second mark, wherein the second mark is used for indicating that factory settings are restored to start execution;
s6: recording relevant parameters of factory setting restoration;
s7: judging whether a power failure phenomenon occurs or not;
s8: if the power failure does not occur, deleting the second mark when the factory setting is restored, and entering S9; if the power failure occurs, directly entering S9;
s9: restarting the terminal equipment;
s10: judging whether a second mark exists, if so, acquiring related parameters of the last factory restoration, obtaining incomplete factory restoration setting operation, and executing S1; if not, ending the process.
The second flag may be implemented in various ways, such as a file record or a system attribute record or an application attribute record; factory setting recovery can be made into a service (background service), when the system is started, the background service is automatically started, and whether a second mark exists or not is judged after the system is started.
When the method is used, a user firstly sets the white list application and the pre-installation application, and selects the shallow recovery method or the deep recovery method to carry out factory setting recovery.
In summary, the method for restoring the factory settings of the terminal provided by the invention has two restoration methods, namely shallow restoration and deep restoration, so that a user can select an application which needs to be completely reserved, an application which needs to be preinstalled and an application which needs to be cleared, and can selectively clear system data, thereby meeting different requirements of the user.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for restoring factory settings of a terminal device is characterized by comprising the following steps:
acquiring all applications installed on the terminal equipment;
acquiring applications needing filtering selected by a user, wherein the applications needing filtering are a white list application and a pre-installed application;
the white list application refers to an application which cannot be unloaded and data cannot be cleaned in the factory setting restoration process, the pre-installed application refers to an application which can be actively reinstalled after factory setting is restored, and the application which needs to be preinstalled is restored to an initial installation state;
removing the applications needing to be filtered from all the applications to obtain the applications needing to be unloaded;
uninstalling the application needing to be uninstalled;
acquiring an application which needs to be pre-installed by a user, wherein the application which needs to be pre-installed is a pre-installed application;
and installing the application needing to be pre-installed.
2. The method for restoring factory settings of terminal equipment according to claim 1, wherein installing the application that needs to be pre-installed specifically comprises:
installing an application which needs to be pre-installed;
judging whether the application installation is successful;
if not, recording the times of the application installation failure;
restarting the terminal equipment;
continuously acquiring all the installed applications;
and if the times of the application uninstalling failure reach preset times, prompting the installation failure.
3. The method for restoring factory settings of a terminal device according to claim 1, wherein after the application to be uninstalled is uninstalled and before the application to be preinstalled by the user is acquired, the method further comprises:
and clearing data of an SD card and data of a cache partition which are arranged in the terminal equipment.
4. The method for restoring factory settings of a terminal device according to claim 1, wherein after the application to be uninstalled is uninstalled and before the application to be preinstalled by the user is acquired, the method further comprises:
and clearing the system data in the terminal equipment.
5. The method for restoring factory settings of terminal equipment according to claim 1, wherein uninstalling the application to be uninstalled specifically comprises:
unloading the application needing to be unloaded;
judging whether the application unloading is successful;
if yes, prompting that the unloading is successful;
if not, recording the times of the application unloading failure;
restarting the terminal equipment;
continuously acquiring all the installed applications;
and if the times of the application unloading failure reach preset times, prompting the unloading failure.
6. A method for restoring factory settings of a terminal device is characterized by comprising the following steps:
selecting the method for restoring factory settings of the terminal equipment according to claim 1 to restore the factory settings;
judging whether factory setting restoration is successful or not;
if not, recording the failure times of factory setting recovery;
restarting the terminal equipment to restore factory settings;
and if the failure times of factory setting recovery reach preset times, prompting recovery failure.
7. The method according to claim 6, wherein after recording the number of times of failure of factory setting restoration and before restarting the terminal device for factory setting restoration, the method further comprises: recording relevant parameters for factory setting recovery;
restarting the terminal device to restore factory settings specifically comprises:
restarting the terminal equipment;
acquiring related parameters of last factory setting recovery;
and restoring the factory settings again according to the related parameters of the last factory setting restoration.
8. The method for restoring factory settings of terminal equipment according to claim 6, wherein after selecting the method for restoring factory settings of terminal equipment according to claim 1 for factory setting restoration, the method further comprises:
recording relevant parameters of factory setting restoration;
if the power failure occurs, restarting the terminal equipment;
judging whether incomplete factory restoration setting operation exists according to the relevant parameters of the factory restoration;
and executing incomplete factory restoration setting operation.
9. The method for restoring factory settings of terminal equipment according to claim 6, wherein after selecting the method for restoring factory settings of terminal equipment according to claim 1 for factory setting restoration, the method further comprises:
creating a flag for recording the start of execution of factory setting restoration;
the mark is deleted after factory setting is successfully restored;
recording relevant parameters of factory setting restoration;
if the power failure occurs, restarting the terminal equipment;
judging whether the mark exists or not;
if so, acquiring relevant parameters for factory setting recovery to obtain incomplete factory recovery setting operation;
and executing incomplete factory restoration setting operation.
CN201710493360.3A 2017-06-26 2017-06-26 Method for restoring factory settings of terminal equipment Active CN107273135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710493360.3A CN107273135B (en) 2017-06-26 2017-06-26 Method for restoring factory settings of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710493360.3A CN107273135B (en) 2017-06-26 2017-06-26 Method for restoring factory settings of terminal equipment

Publications (2)

Publication Number Publication Date
CN107273135A CN107273135A (en) 2017-10-20
CN107273135B true CN107273135B (en) 2021-03-05

Family

ID=60068233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710493360.3A Active CN107273135B (en) 2017-06-26 2017-06-26 Method for restoring factory settings of terminal equipment

Country Status (1)

Country Link
CN (1) CN107273135B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928727A (en) * 2019-11-12 2020-03-27 晶晨半导体(上海)股份有限公司 Method for rapidly restoring factory settings of operating system
CN116775383B (en) * 2023-08-25 2023-12-22 北京紫光青藤微系统有限公司 Method and device for restoring factory settings, SE chip and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223441A (en) * 2011-06-14 2011-10-19 李海军 Method for personably customizing restore factory setting of mobile phone
CN103699420A (en) * 2013-12-31 2014-04-02 海信集团有限公司 System recovery method and system recovery device
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630642B2 (en) * 2009-10-30 2014-01-14 Htc Corporation Method of handling proximity information transmission and related communication device
CN105867970A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application installing system and method for handheld device
CN106445745A (en) * 2016-10-09 2017-02-22 青岛海信移动通信技术股份有限公司 Terminal device and method for recovering factory settings

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223441A (en) * 2011-06-14 2011-10-19 李海军 Method for personably customizing restore factory setting of mobile phone
CN103699420A (en) * 2013-12-31 2014-04-02 海信集团有限公司 System recovery method and system recovery device
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system

Also Published As

Publication number Publication date
CN107273135A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
US9465603B2 (en) Application management apparatus, application management system, application management method, and non-transitory computer readable medium
WO2011130971A1 (en) Method and mobile terminal for deleting files
WO2015117426A1 (en) File management method and device
CN104536792A (en) Method and device for eliminating application program residual files
CN104317623B (en) The management method of the preset application program of mobile terminal and mobile terminal
CN107273135B (en) Method for restoring factory settings of terminal equipment
WO2020063780A1 (en) Application layout restoration method and apparatus, device and storage medium
CN104156277A (en) Mobile terminal and system restoring method and system restoring device thereof
CN103631603A (en) Software cleaning method and system
JP2017228228A (en) Information processing program and information processing device
CN112099757A (en) Application keep-alive method and device
CN103198252B (en) Device and method for the control information for managing the application program in portable terminal
CN111984459B (en) Apple ID account removing method and system
CN105243102A (en) Processing method and device for unloading residual file and terminal
EP3260981A1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN102346696B (en) A kind of file access pattern method and device
CN109951731B (en) Method, system and storage medium for solving repeated scanning of external storage device
US20170105041A1 (en) Method and device of interactive function card of smart television
CN105511904B (en) A kind of method and device automatically updating quick window
CN104317727B (en) The processing method of mobile terminal and data partition
CN115344290A (en) Distributed storage grouping online upgrading method, device, terminal and medium
JP5729823B2 (en) Backup apparatus, backup method, and backup program
CN106294576B (en) Method and system for cleaning storage space of android system
CN108874586B (en) Data recovery method and related product
EP3660671A1 (en) Ndis device configuration method and apparatus, and computer storage 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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 201-9, Zone C, No. 18 Guanri Road, Phase II, Software Park, Torch High tech Zone, Xiamen City, Fujian Province, 361000

Patentee after: Fujian Huisibo Digital Technology Co.,Ltd.

Address before: No. 89 Software Avenue, Tongpan Road, Gulou District, Fuzhou City, Fujian Province, 350000. 510, Floor 5, 34 #, Zone C, Fuzhou Software Park

Patentee before: FUZHOU HUISIBO INFORMATION TECHNOLOGY Co.,Ltd.