CN106569912B - Method and system for restoring factory settings of mobile terminal - Google Patents

Method and system for restoring factory settings of mobile terminal Download PDF

Info

Publication number
CN106569912B
CN106569912B CN201610946263.0A CN201610946263A CN106569912B CN 106569912 B CN106569912 B CN 106569912B CN 201610946263 A CN201610946263 A CN 201610946263A CN 106569912 B CN106569912 B CN 106569912B
Authority
CN
China
Prior art keywords
memory
mobile terminal
factory
idle
identification code
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
CN201610946263.0A
Other languages
Chinese (zh)
Other versions
CN106569912A (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.)
Xiamen Jiupin Sesame Information Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610946263.0A priority Critical patent/CN106569912B/en
Publication of CN106569912A publication Critical patent/CN106569912A/en
Application granted granted Critical
Publication of CN106569912B publication Critical patent/CN106569912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality

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)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a system for restoring factory settings of a mobile terminal, wherein the method comprises the following steps: receiving an instruction of restoring factory settings; acquiring an idle memory, and clearing all data of the idle memory; completely copying data in the non-idle memory into the idle memory, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a background silent manner in the using process; after the factory setting operation of the idle memory is finished, modifying the starting identification code; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code. By adopting the method and the device, the user does not need to shut down and then restore the factory settings, but can restore the factory settings in a background silent manner when using the mobile terminal, and the user can use the operating system after restoring the factory settings when restarting the mobile terminal after the restoration is finished, thereby bringing convenience to the user.

Description

Method and system for restoring factory settings of mobile terminal
Technical Field
The invention relates to the field of mobile terminals, in particular to a method and a system for restoring factory settings of a mobile terminal.
Background
At present, the mobile terminal has complex functions, and a plurality of application software is often installed on the mobile terminal; the mobile terminal may have some problems which are not easy to appear in the research and development stage, the quality of the application software installed by the user is uneven, and various use environments and other complex factors are included; some problems often occur in the using process of the mobile terminal, so that the mobile terminal is inconvenient to use after being powered on. For example, the user installs the treasured of paying in mobile terminal, uses a period of time after, because some problems make the treasured of paying unable normal use, still unable normal use even after the switch-on and switch-off. The simplest and most effective method is to restore factory settings of the mobile terminal, so that the relevant user parameters in the mobile terminal are restored, and the state in the mobile terminal is restored to the original state. Certainly, after some users use the mobile terminal for a long time, a large number of redundant data files must exist in the storage space, and in order to effectively clean the storage space, the users also select to restore factory settings.
However, in the prior art, since the factory reset setting must delete all data in the specified storage space, and the user must be in a use state for the data in the specified storage space during the use of the mobile terminal, the factory reset setting must be performed only in a state that the mobile terminal exits the operating system, which is troublesome. In addition, in the prior art, the factory reset operation is mostly performed by selecting factory reset in an operating system by a user, and then the mobile terminal is automatically powered off and restarted to enter a factory reset mode for reset, so that the operation is very inconvenient, and time and labor are wasted.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for restoring factory settings of a mobile terminal, aiming at the above-mentioned defects in the prior art, so that a user does not need to shut down the mobile terminal and then restore the factory settings, but can restore the factory settings in a background and silent manner when using the mobile terminal, and when the user restarts the mobile terminal after the restoration is completed, the user can use the operating system after restoring the factory settings, thereby bringing convenience to the user.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for restoring factory settings of a mobile terminal comprises the following steps:
a1, receiving an instruction for restoring factory settings;
a2, acquiring a free memory, and clearing all data of the free memory;
a3, copying the data in the non-idle memory to the idle memory completely, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a background silent manner in the use process;
a4, modifying the boot identification code after the factory setting operation of the idle memory is finished; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code.
The method for restoring factory settings of the mobile terminal, wherein before the step a1, the method further comprises:
and S, dividing a system memory of the mobile terminal into two memories, namely a first memory and a second memory.
The method for restoring factory settings of the mobile terminal, wherein after the step a4, the method further comprises:
b1, acquiring the boot identification code in the memory;
b2, selecting which memory is used by the mobile terminal according to the power-on identification code;
b3, if the power-on identification code is 1, the mobile terminal is operated by using the first memory after being powered on; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started;
and B4, assigning the starting identification code to the system operation identification code after the starting is finished.
The method for restoring factory settings of the mobile terminal, wherein the step a3 specifically includes:
a31, when the operating system currently running in the mobile terminal is located in the first memory and the second memory is idle, if a factory reset instruction is received, completely copying the content of the first memory to the idle second memory, and then performing factory reset operation on the second memory; and controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory.
The method for restoring factory settings of the mobile terminal, wherein the step a3 further includes:
a32, when the operating system currently running in the mobile terminal is located in the second memory and the first memory is idle, if a factory reset instruction is received, completely copying the content of the second memory to the idle first memory, and then performing factory reset operation on the first memory;
and controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory.
The method for restoring factory settings of the mobile terminal, wherein the step a4 further includes:
a411, if the current idle memory is a first memory, after factory setting operation is restored, modifying the starting identification codes in the first memory and the second memory to 1, so that the mobile terminal uses the first memory when starting up next time;
and A412, if the power-on identification code is 1, the mobile terminal is operated by using the first memory after being powered on.
The method for restoring factory settings of the mobile terminal, wherein the step a4 further includes:
a421, if the current idle memory is a second memory, after factory setting is restored, modifying the start-up identification codes in the first memory and the second memory to 2, so that the second memory is used when the mobile terminal is started next time;
and A422, if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
A system for restoring factory settings of a mobile terminal comprises:
the instruction receiving module is used for receiving an instruction for restoring factory settings;
the first processing module is used for acquiring the idle memory and clearing all data of the idle memory;
the second processing module is used for completely copying the data in the non-idle memory into the idle memory, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a background silent manner in the using process;
the third processing module is used for modifying the starting-up identification code after the operation of restoring the factory setting of the idle memory is finished; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code.
The system for restoring factory settings of the mobile terminal further comprises:
the system comprises a presetting module, a first storage and a second storage, wherein the presetting module is used for dividing a system memory of the mobile terminal into the two storages in advance, and the two storages are respectively the first storage and the second storage;
the acquisition module is used for acquiring the starting identification code in the memory;
the selection module is used for selecting which memory is used by the mobile terminal according to the starting identification code;
the operation control module is used for operating the mobile terminal by using the first memory after the mobile terminal is started if the starting identification code is 1; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started;
and the assignment module is used for assigning the starting identification code to the system operation identification code after the starting is finished.
The mobile terminal restores a factory-set system, wherein,
the second processing module comprises:
the first background processing unit is used for completely copying the content of the first memory to the idle second memory and then performing factory setting restoration operation on the second memory if a factory setting restoration instruction is received when an operating system currently running on the mobile terminal is located in the first memory and the second memory is idle; controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory;
the second background processing unit is used for completely copying the content of the second memory to the idle first memory and then performing factory setting restoration operation on the first memory if a factory setting restoration instruction is received when the operating system currently running on the mobile terminal is located in the second memory and the first memory is idle; controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory;
the third processing module comprises:
the first starting control unit is used for modifying the starting identification codes in the first memory and the second memory to be 1 after factory setting recovery operation is finished if the current idle memory is the first memory, so that the first memory is used when the mobile terminal is started next time; if the starting identification code is 1, the mobile terminal is operated by using the first memory after being started;
the second starting control unit is used for modifying the starting identification codes in the first memory and the second memory to 2 after factory setting recovery operation is finished if the current idle memory is the second memory, so that the second memory is used when the mobile terminal is started next time; and if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
The method and the system for restoring the factory settings of the mobile terminal provided by the invention receive the instruction of restoring the factory settings; acquiring an idle memory, and clearing all data of the idle memory; completely copying data in the non-idle memory into the idle memory, and then performing factory reset operation on the idle memory; after the factory setting operation of the idle memory is finished, modifying the starting identification code; the mobile terminal can restore factory settings in a background silent manner in the using process, and when the mobile terminal is restored, a user restarts the mobile terminal to use the operating system after the factory settings are restored, so that convenience is brought to the user.
Drawings
Fig. 1 is a first flowchart of a method for factory reset of a mobile terminal according to a preferred embodiment of the present invention.
Fig. 2 is a second flowchart of a method for factory reset of a mobile terminal according to a preferred embodiment of the present invention.
FIG. 3 is a schematic diagram of the system operation identification code and the boot identification code in the memory.
Fig. 4 is a functional block diagram of a preferred embodiment of the system for factory reset of a mobile terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for restoring factory settings of a mobile terminal according to a preferred embodiment of the present invention. As shown in fig. 1, the method for restoring factory settings of a mobile terminal according to the present invention includes the following steps: and step S1, receiving an instruction of restoring factory settings.
When the invention is implemented, the system memory of the mobile terminal can be divided into two memories, namely a first memory and a second memory.
And step S2, acquiring the free memory and clearing all data of the free memory.
For example, the system may be installed in the first storage, the second storage is a free storage, and when the initial plant setting is needed, the free storage is obtained, and all data of the free storage is cleared.
The method for acquiring the free memory comprises the steps of reading a system operation identification code; for example, 1 represents a first memory, 2 represents a second memory, if the system operation identification code is 1, it indicates that the current system operates the operating system in the first memory, and the second memory is a free memory; if the system operation identification code is 2, the current system is indicated to operate the operating system in the second memory, and the first memory is a free memory.
And step S3, completely copying the data in the non-idle memory to the idle memory, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a silent background manner in the using process.
For example, when the operating system currently running in the mobile terminal is located in the first memory and the second memory is idle, if a factory reset instruction is received, the content of the first memory is completely copied to the idle second memory, and then factory reset operation is performed on the second memory; and controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory.
For example, when the operating system currently running in the mobile terminal is located in the second memory and the first memory is idle, if a factory reset instruction is received, the content of the second memory is completely copied to the idle first memory, and then factory reset operation is performed on the first memory; and controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory.
Step S4, when the factory setting operation of the idle memory is restored, the startup identification code is modified; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code.
As described in the foregoing embodiment, in a specific implementation of the present invention, if the current free memory is the first memory, after the factory reset operation is completed, the start-up identification codes in the first memory and the second memory are both modified to 1, so that the mobile terminal uses the first memory when starting up next time; and if the starting identification code is 1, the mobile terminal is operated by using the first memory after being started.
In addition, if the current idle memory is the second memory, after factory setting operation is restored, the starting identification codes in the first memory and the second memory are modified to be 2, so that the second memory is used when the mobile terminal is started next time; and if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
In a further embodiment, the method for restoring factory settings of a mobile terminal according to the present invention further includes, after step S4:
s100, acquiring the boot identification code in the memory.
When the mobile terminal is started, the starting identification code is read from any one of the memories, and then the corresponding memory is selected to be used for starting according to the starting identification code.
S200, selecting which memory is used by the mobile terminal according to the boot identification code; if the starting identification code is 1, the mobile terminal is operated by using the first memory after being started; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started;
for example, 1 represents a first memory, 2 represents a second memory, and if the boot identification code is 1, the mobile terminal is operated by using the first memory after being booted; and if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
And S300, assigning the starting identification code to the system operation identification code after the starting is finished. For example, if the boot identification code is 1, the boot identification codes in the first memory and the second memory are both written to be 1 after the boot is finished.
It can be seen that, in the embodiment of the present invention, the first storage and the second storage have the same function, and when the operating system currently running in the mobile terminal is located in the first storage, if a factory reset instruction is received, the content of the first storage is completely copied to the second storage (idle storage), and then the factory reset operation is performed on the second storage (idle storage); when the operating system currently running in the mobile terminal is located in the second memory, if a factory reset instruction is received, the content of the second memory is completely copied into the first memory (idle memory), and then factory reset operation is performed on the first memory (idle memory); the first memory and the second memory are both memories which are not easy to lose after power failure, such as FLASH, EEPROM and the like.
When initial factory setting is needed, acquiring a free memory, and clearing all data of the free memory; completely copying data in the non-idle memory into the idle memory, and then performing factory reset operation on the idle memory; the method for acquiring the free memory in the module is described as follows: referring to fig. 3, fig. 3 is a schematic diagram illustrating a system operation identification code and a boot identification code in a memory, and fig. 3 refers to a first memory and a second memory at the same time, and thus the memories are referred to herein; two values are stored in the memory to store a system operation identification code and a starting identification code; the first processing module can know which memory is in an idle state currently and which memory runs the current operating system by reading the system running identification code; for example, 1 represents a first memory, 2 represents a second memory, if the system operation identification code is 1, it indicates that the current system operates the operating system in the first memory, and the second memory is a free memory; if the system operation identification code is 2, the current system is indicated to operate the operating system in the second memory, and the first memory is a free memory.
After the factory setting operation of the idle memory is finished, modifying the starting identification code; directly modifying the starting identification codes in the first memory and the second memory; for example, 1 is used for representing the first memory, 2 is used for representing the second memory, and if the current idle memory is the first memory, after factory setting recovery operation is completed, the start-up identification codes in the first memory and the second memory are both modified to be 1, so that the first memory is used when the mobile terminal is started next time.
When the mobile terminal is started, acquiring a starting identification code in a memory (when the mobile terminal is started, reading the starting identification code from any one memory, and then selecting a corresponding memory to start according to the starting identification code); selecting which memory (the first memory or the second memory) the mobile terminal uses according to the power-on identification code; for example, 1 represents a first memory, 2 represents a second memory, and if the boot identification code is 1, the mobile terminal is operated by using the first memory after being booted; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started; and assigning the boot identification code to the system operation identification code after the boot is finished, that is, after the boot is finished, the mobile terminal modifies the system operation identification codes in the first memory and the second memory, for example, the boot identification code is 1, and then writes the boot identification codes in the first memory and the second memory to be 1 after the boot is finished.
Therefore, the method of the embodiment of the invention enables the user to restore the factory settings without shutdown, but can restore the factory settings in a background silent manner when using the mobile terminal, and the user restarts the mobile terminal to use the operating system after restoring the factory settings after the restoration is completed, thereby bringing convenience to the user.
Based on the above method embodiment, the present invention further provides a system for restoring factory settings of a mobile terminal, as shown in fig. 4, where the system includes:
an instruction receiving module 210, configured to receive an instruction to restore factory settings; as described above.
The first processing module 220 is configured to acquire an idle memory and zero-clear all data of the idle memory; as described above.
The second processing module 230 is configured to copy data in the non-idle memory completely into the idle memory, then perform factory reset operation on the idle memory, and control the mobile terminal to perform factory reset in a silent background during a use process; as described above.
The third processing module 240 is configured to modify the boot identifier code after the operation of restoring the factory settings of the idle memory is completed; after the factory restoration setting is restored, restarting the mobile terminal to start the operating system after the factory restoration setting according to the modified boot identification code; as described above.
Further, the system for restoring factory settings of the mobile terminal further includes:
the system comprises a presetting module, a first storage and a second storage, wherein the presetting module is used for dividing a system memory of the mobile terminal into the two storages in advance, and the two storages are respectively the first storage and the second storage; as described above.
The acquisition module is used for acquiring the starting identification code in the memory; as described above.
The selection module is used for selecting which memory is used by the mobile terminal according to the starting identification code; as described above.
The operation control module is used for operating the mobile terminal by using the first memory after the mobile terminal is started if the starting identification code is 1; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started; as described above.
The assignment module is used for assigning the starting identification code to the system operation identification code after the starting is finished; as described above.
The mobile terminal restores a factory-set system, wherein,
the second processing module comprises:
the first background processing unit is used for completely copying the content of the first memory to the idle second memory and then performing factory setting restoration operation on the second memory if a factory setting restoration instruction is received when an operating system currently running on the mobile terminal is located in the first memory and the second memory is idle; controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory; as described above.
The second background processing unit is used for completely copying the content of the second memory to the idle first memory and then performing factory setting restoration operation on the first memory if a factory setting restoration instruction is received when the operating system currently running on the mobile terminal is located in the second memory and the first memory is idle; controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory; as described above.
The third processing module comprises:
the first starting control unit is used for modifying the starting identification codes in the first memory and the second memory to be 1 after factory setting recovery operation is finished if the current idle memory is the first memory, so that the first memory is used when the mobile terminal is started next time; if the starting identification code is 1, the mobile terminal is operated by using the first memory after being started; as described above.
The second starting control unit is used for modifying the starting identification codes in the first memory and the second memory to 2 after factory setting recovery operation is finished if the current idle memory is the second memory, so that the second memory is used when the mobile terminal is started next time; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started; as described above.
In summary, according to the method and the system for restoring factory settings of a mobile terminal provided by the present invention, the method receives an instruction for restoring factory settings; acquiring an idle memory, and clearing all data of the idle memory; completely copying data in the non-idle memory into the idle memory, and then performing factory reset operation on the idle memory; after the factory setting operation of the idle memory is finished, modifying the starting identification code; the mobile terminal can restore factory settings in a background silent manner in the using process, and when the mobile terminal is restored, a user restarts the mobile terminal to use the operating system after the factory settings are restored, so that convenience is brought to the user.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for restoring factory settings of a mobile terminal is characterized by comprising the following steps:
a1, receiving an instruction for restoring factory settings;
a2, acquiring a free memory, and clearing all data of the free memory;
a3, copying the data in the non-idle memory to the idle memory completely, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a background silent manner in the use process;
a4, modifying the boot identification code after the factory setting operation of the idle memory is finished; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code.
2. The method for factory reset of a mobile terminal according to claim 1, further comprising, before said step a 1:
and S, dividing a system memory of the mobile terminal into two memories, namely a first memory and a second memory.
3. The method for factory reset of a mobile terminal according to claim 2, wherein said step a4 is followed by further comprising:
b1, acquiring the boot identification code in the memory;
b2, selecting which memory is used by the mobile terminal according to the power-on identification code;
b3, if the power-on identification code is 1, the mobile terminal is operated by using the first memory after being powered on; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started;
b4, assigning the starting identification code to the system operation identification code after the starting is finished; it is known which memory is currently in an idle state and which memory runs the current operating system by reading the system operation identification code.
4. The method for factory reset of a mobile terminal according to claim 2, wherein the step a3 specifically includes:
a31, when the operating system currently running in the mobile terminal is located in the first memory and the second memory is idle, if a factory reset instruction is received, completely copying the content of the first memory to the idle second memory, and then performing factory reset operation on the second memory; and controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory.
5. The method for factory reset of a mobile terminal according to claim 2, wherein the step a3 further includes:
a32, when the operating system currently running in the mobile terminal is located in the second memory and the first memory is idle, if a factory reset instruction is received, completely copying the content of the second memory to the idle first memory, and then performing factory reset operation on the first memory;
and controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory.
6. The method for factory reset of a mobile terminal according to claim 2, wherein said step a4 further comprises:
a411, if the current idle memory is a first memory, after factory setting operation is restored, modifying the starting identification codes in the first memory and the second memory to 1, so that the mobile terminal uses the first memory when starting up next time;
and A412, if the power-on identification code is 1, the mobile terminal is operated by using the first memory after being powered on.
7. The method for factory reset of a mobile terminal according to claim 1, wherein said step a4 further comprises:
a421, if the current idle memory is a second memory, after factory setting is restored, modifying the start-up identification codes in the first memory and the second memory to 2, so that the second memory is used when the mobile terminal is started next time;
and A422, if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
8. A system for restoring factory settings of a mobile terminal is characterized by comprising:
the instruction receiving module is used for receiving an instruction for restoring factory settings;
the first processing module is used for acquiring the idle memory and clearing all data of the idle memory;
the second processing module is used for completely copying the data in the non-idle memory into the idle memory, then performing factory reset operation on the idle memory, and controlling the mobile terminal to perform factory reset in a background silent manner in the using process;
the third processing module is used for modifying the starting-up identification code after the operation of restoring the factory setting of the idle memory is finished; and after the factory restoration is finished, restarting the mobile terminal to start the operating system after the factory restoration according to the modified boot identification code.
9. The system for factory reset of a mobile terminal according to claim 8, further comprising:
the system comprises a presetting module, a first storage and a second storage, wherein the presetting module is used for dividing a system memory of the mobile terminal into the two storages in advance, and the two storages are respectively the first storage and the second storage;
the acquisition module is used for acquiring the starting identification code in the memory;
the selection module is used for selecting which memory is used by the mobile terminal according to the starting identification code;
the operation control module is used for operating the mobile terminal by using the first memory after the mobile terminal is started if the starting identification code is 1; if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started;
and the assignment module is used for assigning the starting identification code to the system operation identification code after the starting is finished.
10. The system for factory reset of a mobile terminal according to claim 8,
the second processing module comprises:
the first background processing unit is used for completely copying the content of the first memory to the idle second memory and then performing factory setting restoration operation on the second memory if a factory setting restoration instruction is received when an operating system currently running on the mobile terminal is located in the first memory and the second memory is idle; controlling the mobile terminal to restore factory settings of the second memory in a background silent manner in the process of using the first memory;
the second background processing unit is used for completely copying the content of the second memory to the idle first memory and then performing factory setting restoration operation on the first memory if a factory setting restoration instruction is received when the operating system currently running on the mobile terminal is located in the second memory and the first memory is idle; controlling the mobile terminal to restore factory settings of the first memory in a background silent manner in the process of using the second memory;
the third processing module comprises:
the first starting control unit is used for modifying the starting identification codes in the first memory and the second memory to be 1 after factory setting recovery operation is finished if the current idle memory is the first memory, so that the first memory is used when the mobile terminal is started next time; if the starting identification code is 1, the mobile terminal is operated by using the first memory after being started;
the second starting control unit is used for modifying the starting identification codes in the first memory and the second memory to 2 after factory setting recovery operation is finished if the current idle memory is the second memory, so that the second memory is used when the mobile terminal is started next time; and if the starting identification code is 2, the mobile terminal is operated by using the second memory after being started.
CN201610946263.0A 2016-11-02 2016-11-02 Method and system for restoring factory settings of mobile terminal Active CN106569912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610946263.0A CN106569912B (en) 2016-11-02 2016-11-02 Method and system for restoring factory settings of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610946263.0A CN106569912B (en) 2016-11-02 2016-11-02 Method and system for restoring factory settings of mobile terminal

Publications (2)

Publication Number Publication Date
CN106569912A CN106569912A (en) 2017-04-19
CN106569912B true CN106569912B (en) 2020-08-11

Family

ID=58536521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610946263.0A Active CN106569912B (en) 2016-11-02 2016-11-02 Method and system for restoring factory settings of mobile terminal

Country Status (1)

Country Link
CN (1) CN106569912B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391309B (en) * 2017-07-28 2022-06-10 Tcl移动通信科技(宁波)有限公司 Mobile terminal, factory-restoration pre-configuration processing method thereof and storage medium
CN110046063B (en) * 2019-03-29 2021-08-03 惠州Tcl移动通信有限公司 Device and method for restoring factory settings of mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system
CN102222027A (en) * 2011-06-20 2011-10-19 中兴通讯股份有限公司 Method and device for restoring factory settings of terminal
CN102883086A (en) * 2011-05-04 2013-01-16 三星电子株式会社 Image forming apparatus and method for controlling the same
US8819330B1 (en) * 2011-09-20 2014-08-26 Google Inc. System and method for updating a locally stored recovery image
CN105122261A (en) * 2013-04-23 2015-12-02 惠普发展公司,有限责任合伙企业 Recovering from compromised system boot code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system
CN102883086A (en) * 2011-05-04 2013-01-16 三星电子株式会社 Image forming apparatus and method for controlling the same
CN102222027A (en) * 2011-06-20 2011-10-19 中兴通讯股份有限公司 Method and device for restoring factory settings of terminal
US8819330B1 (en) * 2011-09-20 2014-08-26 Google Inc. System and method for updating a locally stored recovery image
CN105122261A (en) * 2013-04-23 2015-12-02 惠普发展公司,有限责任合伙企业 Recovering from compromised system boot code

Also Published As

Publication number Publication date
CN106569912A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
US10114655B2 (en) Rapid start up method for electronic equipment
EP1899814B1 (en) Firmware update for consumer electronic device
CN105917306B (en) System and method for configuring system firmware configuration data
CN105912365B (en) Mobile terminal system updating method and system
JP2010079440A (en) Device and method for updating firmware
US20020194533A1 (en) External repair of a computer
CN108874459B (en) Rapid starting method and device based on virtualization technology
TWI450090B (en) Method and system of changing a startup list of programs to determine whether computer system performance increases
CN110874237A (en) Software upgrading method, device, terminal and readable storage medium
JP2015212879A (en) Information processing apparatus and control method of the same, and program
CN106569912B (en) Method and system for restoring factory settings of mobile terminal
JP2007058699A (en) Information processor, information processor control program and information processor control method
JPWO2015098811A1 (en) Electronics
CN111885420B (en) Standby protection method and device, smart television and readable storage medium
US20230132494A1 (en) Information processing apparatus, method of controlling the same, and storage medium
JP2003296263A (en) Method and system for automatically concealing pci extension cad in computer system
TW201617861A (en) Firmware updating method and electronic apparatus using the same
CN112069435A (en) Method and system for switching nginx configuration files through scripts
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet
KR100806104B1 (en) Upgrade method for software in digital electric home appliance
CN111399921A (en) Switching method, device and equipment for server boot logo
CN110515669B (en) Data management method and device, electronic equipment and storage medium
JP2018045725A (en) Information processing apparatus, control method of the same, and program
CN103309691A (en) Information processing equipment and quick startup method thereof
JP5508297B2 (en) Setting information reference activation type control device and setting information management method

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
TR01 Transfer of patent right

Effective date of registration: 20230721

Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province

Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right