Data protection method, device, terminal and storage medium

By creating a clone space and encrypting the main space data in the terminal's engineering mode, the problem of privacy data leakage in after-sales repair is solved, and user data protection and convenient repair are achieved during the repair process.

CN113032849BActive Publication Date: 2025-09-02BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110331079.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2025-09-02
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

During the after-sales repair process, there is a hidden danger of privacy data from mobile phones and other terminals, and the existing technology cannot effectively protect user privacy data.

Method used

Enter the maintenance mode in the terminal's engineering mode, create a clone space for access, and encrypt the main space data. In the maintenance mode, you need to enter a preset password to enter the main space mode to ensure the security of the main space data.

Benefits of technology

During the after-sales repair process, maintenance personnel do not need to know the preset password to perform repairs, which protects users' privacy data, avoids data leakage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113032849B_ABST
    Figure CN113032849B_ABST
Patent Text Reader

Abstract

The present application relates to a data protection method, device, terminal and storage medium. The method includes: when the terminal is in engineering mode, based on control information, controlling the terminal to enter maintenance mode, wherein, in maintenance mode, the clone space data created in the terminal is accessible, and the main space data of the terminal is encrypted; when entering the main space mode from maintenance mode, a prompt message for entering a preset password is issued; if it is determined that the received input password does not match the preset password, the terminal is controlled to be in maintenance mode. In this method, during after-sales maintenance, maintenance personnel can enter maintenance mode without knowing the preset password of the terminal. In maintenance mode, the main space data of the terminal is in an encrypted state, the clone space data is accessible, and when entering the main space mode from maintenance mode, the correct preset password needs to be entered, thereby completely solving the privacy pain point and solving the problem of protecting user data in after-sales maintenance of mobile phones.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a data protection method, device, terminal and storage medium. Background Art

[0002] In the after-sales repair sector, the main service options include delivery, mail-in repair, and on-site repair. Since mobile phones and other devices often have power-on passwords, these services typically require users to delete the password or proactively provide the password to the repair technician. This service model poses a risk of leaking user privacy data. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present application provides a data protection method, device, terminal and storage medium.

[0004] According to a first aspect of an embodiment of the present application, a data protection method is provided, which is applied to a terminal, and the method includes:

[0005] When the terminal is in engineering mode, based on control information, controlling the terminal to enter maintenance mode, wherein in the maintenance mode, the clone space data created in the terminal is accessible, and the main space data of the terminal is encrypted;

[0006] When entering the main space mode from the maintenance mode, a prompt message for entering a preset password is issued;

[0007] If it is determined that the received input password does not match the preset password, the terminal is controlled to be in the maintenance mode.

[0008] Optionally, the method comprises:

[0009] In the maintenance mode, the main space data is encrypted using file-level encryption technology.

[0010] Optionally, the method further includes:

[0011] When the terminal is restarted in the maintenance mode, the terminal is controlled to enter the maintenance mode.

[0012] Optionally, the method further includes:

[0013] When exiting the maintenance mode, current maintenance data is deleted, wherein the current maintenance data refers to maintenance data generated in the maintenance mode.

[0014] Optionally, the entering the maintenance mode based on the control information includes:

[0015] Based on the control information, determining to enable the maintenance mode and detecting whether a preset password exists;

[0016] If it is determined that the preset password exists, the terminal is controlled to restart so that the terminal enters the maintenance mode.

[0017] Optionally, the entering the maintenance mode based on the control information further includes:

[0018] If it is determined that there is no preset password, a prompt message for setting a preset password is output, and after it is determined that the preset password is set, the terminal is controlled to restart.

[0019] Optionally, before determining to start the maintenance mode, the method further includes:

[0020] Detecting whether there is old maintenance data; wherein the old maintenance data refers to maintenance data generated in the previous maintenance mode and not deleted;

[0021] If it is determined that old maintenance data exists, the old maintenance data is deleted.

[0022] Optionally, the method further includes:

[0023] If it is determined that the old maintenance data is not completely deleted within the preset time period, it is determined that the maintenance mode has failed to be started.

[0024] According to a second aspect of an embodiment of the present application, there is provided a data protection device, applied to a terminal, the device comprising:

[0025] a control module, configured to control the terminal to enter a maintenance mode based on control information when the terminal is in an engineering mode, wherein in the maintenance mode, the clone space data created in the terminal is accessible and the main space data of the terminal is encrypted;

[0026] An encryption module, configured to issue a prompt message for entering a preset password when entering the main space mode from the maintenance mode;

[0027] The control module controls the terminal to be in the maintenance mode if it is determined that the received input password does not match the preset password.

[0028] According to a third aspect of an embodiment of the present application, a terminal is provided, comprising:

[0029] processor;

[0030] a memory for storing processor-executable instructions;

[0031] The processor is configured to execute the method as described in the first aspect.

[0032] According to a fourth aspect of an embodiment of the present application, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method described in the first aspect.

[0033] The technical solution provided by the embodiments of the present application may include the following beneficial effects: In this method, the maintenance mode can be entered in the engineering mode. Therefore, during after-sales maintenance, the maintenance personnel can enter the maintenance mode without knowing the preset password of the terminal. In the maintenance mode, the main space data of the terminal is in an encrypted state, and the clone space data is accessible. Moreover, when entering the main space mode from the maintenance mode, the correct preset password needs to be entered, thereby better avoiding the exposure of the user's privacy data and solving the problem of user data protection in after-sales maintenance of mobile phones.

[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0036] Figure 1 The figure is a flowchart of a data protection method according to an exemplary embodiment.

[0037] Figure 1a This is a schematic diagram of a first display interface of a terminal in an engineering mode according to an exemplary embodiment.

[0038] Figure 1b This is a schematic diagram of a second display interface of a terminal in an engineering mode according to an exemplary embodiment.

[0039] Figure 1c This is a schematic diagram of a third display interface of a terminal in an engineering mode according to an exemplary embodiment.

[0040] Figure 1d It is a schematic diagram of a fourth display interface of a terminal in an engineering mode according to an exemplary embodiment.

[0041] Figure 2 is a block diagram of a data protection device according to an exemplary embodiment.

[0042] Figure 3 is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.

[0044] Related technologies use application encryption to prevent private data such as photo albums from being accessed through the file system. However, photos in the album path can still be viewed through commands (such as adb or shell). This approach does not truly address privacy concerns, and users' private data still faces the risk of being exposed.

[0045] This disclosure provides a data protection method for a terminal. This method allows users to enter maintenance mode while in engineering mode. Therefore, during after-sales maintenance, maintenance personnel can enter maintenance mode without knowing the terminal's preset password. In maintenance mode, the terminal's main space data is encrypted, while the clone space data is accessible. Furthermore, entering the main space mode from maintenance mode requires entering the correct preset password, thereby better preventing the user's private data from being exposed. This completely resolves privacy concerns, makes after-sales maintenance more convenient, and enhances the user experience.

[0046] In an exemplary embodiment, a data protection method is provided, which is applied to a terminal. Figure 1 As shown, the terminal is based on the Android system. The method includes:

[0047] S110. When the terminal is in engineering mode, based on the control information, control the terminal to enter maintenance mode. In the maintenance mode, the clone space data created in the terminal is accessible, and the main space data of the terminal is encrypted.

[0048] S120, when entering the main space mode from the maintenance mode, a prompt message for entering a preset password is issued;

[0049] S130: If it is determined that the received input password does not match the preset password, the control terminal is placed in a maintenance mode.

[0050] In step S110, the engineering mode refers to the recovery mode in the Android system, which is a mode in which the data or system inside the terminal (such as a mobile phone) can be modified. Generally, when the terminal is turned off, the engineering mode can be entered directly by pressing a combination of keys without entering a password.

[0051] For example, when the terminal is powered off, press and hold the volume "+" button and the power button at the same time for 3 seconds to enter engineering mode.

[0052] For another example, when the terminal is powered off, press and hold the volume "-" button and the power button at the same time for 3 seconds to enter engineering mode.

[0053] For another example, when the terminal is turned off, press and hold the volume "+" button, the Home button (the button that returns the terminal to the main interface) and the power button at the same time. After the terminal vibrates, release the power button (the volume "+" button and the Home button continue to be pressed) to enter engineering mode.

[0054] It should be noted that different terminals have different ways to enter engineering mode, which will not be detailed here.

[0055] In step S110 , an entrance to enter maintenance mode is provided in the engineering mode of the terminal. When the terminal enters the engineering mode, the user can enter maintenance mode through the entrance.

[0056] For example, reference Figure 1a As shown, in engineering mode, the terminal's display interface is designed with an option to "enter after-sales maintenance mode". The user can enter maintenance mode by selecting this option.

[0057] In step S110, when the terminal enters maintenance mode, relevant personnel (such as maintenance personnel) can only access the clone space data, while the main space data is in an encrypted state and cannot be accessed. Among them, the clone space data refers to the data of the clone space created in the maintenance mode. This part of the data can be set as the data that must be used when repairing the terminal. The main space data refers to the data of the main space when the user uses the terminal normally. This part of the data mainly includes the data of third-party applications and data involving user privacy, such as photos, videos, text messages, address books, instant chat data, payment data, etc.

[0058] It should be noted that users can set the accessible clone space data and encrypted main space data by themselves. In this way, users can set the necessary data to be accessible according to the maintenance required by the terminal, and set other data to be encrypted, so as to better adapt to different maintenance situations and further enhance the user experience.

[0059] In maintenance mode, the main space data can be encrypted using file-level encryption technology. That is, the main space data can be encrypted using file-level encryption technology (FBE). Before decryption, all main space data is inaccessible. In this method, not only is a clone space created for maintenance mode, but the main space data is also encrypted. Not only is the main space data inaccessible from the clone space under the file system, but it is also inaccessible through adb or shell. This completely eliminates the risk of main space data being accessed by non-main space (clone space) and improves the protection of user privacy data.

[0060] In step S120, when entering the main space mode from maintenance mode, the terminal will prompt you to enter a preset password. This preset password can be the terminal's unlock password, power-on password, etc., or a password set specifically for exiting maintenance mode or entering the main space mode. The specific form of the preset password is not detailed here.

[0061] In step S130, after the relevant personnel enters the password, the terminal receives the entry password entered by the relevant personnel. If the entry password does not match the preset password, that is, the entry password is inconsistent with the preset password, the control terminal remains in maintenance mode, thereby better preventing other personnel from exiting the maintenance mode, better preventing the user's privacy data from being exposed, and further improving the data protection strength.

[0062] It should be noted that if it is determined that the entered password matches the preset password, that is, the entered password is consistent with the preset password, the terminal is controlled to exit the maintenance mode and enter the main space mode.

[0063] In this method, when performing after-sales maintenance on the terminal, the maintenance personnel do not need to know the preset password of the terminal and can directly enter the maintenance mode from the engineering mode. In the maintenance mode, the clone space data is accessible and the main space data is encrypted, which not only facilitates the maintenance of the maintenance personnel, but also better avoids the leakage of the user's privacy data, thereby improving the user experience.

[0064] In an exemplary embodiment, a data protection method is provided, which is applied to a terminal. In the method, when the terminal is restarted in a maintenance mode, the terminal is controlled to enter the maintenance mode.

[0065] That is, when the terminal is in maintenance mode, when relevant personnel restart the terminal, the terminal still enters maintenance mode.

[0066] It is understandable that during the after-sales maintenance process, a terminal in maintenance mode may shut down due to insufficient power. In this state, if the terminal is restarted after timely charging, the terminal will still enter the original maintenance mode, thereby better preventing the leakage of user privacy data.

[0067] As can be seen from steps S120 and S130 in the previous exemplary embodiment, in this method, once the terminal enters maintenance mode, a preset password must be entered to exit maintenance mode and enter the main space mode. During the after-sales maintenance process, maintenance personnel are unaware of the preset password. Therefore, this method effectively enables maintenance personnel to complete the repair while also effectively protecting the user's privacy data.

[0068] In an exemplary embodiment, a data protection method is provided, which is applied to a terminal. The method further includes:

[0069] When exiting the maintenance mode, the current maintenance data is deleted, wherein the current maintenance data refers to the maintenance data generated in the maintenance mode.

[0070] In this method, when the maintenance is completed, the user can exit the maintenance mode by entering a preset password. When exiting the maintenance mode, the current maintenance data generated by the maintenance is deleted, which can effectively avoid the maintenance data from occupying the terminal memory and the accumulation of maintenance data, thereby ensuring the performance of the terminal.

[0071] In an exemplary embodiment, a data protection method is provided, which is applied to a terminal. In the method, based on control information, entering a maintenance mode includes:

[0072] S210, based on the control information, determining to enable the maintenance mode and detecting whether a preset password exists; wherein, if it is determined that the preset password exists, executing step S230; if it is determined that the preset password does not exist, executing step S220;

[0073] S230, outputting a prompt message for setting a preset password, and after confirming that the preset password is set, executing step S230;

[0074] S240: Control the terminal to restart, so that the terminal enters maintenance mode.

[0075] In step S210, the control information refers to information used to determine whether to start the maintenance mode. The control information may include only a single piece of information or multiple pieces of information, that is, the control information may refer to a group of information.

[0076] Example 1,

[0077] refer to Figure 1aAs shown, the control information is a single message. In the engineering mode of the terminal, an option button "Enter After-sales Maintenance Mode" is set. After the user clicks this button, the terminal can receive the corresponding control information and confirm the start of the maintenance mode.

[0078] Example 2,

[0079] refer to Figures 1a to 1d As shown, the control information is a set of information, including first sub-control information, second sub-control information, third sub-control information, and fourth sub-control information in sequence. The terminal's engineering mode includes an option button for "Enter After-Sales Maintenance Mode." When the user clicks this button, the terminal receives the first sub-control information in response. Based on the first sub-control information, the terminal enters a prompt interface for enabling maintenance mode.

[0080] The prompt interface may include: the functions of maintenance mode (such as protecting user privacy data), prompts to back up important data in advance, an option button to confirm the disclaimer agreement, an option button to start maintenance mode, etc. Relevant personnel can understand the functions of maintenance mode and possible risks through this prompt interface.

[0081] When the user clicks the option button for confirming the waiver agreement, the terminal will receive the second sub-control information, confirm that the waiver agreement has been confirmed by the relevant personnel, and switch the option button for turning on the maintenance mode to a highlighted state, reminding the user that the option button is now selectable.

[0082] The user can click the highlighted option button, and the terminal will receive the third sub-control information, and a pop-up window of "Turn on maintenance mode" will pop up on the display interface of the control terminal. The pop-up window prompts that the terminal needs to be restarted to turn on the maintenance mode, and provides an "Turn on now" option button for confirming to turn on the maintenance mode immediately.

[0083] The user can click the "Start Now" option button, and the terminal will receive the fourth sub-control information, control the terminal to restart, and enter the maintenance mode after the terminal restarts.

[0084] In step S210, after determining to enable maintenance mode, the terminal checks whether a preset password exists. The preset password can be the terminal's power-on password. Based on the detection result, the terminal is controlled to enter different processes. The method for detecting the preset password is not detailed here.

[0085] Example,

[0086] The control information is a set of information that includes first, second, third, and fourth sub-control information. When the terminal is restarted based on the fourth sub-control information, the terminal detects whether the preset password exists and then controls the terminal to enter different processes based on the detection result.

[0087] In this method, if it is determined that a preset password exists, the process directly proceeds to step S230, where the terminal is controlled to restart, causing the restarted terminal to enter maintenance mode, completing the maintenance mode setting. If it is determined that a preset password does not exist, a prompt message for setting a preset password is output, which may include a password input interface for setting the preset password. After the user completes setting the preset password, the terminal determines that the preset password setting is complete, and then proceeds to step S230, where the terminal is controlled to restart, causing the restarted terminal to enter maintenance mode, completing the maintenance mode setting. The specific method for setting the preset password and the specific form of the preset password are not detailed here.

[0088] In one example, the preset password is the terminal's power-on password or unlock password. Typically, users set a power-on password or unlock password. When a user sends the terminal to after-sales service for repair, the repairman does not need to know the preset password and can directly enter maintenance mode from engineering mode to complete the terminal repair. Furthermore, since the repairman does not know the preset password, he or she cannot enter the main space mode and cannot access the user's private data (main space data).

[0089] When the maintenance is completed, since the preset password is the power-on password or unlock password set by the user in advance, the user can get the terminal and enter the preset password to exit the maintenance mode and enter the main space mode to use the terminal normally.

[0090] This method can effectively solve the problem of privacy data exposure during after-sales maintenance, which is convenient for both maintenance personnel and users and improves the user experience.

[0091] In an exemplary embodiment, a data protection method is provided, which is applied to a terminal. In the method, before determining to start the maintenance mode, the method further includes:

[0092] S310, detecting whether there is old maintenance data;

[0093] S320: If it is determined that old maintenance data exists, the old maintenance data is deleted.

[0094] Among them, the old maintenance data refers to the maintenance data generated in the previous maintenance mode and not deleted. If this is the first time that the maintenance mode needs to be turned on, there is no previous maintenance mode, and of course there is no old maintenance data.

[0095] It should be noted that although this method deletes the current maintenance data each time you exit maintenance mode, it is possible that the data deletion may not be complete or the system may crash. Therefore, each time you start maintenance mode, you need to check whether there is old maintenance data. If there is old maintenance data, delete it before you start maintenance mode again to prevent the leakage of old maintenance data.

[0096] The method may further include a preset time period. If the old maintenance data is not completely deleted within the preset time period, the maintenance mode is determined to have failed to be activated. In other words, if all old maintenance data is not completely deleted within the preset time period, the maintenance mode will not be activated, and the step of "determining activation of maintenance mode" will not be executed.

[0097] For example, if the maintenance mode fails to start, the terminal is controlled to restart so that the terminal is restored to a previous state, such as a locked screen state.

[0098] It should be added that, if it is determined that no old maintenance data exists, the maintenance mode may be started according to the control information.

[0099] In this method, when the maintenance mode is turned on, it is necessary to first detect whether there is old maintenance data. Only after it is determined that there is no old maintenance data or the old maintenance data has been completely deleted, will the maintenance mode be turned on, thereby avoiding the leakage of old maintenance data and further improving the protection of user privacy data.

[0100] In an exemplary application scenario, such as an after-sales maintenance scenario.

[0101] When a user needs to repair their phone, they can directly send the phone to an after-sales repair center. When the maintenance personnel at the after-sales repair center repair the phone, they do not need to ask the user for a password. They can directly enter the engineering mode by pressing a combination of keys, and then enter the maintenance mode in the engineering mode to repair the phone.

[0102] When the terminal is in maintenance mode, the clone space provides the necessary clone space data for maintenance. This data is accessible and maintenance personnel can use it to perform maintenance. The main space data in the main space is encrypted using file-level encryption technology. Without the preset password, maintenance personnel cannot access the encrypted main space data, thus protecting the user's privacy.

[0103] Furthermore, a password is required to exit maintenance mode. After the terminal receives the password entered by the relevant personnel, if the password does not match the preset password, the phone will be controlled to remain in maintenance mode, thus preventing people who do not know the preset password from viewing the main space data.

[0104] In addition, when the terminal is in maintenance mode, the phone will remain in maintenance mode after restarting, so as to better avoid exiting maintenance mode by restarting the phone, which can better protect the user's privacy data.

[0105] This method can effectively protect the user's privacy data. Especially for after-sales repairs in the form of mail-in, it not only makes it easier for maintenance personnel to complete the repair without knowing the preset password, but also prevents the leakage of user privacy data.

[0106] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, the device is used to implement the above data protection method. The device includes a control module 101 and an encryption module 102. During the implementation of the above method,

[0107] The control module 101 is used to control the terminal to enter the maintenance mode based on the control information when the terminal is in the engineering mode. In the maintenance mode, the clone space data created in the terminal is accessible, and the main space data of the terminal is encrypted;

[0108] The encryption module 102 is used to issue a prompt message for entering a preset password when entering the main space mode from the maintenance mode;

[0109] The control module 101 is further configured to control the terminal to be in a maintenance mode if it is determined that the received input password does not match the preset password.

[0110] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, in the device, the encryption module 102 is further used to:

[0111] In maintenance mode, the main space data is encrypted using file-level encryption technology.

[0112] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, in the device, the control module 101 is further used for:

[0113] When you restart the terminal in maintenance mode, the control terminal enters maintenance mode.

[0114] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, the device also includes:

[0115] The deleting module 104 is configured to delete the current maintenance data when exiting the maintenance mode, wherein the current maintenance data refers to the maintenance data generated in the maintenance mode.

[0116] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, in the device, the control module 101 is further used to:

[0117] Based on the control information, determine to start the maintenance mode and detect whether a preset password exists;

[0118] If it is determined that the preset password exists, the terminal is controlled to restart so that the terminal enters a maintenance mode.

[0119] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, in the device, the control module 101 is further used to:

[0120] If it is determined that there is no preset password, a prompt message for setting a preset password is output, and after it is determined that the preset password is set, the terminal is controlled to restart so that the terminal enters the maintenance mode.

[0121] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, the device also includes a detection module and a deletion module, wherein,

[0122] The detection module 103 is used to detect whether there is old maintenance data; wherein the old maintenance data refers to the maintenance data generated in the previous maintenance mode and not deleted;

[0123] The deleting module 104 is configured to delete the old maintenance data if it is determined that the old maintenance data exists.

[0124] The deletion module and the deletion module for deleting the current maintenance data in the above example can be set to be the same module.

[0125] In an exemplary embodiment, a data protection device is provided, which is applied to a terminal. Figure 2 As shown, in the device, the control module 101 is further used to:

[0126] If it is determined that the old maintenance data is not deleted within the preset time, it is determined that the maintenance mode has failed to be started.

[0127] The present application also provides a terminal, which can be a mobile phone, tablet computer, laptop computer, video camera, camera and other devices.

[0128] In one exemplary embodiment, reference Figure 3As shown, terminal 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0129] Processing component 402 generally controls the overall operation of terminal 400, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the above-described method. In addition, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0130] The memory 404 is configured to store various types of data to support operations on the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0131] Power component 406 provides power to various components of terminal 400. Power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 400.

[0132] The multimedia component 408 includes a screen that provides an output interface between the terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. When the terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and / or the rear camera module can receive external multimedia data. Each front camera module and the rear camera module can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0133] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0134] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0135] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect the open / closed state of the terminal 400, the relative positioning of components, such as the display and keypad of the terminal 400. The sensor assembly 414 can also detect changes in the position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, the orientation or acceleration / deceleration of the terminal 400, and temperature changes of the terminal 400. The sensor assembly 414 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0136] The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0137] In an exemplary embodiment, the terminal 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as memory 404 including instructions. The instructions can be executed by processor 420 of terminal 400 to perform the above-described method. For example, the non-transitory computer-readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the method shown in the above-described embodiment.

[0139] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the invention are indicated by the claims.

[0140] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data protection method, applied to a terminal, characterized in that: The method comprises: When the terminal is in engineering mode, based on control information, controlling the terminal to enter maintenance mode, wherein in the maintenance mode, clone space data created in the terminal is accessible, the clone space data including data used when repairing the terminal, and the main space data of the terminal is encrypted; When entering the main space mode from the maintenance mode, a prompt message for entering a preset password is issued; If it is determined that the received input password does not match the preset password, controlling the terminal to be in the maintenance mode; If it is determined that the entered password matches the preset password, controlling the terminal to exit the maintenance mode and enter the main space mode; The step of entering the maintenance mode based on the control information includes: Based on the control information, determining to enable the maintenance mode and detecting whether a preset password exists; If it is determined that the preset password exists, controlling the terminal to restart so that the terminal enters the maintenance mode; If it is determined that the preset password does not exist, a prompt message for setting a preset password is output, and after it is determined that the preset password is set, the terminal is controlled to restart.

2. The method according to claim 1, characterized in that The method comprises: In the maintenance mode, the main space data is encrypted using file-level encryption technology.

3. The method according to claim 1, characterized in that The method further comprises: When the terminal is restarted in the maintenance mode, the terminal is controlled to enter the maintenance mode.

4. The method according to claim 1, wherein The method further comprises: When exiting the maintenance mode, current maintenance data is deleted, wherein the current maintenance data refers to maintenance data generated in the maintenance mode.

5. The method according to claim 1, wherein Before determining to start the maintenance mode, the method further includes: Detecting whether there is old maintenance data; wherein the old maintenance data refers to maintenance data generated in the previous maintenance mode and not deleted; If it is determined that old maintenance data exists, the old maintenance data is deleted.

6. The method according to claim 5, characterized in that The method further comprises: If it is determined that the old maintenance data is not completely deleted within the preset time period, it is determined that the maintenance mode has failed to be started.

7. A data protection device, applied to a terminal, characterized in that: The device comprises: a control module, configured to control the terminal to enter a maintenance mode based on control information when the terminal is in an engineering mode, wherein in the maintenance mode, clone space data created in the terminal is accessible, the clone space data including data used when repairing the terminal, and the main space data of the terminal is encrypted; An encryption module, configured to issue a prompt message for entering a preset password when entering the main space mode from the maintenance mode; The control module controls the terminal to be in the maintenance mode if it is determined that the received input password does not match the preset password; If it is determined that the entered password matches the preset password, controlling the terminal to exit the maintenance mode and enter the main space mode; The step of entering the maintenance mode based on the control information includes: Based on the control information, determining to enable the maintenance mode and detecting whether a preset password exists; If it is determined that the preset password exists, controlling the terminal to restart so that the terminal enters the maintenance mode; If it is determined that the preset password does not exist, a prompt message for setting a preset password is output, and after it is determined that the preset password is set, the terminal is controlled to restart.

8. A terminal, characterized in that: The terminal includes: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Mobile terminal access method and device

    CN104298903A

  • Data processing method and device, terminal and readable storage medium of computer

    CN108536783A

  • User mode control method and device, readable storage medium and terminal

    CN108595977A

  • Data processing method and device

    CN112256174A