Equipment lock unlocking method, equipment and storage medium

By backing up and replacing the database, the data loss problem caused by the user's forgotten password in the iOS system is solved, and the device access permissions are quickly restored, the operation process is simplified, and the risk of data loss in traditional methods is avoided.

CN119046905APending Publication Date: 2024-11-29SHENZHEN MAIFENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411065285.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In iOS system, when a user forgets the screen time lock password, the traditional reset device method will lead to data loss. The existing technology cannot effectively protect data integrity while ensuring security. The new method is cumbersome and difficult to quickly restore access permissions.

Method used

By performing a backup operation on the first device, obtaining its database, and when the second device to be unlocked is accessed, backup and replace the setting part of the information, converting its database, and then performing a restore operation to unlock the device, avoiding data loss and simplifying Operation process.

Benefits of technology

It realizes the recovery of device access permissions without losing important information, simplifies the operation process, improves unlocking efficiency, and avoids the cumbersome identity verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046905A_ABST
    Figure CN119046905A_ABST
Patent Text Reader

Abstract

The invention relates to the field of network communication, and discloses an equipment lock unlocking method, equipment and a storage medium. The method comprises the following steps: executing a backup operation on a first device to obtain a first database, and executing a backup operation on a second device to obtain a second database corresponding to the second device when it is detected that the second device to be unlocked is accessed; first setting part backup information is extracted from the first database, and second setting part backup information in the second database is replaced with the first setting part backup information, so that the second database is converted into a target database; and according to the target database, executing a restoration operation on the second equipment so as to unlock the equipment lock of the second equipment. In the embodiment of the invention, the operation process is simplified and the unlocking efficiency is improved in a manner of backing up and replacing the database. And the user can quickly recover the equipment access authority without experiencing a tedious identity verification process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication, and in particular to a method, a device and a storage medium for releasing a device lock. Background Art

[0002] With the development of digital security, the demand for passwords has surged. Individuals need to remember a large number of passwords, which can easily lead to confusion and forgetfulness. In the iOS system, forgetting the screen time lock password will limit the use of some functions. Although the traditional method of resetting the device can unlock it, it is accompanied by the risk of data loss. Although the current technical status can ensure security, there are obvious defects in restoring access rights while protecting data integrity when the user forgets the password.

[0003] Existing technologies are exploring more user-friendly solutions, such as resetting or bypassing password locks by verifying user identity (such as fingerprint recognition, facial recognition, or alternative email verification), aiming to ensure that users can restore device access rights without losing data, thereby compensating for the data loss problem caused by traditional reset methods. However, these new methods are still cumbersome. A new technical solution is needed to solve the above technical problems. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem that the method for releasing the device lock is relatively complicated.

[0005] A first aspect of the present invention provides a method for releasing a device lock, the method comprising:

[0006] Performing a backup operation on the first device to obtain a first database, and when detecting that a second device to be unlocked is connected, performing a backup operation on the second device to obtain a second database corresponding to the second device;

[0007] extracting first setting partial backup information from the first database, and replacing second setting partial backup information in the second database with the first setting partial backup information, so as to convert the second database into a target database;

[0008] According to the target database, a restore operation is performed on the second device to release a device lock of the second device.

[0009] Optionally, in a first implementation of the first aspect of the present invention, when the access of the second device to be unlocked is detected, the step of performing a backup operation on the second device to obtain a second database corresponding to the second device includes:

[0010] When it is detected that the second device to be unlocked is connected, the preset libimobiledevice is called to perform a backup operation on the second device to obtain a second database corresponding to the second device.

[0011] Optionally, in a second implementation of the first aspect of the present invention, the step of extracting the first setting part backup information from the first database includes:

[0012] The preset file name is used as an index identifier to extract the first setting part backup information from the first database.

[0013] Optionally, in a third implementation of the first aspect of the present invention, the step of replacing the second setting partial backup information in the second database with the first setting partial backup information includes:

[0014] Using the preset file name as an index identifier, locating the second setting part backup information in the second database to obtain a file location;

[0015] According to the file location, the first setting partial backup information replaces the second setting partial backup information.

[0016] Optionally, in a fourth implementation manner of the first aspect of the present invention, the step of performing a backup operation on the first device to obtain the first database includes:

[0017] When it is detected that the first device is connected, a backup operation is performed on the first device to obtain a first database.

[0018] Optionally, in a fifth implementation manner of the first aspect of the present invention, after the step of performing a restore operation on the second device according to the target database to release the device lock of the second device, the method further includes:

[0019] When the first device is disconnected, the first database is deleted, and after the second device is disconnected, the second database is deleted.

[0020] Optionally, in a sixth implementation manner of the first aspect of the present invention, the step of performing a restore operation on the second device according to the target database includes:

[0021] Sending a reset instruction to the second device, and detecting whether the reset of the second device is completed;

[0022] If it is determined that the resetting of the second device is complete, a restore operation is performed on the second device according to the target database.

[0023] Optionally, in a seventh implementation manner of the first aspect of the present invention, after the step of performing a restore operation on the second device according to the target database, the method further includes:

[0024] Detecting whether restoration of the second device is complete;

[0025] If the restoration of the second device is complete, a restart instruction is sent to the second device.

[0026] A second aspect of the present invention provides a device for releasing a device lock, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the device lock releasing device executes the above-mentioned device lock releasing method.

[0027] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for releasing a device lock.

[0028] In an embodiment of the present invention, a backup operation is performed on the first device to obtain a first database, and when it is detected that the second device to be unlocked is connected, a backup operation is performed on the second device to obtain a second database corresponding to the second device; the first setting part backup information is extracted from the first database, and the first setting part backup information replaces the second setting part backup information in the second database to convert the second database into a target database; according to the target database, a restore operation is performed on the second device to release the device lock of the second device. By backing up and replacing the setting part backup information. Compared with the traditional method of resetting the device, the risk of data loss is avoided, allowing users to restore access rights to the device without losing any important information. Compared with methods that rely on complex identity authentication (such as fingerprint recognition, facial recognition or backup mailbox verification), the method of backing up and replacing the database simplifies the operation process and improves the unlocking efficiency. Users can quickly restore device access rights without going through a tedious identity authentication process. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of an embodiment of a method for releasing a device lock in an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of a specific embodiment of step 102 of the method for releasing a device lock in an embodiment of the present invention;

[0031] Figure 3 A schematic diagram of a specific embodiment of step 103 of the method for releasing a device lock in an embodiment of the present invention;

[0032] Figure 4 It is a schematic diagram of a specific embodiment after step 1032 of the device lock release method in an embodiment of the present invention;

[0033] Figure 5 The figure is a schematic diagram of an embodiment of a device for releasing a device lock in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The embodiment of the present invention provides a method, a device and a storage medium for releasing a device lock.

[0035] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0036] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0037] The terms involved in the method of unlocking the device include but are not limited to:

[0038] Device lock: A locking mechanism used to protect device security and prevent unauthorized access. In mobile devices (such as smartphones, tablets, etc.), device locks usually include multiple authentication methods such as passwords, patterns, fingerprints, and facial recognition.

[0039] Backup operation: refers to the process of copying the data, settings, applications and other information in the device to another storage medium (such as a hard disk, cloud storage, etc.) so that it can be restored in case of device failure, data loss or migration.

[0040] Database: In computer science, a database is a warehouse that organizes, stores, and manages data according to a data structure. In this method book, the first database and the second database represent the backup information set of the first device and the second device, respectively.

[0041] Settings backup information: refers to the backup information related to user settings in the device, such as screen time lock password, WiFi network configuration, user account information, etc. This information may need to be replaced or reset when restoring device access rights.

[0042] libimobiledevice: Open source library that allows developers to access the file system of iOS devices, backup / restore devices, manage applications on devices, etc. on Linux and Mac OS X systems. It is widely used in automated testing and data analysis of iOS devices.

[0043] Index identifier: In a database or file system, an index identifier is used to quickly locate the location of a data item. In this method, a preset file name is used as an index identifier to quickly find and locate the partial backup information in the first database and the second database.

[0044] Restore operation: refers to the process of restoring the backed-up data, settings, applications and other information to the original device or another device. In this method, the restore operation is used to unlock the device lock of the second device according to the target database.

[0045] Device lock release device: a hardware device or software system used to release the device lock. In this method, the device lock release device releases the device lock of the second device by executing a specific method.

[0046] Reset instruction: refers to an instruction for triggering a device reset operation. In this method, the reset instruction is sent to the second device to start the reset process in preparation for the subsequent restore operation.

[0047] Restart instruction: refers to an instruction for triggering a restart of a device. In this method, the restart instruction is sent to the second device after the restore operation is completed to restart the device and apply the new settings.

[0048] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of a method for releasing a device lock in an embodiment of the present invention includes:

[0049] 101. Perform a backup operation on a first device to obtain a first database, and when it is detected that a second device to be unlocked is connected, perform a backup operation on the second device to obtain a second database corresponding to the second device;

[0050] Specifically, ensure that the connection between the device unlocking device (hereinafter referred to as the "second device") and the first device is stable (it can be a physical connection such as USB, or a wireless connection such as Wi-Fi). Prepare a backup tool or software to ensure that it is compatible with and supports the backup operation of the first device.

[0051] The backup program is started to back up the first device according to a preset backup strategy (such as full backup or incremental backup).

[0052] The backup data is stored in the local storage of the second device or in a remote server and marked as the first database. The second device continuously monitors the device connection interface or network communication status, waiting for the second device to be unlocked to access. When the second device is detected to be connected, its identity and status are confirmed to ensure that it is the second device to be unlocked. Similar to the backup process of the first device, the second device is backed up using the same or compatible backup tool. The backup data is stored in the storage medium of the second device and marked as the second database.

[0053] Optionally, step 101 also includes the following specific implementations:

[0054] 1011. Use the preset file name as an index identifier to extract first setting part backup information from the first database.

[0055] Specifically, the device lock release device traverses all files in the first database, uses the preset file name list as an index identifier, matches and filters out files that match these file names, extracts the matched file content as the first setting partial backup information, and stores it in the temporary storage area.

[0056] In step 1011, the first setting part backup information is extracted by using the preset file name as an index mark, which simplifies the extraction process and improves the accuracy and efficiency of the extraction. This method avoids a complex parsing process and reduces the possibility of errors.

[0057] Optionally, step 101 also includes the following specific implementations:

[0058] 1012. When it is detected that the first device is connected, a backup operation is performed on the first device to obtain a first database.

[0059] Specifically, the device for releasing the device lock is a "third device". The device for releasing the device lock monitors the connection interface or network communication status and waits for the first device to access. When the first device is detected to be connected, the backup program is started. A comprehensive or specified backup operation is performed on the first device using a preset backup tool or method (such as iTunes backup, third-party backup software, etc.). The backed-up data is stored in the storage medium of the device for releasing the device lock and marked as the first database.

[0060] In a specific scenario, the third device is a dedicated unlocking tool, a computer or any other device with sufficient processing power and storage space.

[0061] The third device performs a backup operation on the first device, obtains settings and data of the first device, and generates a first database.

[0062] When the second device (device to be unlocked) is connected to the third device in some way (such as USB, Wi-Fi, etc.), the third device detects its access.

[0063] The third device performs a backup operation on the second device to generate a second database.

[0064] The third device extracts the first setting part backup information related to the device lock from the first database.

[0065] The third device replaces the first setting partial backup information to the corresponding position in the second database to generate a target database.

[0066] Finally, the third device performs a restore operation on the second device according to the target database to release its device lock.

[0067] In step 1012, the device lock release method is used in a scenario where there are two mobile phones, and the unlocking process can be easily completed by accessing the device lock release device.

[0068] 102. Extracting first setting partial backup information from the first database, and replacing second setting partial backup information in the second database with the first setting partial backup information, so as to convert the second database into a target database;

[0069] Specifically, the backup information related to the device settings is extracted from the first database. The information is stored in a specific file or database table and can be located by a preset index or identifier.

[0070] Open the second database and find the portion corresponding to the setup information extracted from the first database.

[0071] A data replacement operation is performed to replace old setting information in the second database with new setting information extracted from the first database.

[0072] Ensure the integrity and consistency of data during the replacement process to avoid data corruption or conflicts.

[0073] After the replacement operation, the second database already contains the setting information extracted from the first database.

[0074] Mark this database as the target database in preparation for subsequent device restore operations.

[0075] Optionally, step 102 also includes the following specific implementations:

[0076] 1021. When it is detected that a second device to be unlocked is connected, a preset libimobiledevice is called to perform a backup operation on the second device to obtain a second database corresponding to the second device.

[0077] Specifically, monitor the device connection interface or network communication status and wait for the second device to access. When the second device is detected to be connected and confirmed to be in a waiting-to-be-unlocked state, call the preset libimobiledevice library. Use the function provided by libimobiledevice to perform a backup operation on the second device and obtain its backup data. Store the backed-up data in the storage medium of the device that unlocks the device lock and mark it as the second database.

[0078] In step 1021, the backup operation of the second device is performed using the preset libimobiledevice library, ensuring the compatibility and stability of the backup process. libimobiledevice is an open source library that supports backup and restore operations of multiple iOS devices, making the method applicable to a wider range of device types.

[0079] Optional, see Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a specific embodiment of step 102 of the method for releasing a device lock in an embodiment of the present invention. Step 102 also includes the following specific implementation methods:

[0080] 1022. Using the preset file name as an index identifier, locate the second setting part backup information in the second database to obtain a file location;

[0081] Specifically, all files in the second database are traversed, and the same preset file name list as in step 1011 is used as an index identifier to match and locate the file location of the second setting partial backup information.

[0082] 1023. Replace the second setting partial backup information with the first setting partial backup information according to the file location.

[0083] Specifically, the first setting part backup information is read (from the temporary storage area or the first database). According to the file location obtained in step 1022, the corresponding second setting part backup information is found in the second database. The second setting part backup information is replaced with the first setting part backup information to complete the database conversion.

[0084] In steps 1022-1023, the preset file name is also used as an index mark to locate the second setting part backup information, and replace it with the first setting part backup information, thereby ensuring the accuracy and controllability of the replacement process and effectively avoiding replacement errors or data damage.

[0085] 103. Perform a restore operation on the second device according to the target database to release a device lock of the second device.

[0086] Specifically, ensure that the connection between the second device and the unlocking device remains stable.

[0087] Prepare the restore tool or software and ensure that it is compatible and supports the restore operation of the second device.

[0088] Use the restore tool or software to load the data in the target database. Perform a restore operation on the second device based on the setting information in the target database. This includes restoring system settings, user data, application settings, etc., depending on what information is contained in the target database.

[0089] Wait for the restore operation to complete and verify the status of the second device. Determine that the device lock has been released and the device can be used normally.

[0090] Optional, see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a specific embodiment of step 103 of the method for releasing a device lock in an embodiment of the present invention. Step 103 also includes the following specific implementation methods:

[0091] 1031. Send a reset instruction to the second device, and detect whether the second device is reset;

[0092] Specifically, a reset instruction is sent to the second device through a device connection interface or network communication, and a state change or a specific response of the second device is monitored to determine whether the reset operation is completed.

[0093] 1032. If it is determined that the resetting of the second device is complete, perform a restore operation on the second device according to the target database.

[0094] Specifically, when it is confirmed that the second device has been reset, the data in the target database is used to perform a restore operation on the second device, including restoring system settings, application data, user data, etc.

[0095] In steps 1031-1032, a reset instruction is sent before the restore operation and the reset completion is detected, ensuring that the device is in a state suitable for restoration. This improves the success rate and stability of the restore operation and reduces restore failures or data corruption caused by inconsistent device states.

[0096] Optional, see Figure 4 , Figure 4 This is a schematic diagram of a specific embodiment after step 1032 of the device lock release method in an embodiment of the present invention. Step 1032 also includes the following specific implementation methods:

[0097] 1033. Detect whether restoration of the second device is complete;

[0098] 1034. If the restoration of the second device is complete, send a restart instruction to the second device.

[0099] In steps 1033-1034, after the restoration operation, it is detected whether the restoration of the second device is complete, and a restart instruction is sent after completion, ensuring that the device can start normally and load the restored settings and data.

[0100] Optionally, after step 103, the following specific implementations are also included:

[0101] 201. When the first device is disconnected, delete the first database; and after the second device is disconnected, delete the second database.

[0102] Specifically, the connection status between the first device and the second device is monitored, and once it is detected that the first device is disconnected, the storage is automatically deleted.

[0103] In step 201, the corresponding database is deleted after the device is disconnected, which helps to protect user privacy and data security and prevent data leakage or unauthorized access. At the same time, storage space is released to provide more resources for subsequent operations of the device.

[0104] Optionally, the device for unlocking the device lock may be the "cloud".

[0105] For example, the unlocking operation of the device lock is completed through a cloud service. Both the first device and the second device need to be able to connect to the Internet and communicate with the cloud service.

[0106] Optionally, the device lock release device may be located in the first device. In this case, the first device itself integrates the function of releasing the device lock, and no additional third device or cloud service is required.

[0107] For example, an application or system service within the first device performs a backup operation on itself and generates a first database containing its settings and data.

[0108] When the second device establishes a connection with the first device in some manner (such as Bluetooth, NFC, or a special data line connection), the first device detects its access.

[0109] The first device performs a backup operation on the second device to generate a second database (or obtains the current setting information of the second device). The application or system service inside the first device extracts the first setting partial backup information related to the device lock from the first database. The first device sends this information to the second device through the connection, or directly replaces the corresponding setting information in the storage of the second device to generate a target database. Finally, the first device instructs the second device to perform a restore operation to release its device lock.

[0110] In an embodiment of the present invention, a backup operation is performed on the first device to obtain a first database, and when it is detected that the second device to be unlocked is connected, a backup operation is performed on the second device to obtain a second database corresponding to the second device; the first setting part backup information is extracted from the first database, and the first setting part backup information replaces the second setting part backup information in the second database to convert the second database into a target database; according to the target database, a restore operation is performed on the second device to release the device lock of the second device. By backing up and replacing the setting part backup information. Compared with the traditional method of resetting the device, the risk of data loss is avoided, allowing users to restore access rights to the device without losing any important information. Compared with methods that rely on complex identity authentication (such as fingerprint recognition, facial recognition or backup mailbox verification), the method of backing up and replacing the database simplifies the operation process and improves the unlocking efficiency. Users can quickly restore device access rights without going through a tedious identity authentication process.

[0111] Figure 5 1 is a schematic diagram of the structure of a device lock release device provided by an embodiment of the present invention. The device lock release device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device lock release device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the device lock release device 500.

[0112] The device lock-based release device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, Free BSD, etc. It will be appreciated by those skilled in the art that Figure 5 The device lock release device structure shown does not constitute a limitation on the device lock-based release device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0113] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the device lock releasing method.

[0114] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0115] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0116] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for releasing a device lock, characterized in that: The method for releasing the device lock includes: Performing a backup operation on the first device to obtain a first database, and when detecting that a second device to be unlocked is connected, performing a backup operation on the second device to obtain a second database corresponding to the second device; extracting first setting partial backup information from the first database, and replacing second setting partial backup information in the second database with the first setting partial backup information, so as to convert the second database into a target database; According to the target database, a restore operation is performed on the second device to release a device lock of the second device.

2. The method for releasing a device lock according to claim 1, characterized in that: The step of performing a backup operation on the second device to obtain a second database corresponding to the second device when the access of the second device to be unlocked is detected includes: When it is detected that the second device to be unlocked is connected, the preset libimobiledevice is called to perform a backup operation on the second device to obtain a second database corresponding to the second device.

3. The method for releasing a device lock according to claim 1, characterized in that: The step of extracting the first setting part backup information from the first database comprises: The preset file name is used as an index identifier to extract the first setting part backup information from the first database.

4. The method for releasing a device lock according to claim 1, characterized in that: The step of replacing the second setting partial backup information in the second database with the first setting partial backup information comprises: Using the preset file name as an index identifier, locating the second setting part backup information in the second database to obtain a file location; According to the file location, the first setting partial backup information replaces the second setting partial backup information.

5. The method for releasing a device lock according to claim 1, characterized in that: The step of performing a backup operation on the first device to obtain the first database includes: When it is detected that the first device is connected, a backup operation is performed on the first device to obtain a first database.

6. The method for releasing a device lock according to claim 5, characterized in that: After the step of performing a restore operation on the second device according to the target database to release the device lock of the second device, the method further includes: When the first device is disconnected, the first database is deleted, and after the second device is disconnected, the second database is deleted.

7. The method for releasing a device lock according to claim 1, characterized in that: The step of performing a restore operation on the second device according to the target database comprises: Sending a reset instruction to the second device, and detecting whether the reset of the second device is completed; If it is determined that the resetting of the second device is complete, a restore operation is performed on the second device according to the target database.

8. The method for releasing a device lock according to claim 7, characterized in that: After the step of performing a restore operation on the second device according to the target database, the method further includes: Detecting whether restoration of the second device is complete; If the restoration of the second device is complete, a restart instruction is sent to the second device.

9. A device for releasing a device lock, characterized in that: The device for releasing the device lock comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory to enable the device for releasing the device lock to execute the device lock releasing method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for releasing a device lock according to any one of claims 1 to 8 is implemented.