CN113495806A - Method, device, storage medium and terminal for recovering user data - Google Patents

Method, device, storage medium and terminal for recovering user data Download PDF

Info

Publication number
CN113495806A
CN113495806A CN202010203202.1A CN202010203202A CN113495806A CN 113495806 A CN113495806 A CN 113495806A CN 202010203202 A CN202010203202 A CN 202010203202A CN 113495806 A CN113495806 A CN 113495806A
Authority
CN
China
Prior art keywords
partition
user data
recovery
system partition
terminal
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.)
Withdrawn
Application number
CN202010203202.1A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN202010203202.1A priority Critical patent/CN113495806A/en
Publication of CN113495806A publication Critical patent/CN113495806A/en
Withdrawn legal-status Critical Current

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

Abstract

The embodiment of the application discloses a method, a device, a storage medium and a terminal for recovering user data, wherein the method comprises the following steps: receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.

Description

Method, device, storage medium and terminal for recovering user data
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for recovering user data.
Background
The system installation package of the mobile phone is generally burned when leaving a factory, and the system installation package can be upgraded in a subsequent Over The Air (OTA) mode, so that a user may damage a system file in an operating system in the using process, and the mobile phone cannot be normally used.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and a terminal for recovering user data, wherein the backup user data stored in a recovery partition is read to recover an operating system in the terminal, so that the user can use the method, the device, the storage medium and the terminal conveniently.
The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for recovering user data, where the method includes:
receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction;
determining a target system partition in the first system partition and the second system partition;
writing the backup user data to the target system partition, and booting an operating system based on the target system partition.
In a second aspect, an embodiment of the present application provides an apparatus for recovering user data, where the apparatus includes:
the reading unit is used for receiving a recovery instruction and reading the backup user data in the preset recovery partition based on the recovery instruction;
a determining unit configured to determine a target system partition in the first system partition and the second system partition;
and the starting unit is used for writing the backup user data into the target system partition and starting an operating system based on the target system partition.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for recovering user data according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an example of a user interface provided by an embodiment of the present application;
FIG. 3 is an exemplary diagram of a user interface provided by an embodiment of the present application;
FIG. 4 is an exemplary diagram of a user interface provided by an embodiment of the present application;
FIG. 5 is an exemplary diagram of a user interface provided by an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for recovering user data according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus for recovering user data according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for recovering user data according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The method for recovering user data provided by the embodiment of the present application will be described in detail below with reference to fig. 1 to 6. The method may be implemented in dependence on a computer program, operable on a device for recovering user data based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application. The apparatus for recovering user data in the embodiment of the present application may be a terminal, including but not limited to a smartphone, a personal computer, a tablet computer, a handheld device, an in-vehicle device, a wearable device, a computing device, or other processing device connected to a wireless modem.
Please refer to fig. 1, which is a flowchart illustrating a method for recovering user data according to an embodiment of the present disclosure. As shown in fig. 1, the method of the embodiment of the present application may include the steps of:
s101, receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction.
Wherein, when the terminal is in a power-off state, the user generally presses two keys to trigger a recovery interface, for example: in the Android terminal with the Android operating system, a power key, a volume increasing key and a volume reducing key are arranged on the terminal, and when the terminal is in a power-off state, the time for pressing the power key and the volume reducing key by a user exceeds the preset time, the terminal can display a recovery interface. The user can operate on the recovery interface to generate a recovery instruction, and the terminal reads the backup user data stored in the preset recovery partition in response to the recovery instruction.
For example: as shown in fig. 2, the terminal is provided with a power key 20, a volume increasing key 21 and a volume decreasing key 22, when the terminal is in a power-off state and the duration of pressing the power key 20 and the volume decreasing key 22 by the terminal exceeds 3 seconds, the terminal displays a recovery interface, and the recovery interface includes 3 options: the method comprises the steps of restarting a boot loader, recovering user data and shutting down, wherein the restart boot loader is used for representing a bootloader of the restart terminal, the recovered user data represents user data which is backed up in the terminal in advance, and the shutting down represents the execution of shutting down operation. When the user clicks the option of 'recovering user data', the terminal receives the recovery instruction, and the terminal reads the backup user data in the recovery partition.
The terminal is preset with a recovery partition, the recovery partition is a physical partition of the terminal, the recovery partition is used for storing backup user data, the backup user data can be generated by real-time collection of a monitoring process in the terminal, the recovery partition corresponds to a mounting point, and the terminal reads the backup user data in the recovery partition through the mounting point. .
S102, determining a target system partition in the first system partition and the second system partition.
The physical partition of the terminal is provided with a first system partition and a second system partition, and the first system partition and the second system partition are respectively used for storing the system installation package. When the terminal leaves a factory, the versions of the system installation packages in the first system partition and the second system partition are the same, the terminal sets one partition of the first system partition and the second system partition as a main partition, and the other partition of the first system partition and the second system partition as a standby partition. For example: the terminal is provided with a partition a and a partition b, the versions of the system installation packages in the partition a and the partition b are the same, the partition a is a main partition, the partition b is a standby partition, and the terminal runs an operating system by using the partition a currently; when the terminal detects that the system installation package needs to be upgraded in the using process, the terminal downloads the system installation package of the new version into the partition b in an OTA mode, the system installation package of the old version in the partition b is covered, when the terminal finishes downloading, the terminal changes the partition b into the main partition and the partition a into the standby partition, and the terminal starts an operating system through the partition b.
The terminal determines a target system partition in the first system partition and the second system partition, and the selection mode may include: determining a target system partition in the first system partition and the second system partition based on a selection instruction of a user; or the operating system currently running at the terminal cannot run normally due to file damage or other reasons, the terminal stores the log file, determines that the main partition is abnormal according to the log file, and selects the standby partition of the two partitions as the target system partition.
In the case that the target system partition is selected by the user, after the terminal detects a click operation of the user on the recovery interface of fig. 2, the terminal may display a selection interface for the user to select the partition, as shown in fig. 3, where the selection interface includes a first system partition and a second system partition, and the user selects one of the system partitions as the target system partition by the click operation.
S103, writing the backup user data into the target system partition, and starting an operating system based on the target system partition.
The terminal writes the backup user data in the recovery partition into the target system partition to cover the original user data in the target system partition, so that the configuration information of the last normal start can be used for completing the configuration of the operating system at the terminal. The terminal reads the system installation package in the target system partition to install the operating system, and the terminal may display a user interface as shown in fig. 4 and 5, where the user interface includes a recovery progress bar 23 for indicating the recovery progress of the operating system.
In the embodiment of the application, a recovery instruction is received, and backup user data in a preset recovery partition is read based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.
Please refer to fig. 6, which is a flowchart illustrating a method for recovering user data according to an embodiment of the present application. The method of recovering user data may include the steps of:
s201, monitoring the running state of the operating system to generate backup user data.
Wherein, a monitoring process can be built in the operating system of the terminal, for example: in an android operating system, a monitoring process is a damon process, the monitoring process is always kept in an activated state, and the monitoring process has the highest priority, so that the monitoring process can be prevented from being killed by the operating system. The monitoring process may periodically monitor an operating state of the operating system, and generate backup user data according to the operating state, where the backup user data may include one or more of configuration information of the application program, real-time data of the application program, and state information of a register in the operating system.
S202, encrypting the backup user data, compressing the encrypted backup user data and storing the compressed backup user data in the recovery partition.
The backup user data may have privacy data of the user, the risk of disclosure of the user privacy may be reduced by encrypting the backup user data, and the encryption processing mode may be symmetric encryption or asymmetric encryption, for example: symmetric Encryption includes des (data Encryption standard), aes (advanced Encryption standard), or 3des (triple des); the asymmetric encryption comprises: RSA, Elgamal, knapsack Algorithm, Rabin, D-H, or ECC (elliptic Curve cryptography Algorithm). The compression processing can reduce the size of data and reduce the occupation of storage space by the data. And the terminal stores the encrypted and compressed backup user data into the recovery partition.
S203, receiving a recovery instruction, and reading the backup user data in the preset recovery partition based on the recovery instruction.
The terminal is in a power-off state, a user can trigger the terminal to enter a recovery interface through a pressing combination of at least two keys, the user generates a recovery instruction after clicking a certain option on the recovery interface, the terminal reads backup user data in a preset recovery partition based on the recovery instruction, the recovery partition can be arranged in an internal memory card of the terminal or an external pluggable memory card, and the embodiment is not limited.
And S204, determining a target system partition in the first system partition and the second system partition according to the system log.
The physical partition of the terminal is provided with a first system partition and a second system partition, and the first system partition and the second system partition respectively store a system installation package. One of the first system partition and the second system partition is a main partition, the other is a standby partition, and the terminal can be set according to actual needs. The terminal may display a selection interface on which the user selects the target system partition, the terminal determining the target system partition among the first system partition and the second system partition based on the user's selection.
S205, inquiring a configuration directory corresponding to each of the plurality of application programs in the recovery partition.
The backup user data includes configuration information of each application program, and the configuration information of each application program may be stored in different configuration directories, for example: the terminal is provided with an application program a, an application program b and an application program c, correspondingly, a configuration directory a for storing configuration information of the application program a, a configuration directory b for storing configuration information of the application program b and a configuration directory c for storing configuration information of the application program c are arranged in the recovery partition, and the terminal traverses the configuration directories corresponding to the application programs in the recovery partition.
In addition, in the recovery partition, in addition to a configuration directory for storing the application program, a directory for storing configuration information in the operating system is provided, for example: the configuration information of the operating system includes: font size, volume size, screen brightness, etc.
S206, reading the backup user data comprising the configuration information of each application program in the configuration catalog corresponding to each application program.
For example: according to the example of S205, the terminal reads the configuration information of the application a in the configuration directory a, the configuration information of the application b in the configuration directory b, and the configuration information of the application c in the configuration directory c. The configuration information of each application program further comprises an identification of the application program, and the identification is used for uniquely representing the identity of the application program.
S207, the configuration information of the plurality of application programs included in the backup user data and the identifications of the plurality of application programs are analyzed.
And S208, inquiring a corresponding configuration directory in the target system partition according to the identifications of the plurality of application programs.
The target system partition is provided with a plurality of configuration directories of the application programs, and the configuration directories store configuration information of the application programs.
And S209, writing the configuration information of the plurality of application programs into the corresponding configuration directories.
And the terminal overwrites the configuration information in the recovery partition into a corresponding configuration directory in the target system partition so as to update the configuration information of each application program.
And S210, starting the operating system based on the target system partition.
After the user executes cmd (command prompt) based on the user interface, the terminal restarts based on the target system partition, and each application program completes configuration by using the last normal configuration information.
In the embodiment of the application, a recovery instruction is received, and backup user data in a preset recovery partition is read based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 7, a schematic structural diagram of an apparatus for recovering user data according to an exemplary embodiment of the present application is shown. The means for recovering user data may be implemented as all or part of the terminal in software, hardware or a combination of both. The device 1 comprises a reading unit 10, a determining unit 20 and an activating unit 30.
A reading unit 10, configured to receive a recovery instruction, and read backup user data in a preset recovery partition based on the recovery instruction;
a determining unit 20, configured to determine a target system partition in the first system partition and the second system partition;
a starting unit 30, configured to write the backup user data into the target system partition, and start an operating system based on the target system partition.
Optionally, the determining unit 20 is specifically configured to:
receiving a selection instruction;
determining a target system partition among the first system partition and the second system partition based on the selection instruction; or
Determining a target system partition in the first system partition and the second system partition according to a system log; wherein the content of the first and second substances,
optionally, referring to fig. 7, the apparatus 1 further includes:
the monitoring module is used for monitoring the running state of an operating system of the terminal to generate backup user data; wherein the backup user data comprises
Storing the backup user data in a recovery partition.
Optionally, the storing the backup user data in the recovery partition includes:
and encrypting the backup user data, compressing the encrypted backup user data and storing the compressed backup user data in a recovery partition.
Optionally, the reading of the backup user data in the preset recovery partition based on the recovery instruction includes:
querying a configuration directory corresponding to each of the plurality of application programs in the recovery partition;
and reading the backup user data comprising the configuration information of each application program in the configuration catalog corresponding to each application program.
Optionally, the writing the backup user data into the target system partition includes:
analyzing configuration information of a plurality of application programs included in the backup user data and identifications of the plurality of application programs;
inquiring corresponding configuration directories in the target system partition according to the identifiers of the plurality of application programs;
and writing the configuration information of the plurality of application programs into corresponding configuration directories.
Optionally, the recovery partition is disposed in a removable memory card.
It should be noted that, when the apparatus for recovering user data provided in the foregoing embodiment executes the method for recovering user data, only the division of the above functional modules is taken as an example, and in practical applications, the above functions may be distributed to different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for recovering user data and the method for recovering user data provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, a recovery instruction is received, and backup user data in a preset recovery partition is read based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 to 6, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 6, which are not described herein again.
Please refer to fig. 9, which provides a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 9, the terminal 1000 can include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. Processor 1001 interfaces various parts throughout terminal 1000 using various interfaces and lines, and performs various functions of terminal 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 1005, and calling data stored in memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 9, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application program for restoring user data.
In the terminal 1000 shown in fig. 9, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke an application program stored in the memory 1005 for restoring user data, and specifically perform the following operations:
receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction;
determining a target system partition in the first system partition and the second system partition;
writing the backup user data to the target system partition, and booting an operating system based on the target system partition.
In one or more embodiments, processor 1001 performs the determining the target system partition among the first system partition and the second system partition, including:
receiving a selection instruction;
determining a target system partition among the first system partition and the second system partition based on the selection instruction; or
Determining a target system partition in the first system partition and the second system partition according to a system log; wherein the content of the first and second substances,
in one or more embodiments, processor 1001 is further configured to perform:
monitoring the running state of an operating system of the terminal to generate backup user data; wherein the backup user data comprises
Storing the backup user data in a recovery partition.
In one or more embodiments, processor 1001 performs the storing of the backup user data in the recovery partition, including:
and encrypting the backup user data, compressing the encrypted backup user data and storing the compressed backup user data in a recovery partition.
In one or more embodiments, the processor 1001 executes the reading of the backup user data in the preset recovery partition based on the recovery instruction, including:
querying a configuration directory corresponding to each of the plurality of application programs in the recovery partition;
and reading the backup user data comprising the configuration information of each application program in the configuration catalog corresponding to each application program.
In one or more embodiments, processor 1001 performs the writing of the backup user data to the target system partition, including:
analyzing configuration information of a plurality of application programs included in the backup user data and identifications of the plurality of application programs;
inquiring corresponding configuration directories in the target system partition according to the identifiers of the plurality of application programs;
and writing the configuration information of the plurality of application programs into corresponding configuration directories.
In one or more embodiments, processor 1001 executes the recovery partition to be disposed in a removable memory card.
In the embodiment of the application, a recovery instruction is received, and backup user data in a preset recovery partition is read based on the recovery instruction; determining a target system partition in the first system partition and the second system partition; writing the backup user data to the target system partition, and booting the operating system based on the target system partition. And a recovery partition used for storing the backup user data is independently arranged in the physical partition of the terminal, so that when the operating system currently running in the terminal cannot be normally started, the operating system is restarted after the terminal is booted through the backup user data in the recovery partition and the system installation package in the system partition, and the operating system of the terminal can be recovered to the original running state, and is convenient for a user to use.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for recovering user data, the method comprising:
receiving a recovery instruction, and reading backup user data in a preset recovery partition based on the recovery instruction;
determining a target system partition in the first system partition and the second system partition;
writing the backup user data to the target system partition, and booting an operating system based on the target system partition.
2. The method of claim 1, wherein determining a target system partition among the first system partition and the second system partition comprises:
receiving a selection instruction;
determining a target system partition among the first system partition and the second system partition based on the selection instruction; or
Determining a target system partition in the first system partition and the second system partition according to a system log.
3. The method of claim 1, further comprising:
monitoring the running state of an operating system of the terminal to generate backup user data; wherein the backup user data comprises
Storing the backup user data in a recovery partition.
4. The method of claim 3, wherein storing the backup user data in a recovery partition comprises:
and encrypting the backup user data, compressing the encrypted backup user data and storing the compressed backup user data in a recovery partition.
5. The method of claim 1, wherein reading backup user data in a preset recovery partition based on the recovery instruction comprises:
querying a configuration directory corresponding to each of the plurality of application programs in the recovery partition;
and reading the backup user data comprising the configuration information of each application program in the configuration catalog corresponding to each application program.
6. The method of claim 4, wherein writing the backup user data to the target system partition comprises:
analyzing configuration information of a plurality of application programs included in the backup user data and identifications of the plurality of application programs;
inquiring corresponding configuration directories in the target system partition according to the identifiers of the plurality of application programs;
and writing the configuration information of the plurality of application programs into corresponding configuration directories.
7. The method of claim 1, wherein the recovery partition is disposed in a pluggable memory card.
8. An apparatus for recovering user data, the apparatus comprising:
the reading unit is used for receiving a recovery instruction and reading the backup user data in a preset recovery partition based on the recovery instruction;
a determining unit configured to determine a target system partition in the first system partition and the second system partition;
and the starting unit is used for writing the backup user data into the target system partition and starting an operating system based on the target system partition.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202010203202.1A 2020-03-20 2020-03-20 Method, device, storage medium and terminal for recovering user data Withdrawn CN113495806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010203202.1A CN113495806A (en) 2020-03-20 2020-03-20 Method, device, storage medium and terminal for recovering user data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010203202.1A CN113495806A (en) 2020-03-20 2020-03-20 Method, device, storage medium and terminal for recovering user data

Publications (1)

Publication Number Publication Date
CN113495806A true CN113495806A (en) 2021-10-12

Family

ID=77993172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010203202.1A Withdrawn CN113495806A (en) 2020-03-20 2020-03-20 Method, device, storage medium and terminal for recovering user data

Country Status (1)

Country Link
CN (1) CN113495806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357295A (en) * 2022-10-21 2022-11-18 荣耀终端有限公司 System rollback method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294360A1 (en) * 2005-06-24 2006-12-28 Kabushiki Kaisha Toshiba Information processing apparatus, storage medium, and data rescue method
CN102339244A (en) * 2010-07-29 2012-02-01 上海置水软件技术有限公司 System backup and restoration technology based on virtual partition
CN102439565A (en) * 2011-10-28 2012-05-02 华为技术有限公司 Method and device for starting recovery
CN102799499A (en) * 2012-06-15 2012-11-28 深圳乐投卡尔科技有限公司 Vehicular Android equipment system recovery method and vehicular Android equipment
US20150277897A1 (en) * 2013-09-13 2015-10-01 Huizhou Tcl Mobile Communication Co., Ltd. Software upgrade method and system for mobile terminal
CN107656706A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable storage medium
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294360A1 (en) * 2005-06-24 2006-12-28 Kabushiki Kaisha Toshiba Information processing apparatus, storage medium, and data rescue method
CN102339244A (en) * 2010-07-29 2012-02-01 上海置水软件技术有限公司 System backup and restoration technology based on virtual partition
CN102439565A (en) * 2011-10-28 2012-05-02 华为技术有限公司 Method and device for starting recovery
CN102799499A (en) * 2012-06-15 2012-11-28 深圳乐投卡尔科技有限公司 Vehicular Android equipment system recovery method and vehicular Android equipment
US20150277897A1 (en) * 2013-09-13 2015-10-01 Huizhou Tcl Mobile Communication Co., Ltd. Software upgrade method and system for mobile terminal
CN107656706A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable storage medium
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357295A (en) * 2022-10-21 2022-11-18 荣耀终端有限公司 System rollback method, device and storage medium

Similar Documents

Publication Publication Date Title
US10552263B2 (en) System running method and intelligent terminal
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
US11222118B2 (en) Method for updating selinux security policy and terminal
CN106933593B (en) System switching method and device based on mobile terminal
US11169866B2 (en) Method for detecting memory leak and electronic device thereof
TW201415365A (en) Method for updating operating system and handheld electronic apparatus
CN109905770B (en) Terminal starting method and device and terminal
CN108174255B (en) Smart television starting method, smart television and computer readable storage medium
EP3926466A1 (en) Electronic device which prefetches application and method therefor
US20130179670A1 (en) Booting method of multimedia device and multimedia device
US11157264B2 (en) Electronic device and method for controlling update of electronic device
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN110825563A (en) System recovery method and device and electronic equipment
KR20200090010A (en) Method for updating firmware, electronic device and storage medium therefor
TW201531844A (en) Operating system recovery method, apparatus and terminal device
CN111708548A (en) Software installation method, device, equipment and storage medium
US11379458B2 (en) Electronic device and data management method thereof
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
CN113495806A (en) Method, device, storage medium and terminal for recovering user data
US20210004240A1 (en) Electronic device for performing booting, and operating method therefor
CN112463199A (en) System upgrading method and terminal
CN108446144B (en) Application program starting method and device, terminal and storage medium
US20210026807A1 (en) Method for managing data associated with application and electronic device therefor
CN110083484B (en) FPGA reloading method, device, storage medium and system

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20211012

WW01 Invention patent application withdrawn after publication