Factory recovery method, device and computer equipment
By estimating the power demand value in smart terminal devices and backing up private data, the problem of private data loss when the device is restored to factory settings is solved, and safe data recovery is achieved.
Patent Information
- Application Number
- CN202011140329.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-10-22
AI Technical Summary
Smart terminal devices can easily lead to the loss of user privacy data during the process of restoring factory settings or formatting, and it is difficult for existing technologies to effectively protect the security of private data.
When receiving the factory reset command, estimate the power demand value and determine whether the power is sufficient. If it is enough, back up the private data and perform the backup before formatting. After the backup is completed, enter the formatting process, and finally load the backup after the formatting is completed. private data to ensure data security.
It effectively avoids the loss of private data due to insufficient battery and ensures the security and integrity of private data during the process of restoring factory settings.
Smart Images

Figure CN112231147B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device and computer equipment for factory recovery. Background Art
[0002] Existing smart terminal devices, such as smart watches and mobile phones, often need to be restored to factory settings or formatted when the user changes or the system needs to be updated. However, when restoring the factory settings, some personal privacy data that the user wants to keep is often cleared due to abnormal errors, resulting in the loss of privacy data. Therefore, how to ensure the security of privacy data during the system restoration to factory settings or formatting has become a major problem that needs to be solved in the current application of smart terminal devices. Summary of the invention
[0003] The main purpose of this application is to provide a method, device and computer equipment for factory restoration, aiming to solve the problem that the user's privacy data is easily lost during the factory restoration or formatting process of existing smart terminal devices.
[0004] To achieve the above purpose, this application provides a method for factory recovery, including:
[0005] When receiving a factory reset instruction, estimating a power demand value required for the factory reset operation;
[0006] Determine whether the current remaining power value is greater than the power requirement value;
[0007] If the current remaining power value is greater than the power requirement value, the private data is backed up according to the preset rules;
[0008] After the privacy data backup is completed, the formatting process is started;
[0009] After the formatting process is completed, the backed-up private data is loaded.
[0010] Furthermore, the step of backing up the private data according to the preset rules includes:
[0011] Classifying the private data according to the privacy degree to obtain several levels of private sub-data;
[0012] The privacy sub-data at the highest level is backed up in a designated area of the system, and the privacy sub-data at other levels is backed up to a cloud server and / or associated devices via wireless signals.
[0013] Furthermore, the step of backing up the remaining levels of the private sub-data to a cloud server and / or associated devices via wireless signals includes:
[0014] Determine whether the current wireless network is normal;
[0015] If the current wireless network is normal, the remaining levels of the private sub-data are uploaded to the cloud server through the wireless network for backup;
[0016] If the current wireless network is abnormal, search through Bluetooth signals to see if the associated device exists within the preset range;
[0017] If the associated device is found to exist within the preset range through the Bluetooth signal search, the remaining levels of the private sub-data are transmitted to the associated device through the Bluetooth signal for backup;
[0018] If the associated device cannot be found within the preset range through the Bluetooth signal search, determining whether the remaining amount of the current system storage space is greater than a preset value;
[0019] If the remaining amount of the current system storage space is greater than a preset value, the remaining levels of the privacy sub-data are backed up in the system designated area.
[0020] Furthermore, the step of determining whether the current wireless network is normal includes:
[0021] Obtaining the current connection status with the wireless network;
[0022] If the current connection state is a disconnected state, determining that the current wireless network is abnormal;
[0023] If the current connection state is the connected state, determining whether the data upload speed of the wireless network is greater than an upload speed threshold;
[0024] If the data upload speed of the wireless network is greater than the upload speed threshold, it is determined that the current wireless network is normal;
[0025] If the data upload speed of the wireless network is not greater than the upload speed threshold, it is determined that the current wireless network is abnormal.
[0026] Furthermore, after the formatting process is completed, the step of loading the backed-up private data includes:
[0027] Load the highest-level private sub-data to obtain identity feature information;
[0028] Determine whether the current operating user is a legitimate user according to the identity feature information;
[0029] If the current operating user is a legitimate user, the privacy sub-data of the remaining levels are loaded.
[0030] Furthermore, when receiving the factory reset instruction, the step of estimating the power requirement value required for the factory reset operation includes:
[0031] Determining the associated privacy data according to the option content selected by the factory reset instruction;
[0032] The power demand value is predicted based on the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0033] Furthermore, after the step of determining whether the current remaining power value is greater than the power requirement value, the following steps are included:
[0034] If the current remaining power value is not greater than the power requirement value, a charging reminder message is output, and the option contents are divided according to priority to obtain a plurality of option sub-contents;
[0035] The private data corresponding to each of the option sub-contents are backed up in descending order of priority, and after the private data corresponding to a single option sub-content is backed up, the option sub-content is formatted.
[0036] The present application also provides a factory reset device, comprising:
[0037] An estimation module, configured to estimate a power demand value required for a factory reset operation upon receiving a factory reset instruction;
[0038] A judgment module, used to judge whether the current remaining power value is greater than the power demand value;
[0039] A backup module, configured to back up the privacy data according to a preset rule if the current remaining power value is greater than the power requirement value;
[0040] A first formatting module, configured to enter a formatting process after the private data backup is completed;
[0041] The loading module is used to load the backed-up private data after the formatting process is completed.
[0042] Furthermore, the backup module includes:
[0043] A grading submodule, used to grade the private data according to the privacy degree to obtain private sub-data of several levels;
[0044] The backup submodule is used to back up the privacy sub-data of the highest level in a designated area of the system, and to back up the privacy sub-data of other levels to a cloud server and / or associated devices via wireless signals.
[0045] Furthermore, the backup submodule includes:
[0046] A first judging unit, used to judge whether the current wireless network is normal;
[0047] an uploading unit, configured to upload the remaining levels of the private sub-data to the cloud server for backup via the wireless network if the current wireless network is normal;
[0048] A search unit, configured to search for the associated device within a preset range through a Bluetooth signal if the current wireless network is abnormal;
[0049] a transmission unit, configured to transmit the remaining levels of the privacy sub-data to the associated device through the Bluetooth signal for backup if the associated device is found to exist within a preset range through the Bluetooth signal;
[0050] A second determination unit, configured to determine whether the remaining amount of the current system storage space is greater than a preset value if the associated device cannot be found within the preset range through the Bluetooth signal search;
[0051] The backup unit is used to back up the privacy sub-data of other levels in the designated area of the system if the remaining amount of storage space of the current system is greater than a preset value.
[0052] Furthermore, the first determining unit includes:
[0053] An acquisition subunit, used to acquire the current connection status with the wireless network;
[0054] A first determination subunit, configured to determine that the current wireless network is abnormal if the current connection state is a disconnected state;
[0055] a judging subunit, configured to judge whether a data upload speed of the wireless network is greater than an upload speed threshold if the current connection state is a connected state;
[0056] A second determination subunit is configured to determine that the current wireless network is normal if the data upload speed of the wireless network is greater than an upload speed threshold;
[0057] The third determination subunit is configured to determine that the current wireless network is abnormal if the data upload speed of the wireless network is not greater than an upload speed threshold.
[0058] Furthermore, the loading module includes:
[0059] A first loading submodule is used to load the highest-level private sub-data to obtain identity feature information;
[0060] A judgment submodule, used to judge whether the current operating user is a legitimate user according to the identity feature information;
[0061] The second loading submodule is used to load the privacy sub-data of other levels if the current operating user is a legitimate user.
[0062] Furthermore, the estimation module includes:
[0063] An association submodule, used to determine the associated privacy data according to the option content selected by the factory reset instruction;
[0064] The prediction submodule is used to predict the power demand value according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0065] Furthermore, the device further comprises:
[0066] A division module, used for outputting charging prompt information if the current remaining power value is not greater than the power requirement value, and dividing the option content by priority to obtain a plurality of option sub-contents;
[0067] The second formatting module is used to back up the privacy data corresponding to each of the option sub-contents in descending order of priority, and format the option sub-content after the privacy data corresponding to a single option sub-content is backed up.
[0068] The present application also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0069] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0070] A factory restore method, device and computer equipment are provided in the present application. When the system receives the factory restore instruction, it first estimates the power requirement value required for the factory restore operation, and then determines whether the current remaining power value is greater than the power requirement value. If the current remaining power value is greater than the power requirement value, the privacy data is backed up according to the preset rules. After the privacy data is backed up, the formatting process is entered; finally, after the formatting process is completed, the backed-up privacy data is loaded to restore the privacy data. Before formatting, the system first evaluates the remaining power value of the smart terminal device to eliminate operational abnormalities that may be caused by insufficient power during the formatting process. After completing the evaluation of the remaining power value, the system backs up the privacy data to avoid being cleared during the formatting process; and after the formatting process is completed, the privacy data is automatically restored, thereby effectively ensuring the security of the privacy data. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 This is a schematic diagram of the steps of a method for restoring to factory default in an embodiment of the present application;
[0072] Figure 2 It is a block diagram of the overall structure of a device for restoring to factory default in one embodiment of the present application;
[0073] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present application.
[0074] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0076] Reference Figure 1 In one embodiment of the present application, a method for restoring the factory settings is provided, comprising:
[0077] S1: upon receiving a factory reset instruction, estimating the power demand value required for the factory reset operation;
[0078] S2: Determine whether the current remaining power value is greater than the power demand value;
[0079] S3: If the current remaining power value is greater than the power requirement value, back up the privacy data according to the preset rules;
[0080] S4: After the private data backup is completed, the formatting process begins;
[0081] S5: After the formatting process is completed, the backed-up private data is loaded.
[0082] The method provided in this embodiment can be applied to smart terminal devices, preferably to wearable devices, such as smart watches, smart bracelets and other devices. When the system receives the factory reset command input by the user, it first needs to estimate the power demand value required for the factory reset operation, so as to avoid abnormal situations such as sudden shutdown due to insufficient power during the factory reset process, which affects the operation of the system. Specifically, when the user chooses to restore the factory settings, he will select the option content that needs to be formatted this time according to his own needs. For example, when the operating system of the terminal device is the Android system, there are usually the following partitions: System partition (partition for flashing ROM), Data partition (partition for installing APK), Catch partition (cache partition) and SDCard partition (mounted SD card). The user selects one or more partitions to format according to his own needs, and the data of the selected one or more partitions is the option content. The system determines the associated privacy data according to the option content selected by the user (for example, if the user currently selects the SDCard partition, the system identifies the data containing user-related information in the SDCard partition, such as user photos, user videos, user fingerprint information, etc., as privacy data), and then calculates the first time duration for backing up the privacy data to the cloud server and / or associated devices through wireless signals, the second time duration for re-downloading the backed-up privacy data from the cloud server and / or associated devices, and the preset third time duration according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal (the third time duration is the time required for part of the privacy data to be stored in the system's internal storage area and the time duration required for the remaining processes. Since this part of the process is completed in the terminal device, the required time duration is relatively short, and thus can be estimated and set by the developer). The system calculates the total time duration required for the factory restore operation corresponding to the current option content according to the first time duration, the second time duration and the third time duration, and calculates the power demand value according to the total time duration and the power consumption value per unit time (the power consumption value per unit time is pre-determined and set by the developer). The system obtains the current remaining power value of the terminal device, and compares the remaining power value with the power demand value to determine the size relationship between the two. If the current remaining power value is greater than the power demand value, the system proceeds to the next process and backs up the privacy data according to the preset rules. The system first classifies the privacy data according to the degree of privacy, and regards the data containing the user's identity information (such as user fingerprint information, ID card information, social software password, etc.) as the highest level of privacy sub-data, and the remaining video data and audio data related to the user (such as the user's selfie videos, photos, etc.) as the second-level privacy sub-data. The second-level privacy sub-data can also be further classified in descending order of storage time, thereby obtaining several levels of privacy sub-data.The system backs up the highest level of privacy sub-data in the system designated area, and backs up the remaining levels of privacy sub-data to the cloud server and / or associated devices through wireless signals. Among them, the system first determines whether the current wireless network is normal. If the current wireless network is normal, the remaining levels of privacy sub-data are uploaded to the cloud server through the wireless network for backup. If the current wireless network is abnormal, the Bluetooth signal is used to search whether there is an associated device within the preset range (for example, if the current terminal device is a smart watch, the associated device can be a mobile phone or other device with a Bluetooth module). If the system searches for an associated device within the preset range through the Bluetooth signal, the remaining levels of privacy sub-data are transmitted to the associated device through the Bluetooth signal for backup. If no associated device is found within the preset range through the Bluetooth signal, it is determined whether the remaining amount of storage space in the current system is greater than the preset value. When the remaining amount of storage space in the current system is greater than the preset value, the system directly backs up the remaining levels of privacy sub-data in the system designated area. If the remaining amount of storage space in the current system is less than the preset value, the system can only temporarily interrupt the factory reset operation, and can continue the factory reset operation after detecting that the wireless network is normal or searching for an associated device through the Bluetooth signal. After the system completes the backup of the private data, it automatically enters the formatting process, deleting the data corresponding to the selected content while retaining the associated private data that has been backed up in the system's designated area. After the formatting process is completed, the system will release the private sub-data in the system's designated area to the system, and download the remaining private sub-data from the cloud server or associated device, and release them to the system after downloading, completing the recovery of the private data.
[0083] This embodiment provides a method for factory restoration. When the system receives the factory restoration instruction, it first estimates the power requirement value required for the factory restoration operation, and then determines whether the current remaining power value is greater than the power requirement value. If the current remaining power value is greater than the power requirement value, the privacy data is backed up according to the preset rules. After the privacy data is backed up, the formatting process is entered; finally, after the formatting process is completed, the backed-up privacy data is loaded to restore the privacy data. Before formatting, the system first evaluates the remaining power value of the smart terminal device to eliminate operational abnormalities that may be caused by insufficient power during the formatting process. After completing the evaluation of the remaining power value, the system backs up the privacy data to avoid being cleared during the formatting process; and after the formatting process is completed, the privacy data is automatically restored, thereby effectively ensuring the security of the privacy data.
[0084] Furthermore, the step of backing up the private data according to the preset rules includes:
[0085] S301: Classifying the private data according to the privacy degree to obtain private sub-data of several levels;
[0086] S302: Back up the highest-level privacy sub-data in a system designated area, and back up the remaining levels of privacy sub-data to a cloud server and / or associated devices via wireless signals.
[0087] In this embodiment, the system classifies the privacy data according to the degree of privacy, and regards the data containing the user's identity information (such as user fingerprint information, ID card information, social software password, etc.) as the highest level of privacy sub-data, and the rest of the video data and audio data related to the user (such as the user's selfie video, photos, etc.) as the second-level privacy sub-data. The second-level privacy sub-data can also be further classified in descending order according to the storage time, so as to obtain several levels of privacy sub-data. The system stores the highest level of privacy sub-data in the system designated area after packaging, compressing and copying, so as to realize the backup of the highest level of privacy sub-data. This part of data is usually small in size and will not take up too much memory space of the system, and can improve the confidentiality of the highest level of privacy sub-data (uploading to the cloud server or associated device may cause information leakage). The system backs up the remaining levels of privacy sub-data to the cloud server and / or associated device via wireless signals. The remaining levels of privacy sub-data are usually large in size and may exceed the memory space of the system designated area. Among them, the system first determines whether the current wireless network is normal. If the current wireless network connection status is normal and the data upload speed is greater than the upload speed threshold, the remaining levels of privacy sub-data will be packaged, compressed, and copied, and the copied remaining levels of privacy sub-data will be uploaded to the cloud server through the wireless network for backup. If the current wireless network is abnormal, the Bluetooth signal is used to search whether there is an associated device within the preset range (for example, if the current terminal device is a smart watch, the associated device can be a mobile phone or other device with a Bluetooth module). If the system searches for an associated device within the preset range through the Bluetooth signal, a data backup request is sent to the associated device. After the associated device passes the data backup request, the system packages, compresses, and copies the remaining levels of privacy sub-data, and transmits the copied remaining levels of privacy sub-data to the associated device through the Bluetooth signal for backup.
[0088] Furthermore, the step of backing up the remaining levels of the private sub-data to a cloud server and / or associated devices via wireless signals includes:
[0089] S3021: Determine whether the current wireless network is normal;
[0090] S3022: If the current wireless network is normal, uploading the remaining levels of the private sub-data to the cloud server through the wireless network for backup;
[0091] S3023: If the current wireless network is abnormal, searching through Bluetooth signals to see whether the associated device exists within a preset range;
[0092] S3024: If the associated device is found to exist within the preset range through the Bluetooth signal search, the remaining levels of the private sub-data are transmitted to the associated device through the Bluetooth signal for backup;
[0093] S3025: If the associated device cannot be found within the preset range through the Bluetooth signal search, determine whether the remaining amount of the current system storage space is greater than a preset value;
[0094] S3026: If the remaining amount of storage space in the current system is greater than a preset value, the privacy sub-data of the remaining levels are backed up in the designated area of the system.
[0095] In this embodiment, the system obtains the current connection status of the terminal device with the wireless network. If the current connection status is an unconnected state, the current wireless network is determined to be abnormal. If the current connection status is a connected state, the data upload speed of the wireless network is collected, and it is determined whether the data upload speed is greater than the upload speed threshold. If the data upload speed of the wireless network is not greater than the upload speed threshold, the system determines that the current wireless network is abnormal. If the data upload speed of the wireless network is greater than the upload speed threshold, the system can determine that the current wireless network is normal. After determining that the current wireless network is normal, the system packages, compresses and copies the remaining levels of privacy sub-data, and uploads them to the cloud server for storage through the wireless network, thereby completing the backup. If the system determines that the current wireless network is abnormal, it indicates that the remaining levels of privacy sub-data cannot be uploaded to the cloud server for backup, so the system turns on the Bluetooth module of the terminal device and searches for associated devices within a preset range through Bluetooth signals, where the associated devices can be terminal devices with memory such as mobile phones and tablets. If the system searches for an associated device within the preset range through Bluetooth signals, it will send a data backup request to the associated device, and after the associated device approves the data backup request, it will package, compress and copy the remaining levels of privacy sub-data, and send them to the associated device through Bluetooth signals for storage, thereby completing the backup. If the system does not search for an associated device within the preset range, it will obtain the current remaining system storage space and determine whether the remaining storage space is greater than the preset value. When it is identified that the current system storage space remaining is greater than the preset value, the remaining levels of privacy sub-data will be backed up in the system designated area. If the previous system storage space remaining is not greater than the preset value, the system can only temporarily interrupt the factory reset operation and issue a prompt message to remind the user that the factory reset operation is temporarily interrupted because the privacy data backup is not completed. The system will continue to perform the factory reset operation after detecting that the wireless network is normal or searching for an associated device through Bluetooth signals.
[0096] Furthermore, the step of determining whether the current wireless network is normal includes:
[0097] S30211: Obtain the current connection status with the wireless network;
[0098] S30212: If the current connection state is a disconnected state, determine that the current wireless network is abnormal;
[0099] S30213: If the current connection state is the connected state, determine whether the data upload speed of the wireless network is greater than an upload speed threshold;
[0100] S30214: If the data upload speed of the wireless network is greater than the upload speed threshold, it is determined that the current wireless network is normal;
[0101] S30215: If the data upload speed of the wireless network is not greater than the upload speed threshold, it is determined that the current wireless network is abnormal.
[0102] In this embodiment, the current connection status of the terminal device with the wireless network is obtained. If the current terminal device cannot access the network normally through the cellular mobile network signal and / or the WIFI signal, it means that the current connection status of the terminal device is not connected, and the system determines that the current wireless network is abnormal. If the current terminal device can access the network normally through the cellular mobile network signal and / or the WIFI signal, it means that the current connection status of the terminal device is connected. The system automatically collects the data upload speed of the wireless network and determines whether the data upload speed is greater than the upload speed threshold. If the data upload speed of the wireless network is not greater than the upload speed threshold, it means that the private sub-data may not be uploaded to the cloud server for backup, so the system determines that the current wireless network is abnormal. If the data upload speed of the wireless network is greater than the upload speed threshold, the system can determine that the current wireless network is normal.
[0103] Furthermore, after the formatting process is completed, the step of loading the backed-up private data includes:
[0104] S501: Load the highest-level private sub-data to obtain identity feature information;
[0105] S502: judging whether the current operating user is a legitimate user according to the identity feature information;
[0106] S503: If the current operating user is a legitimate user, then the remaining levels of the privacy sub-data are loaded.
[0107] In this embodiment, the highest level of privacy sub-data is the data of user identity information, such as the user's fingerprint information, login account information, etc. After the system completes the formatting process, it first copies the highest level of privacy sub-data from the system specified area, and releases it to the system after decompression to obtain the user's identity feature information. Before restoring the privacy sub-data of other levels, the system needs to determine whether the current operating user of the terminal device is a legal user (i.e., whether the owner of the terminal device) based on the identity feature information. For example, when the identity feature information contains fingerprint information, the system will prompt the current operating user to enter the fingerprint information, and then compare the fingerprint information of the current operating user with the fingerprint information in the identity feature information to determine whether the two are consistent. If the two are inconsistent, it means that the current operating user and the owner of the terminal device are not the same person, the system determines that the current operating user is an illegal user, suspends the recovery of the privacy sub-data of other levels, and hides or directly deletes the privacy data such as the login account information and bank card password of the software in the currently loaded highest level of privacy sub-data, and only retains the fingerprint information, facial information and / or password information used to verify the user's identity. If the fingerprint information of the current operating user is consistent with the fingerprint information in the identity feature information, the system determines that the current operating user is a legal user. Then, the system downloads the remaining levels of privacy sub-data from the cloud server or associated terminal and releases them into the system after decompression to complete the recovery of the privacy data.
[0108] Furthermore, when receiving the factory reset instruction, the step of estimating the power requirement value required for the factory reset operation includes:
[0109] S101: Determine the associated privacy data according to the option content selected by the factory reset instruction;
[0110] S102: Predict the power demand value according to the amount of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0111] In this embodiment, when the user chooses to restore the factory settings, the user will select the option content that needs to be formatted this time according to their own needs. For example, when the operating system of the terminal device is the Android system, there are usually the following partitions: System partition: (partition for flashing ROM), Data partition (partition for installing APK), Catch partition (cache partition) and SDCard partition (mounted SD card). The user selects one or more partitions to format according to their own needs, and the data of the selected one or more partitions is the option content. The system determines the associated privacy data according to the option content selected by the user (for example, if the user currently selects the SDCard partition, the system identifies the data containing user-related information in the SDCard partition, such as user photos, user videos, user fingerprint information, etc., as privacy data), and then calculates the first time duration for backing up the privacy data to the cloud server and / or associated devices through wireless signals, the second time duration for re-downloading the backed-up privacy data from the cloud server and / or associated devices, and the preset third time duration according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal (the third time duration is the time required for part of the privacy data to be stored in the system's internal storage area and the time duration required for the remaining processes. Since this part of the process is completed in the terminal device, the required time duration is relatively short, and thus can be estimated and set by the developer). The system calculates the total time duration required for the factory restore operation corresponding to the current option content according to the first time duration, the second time duration and the third time duration, and calculates the power demand value according to the total time duration and the power consumption value per unit time (the power consumption value per unit time is pre-determined and set by the developer).
[0112] Furthermore, after the step of determining whether the current remaining power value is greater than the power requirement value, the following steps are included:
[0113] S6: if the current remaining power value is not greater than the power requirement value, output charging prompt information, and prioritize the option content to obtain a plurality of option sub-contents;
[0114] S7: backing up the privacy data corresponding to each of the option sub-contents in descending order of priority, and formatting the option sub-content after the privacy data corresponding to a single option sub-content is backed up.
[0115] In this embodiment, if the system recognizes that the current remaining power value of the terminal device is not greater than the power requirement value, a charging prompt message is output to remind the user to charge the terminal device in time to meet the power requirement for restoring the factory settings. In addition, the system divides the option content according to the priority to obtain a number of option sub-contents. Among them, the definition of priority can be defined by the user or the developer, such as defining the priority according to the creation time of the data corresponding to the option content in the system. The earlier the creation time of the data in the system, the higher the priority. The system backs up the privacy data corresponding to the option sub-content in descending order according to the priority, and the backup method is the same as the above-mentioned preset rules. In addition, after the system completes the backup of the privacy data corresponding to a single option sub-content, the option sub-content can be deleted to complete the formatting of the option sub-content. The system backs up and formats the privacy data according to the priority, and can restore the factory settings of the privacy data that is relatively important to the user under the condition of limited power, thereby avoiding the disadvantages of data loss caused by the interruption of backup of this part of the privacy data with a higher degree of importance due to insufficient power during the process of restoring the factory settings.
[0116] Reference Figure 2 In one embodiment of the present application, a device for restoring the factory settings is also provided, including:
[0117] The estimation module 1 is used to estimate the power demand value required for the factory setting restoration operation when receiving the factory setting restoration instruction;
[0118] A judgment module 2 is used to judge whether the current remaining power value is greater than the power demand value;
[0119] A backup module 3 is used to back up the privacy data according to a preset rule if the current remaining power value is greater than the power requirement value;
[0120] A first formatting module 4, configured to enter a formatting process after the private data backup is completed;
[0121] The loading module 5 is used to load the backed-up private data after the formatting process is completed.
[0122] The method provided in this embodiment can be applied to smart terminal devices, preferably to wearable devices, such as smart watches, smart bracelets and other devices. When the system receives the factory reset command input by the user, it first needs to estimate the power demand value required for the factory reset operation, so as to avoid abnormal situations such as sudden shutdown due to insufficient power during the factory reset process, which affects the operation of the system. Specifically, when the user chooses to restore the factory settings, he will select the option content that needs to be formatted this time according to his own needs. For example, when the operating system of the terminal device is the Android system, there are usually the following partitions: System partition (partition for flashing ROM), Data partition (partition for installing APK), Catch partition (cache partition) and SDCard partition (mounted SD card). The user selects one or more partitions to format according to his own needs, and the data of the selected one or more partitions is the option content. The system determines the associated privacy data according to the option content selected by the user (for example, if the user currently selects the SDCard partition, the system identifies the data containing user-related information in the SDCard partition, such as user photos, user videos, user fingerprint information, etc., as privacy data), and then calculates the first time duration for backing up the privacy data to the cloud server and / or associated devices through wireless signals, the second time duration for re-downloading the backed-up privacy data from the cloud server and / or associated devices, and the preset third time duration according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal (the third time duration is the time required for part of the privacy data to be stored in the system's internal storage area and the time duration required for the remaining processes. Since this part of the process is completed in the terminal device, the required time duration is relatively short, and thus can be estimated and set by the developer). The system calculates the total time duration required for the factory restore operation corresponding to the current option content according to the first time duration, the second time duration and the third time duration, and calculates the power demand value according to the total time duration and the power consumption value per unit time (the power consumption value per unit time is pre-determined and set by the developer). The system obtains the current remaining power value of the terminal device, and compares the remaining power value with the power demand value to determine the size relationship between the two. If the current remaining power value is greater than the power demand value, the system proceeds to the next process and backs up the privacy data according to the preset rules. The system first classifies the privacy data according to the degree of privacy, and regards the data containing the user's identity information (such as user fingerprint information, ID card information, social software password, etc.) as the highest level of privacy sub-data, and the remaining video data and audio data related to the user (such as the user's selfie videos, photos, etc.) as the second-level privacy sub-data. The second-level privacy sub-data can also be further classified in descending order of storage time, thereby obtaining several levels of privacy sub-data.The system backs up the highest level of privacy sub-data in the system designated area, and backs up the remaining levels of privacy sub-data to the cloud server and / or associated devices through wireless signals. Among them, the system first determines whether the current wireless network is normal. If the current wireless network is normal, the remaining levels of privacy sub-data are uploaded to the cloud server through the wireless network for backup. If the current wireless network is abnormal, the Bluetooth signal is used to search whether there is an associated device within the preset range (for example, if the current terminal device is a smart watch, the associated device can be a mobile phone or other device with a Bluetooth module). If the system searches for an associated device within the preset range through the Bluetooth signal, the remaining levels of privacy sub-data are transmitted to the associated device through the Bluetooth signal for backup. If no associated device is found within the preset range through the Bluetooth signal, it is determined whether the remaining amount of storage space in the current system is greater than the preset value. When the remaining amount of storage space in the current system is greater than the preset value, the system directly backs up the remaining levels of privacy sub-data in the system designated area. If the remaining amount of storage space in the current system is less than the preset value, the system can only temporarily interrupt the factory reset operation, and can continue the factory reset operation after detecting that the wireless network is normal or searching for an associated device through the Bluetooth signal. After the system completes the backup of the private data, it automatically enters the formatting process, deleting the data corresponding to the selected content while retaining the associated private data that has been backed up in the system's designated area. After the formatting process is completed, the system will release the private sub-data in the system's designated area to the system, and download the remaining private sub-data from the cloud server or associated device, and release them to the system after downloading, completing the recovery of the private data.
[0123] This embodiment provides a factory restore device. When the system receives the factory restore instruction, it first estimates the power requirement value required for the factory restore operation, and then determines whether the current remaining power value is greater than the power requirement value. If the current remaining power value is greater than the power requirement value, the privacy data is backed up according to the preset rules. After the privacy data is backed up, the formatting process is entered; finally, after the formatting process is completed, the backed-up privacy data is loaded to restore the privacy data. Before formatting, the system first evaluates the remaining power value of the smart terminal device to eliminate operational abnormalities that may be caused by insufficient power during the formatting process. After completing the evaluation of the remaining power value, the system backs up the privacy data to avoid being cleared during the formatting process; and after the formatting process is completed, the privacy data is automatically restored, thereby effectively ensuring the security of the privacy data.
[0124] Furthermore, the backup module 3 includes:
[0125] A grading submodule, used to grade the private data according to the privacy degree to obtain private sub-data of several levels;
[0126] The backup submodule is used to back up the privacy sub-data of the highest level in a designated area of the system, and to back up the privacy sub-data of other levels to a cloud server and / or associated devices via wireless signals.
[0127] In this embodiment, the system classifies the privacy data according to the degree of privacy, and regards the data containing the user's identity information (such as user fingerprint information, ID card information, social software password, etc.) as the highest level of privacy sub-data, and the rest of the video data and audio data related to the user (such as the user's selfie video, photos, etc.) as the second-level privacy sub-data. The second-level privacy sub-data can also be further classified in descending order according to the storage time, so as to obtain several levels of privacy sub-data. The system stores the highest level of privacy sub-data in the system designated area after packaging, compressing and copying, so as to realize the backup of the highest level of privacy sub-data. This part of data is usually small in size and will not take up too much memory space of the system, and can improve the confidentiality of the highest level of privacy sub-data (uploading to the cloud server or associated device may cause information leakage). The system backs up the remaining levels of privacy sub-data to the cloud server and / or associated device via wireless signals. The remaining levels of privacy sub-data are usually large in size and may exceed the memory space of the system designated area. Among them, the system first determines whether the current wireless network is normal. If the current wireless network connection status is normal and the data upload speed is greater than the upload speed threshold, the remaining levels of privacy sub-data will be packaged, compressed, and copied, and the copied remaining levels of privacy sub-data will be uploaded to the cloud server through the wireless network for backup. If the current wireless network is abnormal, the Bluetooth signal is used to search whether there is an associated device within the preset range (for example, if the current terminal device is a smart watch, the associated device can be a mobile phone or other device with a Bluetooth module). If the system searches for an associated device within the preset range through the Bluetooth signal, a data backup request is sent to the associated device. After the associated device passes the data backup request, the system packages, compresses, and copies the remaining levels of privacy sub-data, and transmits the copied remaining levels of privacy sub-data to the associated device through the Bluetooth signal for backup.
[0128] Furthermore, the backup submodule includes:
[0129] A first judging unit, used to judge whether the current wireless network is normal;
[0130] an uploading unit, configured to upload the remaining levels of the private sub-data to the cloud server for backup via the wireless network if the current wireless network is normal;
[0131] A search unit, configured to search for the associated device within a preset range through a Bluetooth signal if the current wireless network is abnormal;
[0132] a transmission unit, configured to transmit the remaining levels of the privacy sub-data to the associated device through the Bluetooth signal for backup if the associated device is found to exist within a preset range through the Bluetooth signal;
[0133] A second determination unit, configured to determine whether the remaining amount of the current system storage space is greater than a preset value if the associated device cannot be found within the preset range through the Bluetooth signal search;
[0134] The backup unit is used to back up the privacy sub-data of other levels in the designated area of the system if the remaining amount of storage space of the current system is greater than a preset value.
[0135] In this embodiment, the system obtains the current connection status of the terminal device with the wireless network. If the current connection status is an unconnected state, the current wireless network is determined to be abnormal. If the current connection status is a connected state, the data upload speed of the wireless network is collected, and it is determined whether the data upload speed is greater than the upload speed threshold. If the data upload speed of the wireless network is not greater than the upload speed threshold, the system determines that the current wireless network is abnormal. If the data upload speed of the wireless network is greater than the upload speed threshold, the system can determine that the current wireless network is normal. After determining that the current wireless network is normal, the system packages, compresses and copies the remaining levels of privacy sub-data, and uploads them to the cloud server for storage through the wireless network, thereby completing the backup. If the system determines that the current wireless network is abnormal, it indicates that the remaining levels of privacy sub-data cannot be uploaded to the cloud server for backup, so the system turns on the Bluetooth module of the terminal device and searches for associated devices within a preset range through Bluetooth signals, where the associated devices can be terminal devices with memory such as mobile phones and tablets. If the system searches for an associated device within the preset range through Bluetooth signals, it will send a data backup request to the associated device, and after the associated device approves the data backup request, it will package, compress and copy the remaining levels of privacy sub-data, and send them to the associated device through Bluetooth signals for storage, thereby completing the backup. If the system does not search for an associated device within the preset range, it will obtain the current remaining system storage space and determine whether the remaining storage space is greater than the preset value. When it is identified that the current system storage space remaining is greater than the preset value, the remaining levels of privacy sub-data will be backed up in the system designated area. If the previous system storage space remaining is not greater than the preset value, the system can only temporarily interrupt the factory reset operation and issue a prompt message to remind the user that the factory reset operation is temporarily interrupted because the privacy data backup is not completed. The system will continue to perform the factory reset operation after detecting that the wireless network is normal or searching for an associated device through Bluetooth signals.
[0136] Furthermore, the first determining unit includes:
[0137] An acquisition subunit, used to acquire the current connection status with the wireless network;
[0138] A first determination subunit, configured to determine that the current wireless network is abnormal if the current connection state is a disconnected state;
[0139] a judging subunit, configured to judge whether a data upload speed of the wireless network is greater than an upload speed threshold if the current connection state is a connected state;
[0140] A second determination subunit is configured to determine that the current wireless network is normal if the data upload speed of the wireless network is greater than an upload speed threshold;
[0141] The third determination subunit is configured to determine that the current wireless network is abnormal if the data upload speed of the wireless network is not greater than an upload speed threshold.
[0142] In this embodiment, the current connection status of the terminal device with the wireless network is obtained. If the current terminal device cannot access the network normally through the cellular mobile network signal and / or the WIFI signal, it means that the current connection status of the terminal device is not connected, and the system determines that the current wireless network is abnormal. If the current terminal device can access the network normally through the cellular mobile network signal and / or the WIFI signal, it means that the current connection status of the terminal device is connected. The system automatically collects the data upload speed of the wireless network and determines whether the data upload speed is greater than the upload speed threshold. If the data upload speed of the wireless network is not greater than the upload speed threshold, it means that the private sub-data may not be uploaded to the cloud server for backup, so the system determines that the current wireless network is abnormal. If the data upload speed of the wireless network is greater than the upload speed threshold, the system can determine that the current wireless network is normal.
[0143] Furthermore, the loading module 5 includes:
[0144] A first loading submodule is used to load the highest-level private sub-data to obtain identity feature information;
[0145] A judgment submodule, used to judge whether the current operating user is a legitimate user according to the identity feature information;
[0146] The second loading submodule is used to load the privacy sub-data of other levels if the current operating user is a legitimate user.
[0147] In this embodiment, the highest level of privacy sub-data is the data of user identity information, such as the user's fingerprint information, login account information, etc. After the system completes the formatting process, it first copies the highest level of privacy sub-data from the system specified area, and releases it to the system after decompression to obtain the user's identity feature information. Before restoring the privacy sub-data of other levels, the system needs to determine whether the current operating user of the terminal device is a legal user (i.e., whether the owner of the terminal device) based on the identity feature information. For example, when the identity feature information contains fingerprint information, the system will prompt the current operating user to enter the fingerprint information, and then compare the fingerprint information of the current operating user with the fingerprint information in the identity feature information to determine whether the two are consistent. If the two are inconsistent, it means that the current operating user and the owner of the terminal device are not the same person, the system determines that the current operating user is an illegal user, suspends the recovery of the privacy sub-data of other levels, and hides or directly deletes the privacy data such as the login account information and bank card password of the software in the currently loaded highest level of privacy sub-data, and only retains the fingerprint information, facial information and / or password information used to verify the user's identity. If the fingerprint information of the current operating user is consistent with the fingerprint information in the identity feature information, the system determines that the current operating user is a legal user. Then, the system downloads the remaining levels of privacy sub-data from the cloud server or associated terminal and releases them into the system after decompression to complete the recovery of the privacy data.
[0148] Furthermore, the estimation module 1 comprises:
[0149] An association submodule, used to determine the associated privacy data according to the option content selected by the factory reset instruction;
[0150] The prediction submodule is used to predict the power demand value according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0151] In this embodiment, when the user chooses to restore the factory settings, the user will select the option content that needs to be formatted this time according to their own needs. For example, when the operating system of the terminal device is the Android system, there are usually the following partitions: System partition: (partition for flashing ROM), Data partition (partition for installing APK), Catch partition (cache partition) and SDCard partition (mounted SD card). The user selects one or more partitions to format according to their own needs, and the data of the selected one or more partitions is the option content. The system determines the associated privacy data according to the option content selected by the user (for example, if the user currently selects the SDCard partition, the system identifies the data containing user-related information in the SDCard partition, such as user photos, user videos, user fingerprint information, etc., as privacy data), and then calculates the first time duration for backing up the privacy data to the cloud server and / or associated devices through wireless signals, the second time duration for re-downloading the backed-up privacy data from the cloud server and / or associated devices, and the preset third time duration according to the data volume of the privacy data and the data upload speed and data download speed of the current wireless signal (the third time duration is the time required for part of the privacy data to be stored in the system's internal storage area and the time duration required for the remaining processes. Since this part of the process is completed in the terminal device, the required time duration is relatively short, and thus can be estimated and set by the developer). The system calculates the total time duration required for the factory restore operation corresponding to the current option content according to the first time duration, the second time duration and the third time duration, and calculates the power demand value according to the total time duration and the power consumption value per unit time (the power consumption value per unit time is pre-determined and set by the developer).
[0152] Furthermore, the device further comprises:
[0153] A division module 6 is used for outputting charging prompt information if the current remaining power value is not greater than the power requirement value, and dividing the option content by priority to obtain a plurality of option sub-contents;
[0154] The second formatting module 7 is used to back up the privacy data corresponding to each of the option sub-contents in descending order of priority, and format the option sub-content after the privacy data corresponding to a single option sub-content is backed up.
[0155] In this embodiment, if the system recognizes that the current remaining power value of the terminal device is not greater than the power requirement value, a charging prompt message is output to remind the user to charge the terminal device in time to meet the power requirement for restoring the factory settings. In addition, the system divides the option content according to the priority to obtain a number of option sub-contents. Among them, the definition of priority can be defined by the user or the developer, such as defining the priority according to the creation time of the data corresponding to the option content in the system. The earlier the creation time of the data in the system, the higher the priority. The system backs up the privacy data corresponding to the option sub-content in descending order according to the priority, and the backup method is the same as the above-mentioned preset rules. In addition, after the system completes the backup of the privacy data corresponding to a single option sub-content, the option sub-content can be deleted to complete the formatting of the option sub-content. The system backs up and formats the privacy data according to the priority, and can restore the factory settings of the privacy data that is relatively important to the user under the condition of limited power, thereby avoiding the disadvantages of data loss caused by the interruption of backup of this part of the privacy data with a higher degree of importance due to insufficient power during the process of restoring the factory settings.
[0156] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as privacy data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method of restoring to factory settings is implemented.
[0157] The processor executes the steps of the factory reset method:
[0158] S1: upon receiving a factory reset instruction, estimating the power demand value required for the factory reset operation;
[0159] S2: Determine whether the current remaining power value is greater than the power demand value;
[0160] S3: If the current remaining power value is greater than the power requirement value, back up the privacy data according to the preset rules;
[0161] S4: After the private data backup is completed, the formatting process begins;
[0162] S5: After the formatting process is completed, the backed-up private data is loaded.
[0163] Furthermore, the step of backing up the private data according to the preset rules includes:
[0164] S301: Classifying the private data according to the privacy degree to obtain private sub-data of several levels;
[0165] S302: Back up the highest-level privacy sub-data in a system designated area, and back up the remaining levels of privacy sub-data to a cloud server and / or associated devices via wireless signals.
[0166] Furthermore, the step of backing up the remaining levels of the private sub-data to a cloud server and / or associated devices via wireless signals includes:
[0167] S3021: Determine whether the current wireless network is normal;
[0168] S3022: If the current wireless network is normal, uploading the remaining levels of the private sub-data to the cloud server through the wireless network for backup;
[0169] S3023: If the current wireless network is abnormal, searching through Bluetooth signals to see whether the associated device exists within a preset range;
[0170] S3024: If the associated device is found to exist within the preset range through the Bluetooth signal search, the remaining levels of the private sub-data are transmitted to the associated device through the Bluetooth signal for backup;
[0171] S3025: If the associated device cannot be found within the preset range through the Bluetooth signal search, determine whether the remaining amount of the current system storage space is greater than a preset value;
[0172] S3026: If the remaining amount of storage space in the current system is greater than a preset value, the privacy sub-data of the remaining levels are backed up in the designated area of the system.
[0173] Furthermore, the step of determining whether the current wireless network is normal includes:
[0174] S30211: Obtain the current connection status with the wireless network;
[0175] S30212: If the current connection state is a disconnected state, determine that the current wireless network is abnormal;
[0176] S30213: If the current connection state is the connected state, determine whether the data upload speed of the wireless network is greater than an upload speed threshold;
[0177] S30214: If the data upload speed of the wireless network is greater than the upload speed threshold, it is determined that the current wireless network is normal;
[0178] S30215: If the data upload speed of the wireless network is not greater than the upload speed threshold, it is determined that the current wireless network is abnormal.
[0179] Furthermore, after the formatting process is completed, the step of loading the backed-up private data includes:
[0180] S501: Load the highest-level private sub-data to obtain identity feature information;
[0181] S502: judging whether the current operating user is a legitimate user according to the identity feature information;
[0182] S503: If the current operating user is a legitimate user, then the remaining levels of the privacy sub-data are loaded.
[0183] Furthermore, when receiving the factory reset instruction, the step of estimating the power requirement value required for the factory reset operation includes:
[0184] S101: Determine the associated privacy data according to the option content selected by the factory reset instruction;
[0185] S102: Predict the power demand value according to the amount of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0186] Furthermore, after the step of determining whether the current remaining power value is greater than the power requirement value, the following steps are included:
[0187] S6: if the current remaining power value is not greater than the power requirement value, output charging prompt information, and prioritize the option content to obtain a plurality of option sub-contents;
[0188] S7: backing up the privacy data corresponding to each of the option sub-contents in descending order of priority, and formatting the option sub-content after the privacy data corresponding to a single option sub-content is backed up.
[0189] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a method for restoring the factory state is implemented. The method for restoring the factory state is specifically as follows:
[0190] S1: upon receiving a factory reset instruction, estimating the power demand value required for the factory reset operation;
[0191] S2: Determine whether the current remaining power value is greater than the power demand value;
[0192] S3: If the current remaining power value is greater than the power requirement value, back up the privacy data according to the preset rules;
[0193] S4: After the private data backup is completed, the formatting process begins;
[0194] S5: After the formatting process is completed, the backed-up private data is loaded.
[0195] Furthermore, the step of backing up the private data according to the preset rules includes:
[0196] S301: Classifying the private data according to the privacy degree to obtain private sub-data of several levels;
[0197] S302: Back up the highest-level privacy sub-data in a system designated area, and back up the remaining levels of privacy sub-data to a cloud server and / or associated devices via wireless signals.
[0198] Furthermore, the step of backing up the remaining levels of the private sub-data to a cloud server and / or associated devices via wireless signals includes:
[0199] S3021: Determine whether the current wireless network is normal;
[0200] S3022: If the current wireless network is normal, uploading the remaining levels of the private sub-data to the cloud server through the wireless network for backup;
[0201] S3023: If the current wireless network is abnormal, searching through Bluetooth signals to see whether the associated device exists within a preset range;
[0202] S3024: If the associated device is found to exist within the preset range through the Bluetooth signal search, the remaining levels of the private sub-data are transmitted to the associated device through the Bluetooth signal for backup;
[0203] S3025: If the associated device cannot be found within the preset range through the Bluetooth signal search, determine whether the remaining amount of the current system storage space is greater than a preset value;
[0204] S3026: If the remaining amount of storage space in the current system is greater than a preset value, the privacy sub-data of the remaining levels are backed up in the designated area of the system.
[0205] Furthermore, the step of determining whether the current wireless network is normal includes:
[0206] S30211: Obtain the current connection status with the wireless network;
[0207] S30212: If the current connection state is a disconnected state, determine that the current wireless network is abnormal;
[0208] S30213: If the current connection state is the connected state, determine whether the data upload speed of the wireless network is greater than an upload speed threshold;
[0209] S30214: If the data upload speed of the wireless network is greater than the upload speed threshold, it is determined that the current wireless network is normal;
[0210] S30215: If the data upload speed of the wireless network is not greater than the upload speed threshold, it is determined that the current wireless network is abnormal.
[0211] Furthermore, after the formatting process is completed, the step of loading the backed-up private data includes:
[0212] S501: Load the highest-level private sub-data to obtain identity feature information;
[0213] S502: judging whether the current operating user is a legitimate user according to the identity feature information;
[0214] S503: If the current operating user is a legitimate user, then the remaining levels of the privacy sub-data are loaded.
[0215] Furthermore, when receiving the factory reset instruction, the step of estimating the power requirement value required for the factory reset operation includes:
[0216] S101: Determine the associated privacy data according to the option content selected by the factory reset instruction;
[0217] S102: Predict the power demand value according to the amount of the privacy data and the data upload speed and data download speed of the current wireless signal.
[0218] Furthermore, after the step of determining whether the current remaining power value is greater than the power requirement value, the following steps are included:
[0219] S6: if the current remaining power value is not greater than the power requirement value, output charging prompt information, and prioritize the option content to obtain a plurality of option sub-contents;
[0220] S7: backing up the privacy data corresponding to each of the option sub-contents in descending order of priority, and formatting the option sub-content after the privacy data corresponding to a single option sub-content is backed up.
[0221] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0222] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0223] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for restoring to factory default, characterized in that: include: When receiving a factory reset instruction, estimating a power demand value required for the factory reset operation; Determine whether the current remaining power value is greater than the power requirement value; If the current remaining power value is greater than the power requirement value, the private data is backed up according to the preset rules; After the privacy data backup is completed, the formatting process is started; After the formatting process is completed, loading the backed-up private data; When receiving the factory reset instruction, estimating the power requirement value required for the factory reset operation includes: The user selects one or more partitions to format according to their needs, and the data of the selected one or more partitions is the option content; Determining the associated privacy data according to the option content selected by the user; According to the amount of the private data and the data upload speed and data download speed of the current wireless signal, calculate a first time duration for backing up the private data to the cloud server and / or associated device via the wireless signal, a second time duration for re-downloading the backed-up private data from the cloud server and / or associated device, a time required for storing part of the private data in the system internal storage area, and a preset third time duration required for the remaining processes; The total duration required for the factory reset operation corresponding to the current option content is calculated according to the first duration, the second duration, and the third duration, and the power demand value is calculated according to the total duration and the power consumption value per unit time, wherein the power consumption value per unit time is pre-determined and set by the developer; The step of backing up the private data according to the preset rules includes: Classifying the private data according to the privacy degree to obtain several levels of private sub-data; Backing up the highest-level private sub-data in a designated area of the system, and backing up the remaining levels of private sub-data to a cloud server and / or associated devices via wireless signals; The privacy data is graded according to the privacy degree to obtain several levels of privacy sub-data, including: Classifying the private data according to the degree of privacy; The data containing user identity information is taken as the highest level of privacy sub-data, and the remaining video data and audio data related to the user are taken as the second highest level of privacy sub-data. The second highest level of privacy sub-data is further classified in descending order of storage time to obtain several levels of privacy sub-data.
2. The method for restoring to factory default according to claim 1, characterized in that: The step of backing up the remaining levels of the private sub-data to a cloud server and / or associated devices via wireless signals includes: Determine whether the current wireless network is normal; If the current wireless network is normal, the remaining levels of the private sub-data are uploaded to the cloud server through the wireless network for backup; If the current wireless network is abnormal, search through Bluetooth signals to see if the associated device exists within the preset range; If the associated device is found to exist within the preset range through the Bluetooth signal search, the remaining levels of the private sub-data are transmitted to the associated device through the Bluetooth signal for backup; If the associated device cannot be found within the preset range through the Bluetooth signal search, determining whether the remaining amount of the current system storage space is greater than a preset value; If the remaining amount of the current system storage space is greater than a preset value, the remaining levels of the privacy sub-data are backed up in the system designated area.
3. The method for restoring to factory default according to claim 2, characterized in that: The step of determining whether the current wireless network is normal includes: Obtaining the current connection status with the wireless network; If the current connection state is a disconnected state, determining that the current wireless network is abnormal; If the current connection state is the connected state, determining whether the data upload speed of the wireless network is greater than an upload speed threshold; If the data upload speed of the wireless network is greater than the upload speed threshold, it is determined that the current wireless network is normal; If the data upload speed of the wireless network is not greater than the upload speed threshold, it is determined that the current wireless network is abnormal.
4. The method for restoring to factory default according to claim 1, characterized in that: The step of loading the backed-up private data after the formatting process is completed includes: Load the highest-level private sub-data to obtain identity feature information; Determine whether the current operating user is a legitimate user according to the identity feature information; If the current operating user is a legitimate user, the privacy sub-data of the remaining levels are loaded.
5. The method for factory recovery according to claim 1, characterized in that: After the step of determining whether the current remaining power value is greater than the power requirement value, the method further comprises: If the current remaining power value is not greater than the power requirement value, a charging reminder message is output, and the option contents are divided according to priority to obtain a plurality of option sub-contents; The private data corresponding to each of the option sub-contents are backed up in descending order of priority, and after the private data corresponding to a single option sub-content is backed up, the option sub-content is formatted.
6. A factory reset device, used to implement the method according to any one of claims 1 to 5, characterized in that: include: An estimation module, configured to estimate a power demand value required for a factory reset operation upon receiving a factory reset instruction; A judgment module, used to judge whether the current remaining power value is greater than the power demand value; A backup module, configured to back up the privacy data according to a preset rule if the current remaining power value is greater than the power requirement value; A first formatting module, configured to enter a formatting process after the private data backup is completed; The loading module is used to load the backed-up private data after the formatting process is completed.
7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
