CN111400091B - Factory setting restoration method, factory setting restoration device and mobile terminal - Google Patents

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

Info

Publication number
CN111400091B
CN111400091B CN202010153006.8A CN202010153006A CN111400091B CN 111400091 B CN111400091 B CN 111400091B CN 202010153006 A CN202010153006 A CN 202010153006A CN 111400091 B CN111400091 B CN 111400091B
Authority
CN
China
Prior art keywords
application program
path
identification information
factory
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010153006.8A
Other languages
Chinese (zh)
Other versions
CN111400091A (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
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

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, wherein the method comprises the following steps: when an instruction for starting and restoring factory settings is obtained, determining target data; acquiring a storage path of the target data; and 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. The application can solve the problem of losing important data when restoring factory settings in the prior art.

Description

Factory setting restoration method, factory setting restoration device and mobile terminal
Technical Field
The application belongs to the field of data processing, and particularly relates to a factory setting restoration method, a factory setting restoration device, a mobile terminal and a computer readable storage medium.
Background
The mobile terminal generally has a function of restoring factory settings, and is used for restoring the mobile terminal to a factory state, such as restoring functions of a starting interface, a standby mode, an operation shortcut key, a timing reminding and the like, and deleting stored parameter settings. In the prior art, after restoring the mobile terminal to the factory setting, all data in the storage space are usually deleted, and although the performance of the mobile terminal is improved, important data which a user wants to reserve are 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 setting restoration method, where the factory setting restoration method includes:
When an instruction for starting and restoring factory settings is obtained, determining target data;
Acquiring a storage path of the target data;
and 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 second aspect, an embodiment of the present application provides a factory setting restoration device, including:
The data determining module is used for determining target data when an instruction for starting to restore factory settings is acquired;
the path acquisition module is used for acquiring a storage path of the target data;
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 the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the factory-reset method according to the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform the steps of the factory-reset method as described in the first aspect above.
From the above, when the command for starting the factory setting recovery 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 are deleted, so that the important data of a user can be reserved when the factory setting is recovered, and the loss of the important data is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic implementation flow chart of a factory setting restoration method according to a first embodiment of the present application;
fig. 2 is a schematic implementation flow chart of a factory setting restoration method according to a second embodiment of the present application;
Fig. 3 is a schematic structural diagram of a factory-reset apparatus according to 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 the particular system architecture, 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 should 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 number of each step in this embodiment does not mean the execution sequence, and the execution sequence of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiment of the present application in any way.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring to fig. 1, a schematic implementation flow diagram of a factory-restoration setting method according to an embodiment of the present application is provided, where the factory-restoration setting method is applied to a mobile terminal, and as shown in the figure, the factory-restoration setting method may include the following steps:
step S101, when an instruction for starting to restore factory settings is obtained, determining target data.
In the embodiment of the application, the mobile terminal generally provides a system setting menu, factory-restoration setting options are set in the system setting menu, and when the mobile terminal detects the starting operation of the factory-restoration setting options, the mobile terminal acquires a command for starting the factory-restoration setting. The command for starting the factory setting restoration is used for indicating the mobile terminal to restore the factory setting. The target data may refer to all data to be deleted when restoring factory settings, including but not limited to all data in the internal memory space of the mobile terminal and all data in the subscriber identity card (Subscriber Identity Module, SIM), and categories of target data include but are not limited to account information, installed applications, music, photos, contacts, text messages, etc. The data in the SIM card includes, but is not limited to, contact information stored on the SIM card in the phonebook.
Step S102, a storage path of the target data is acquired.
In the embodiment of the present application, the storage path of the obtained target data may refer to a storage path of each type of data in the obtained target data in an internal storage space or in a SIM card, where storage paths of different types of data in the target data are different, for example, storage paths of photos and music in the target data are different.
Step S103, reserving preset path data in a storage path of the target data, and deleting other data except the preset path data in the target data.
In the embodiment of the application, the preset path may refer to a storage path of data to be reserved when factory setting is restored, the storage path of the data to be reserved may be obtained and stored before factory setting is restored, and the storage path is not deleted when factory setting is restored, and the storage path is the preset path.
The preset path comprises, but is not limited to, a storage path of a photo, a storage path of contact information in a telephone directory and a storage path of an installation package of a target application program. When the preset path is a storage path of the photos, all the photos in the mobile terminal can be reserved when factory setting is restored. When the preset path is a storage path of contact information in the telephone book, all the contact information in the telephone book of the mobile terminal can be reserved when factory setting is restored. When the preset path is the storage path of the installation package of the target application program, the target application program is reserved, 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 finishes restoring the factory setting, the 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 catalog of application program installation, and an apk file (namely an installation package) of the application program is copied to the catalog when the application program is installed; the data/data is used for storing data of the application program; the data/dalvik-cache is used for installing the dex file in the installation package of the application program under 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 setting is restored, data stored in the data/data and the data/dalvik-cache of the target application program are deleted, so that the mobile terminal still installs the target application program, and after factory setting restoration and starting are completed, the target application program does not need to be downloaded again.
Optionally, before restoring the factory setting, displaying all categories of the target data, and acquiring a target category selected by the user from all categories, wherein 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.
According to the embodiment of the application, the data which the user wants to reserve can be searched from the target data according to the preset path, when factory setting is restored, the data which the user wants to reserve in the target data is reserved, and other data in the target data is deleted, so that the occupation of other data on the storage space of the mobile terminal is reduced while important data is reserved, and the performance of the mobile terminal is improved.
When the command for starting the factory setting restoration is acquired, the storage path of the target data is acquired, 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 are deleted, so that the important data of a user can be reserved when the factory setting restoration is realized, and the loss of the important data is avoided.
Referring to fig. 2, a schematic implementation flow diagram of a factory-restoration setting method provided by a second embodiment of the present application, where the factory-restoration setting method is applied to a mobile terminal, and as shown in the figure, the factory-restoration setting method may include the following steps:
Step S201, when an instruction for starting to restore factory settings is obtained, determining target data.
The step is the same as step S101, and the detailed description of step S101 will be omitted here.
Step S202, acquiring a storage path of the target data.
The step is the same as step S102, and the detailed description of step S102 will be omitted herein.
Step S203, reserving a preset database under a preset path in the storage path of the target data, and deleting other data except the preset database in the target data, where the preset database includes identification information of at least one application program to be installed.
The reservation of the preset database may refer to reservation of 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 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.
Step S204, when the mobile terminal is started, the identification information of each application program to be installed is displayed on the mobile terminal interface.
In the embodiment of the application, the mobile terminal is started after the factory setting is restored, and 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 mobile terminal interface.
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 started, displaying the identification information of each application program to be installed on the mobile terminal interface includes:
when the mobile terminal is started, searching display positions 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 the embodiment of the application, in order to ensure that the identification information of the application program to be installed is consistent with the display position of the interface of the mobile terminal before the factory setting is restored after the factory setting is restored, the association relation between the identification information of each application program to be installed and the display position can be pre-established and stored in the association list of the preset database, the mobile terminal can acquire the association list from the preset database after the factory setting is restored, acquire the display position corresponding to the identification information of each application program to be installed from the association list, and display the identification information of the corresponding application program to be installed at the display position.
Step S205, when a preset operation for the identification information of any application program to be installed is obtained, downloading an installation package of the any application program to be installed, and installing the installation package.
In the embodiment of the present 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 the preset operation on the identification information of any one of all the applications to be installed displayed on the mobile terminal interface, and start downloading the installation package of any one of the applications to be installed.
Optionally, the downloading the installation package of any application program to be installed includes:
and downloading the installation package of any application program to be installed from a preset server.
In the embodiment of the application, when the preset operation of the identification information of any application program to be installed is obtained, an installation package downloading request can be sent to the preset server, and the preset server starts the downloading program after receiving the installation package downloading request, so that the mobile terminal downloads any application program to be installed. The preset server may be a preset server capable of downloading an 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 correspondence between application identification information and an application download path, and when a preset operation for identification information of any application to be installed is obtained, downloading an installation package of the any application to be installed includes:
searching a downloading path of any application program to be installed from the corresponding relation between the application program identification information and the downloading path of the application program when the preset operation of the identification information of any application program to be installed is obtained;
And downloading the installation package of any application program to be installed according to the downloading path of any application program to be installed.
Optionally, before the instruction for starting to restore the factory setting is obtained, the method further includes:
When each application program is monitored to be downloaded, recording a downloading path of each application program;
And acquiring the corresponding relation between the application program identification information and the application program downloading path 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 factory setting, each application program downloaded by the user can be monitored, the downloading path of each application program is recorded, the corresponding relation between the identification information of each application program and the downloading path of each application program is established, namely, the corresponding relation between the application program identification information and the downloading path of the application program, and when the factory setting is restored, if a certain application program to be installed is to be downloaded, the downloading path of the application program to be installed can be obtained from the corresponding relation, thereby ensuring the consistency of the downloading paths before and after the factory setting is restored.
According to the embodiment of the application, the identification information of the application program to be installed is reserved when the mobile terminal is restored to the factory setting, and the installation package of the application program to be installed can be rapidly downloaded through the identification information, so that the downloading and installing speeds of the installation package are improved.
Referring to fig. 3, a schematic diagram of a factory reset apparatus according to a third embodiment of the present application is shown, for convenience of explanation, only a portion related to the embodiment of the present application is 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 acquired;
A path acquisition module 32, configured to acquire a storage path of the target data;
the data processing module 33 is configured to retain data under a preset path in the storage path of the target data, and delete 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, the preset database includes identification information of at least one application program to be installed, and after the restoration of the factory setting is completed, the device for restoring the factory setting further includes:
the identification display module is used for displaying identification information of each application program to be installed on the interface of the mobile terminal 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, the association list stores association relation between identification information of each application program to be installed and a corresponding display position, and the identification display module is specifically configured to:
when the mobile terminal is started, searching display positions 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 correspondence between application identification information and an application download path, and the installation package processing module is specifically configured to:
searching a downloading path of any application program to be installed from the corresponding relation between the application program identification information and the downloading path of the application program when the preset operation of the identification information of any application program to be installed is obtained;
And downloading the installation package of any application program to be installed according to the downloading path of any application program to be installed.
Optionally, the factory setting restoring device further includes:
The path recording module is used for recording the downloading path of each application program when each application program is monitored to be downloaded;
And the relation acquisition module is used for acquiring the corresponding relation between the application program identification information and the application program downloading path 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 storage path of a photo, a storage path of contact information in a phonebook, and a storage path of an installation package of the target application program.
The factory setting restoration device provided by the embodiment of the application can be applied to the first embodiment and the second embodiment of the method, and details are described in the first embodiment and the second embodiment of the method, and are not repeated here.
Fig. 4 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present application. The mobile terminal as shown may include: one or more processors 401 (only one shown in the figure); one or more input devices 402 (only one shown in the figure), one or more output devices 403 (only one shown in the figure), and a memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. Memory 404 is used to store instructions and processor 401 is used to execute the instructions stored by memory 404. Wherein:
the processor 401 is configured to determine target data when an instruction for starting to restore factory settings is obtained; acquiring a storage path of the target data; and 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.
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 restoration of the factory setting 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;
when a preset operation of identification information of any application program to be installed is acquired, downloading an installation package of the application program to be installed, and installing the installation package.
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 display positions 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 correspondence between application identification information and an application download path, and the processor 401 is specifically configured to:
searching a downloading path of any application program to be installed from the corresponding relation between the application program identification information and the downloading path of the application program when the preset operation of the identification information of any application program to be installed is obtained;
And downloading the installation package of any application program to be installed according to the downloading path of any application program to be installed.
Optionally, before the instruction to initiate restoring the factory settings is obtained, the processor 401 is further configured to:
When each application program is monitored to be downloaded, recording a downloading path of each application program;
And acquiring the corresponding relation between the application program identification information and the application program downloading path 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 storage path of a photo, a storage path of contact information in a phonebook, and a storage path of an installation package of the target application program.
It should be appreciated that in an embodiment of the application, the Processor 401 may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or 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 a fingerprint), a microphone, a data receiving interface, and the like. The output devices 403 may include a display (LCD, etc.), speakers, a data-transmitting interface, etc.
The memory 404 may include read only memory and random access memory and provide instructions and data to the processor 401. A portion of memory 404 may also include non-volatile random access memory. For example, memory 404 may also store information of device type.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in the embodiments of the present application may execute the implementation described in the embodiments of the method for restoring factory settings provided in the embodiments of the present application, or may execute the implementation described in the device for restoring factory settings 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 in the figure), 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, when executing the computer program 52, implements the steps of the various factory reset method embodiments described above.
The mobile terminal 5 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The mobile terminal may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the mobile terminal 5 and is not intended to limit the mobile terminal 5, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the mobile terminal may further include an input-output device, a network access device, a bus, 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 array FPGA or other programmable logic device, 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 memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/mobile terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may also be implemented as a computer program product for implementing all or part of the steps of the method embodiments described above, when said computer program product is run on a mobile terminal, causing the mobile terminal to execute the steps of the method embodiments described above.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method of restoring factory settings, the method comprising:
When an instruction for starting and restoring factory settings is obtained, determining target data;
Acquiring a storage path of the target data;
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; before factory setting is restored, displaying all categories of target data, and acquiring target categories selected by a user from all categories, wherein a storage path of the data of the target categories in an internal storage space is the preset path, and the categories comprise account information, installed application programs, music, photos, contacts and short messages;
the preset path is a storage path of a preset database, the preset database comprises identification information of at least one application program to be installed, when the mobile terminal is started after the factory setting is restored, the identification information of each application program to be installed is displayed on a mobile terminal interface, and the identification information comprises icons and/or names of the application programs to be installed;
when a preset operation of identification information of any application program to be installed is acquired, downloading an installation package of the application program to be installed, and installing the installation package.
2. The factory reset method of claim 1, wherein the preset database further comprises 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 a mobile terminal interface when the mobile terminal is started comprises:
when the mobile terminal is started, searching display positions 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.
3. The factory-reset method of claim 1, wherein said downloading an installation package for any one of said applications to be installed comprises:
and downloading the installation package of any application program to be installed from a preset server.
4. The factory-reset method of claim 1, wherein the preset database further includes a correspondence between application identification information and an application download path, and wherein downloading the installation package of any application to be installed when a preset operation for the identification information of the any application to be installed is obtained includes:
searching a downloading path of any application program to be installed from the corresponding relation between the application program identification information and the downloading path of the application program when the preset operation of the identification information of any application program to be installed is obtained;
And downloading the installation package of any application program to be installed according to the downloading path of any application program to be installed.
5. The factory-restoration-setting method as set forth in claim 4, further comprising, before the instruction to start the factory-restoration setting is acquired:
When each application program is monitored to be downloaded, recording a downloading path of each application program;
And acquiring the corresponding relation between the application program identification information and the application program downloading path 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.
6. The factory-restoration method according to 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 phonebook, and a storage path of an installation package of a target application.
7. A factory-reset device, the factory-reset device comprising:
The data determining module is used for determining target data when an instruction for starting to restore factory settings is acquired;
the path acquisition module is used for acquiring a storage path of the target data;
The data processing module is used for reserving data under a preset path in a storage path of the target data, deleting other data except the data under the preset path in the target data, displaying all categories of the target data before factory setting is restored, and acquiring target categories selected by a user from all categories, wherein the storage path of the data of the target categories in an internal storage space is the preset path, and the categories comprise account information, installed application programs, music, photos, contacts and short messages;
The preset path is a storage path of a preset database, the preset database includes identification information of at least one application program to be installed, and after the restoration of the factory setting is completed, the device for restoring the factory setting further includes:
the mobile terminal comprises an identification display module, a display module and a display module, wherein 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 identification information comprises icons and/or names of the applications to be installed;
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.
8. 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 6 when the computer program is executed.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the factory-reset method of any one of claims 1 to 6.
CN202010153006.8A 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 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 Factory setting restoration method, factory setting restoration device and mobile terminal

Publications (2)

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

Family

ID=

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 模式取证方法研究;韦博华;信息通信;20150915(第09期);第17-18 *

Similar Documents

Publication Publication Date Title
CN111427596B (en) Software upgrading method and device and terminal equipment
US20160224207A1 (en) Method and system for freezing and unfreezing applications
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
CN110096302B (en) Software data storage and upgrading method, device, equipment and storage medium
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN104461504A (en) Managing method of terminal application program
CN109117153B (en) Application processing method, device, terminal and storage medium
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN104461505A (en) Terminal
CN111198777A (en) Data processing method, device, terminal and storage medium
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
US20180341426A1 (en) Method and device for clearing data and electronic device
CN109271266B (en) File transmission method and device and terminal equipment
CN109298956B (en) File transmission method and device and terminal equipment
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN116009969A (en) Application program control method, device, electronic equipment, chip and storage medium
CN106547485B (en) Data migration method and device
CN110968471A (en) Program crash problem reporting method, storage medium, electronic device and system
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN112631609A (en) Compiling method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant