CN111400091A - Factory setting restoring method, factory setting restoring device and mobile terminal - Google Patents

Factory setting restoring method, factory setting restoring device and mobile terminal Download PDF

Info

Publication number
CN111400091A
CN111400091A CN202010153006.8A CN202010153006A CN111400091A CN 111400091 A CN111400091 A CN 111400091A CN 202010153006 A CN202010153006 A CN 202010153006A CN 111400091 A CN111400091 A CN 111400091A
Authority
CN
China
Prior art keywords
application program
path
data
identification information
mobile 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.)
Granted
Application number
CN202010153006.8A
Other languages
Chinese (zh)
Other versions
CN111400091B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010153006.8A priority Critical patent/CN111400091B/en
Publication of CN111400091A publication Critical patent/CN111400091A/en
Application granted granted Critical
Publication of CN111400091B publication Critical patent/CN111400091B/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/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a factory setting restoration method, a factory setting restoration device, a mobile terminal and a computer-readable storage medium, which comprise: when an instruction for starting to restore factory settings is acquired, target data is determined; acquiring a storage path of the target data; and reserving data under a preset path in the storage path of the target data, and deleting other data except the data under the preset path in the target data. Through the method and the device, the problem that important data are lost when factory settings are restored in the prior art can be solved.

Description

Factory setting restoring method, factory setting restoring device and mobile terminal
Technical Field
The present application belongs to the field of data processing, and in particular, relates to a factory reset method, a factory reset apparatus, a mobile terminal, and a computer-readable storage medium.
Background
The mobile terminal generally has a function of factory setting restoration, and is configured to restore the mobile terminal to a factory state, such as restoring functions of a start interface, a standby mode, an operation shortcut key, a timing reminder, and the like, and delete stored parameter settings. In the prior art, after the mobile terminal is restored to the factory setting, all data in the storage space is usually deleted, and although the performance of the mobile terminal is improved, important data that a user wants to keep is also lost.
Disclosure of Invention
The application provides a factory setting restoration method, a factory setting restoration device, a mobile terminal and a computer readable storage medium, which are used for solving the problem that important data are lost when factory setting is restored in the prior art.
In a first aspect, an embodiment of the present application provides a factory reset method, where the factory reset method includes:
when an instruction for starting to restore factory settings is acquired, target data is determined;
acquiring a storage path of the target data;
and reserving data under a preset path in the storage path of the target data, and deleting other data except the data under the preset path in the target data.
In a second aspect, an embodiment of the present application provides an apparatus for factory reset, where the apparatus for factory reset includes:
the data determining module is used for determining target data when an instruction for starting and restoring factory settings is acquired;
the path acquisition module is used for acquiring a storage path of the target data;
and the data processing module is used for reserving data under a preset path in a storage path of the target data and deleting other data except the data under the preset path in the target data.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the factory setting restoration method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the factory setting restoration method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a mobile terminal, causes the mobile terminal to execute the steps of the factory setting restoration method according to the first aspect.
Therefore, when the instruction for starting to restore the factory setting is obtained, the storage path of the target data is obtained, the data under the preset path in the storage path of the target data is reserved, and other data except the data under the preset path in the target data is deleted, so that the important data of a user can be reserved when the factory setting is restored, and the important data are prevented from being lost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a factory setting restoration method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a factory reset method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a factory setting resetting apparatus provided in a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, is a schematic flow chart illustrating an implementation process of a factory resetting method provided in an embodiment of the present application, where the factory resetting method is applied to a mobile terminal, and as shown in the figure, the factory resetting method may include the following steps:
and step S101, when an instruction for starting and restoring factory settings is acquired, determining target data.
In this embodiment of the application, the mobile terminal generally provides a system setting menu, a factory reset option is provided in the system setting menu, and when detecting a starting operation on the factory reset option, the mobile terminal obtains an instruction for starting factory reset. And the instruction for starting the factory reset is used for indicating the mobile terminal to reset the factory setting. The target data may refer to all data to be deleted when factory settings are restored, including but not limited to all data in an internal storage space of the mobile terminal and all data in a Subscriber Identity Module (SIM), and the category of the target data includes but is not limited to account information, installed applications, music, photos, contacts, short messages, and the like. The data in the SIM card includes, but is not limited to, contact information stored on the SIM card in the phonebook.
And step S102, acquiring a storage path of the target data.
In the embodiment of the present application, the storage path of the acquired target data may refer to a storage path of each type of data in the acquired target data in an internal storage space or in an SIM card, where the storage paths of different types of data in the target data are different, for example, the storage paths of photos and music in the target data are different.
Step S103, reserving data under a preset path in a storage path of the target data, and deleting other data except the data under the preset path in the target data.
In this embodiment of the present application, the preset path may refer to a storage path of data to be reserved when factory settings are restored, and the storage path of the data to be reserved may be acquired and stored before factory settings are restored, and the storage path is not deleted when factory settings are restored, where the storage path is the preset path.
The preset path includes, but is not limited to, a storage path of a photo, a storage path of contact information in a phonebook, and a storage path of an installation package of a target application. When the preset path is a storage path of the photos, all the photos in the mobile terminal can be reserved when factory settings are restored. When the preset path is a storage path of the contact information in the telephone book, all the contact information in the telephone book of the mobile terminal can be reserved when factory settings are restored. When the preset path is the storage path of the installation package of the target application program, the target application program is reserved, and the user data of the target application program is deleted, namely the target application program is still installed in the mobile terminal, but the user data generated in the running process of the target application program is deleted, so that after the mobile terminal is restored to the factory setting, a user does not need to download and install the installation package of the target application program again. The target application program can be any application program installed on the mobile terminal by a user, after the application program is installed on the mobile terminal, three file paths are usually provided, namely data/app, data/data and data/dalvik-cache, the data/app is a directory for installing the application program, and an apk file (namely an installation package) of the application program is copied to the directory during installation; the data/data is used for storing the data of the application program; the data/dalvik-cache is used for installing the dex file in the installation package of the application program into the dalvik-cache directory. The storage path of the installation package of the target application program refers to data/app of the target application program, when factory settings are restored, data stored in the data/data and data/dalvik-cache of the target application program are deleted, so that the target application program is still installed on the mobile terminal, and the target application program does not need to be downloaded again after the factory settings are restored and the mobile terminal is started.
Optionally, before factory settings are restored, all categories of the target data are displayed, a target category selected by a user from all categories is obtained, a storage path of the data of the target category in the internal storage space is a preset path, for example, the target category is a photo, and then the storage path of the photo in the internal storage space is the preset path.
In the embodiment of the application, the data which the user wants to keep can be searched from the target data according to the preset path, when factory settings are restored, the data which the user wants to keep in the target data are kept, and other data in the target data are deleted, so that the occupation of other data on the storage space of the mobile terminal is reduced while important data are kept, and the performance of the mobile terminal is improved.
According to the method and the device, when the instruction for starting to restore the factory settings is obtained, the storage path of the target data is obtained, the data under the preset path in the storage path of the target data is reserved, and other data except the data under the preset path in the target data is deleted, so that the important data of a user can be reserved when the factory settings are restored, and the important data are prevented from being lost.
Referring to fig. 2, is a schematic flow chart illustrating an implementation of a factory resetting method provided in the second embodiment of the present application, where the factory resetting method is applied to a mobile terminal, and as shown in the figure, the factory resetting method may include the following steps:
in step S201, when an instruction to start factory reset is acquired, target data is determined.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S202, acquiring a storage path of the target data.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Step S203, reserving a preset database under a preset path in the storage path of the target data, and deleting other data in the target data except the preset database, where the preset database includes identification information of at least one application to be installed.
The reserving the preset database may refer to reserving the preset database itself and all data stored in the preset database. The application to be installed may refer to at least one application among all applications installed by the user, and the user may select at least one application to be installed from all the applications installed according to actual needs. The identification information of the application to be installed includes, but is not limited to, an icon of the application to be installed and/or a name of the application to be installed.
And step S204, when the mobile terminal is started, displaying the identification information of each application program to be installed on the interface of the mobile terminal.
In the embodiment of the application, the mobile terminal is started after the factory reset is completed, and at this time, the identification information of each application program to be installed in the at least one application program to be installed can be displayed on the interface of the mobile terminal.
Optionally, the preset database further includes an association list, where the association list stores an association relationship between identification information of each application program to be installed and a corresponding display position, and when the mobile terminal is turned on, displaying the identification information of each application program to be installed on the mobile terminal interface includes:
when the mobile terminal is started, searching a display position corresponding to the identification information of each application program to be installed from the association list;
and displaying the identification information of each application program to be installed at the corresponding display position on the mobile terminal interface.
In this embodiment of the application, in order to ensure that after the factory reset of the mobile terminal is performed, the display position of the identifier information of the application program to be installed on the interface of the mobile terminal is consistent with the display position before the factory reset, an association relationship between the identifier information and the display position of each application program to be installed may be pre-established and stored in an association list of a preset database, and after the factory reset of the mobile terminal, the association list may be obtained from the preset database, the display position corresponding to the identifier information of each application program to be installed may be obtained from the association list, and the identifier information of the corresponding application program to be installed may be displayed at the display position.
Step S205, when a preset operation on the identification information of any application to be installed is acquired, downloading an installation package of the any application to be installed, and installing the installation package.
In this embodiment of the application, the preset operation may refer to any operation of starting downloading the installation package, for example, a click operation, and the user may perform a preset operation on identification information of any one to-be-installed application program of all to-be-installed application programs displayed on the interface of the mobile terminal, and start downloading the installation package of the any to-be-installed application program.
Optionally, the downloading the installation package of any application to be installed includes:
and downloading the installation package of any application program to be installed from a preset server.
In this embodiment of the application, when a preset operation on identification information of any application to be installed is acquired, an installation package downloading request may be sent to a preset server, and the preset server starts a downloading program after receiving the installation package downloading request, so that the mobile terminal downloads the any application to be installed. The preset server may refer to a preset server capable of downloading the application installation package, for example, a server of an application store of the mobile terminal. The installation package downloading request comprises the identification information and the downloading identification information of any application program to be installed, and the downloading identification information is used for indicating the server to start the downloading program.
Optionally, the preset database further includes a corresponding relationship between application program identification information and an application program download path, and when the preset operation on the identification information of any application program to be installed is obtained, downloading the installation package of the any application program to be installed includes:
when the preset operation of the identification information of any application program to be installed is acquired, searching the download path of any application program to be installed from the corresponding relation between the identification information of the application program and the download path of the application program;
and downloading the installation package of any application program to be installed according to the download path of any application program to be installed.
Optionally, before acquiring the instruction for starting to restore the factory settings, the method further includes:
when monitoring that each application program is downloaded, recording a downloading path of each application program;
and acquiring the corresponding relation between the identification information of the application program and the downloading path of the application program according to the identification information of each application program and the downloading path of each application program, and storing the corresponding relation in the preset database.
In the embodiment of the application, in order to ensure that the downloading of the application program to be installed is closer to the downloading habit of the user, before the mobile terminal starts to restore the factory settings, each application program downloaded by the user may be monitored, the downloading path of each application program is recorded, and a corresponding relationship between the identification information of each application program and the downloading path of each application program is established, where the corresponding relationship is the corresponding relationship between the identification information of the application program and the downloading path of the application program.
According to the embodiment of the application, when the factory setting of the mobile terminal is restored, the identification information of the application program to be installed is reserved, the installation package of the application program to be installed can be downloaded rapidly through the identification information, and the downloading and installing speed of the installation package is improved.
Fig. 3 is a schematic diagram of a factory setup resetting apparatus according to a third embodiment of the present application, and for convenience of description, only the relevant portions of the third embodiment of the present application are shown.
The factory setting restoration device comprises:
the data determining module 31 is configured to determine target data when an instruction for starting to restore factory settings is obtained;
a path obtaining module 32, configured to obtain a storage path of the target data;
and the data processing module 33 is configured to retain preset path data in a storage path of the target data, and delete other data in the target data except the preset path data.
Optionally, the preset path is a storage path of a preset database, the preset database includes identification information of at least one application to be installed, and after the factory reset is completed, the factory reset apparatus further includes:
the identification display module is used for displaying identification information of each application program to be installed on a mobile terminal interface when the mobile terminal is started;
and the installation package processing module is used for downloading the installation package of any application program to be installed and installing the installation package when the preset operation of the identification information of any application program to be installed is acquired.
Optionally, the preset database further includes an association list, where the association list stores an association relationship between the identification information of each application to be installed and a corresponding display position, and the identification display module is specifically configured to:
when the mobile terminal is started, searching a display position corresponding to the identification information of each application program to be installed from the association list;
and displaying the identification information of each application program to be installed at the corresponding display position on the mobile terminal interface.
Optionally, the installation package processing module is specifically configured to:
and downloading the installation package of any application program to be installed from a preset server.
Optionally, the preset database further includes a corresponding relationship between the application program identification information and the application program download path, and the installation package processing module is specifically configured to:
when the preset operation of the identification information of any application program to be installed is acquired, searching the download path of any application program to be installed from the corresponding relation between the identification information of the application program and the download path of the application program;
and downloading the installation package of any application program to be installed according to the download path of any application program to be installed.
Optionally, the factory setting restoration apparatus further includes:
the path recording module is used for recording the downloading path of each application program when monitoring that each application program is downloaded;
and the relationship acquisition module is used for acquiring the corresponding relationship between the identification information of the application program and the download path of the application program according to the identification information of each application program and the download path of each application program, and storing the corresponding relationship in the preset database.
Optionally, the preset path is at least one of a storage path of the photo, a storage path of contact information in the phonebook, and a storage path of an installation package of the target application program.
The factory setting reset device provided in this embodiment of the present application may be applied to the first method embodiment and the second method embodiment, and for details, reference is made to the description of the first method embodiment and the second method embodiment, and details are not described here again.
Fig. 4 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one shown), and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 404 is used for storing instructions and the processor 401 is used for executing the instructions stored by the memory 404. Wherein:
the processor 401 is configured to determine target data when an instruction to start factory reset is obtained; acquiring a storage path of the target data; and reserving data under a preset path in the storage path of the target data, and deleting other data except the data under the preset path in the target data.
Optionally, the preset path is a storage path of a preset database, where the preset database includes identification information of at least one application to be installed, and after the factory reset is completed, the processor 401 is further configured to:
when the mobile terminal is started, displaying identification information of each application program to be installed on a mobile terminal interface;
and downloading the installation package of any application program to be installed and installing the installation package when the preset operation of the identification information of any application program to be installed is acquired.
Optionally, the preset database further includes an association list, where the association list stores an association relationship between identification information of each application to be installed and a corresponding display position, and the processor 401 is specifically configured to:
when the mobile terminal is started, searching a display position corresponding to the identification information of each application program to be installed from the association list;
and displaying the identification information of each application program to be installed at the corresponding display position on the mobile terminal interface.
Optionally, the processor 401 is specifically configured to:
and downloading the installation package of any application program to be installed from a preset server.
Optionally, the preset database further includes a corresponding relationship between the application program identification information and the application program download path, and the processor 401 is specifically configured to:
when the preset operation of the identification information of any application program to be installed is acquired, searching the download path of any application program to be installed from the corresponding relation between the identification information of the application program and the download path of the application program;
and downloading the installation package of any application program to be installed according to the download path of any application program to be installed.
Optionally, before acquiring the instruction to start factory reset, the processor 401 is further configured to:
when monitoring that each application program is downloaded, recording a downloading path of each application program;
and acquiring the corresponding relation between the identification information of the application program and the downloading path of the application program according to the identification information of each application program and the downloading path of each application program, and storing the corresponding relation in the preset database.
Optionally, the preset path is at least one of a storage path of the photo, a storage path of contact information in the phonebook, and a storage path of an installation package of the target application program.
It should be understood that, in the embodiment of the present Application, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, etc. the output device 403 may include a display (L CD, etc.), a speaker, a data transmitting interface, etc.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in this embodiment may execute the implementation described in the embodiment of the factory reset method provided in this embodiment, or may execute the implementation described in the factory reset apparatus described in the third embodiment, which is not described herein again.
Fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application. As shown in fig. 5, the mobile terminal 5 of this embodiment includes: one or more processors 50 (only one shown), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50. The processor 50 implements the steps in each factory reset method embodiment described above when executing the computer program 52.
The mobile terminal 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a mobile terminal 5 and does not constitute a limitation of the mobile terminal 5 and may include more or less components than those shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 50 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the mobile terminal 5, such as a hard disk or a memory of the mobile terminal 5. The memory 51 may also be an external storage device of the mobile terminal 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the mobile terminal 5. The memory 51 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
When the computer program product runs on a mobile terminal, the steps in the method embodiments can be realized when the mobile terminal executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A factory reset method is characterized by comprising the following steps:
when an instruction for starting to restore factory settings is acquired, target data is determined;
acquiring a storage path of the target data;
and reserving data under a preset path in the storage path of the target data, and deleting other data except the data under the preset path in the target data.
2. The factory reset method of claim 1, wherein the preset path is a storage path of a preset database, the preset database includes identification information of at least one application to be installed, and after the factory reset is completed, the method further comprises:
when the mobile terminal is started, displaying identification information of each application program to be installed on a mobile terminal interface;
and downloading the installation package of any application program to be installed and installing the installation package when the preset operation of the identification information of any application program to be installed is acquired.
3. The factory setting restoration method according to claim 2, wherein the preset database further includes an association list, the association list stores an association relationship between identification information of each application program to be installed and a corresponding display position, and displaying the identification information of each application program to be installed on the mobile terminal interface when the mobile terminal is powered on includes:
when the mobile terminal is started, searching a display position corresponding to the identification information of each application program to be installed from the association list;
and displaying the identification information of each application program to be installed at the corresponding display position on the mobile terminal interface.
4. The factory reset method of claim 2, wherein the downloading the installation package of any application to be installed comprises:
and downloading the installation package of any application program to be installed from a preset server.
5. The factory setting restoration method according to claim 2, wherein the preset database further includes a correspondence between application program identification information and an application program download path, and the downloading the installation package of any application program to be installed when the preset operation on the identification information of any application program to be installed is acquired includes:
when the preset operation of the identification information of any application program to be installed is acquired, searching the download path of any application program to be installed from the corresponding relation between the identification information of the application program and the download path of the application program;
and downloading the installation package of any application program to be installed according to the download path of any application program to be installed.
6. The factory reset method according to claim 5, further comprising, before acquiring the instruction to start factory reset, the steps of:
when monitoring that each application program is downloaded, recording a downloading path of each application program;
and acquiring the corresponding relation between the identification information of the application program and the downloading path of the application program according to the identification information of each application program and the downloading path of each application program, and storing the corresponding relation in the preset database.
7. The factory reset method of claim 1, wherein the preset path is at least one of a storage path of a photo, a storage path of contact information in a phone book, and a storage path of an installation package of a target application.
8. A factory setting restoration apparatus, comprising:
the data determining module is used for determining target data when an instruction for starting and restoring factory settings is acquired;
the path acquisition module is used for acquiring a storage path of the target data;
and the data processing module is used for reserving data under a preset path in a storage path of the target data and deleting other data except the data under the preset path in the target data.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the factory reset method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the factory setting restoration method according to any one of claims 1 to 7.
CN202010153006.8A 2020-03-06 2020-03-06 Factory setting restoration method, factory setting restoration device and mobile terminal Active CN111400091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010153006.8A CN111400091B (en) 2020-03-06 2020-03-06 Factory setting restoration method, factory setting restoration device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010153006.8A CN111400091B (en) 2020-03-06 2020-03-06 Factory setting restoration method, factory setting restoration device and mobile terminal

Publications (2)

Publication Number Publication Date
CN111400091A true CN111400091A (en) 2020-07-10
CN111400091B CN111400091B (en) 2024-04-26

Family

ID=71434141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010153006.8A Active CN111400091B (en) 2020-03-06 2020-03-06 Factory setting restoration method, factory setting restoration device and mobile terminal

Country Status (1)

Country Link
CN (1) CN111400091B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112307031A (en) * 2020-11-09 2021-02-02 成都优博创通信技术有限公司 Optical module information processing method and device, optical module and readable storage medium
CN114896219A (en) * 2022-07-15 2022-08-12 深圳市沃特沃德信息有限公司 Method and device for storing resource data, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469741A (en) * 2014-11-17 2015-03-25 小米科技有限责任公司 Terminal configuration method and device
CN105786310A (en) * 2015-11-17 2016-07-20 广东欧珀移动通信有限公司 Ranking method and device for application icons
CN105867987A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and device for processing data in Recovery mode
CN105975365A (en) * 2016-05-23 2016-09-28 Tcl移动通信科技(宁波)有限公司 Method and system for automatically restoring user settings of mobile terminal
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device
CN107908340A (en) * 2017-09-29 2018-04-13 捷开通讯(深圳)有限公司 Method, mobile terminal and the device with store function of factory reset
CN108196898A (en) * 2016-12-08 2018-06-22 中兴通讯股份有限公司 System remapping method, device and electronic equipment
WO2020010584A1 (en) * 2018-07-12 2020-01-16 华为技术有限公司 Data recovery method for when restoring factory settings of terminal, and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469741A (en) * 2014-11-17 2015-03-25 小米科技有限责任公司 Terminal configuration method and device
CN105786310A (en) * 2015-11-17 2016-07-20 广东欧珀移动通信有限公司 Ranking method and device for application icons
CN105867987A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and device for processing data in Recovery mode
CN105975365A (en) * 2016-05-23 2016-09-28 Tcl移动通信科技(宁波)有限公司 Method and system for automatically restoring user settings of mobile terminal
CN108196898A (en) * 2016-12-08 2018-06-22 中兴通讯股份有限公司 System remapping method, device and electronic equipment
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device
CN107908340A (en) * 2017-09-29 2018-04-13 捷开通讯(深圳)有限公司 Method, mobile terminal and the device with store function of factory reset
WO2020010584A1 (en) * 2018-07-12 2020-01-16 华为技术有限公司 Data recovery method for when restoring factory settings of terminal, and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韦博华: "Android 手机 Recovery 模式取证方法研究", 信息通信, no. 09, 15 September 2015 (2015-09-15), pages 17 - 18 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112307031A (en) * 2020-11-09 2021-02-02 成都优博创通信技术有限公司 Optical module information processing method and device, optical module and readable storage medium
CN114896219A (en) * 2022-07-15 2022-08-12 深圳市沃特沃德信息有限公司 Method and device for storing resource data, computer equipment and storage medium
CN114896219B (en) * 2022-07-15 2022-09-20 深圳市沃特沃德信息有限公司 Method and device for storing resource data, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111400091B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN110086877B (en) Application program sharing and information sharing display method, device, equipment and medium
CN105335187B (en) Application processing method and device
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
CN109814524B (en) Vehicle diagnosis method, device and system
CN108427649B (en) Access management method, terminal device, system and storage medium of USB interface
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN111427596B (en) Software upgrading method and device and terminal equipment
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN105357204A (en) Method and apparatus for generating terminal identifying information
CN108984339B (en) Data recovery method and related product
CN104461505A (en) Terminal
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN109032685B (en) Method and terminal for accelerating startup of android system
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN109271266B (en) File transmission method and device and terminal equipment
CN109298956B (en) File transmission method and device and terminal equipment
CN110019040B (en) Folder processing method, mobile terminal and storage medium
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN106547485B (en) Data migration method and device
CN115712918A (en) File protection method based on Linux system and electronic equipment
CN110968471A (en) Program crash problem reporting method, storage medium, electronic device 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
GR01 Patent grant
GR01 Patent grant