Unlocking method and device, electronic equipment and computer storage medium
By establishing a call connection with the first electronic device and verifying the password, the problem of inefficient unlocking after screen damage is solved, data backup and complex operations are realized, and unlocking efficiency and security are improved.
Patent Information
- Application Number
- CN202311842509.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
The prior art cannot effectively unlock the electronic device screen after it is damaged, resulting in inefficient unlocking, inability to back up address books, text messages and application data, and inability to perform complex operations.
A call request is sent to the first electronic device through the second electronic device, and after establishing a connection with the third electronic device through the data line, a call connection is established using a physical key operation, and a password is received and verified to unlock the first electronic device.
Expand the scope of application of unlocking, improve unlocking efficiency, realize data backup and complex operations, and ensure data security.
Smart Images

Figure CN120238608A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the unlocking technology of electronic devices when the screen is disabled, and particularly relates to an unlocking method, device, electronic device, and computer storage medium. Background Art
[0002] Currently, when the mobile phone screen is damaged, in order to export data, the mobile phone with the corresponding mobile phone number in the mobile phone address book can be used to operate, and the mobile phone with the damaged screen can be switched to the Media Transfer Protocol (MTP) mode. However, this method has certain limitations, and it is impossible to back up the address book, text messages, and application data, as well as perform other more complex operations. Summary of the Invention
[0003] Embodiments of this application provide an unlocking method, device, electronic device, and computer storage medium, which can improve the unlocking efficiency of the electronic device when the screen is unavailable.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, an embodiment of this application provides an unlocking method, which is applied to a first electronic device. Among them, the first electronic device cannot respond to touch operations on the screen, and includes:
[0006] After receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device;
[0007] Based on the call connection, receive a password sent from the second electronic device;
[0008] Verify the password to obtain a verification result;
[0009] When the verification result indicates successful verification, unlock the first electronic device.
[0010] In a second aspect, an embodiment of this application provides an unlocking method, which is applied to a second electronic device and includes:
[0011] When the first electronic device cannot respond to touch operations on the screen, send a call request to the first electronic device;
[0012] When the first electronic device establishes a connection with a third electronic device through a data cable and the first electronic device receives a key operation on a preset physical key of the first electronic device, establish a call connection with the first electronic device;
[0013] Receive and respond to a touch operation on the dial pad of the second electronic device to generate a password;
[0014] Based on the call connection, send the password to the first electronic device, so that the first electronic device verifies the password, and unlocks the first electronic device when the verification result indicates successful verification.
[0015] In a third aspect, an embodiment of the present application provides an unlocking device, which is disposed in a first electronic device. Wherein, the first electronic device cannot respond to a touch operation on the screen, and includes:
[0016] A first connection module, configured to, after receiving a call request from a second electronic device, when establishing a connection with a third electronic device through a data cable and receiving a key operation on a preset physical key of the first electronic device, respond to the call request and establish a call connection with the second electronic device;
[0017] A receiving module, configured to receive a password sent from the second electronic device based on the call connection;
[0018] A verification module, configured to verify the password to obtain a verification result;
[0019] An unlocking module, configured to unlock the first electronic device when the verification result indicates successful verification.
[0020] In a fourth aspect, an embodiment of the present application provides an unlocking device, which is disposed in a second electronic device, and includes:
[0021] A first sending module, configured to send a call request to the first electronic device when the first electronic device cannot respond to a touch operation on the screen;
[0022] A second connection module, configured to establish a call connection with the first electronic device when the first electronic device establishes a connection with a third electronic device through a data cable and the first electronic device receives a key operation on a preset physical key of the first electronic device;
[0023] A generating module, configured to receive and respond to a touch operation on the dial pad of the second electronic device to generate a password;
[0024] A second sending module, configured to send the password to the first electronic device based on the call connection, so that the first electronic device verifies the password, and unlocks the first electronic device when the verification result indicates successful verification.
[0025] In a fifth aspect, an embodiment of the present application provides a first electronic device, including:
[0026] A processor and a storage medium storing instructions executable by the processor. The storage medium depends on the processor to perform operations through a communication bus. When the instructions are executed by the processor, the unlocking method described in one or more of the above embodiments is executed.
[0027] In a sixth aspect, an embodiment of the present application provides a second electronic device, including:
[0028] A processor and a storage medium storing instructions executable by the processor. The storage medium depends on the processor to perform operations through a communication bus. When the instructions are executed by the processor, the unlocking method described in one or more of the above embodiments is executed.
[0029] In a seventh aspect, an embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the unlocking method described in one or more of the above embodiments.
[0030] An embodiment of the present application provides an unlocking method, device, electronic device, and computer storage medium. The method is applied to a first electronic device that cannot respond to touch operations on the screen and includes: after receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, responding to the call request, establishing a call connection with the second electronic device, receiving a password sent from the second electronic device based on the call connection, verifying the password to obtain a verification result, and unlocking the first electronic device when the verification result indicates successful verification. That is to say, in the embodiment of the present application, a call request is sent from the second electronic device to the first electronic device, enabling it to establish a call connection when a connection is established with the third electronic device through a data cable and a key operation on a preset physical key is received. On this basis, the password received from the second electronic device is verified, and the first electronic device is unlocked when the verification is successful. In this way, any electronic device other than the first electronic device can establish a call connection with another electronic device by receiving a key operation on a preset physical key when the first electronic device is connected to the third electronic device, and then unlock the first electronic device through password verification, expanding the scope of applicability of unlocking and thus improving the unlocking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic structural diagram of an optional unlocking system provided by an embodiment of the present application;
[0032] Figure 2 It is a schematic flowchart of an optional unlocking method provided by an embodiment of the present application;
[0033] Figure 3 Schematic diagram of the first example of an optional unlocking method provided by an embodiment of the present application;
[0034] Figure 4a Schematic diagram of a password of an optional nine - grid pattern provided by an embodiment of the present application Figure 1 ;
[0035] Figure 4b Schematic diagram of a password of an optional nine - grid pattern provided by an embodiment of the present application Figure 2 ;
[0036] Figure 5 Schematic diagram of the second example of an optional unlocking method provided by an embodiment of the present application;
[0037] Figure 6 Schematic diagram of the third example of an optional unlocking method provided by an embodiment of the present application;
[0038] Figure 7 Schematic diagram of an optional unlocking method provided by an embodiment of the present application;
[0039] Figure 8 Schematic diagram of another optional unlocking method provided by an embodiment of the present application;
[0040] Figure 9 Schematic diagram of the structure of an optional unlocking device provided by an embodiment of the present application;
[0041] Figure 10 Schematic diagram of the structure of another optional unlocking device provided by an embodiment of the present application;
[0042] Figure 11 Schematic diagram of the structure of an optional first electronic device provided by an embodiment of the present application;
[0043] Figure 12 Schematic diagram of the structure of an optional second electronic device provided by an embodiment of the present application. Detailed implementation manners
[0044] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.
[0045] Currently, given that when the screen of an electronic device is damaged, the electronic device cannot respond to touch operations on the screen. However, the unlocking methods in the related technologies have certain limitations, resulting in low unlocking efficiency. To improve the unlocking efficiency, an embodiment of the present application provides an unlocking method, which is applied to an unlocking system. Figure 1 Schematic diagram of the structure of an optional unlocking system provided by an embodiment of the present application, asFigure 1 As shown in the figure, the unlocking system 100 may include: a first electronic device 11, a second electronic device 12, and a third electronic device 13.
[0046] Among them, the above-mentioned first electronic device 11 cannot respond to a touch operation on the screen. For example, when the screen of the first electronic device 11 is damaged, the first electronic device 11 cannot respond to a touch operation on the screen. That is to say, when the user issues any kind of touch operation on the screen, the first electronic device 11 cannot respond to the touch operation. For example, it cannot answer incoming calls, unlock the screen, etc.
[0047] The above-mentioned first electronic device 11 and second electronic device 12 may be a smart phone, a smart watch, etc. The first electronic device 11 can make a call with the second electronic device 12. In addition, the first electronic device 11 can be connected to the third electronic device 13 through a Universal Serial Bus (USB) data cable, and at least one physical key is provided on the first electronic device 11. The physical key may include a volume key and / or a power on / off key. Here, the embodiments of the present application do not make specific limitations in this regard.
[0048] Among them, the above-mentioned third electronic device 13 may be a desktop computer, a laptop computer, or a tablet computer. Here, the embodiments of the present application do not make specific limitations in this regard.
[0049] Based on the above unlocking system 100, Figure 2 is a schematic flowchart of an unlocking method provided by an embodiment of the present application. As Figure 2 shown, the unlocking method may include:
[0050] S201: When the first electronic device cannot respond to a touch operation on the screen, the second electronic device sends a call request to the first electronic device;
[0051] When the screen of the first electronic device is damaged and the user issues a touch operation on the screen at this time, the first electronic device cannot respond to the touch operation. That is to say, for the user, the first electronic device is basically unusable at this time. In order to implement the functions of the first electronic device, the first electronic device needs to be unlocked first. Here, in order to unlock, the second electronic device is used, and the second electronic device sends a call request to the first electronic device, so that the first electronic device can receive the call request.
[0052] The second electronic device here is an electronic device other than the first electronic device, and the second electronic device can establish a call connection with the first electronic device. In addition, both the first electronic device and the second electronic device can be of the same type of electronic device, for example, a smart phone or a smart watch, or they can be of different types of electronic devices. For example, the first electronic device is a smart phone and the second electronic device is a smart watch, or the first electronic device is a smart watch and the second electronic device is a smart phone. Here, the embodiments of the present application do not make specific limitations in this regard.
[0053] S202: When the first electronic device establishes a connection with the third electronic device through a data cable and receives a key operation on a preset physical key of the first electronic device, the first electronic device responds to the call request and establishes a call connection with the second electronic device;
[0054] Through S201 above, the first electronic device receives a call request. Here, it should be noted that the screen of the first electronic device may or may not display the call request. Here, the embodiments of the present application do not make specific limitations in this regard.
[0055] Since only the screen of the first electronic device is damaged and the call function is normal, here, the first electronic device can receive the call request and use the form set by the first electronic device to prompt the user that the call request has been received. For example, it can be a ringtone, it can also be a vibration, or it can be a combination of a ringtone and a vibration.
[0056] Then, after the first electronic device receives the call request, when the first electronic device establishes a connection with the third electronic device through a data cable and simultaneously receives a key operation on a preset physical key of the first electronic device, at this time, the response to the call request is triggered, and the first electronic device establishes a call connection with the second electronic device. Among them, the preset physical key of the first electronic device here can be a volume key, it can also be a power on / off key, or other physical keys, or a combination of physical keys. Here, the embodiments of the present application do not make specific limitations in this regard.
[0057] In addition, the above key operation can be a long press operation, or a click operation, it can be a single click operation, or a double click operation. Here, the embodiments of the present application do not make specific limitations in this regard.
[0058] In this way, a call connection can be established between the first electronic device and the second electronic device.
[0059] S203: The second electronic device receives and responds to a touch operation on the dial of the second electronic device to generate a password;
[0060] Establish a call connection between the first electronic device and the second electronic device. At this time, the first electronic device is connected to the third electronic device through a data cable. On this basis, the user performs a touch operation on the dial pad of the second electronic device, so that the second electronic device receives the touch operation on the dial pad of the second electronic device. In response to the touch operation, a password is generated.
[0061] The password here needs to be compared with the unlock password of the first electronic device. Therefore, the user needs to perform touch operations according to the rules to obtain the password. Among them, the first electronic device may be set with a password or may not be set with a password. If no password is set, the password of the first electronic device is empty. If a password is set, the password of the first electronic device is not empty. If it is not empty, the password can also be divided into a pure number password, a nine-grid pattern password, a password composed of numbers and letters. Of course, it can also be other types of passwords. Here, the embodiments of the present application do not make specific limitations on this.
[0062] S204: The second electronic device sends the password to the first electronic device based on the call connection;
[0063] After generating the password, the second electronic device needs to send the password to the first electronic device. Here, in order to send the password to the first electronic device, the second electronic device can send the password to the first electronic device based on the call connection, so that the first electronic device receives the password.
[0064] S205: The first electronic device verifies the password to obtain a verification result;
[0065] S206: When the verification result indicates successful verification, the first electronic device unlocks the first electronic device.
[0066] After receiving the password, the first electronic device needs to verify the password. Here, the password is mainly compared with the unlock password stored locally in the first electronic device to check whether they are consistent. When they are consistent, it can be determined that the verification result indicates successful verification. At this time, the first electronic device unlocks the first electronic device, so that the first electronic device is successfully unlocked.
[0067] In order to establish a call connection between the first electronic device and the second electronic device, in an alternative embodiment, S202 may include:
[0068] When a connection is established with the third electronic device through a data cable and key operations on the volume up key and volume down key of the first electronic device are received, the first electronic device responds to the call request and establishes a call connection with the second electronic device.
[0069] Understandably, the first electronic device establishes a connection with the third electronic device through a data cable. At the same time, the first electronic device receives key operations on its volume up key and volume down key. That is to say, the user connects the first electronic device to the third electronic device using the data cable and presses the volume up key and volume down key simultaneously. In this way, the first electronic device is triggered to respond to the call request, and a call connection is established between the first electronic device and the second electronic device.
[0070] In this way, through the connection with the third electronic device and the received key operations on the volume keys, the first electronic device establishes a call connection with the second electronic device, so that the second electronic device can send a password to the first electronic device, thereby achieving unlocking.
[0071] In addition, in order to establish a call connection between the first electronic device and the second electronic device, in an alternative embodiment, S202 may include:
[0072] When a connection is established with the third electronic device through a data cable and a long press operation on the power on / off key of the first electronic device is received, the first electronic device responds to the call request and establishes a call connection with the second electronic device.
[0073] Understandably, the first electronic device establishes a connection with the third electronic device through a data cable. At the same time, the first electronic device receives a long press operation on its power on / off key. That is to say, the user connects the first electronic device to the third electronic device using the data cable and the user long presses the power on / off key. In this way, the first electronic device is triggered to respond to the call request, and a call connection is established between the first electronic device and the second electronic device.
[0074] In this way, through the connection with the third electronic device and the received long press operation on the power on / off key, the first electronic device establishes a call connection with the second electronic device, so that the second electronic device can send a password to the first electronic device, thereby achieving unlocking.
[0075] It should be noted that the key operations on the preset physical keys are not limited to the above-listed methods and may also be other methods. Here, the embodiments of the present application do not make specific limitations in this regard.
[0076] Among them, after the second electronic device generates the password, it needs to send the password to the first electronic device. In an alternative embodiment, S204 may include:
[0077] The second electronic device sends the password to the first electronic device based on the call connection using Dual Tone Multi Frequency (DTMF).
[0078] Understandably, after establishing a call connection between the first electronic device and the second electronic device, the second electronic device can send the password to the first electronic device based on this call connection using the DTMF transmission method, so that the first electronic device receives the password for unlocking through verification.
[0079] In this way, based on the call connection and using the DTMF transmission method, the password is sent to the first electronic device, which helps to unlock through password verification.
[0080] In an optional embodiment, in order for the first electronic device to verify the password, S205 may include:
[0081] When the password is empty, the first electronic device obtains a verification result according to the setting of the unlocking password of the first electronic device;
[0082] When the password is not empty, the first electronic device determines the type of the password according to the format of the password;
[0083] The first electronic device translates the password according to the translation method corresponding to the type to obtain the translated password;
[0084] When the translated password is consistent with the unlocking password of the first electronic device, the verification result obtained by the first electronic device indicates successful verification;
[0085] When the translated password is inconsistent with the unlocking password of the first electronic device, the verification result obtained by the first electronic device indicates failed verification.
[0086] Understandably, first judge the password to see if it is an empty password. If so, it is necessary to check whether the first electronic device has set an unlocking password. Then, determine the verification result based on whether the first electronic device has set an unlocking password.
[0087] If not, at this time, the first electronic device needs to first determine the type of the password according to the format of the password, and then translate it according to the translation method corresponding to the type to obtain the translated password, and then compare the translated password with the unlocking password of the first electronic device to determine the verification result.
[0088] In this way, first determine whether the password is empty, and determine the verification result according to whether the password is empty, so that the verification result can be obtained, and then unlock when the verification is successful.
[0089] In an optional embodiment, in order to determine whether the password is empty, the above method may further include:
[0090] When the password is the first preset character, the first electronic device determines that the password is empty;
[0091] When the password is not the first preset character, the first electronic device determines that the password is not empty.
[0092] Understandably, after receiving the password, the first electronic device parses the password. Specifically, it first compares the characters in the password with the first preset character. If the password is the first preset character, then the first electronic device determines that the password is an empty password. If the password is not the first preset character, it means that the password is not an empty password.
[0093] In this way, the first electronic device directly compares the password with the first preset character to determine whether the password is empty, and then determines how to obtain the verification result based on whether the password is empty, which helps to achieve unlocking.
[0094] For the case where the password is empty, in an alternative embodiment, when the password is empty, according to the setting of the unlocking password of the first electronic device, obtaining the verification result may include:
[0095] When the password is empty and the first electronic device is not set with an unlocking password, it is determined that the verification result indicates successful verification;
[0096] When the password is empty and the first electronic device is set with an unlocking password, it is determined that the verification result indicates failed verification.
[0097] Understandably, when the password is empty, by checking the setting information of the first electronic device and finding that the first electronic device is not set with an unlocking password, it is determined at this time that the verification result indicates successful verification. When the password is empty, by checking the setting information of the first electronic device and finding that the first electronic device is set with an unlocking password, it is determined at this time that the verification result indicates failed verification.
[0098] In this way, further checking the setting information of the unlocking password of the first electronic device when it is known that the password is empty, and then determining the verification result, helps to achieve unlocking.
[0099] For the case where the password is not empty, in an alternative embodiment, when the password is not empty, the first electronic device determines the type of the password according to the format of the password, which may include:
[0100] When the password is not empty and the first N preset characters of the password are the second preset character, the first electronic device determines that the password is a numeric password;
[0101] When the password is not empty and the first N preset characters of the password are the third preset character, the first electronic device determines that the password is a nine - grid pattern password;
[0102] When the password is not empty and the first N preset characters of the password are the fourth preset character, the first electronic device determines that the password is a combination of numbers and letters.
[0103] Understandably, when the password is not empty, the first N characters of the preset password are viewed. Here, N can be selected as 5. The preset first N characters are used to determine the type of the password. When the preset first N characters are the second preset characters, the first electronic device determines that the password is a pure-numeric password. When the preset first N characters are the third preset characters, the first electronic device determines that the password is a nine-grid pattern password. When the preset first N characters are the third preset characters, the first electronic device determines that the password is a combination of numbers and letters.
[0104] For example, when the preset first N characters are ##1**, the first electronic device determines that the password is a pure-numeric password. When the preset first N characters are ##2**, the first electronic device determines that the password is a nine-grid pattern password. When the preset first N characters are ##3**, the first electronic device determines that the password is a combination of numbers and letters.
[0105] In this way, the type of the password can be determined, and thus the corresponding translation method can be used to process the password according to the type of the password to obtain the translated password to determine the verification result, which is beneficial to unlocking.
[0106] For different types of passwords, the translation methods are different. In an optional embodiment, the first electronic device translates the password according to the translation method corresponding to the type to obtain the translated password, which may include:
[0107] When the password is a pure-numeric password, the first electronic device determines the numbers at the preset positions in the password as the translated password.
[0108] When the password is a nine-grid pattern password, the first electronic device determines the pattern formed by connecting the numbers at the preset positions in the password on the nine-grid as the translated password.
[0109] When the password is a combination of numbers and letters, the first electronic device translates the numbers at the preset positions in the password in decimal or octal according to the American Standard Code for Information Interchange (ASCII) encoding to obtain the translated password.
[0110] Understandably, for a password consisting of pure numbers, the password includes characters representing the type, characters of the password content, and may also include ending characters. Then, when translating the password to obtain the translated password, the first electronic device only needs to use the numbers at the preset positions as the translated password; for a password in the form of a nine - grid pattern, the password includes characters representing the type, characters of the password content, and may also include ending characters. Then, when translating the password to obtain the translated password, the first electronic device only needs to use the pattern formed by connecting the numbers at the preset positions on the nine - grid as the translated password; for a password combining numbers and letters, the password includes characters representing the type, characters of the password content, and may also include ending characters. Then, when translating the password to obtain the translated password, the first electronic device only needs to translate the numbers at the preset positions of the password in the decimal or octal manner in the ASCII code. Here, when the touch operation on the dial pad uses the decimal in the ASCII code, the numbers at the preset positions are translated in the decimal of the ASCII code, and when the touch operation on the dial pad uses the octal in the ASCII code, the numbers at the preset positions are translated in the octal of the ASCII code.
[0111] In this way, the translation methods for different types of passwords are different, thus realizing the translation of different types of passwords, enabling the first electronic device to obtain the verification result using the translated password, and thus realizing unlocking.
[0112] In an optional embodiment, in order to export important data in the first electronic device, the above - mentioned method may further include:
[0113] When the verification result indicates successful verification, the first electronic device authorizes USB debugging for the third electronic device.
[0114] Understandably, if after verification, when the verification result indicates successful verification, in addition to completing unlocking, the first electronic device also authorizes USB debugging for the third electronic device, enabling the third electronic device to access the data in the first electronic device, such as multimedia data, text messages, address books, application data, etc.
[0115] In this way, the third electronic device can export the data of the first electronic device through a data cable, avoiding the inconvenience caused by some data being unable to be exported and solving the problem of inaccessibility due to screen damage.
[0116] For the case where the verification result indicates successful verification, in an optional embodiment, the above - mentioned method may further include:
[0117] When the verification result indicates successful verification, the first electronic device sets the automatic screen-off duration of the first electronic device to a preset duration.
[0118] Understandably, if the verification result obtained through verification is successful verification, in addition to unlocking, the first electronic device also sets its own automatic screen-off duration to a preset duration. In this way, it can be ensured that the screen is turned off within the preset duration.
[0119] In this way, the first electronic device can achieve automatic screen-off after unlocking, and the automatic screen-off duration is the preset duration. By flexibly setting the preset duration, it can be set according to its own actual needs, ensuring the security of the first electronic device.
[0120] For the case where the verification result indicates verification failure, in an optional embodiment, the above method may further include:
[0121] When the verification result indicates verification failure, the first electronic device disconnects the call connection with the second electronic device.
[0122] Understandably, when the verification result obtained through verification indicates verification failure, the password entered by the user in the second electronic device is incorrect. Then, considering the data security of the first electronic device at this time, the first electronic device disconnects the call connection with the second electronic device, that is, the first electronic device hangs up the phone, thereby disconnecting the call connection between the first electronic device and the second electronic device.
[0123] In this way, by disconnecting the call connection when the verification fails, the security of the first electronic device can be ensured, preventing the threat to data security caused by multiple password attempts.
[0124] In order to prompt the user for the next operation to achieve unlocking, in an optional embodiment, the above method may further include:
[0125] When the first electronic device establishes a call connection with the second electronic device, the first electronic device emits a first prompt tone.
[0126] Understandably, when the first electronic device establishes a call connection with the second electronic device, at this time, the user needs to be reminded that the call connection has been established. The first electronic device can use the method of emitting a first prompt tone. Among them, the first prompt tone is used to prompt that the first electronic device and the second electronic device have established a call connection; that is to say, the first electronic device makes the user aware that the two have established a call connection through emitting a prompt tone, and the user can perform the next operation of entering the password.
[0127] In this way, it helps the user to know that a call connection has been established between the first electronic device and the second electronic device, and then the user can perform the next operation, which helps to improve the unlocking efficiency.
[0128] Considering the security of the entire unlocking process, in an optional embodiment, the above method may further include:
[0129] When the connection between the first electronic device and the third electronic device through the data cable is disconnected, the first electronic device disconnects the call connection with the second electronic device and emits a second prompt tone.
[0130] It can be understood that during the entire unlocking process, when the first electronic device is connected to the third electronic device through the data cable, this connection needs to be maintained all the time to achieve unlocking. If the connection between the first electronic device and the third electronic device through the data cable is disconnected, at this time, to ensure data security, the first electronic device disconnects the call connection with the second electronic device and emits a second prompt tone. Among them, the second prompt tone is used to prompt that the connection between the first electronic device and the second electronic device through the data cable with the third electronic device is disconnected; that is to say, once the connection between the first electronic device and the third electronic device is disconnected, the call connection is also disconnected, and a prompt tone for disconnecting the connection between the first electronic device and the third electronic device is emitted, so that the user knows that the unlocking is terminated at this time.
[0131] In this way, when the connection between the first electronic device and the third electronic device through the data cable is disconnected, the second prompt tone is emitted, so that the user knows that this no longer meets the unlocking conditions. In this way, the user is promptly prompted that the unlocking is terminated, which ensures the data security in the first electronic device and improves the security of unlocking.
[0132] The following is an example to illustrate the unlocking method described in one or more of the above embodiments.
[0133] In this example, the Subscriber Identity Module (SIM) card call is used as the channel for remote operation, and DTMF is used as the method for transmitting the mobile phone password, so as to remotely unlock the mobile phone, and at the same time turn on USB debugging and perform USB debugging authorization. Among them, the entire process mainly includes the following parts:
[0134] 1. Establish a remote channel
[0135] To establish a remote channel, two mobile phones inserted with SIM cards are required, that is, in addition to the mobile phone to be controlled (hereinafter referred to as the controlled machine, and the screen of this controlled machine is damaged), a mobile phone for control (hereinafter referred to as the control machine) is also required.
[0136] First, use the controlling device to call the controlled device. After the paging is established, the controlled device answers the call in the following way: Prepare a USB data cable with one end already connected to the computer, press the volume up and down keys simultaneously, and insert the other end of the USB data cable into the controlled device. This operation mode will trigger the controlled device to answer the call, indicating that the remote channel between the controlled device and the controlling device is established.
[0137] After the remote channel is successfully established, the controlled device will emit a prompt tone in the voice link (equivalent to the above first prompt tone), indicating that the remote channel between the two parties has been opened.
[0138] If the USB data cable is disconnected during the call (regardless of whether it is the mobile phone end or the computer end), it means that the remote channel is disconnected and cannot be re-established during this call. The controlled device will also emit a prompt tone in the voice link (equivalent to the above second prompt tone).
[0139] Figure 3 It is a schematic flowchart of the first example of an unlocking method provided by an embodiment of the present application. As Figure 3 shown, the controlling device 31 includes a communication module 311 and a communication module 312, and the controlled device 32 includes a communication module 321, an application module 322, and a system module 323. Among them, the process of establishing a remote channel is as follows:
[0140] S301: The application module 311 sends an instruction to call a phone to the communication module 312;
[0141] S302: The communication module 312 sends a call request to the communication module 321;
[0142] S303: The communication module 321 notifies the application module 322 of an incoming call;
[0143] S304: The application module 322 receives the information that the volume up and down keys have been pressed and the information that the USB is inserted through the system module 323, and triggers the execution of S305;
[0144] S305: The application module 322 sends an instruction to answer the call and establish a channel to the communication module 321, so that the controlled device 32 establishes a call connection with the controller 31.
[0145] 2. Enter the mobile phone password
[0146] After the remote channel between the controlled device and the controlling device is established, the user can operate to enter the password on the dial pad of the controlling device.
[0147] Among them, the following three password methods can be supported in this example:
[0148] 1) Password consisting of pure numbers
[0149] The format starts with ##1**,** and ends with ##, and the password content is filled in the middle according to its original content.
[0150] Taking the password 123456 as an example, the remotely input content is ##1**123456**##.
[0151] 2) Password of nine - grid pattern
[0152] The format starts with ##2**,** and ends with ##, and the password content is mapped to numbers according to the following Figure 4a and Figure 4b and filled in the middle.
[0153] Figure 4a Figure shows an optional schematic diagram of the password of the nine - grid pattern provided by the embodiment of the present application. Figure 1 As Figure 4a shown, taking the pattern password above Figure 4a as an example, and comparing with the Figure 4b numbers, the remotely input content is ##2**12569**##.
[0154] 3) Password of combination of numbers and letters
[0155] The format starts with ##3**,** and ends with ##, and the numbers and letters are filled in the middle according to # plus the decimal digits of the ASCII code. Taking the password content abc123XYZ as an example, the remotely input content can be ##3**#97#98#99#49#50#51#88#89#90**##.
[0156] In addition, it should be noted that if the controlled machine does not set a password, then the remotely input content is ##0****##.
[0157] Figure 5 Figure shows a schematic flow diagram of the second example of an optional unlocking method provided by the embodiment of the present application. As Figure 5 shown, based on the Figure 3 structure, the process of inputting the mobile phone password is as follows:
[0158] S501: The application module 311 sends the dial - pad input password to the communication module 312;
[0159] S502: The communication module 312 uses the DTMK transmission method to send the password to the communication module 321;
[0160] S503: The communication module 321 reports the DTMF event to the application module 322;
[0161] S504: The application module 322 sends the password verification result to the system module 323.
[0162] 3. Verify the password and generate a response action
[0163] The password entered by the control machine on the dial pad is received by the controlled machine in the form of DTMF.
[0164] Only when the remote channel is open will the controlled machine verify the password.
[0165] The password is first recognized from the DTMF, extracted and translated one by one. After obtaining the complete password, it will be verified with the password set by the user in the system. (If there is no password, it is directly regarded as successful verification)
[0166] After the password verification is successful, if the mobile phone is in the unlocked state, the mobile phone will be unlocked; in addition, the automatic screen-off time is set to 10 minutes; at the same time, the USB debugging mode is enabled, and the computer currently connected by USB is automatically authorized for USB debugging.
[0167] If the password verification fails, the current call will be immediately hung up.
[0168] Figure 6 It is a schematic flow diagram of the third example of an optional unlocking method provided by the embodiment of the present application. As Figure 6 shown, based on the above Figure 3 structure, the process of password verification failure is as follows:
[0169] S601: The system module 323 sends the information of password verification failure to the application module 322;
[0170] S602: The application module 322 sends the instruction to hang up the phone to the communication module 321;
[0171] S603: The communication module 321 sends the information of disconnecting the call to the communication module 312;
[0172] S604: The communication module 312 reports the disconnected information to the application module 311.
[0173] It should be noted that the method of establishing a channel (the controlled machine answers the phone) in this example is only an example and can be replaced by other methods that do not use screen input to answer. The advantage of the current method (press the volume up and down keys and insert the USB data cable) is that it can prevent the computer at the other end of the USB connection from being replaced after the channel is established.
[0174] The feature code transmitted by DTMF in this example (##X** is opened and ends with **##), and the mapping relationship between different types of passwords and DTMF are only examples and do not represent the only implementation method.
[0175] It can be seen that in the case where the device screen cannot be used, this embodiment provides a method that is generally applicable to the vast majority of mobile phones to open the USB debugging channel, thereby providing a channel to replace touch input and display output, enabling data backup and other repair operations; using a voice link with relatively high security to transmit the device password can effectively protect the user's privacy.
[0176] This embodiment provides a method for remotely unlocking a mobile phone and opening the USB debugging of the mobile phone (while performing USB debugging authorization). This method provides a possibility that in the case where the mobile phone screen is damaged, it is possible to use an external computer and related tools of the Android Debug Bridge (adb) to replace the touch input and display output of the mobile phone; and then realize the operation of the mobile phone and the backup of data.
[0177] An embodiment of the present application provides an unlocking method, which is applied to a first electronic device that cannot respond to a touch operation on the screen. The method includes: after receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, responding to the call request, establishing a call connection with the second electronic device, receiving a password sent from the second electronic device based on the call connection, verifying the password to obtain a verification result, and unlocking the first electronic device when the verification result indicates successful verification; that is to say, in the embodiment of the present application, a call request is sent from the second electronic device to the first electronic device, so that a call connection is established when a connection is established with the third electronic device through a data cable and a key operation on a preset physical key is received. On this basis, the password received from the second electronic device is verified, and the first electronic device is unlocked when the verification is successful. In this way, any electronic device other than the first electronic device can establish a call connection with another electronic device by receiving a key operation on a preset physical key when the first electronic device is connected to the third electronic device, and then unlock the first electronic device through password verification, expanding the scope of application of unlocking and thus improving the unlocking efficiency.
[0178] The following will explain the above unlocking method from the perspective of each device deployed in the unlocking system.
[0179] First, the unlocking method will be described from the perspective of the first electronic device.
[0180] An embodiment of the present application provides an unlocking method, which is applied to a first electronic device, where the first electronic device cannot respond to a touch operation on the screen. Figure 7 It is a schematic flowchart of an optional unlocking method provided by an embodiment of the present application. As Figure 7 shown, the unlocking method may include:
[0181] S701: After receiving a call request from a second electronic device, when a connection is established with a third electronic device via a data cable and a key operation on a preset physical key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device;
[0182] S702: Based on the call connection, receive a password sent from the second electronic device;
[0183] S703: Verify the password to obtain a verification result;
[0184] S704: When the verification result indicates successful verification, unlock the first electronic device.
[0185] In an alternative embodiment, the above method may further include:
[0186] When the verification result indicates successful verification, perform USB debugging authorization on the third electronic device.
[0187] In an alternative embodiment, the above method may further include:
[0188] When the verification result indicates successful verification, set the automatic screen-off duration of the first electronic device to a preset duration.
[0189] In an alternative embodiment, the above method may further include:
[0190] When the verification result indicates failed verification, disconnect the call connection with the second electronic device.
[0191] In an alternative embodiment, S701 may include:
[0192] After receiving a call request from a second electronic device, when a connection is established with a third electronic device via a data cable and key operations on the volume up key and volume down key of the first electronic device are received, respond to the call request and establish a call connection with the second electronic device.
[0193] In an alternative embodiment, S701 may include:
[0194] After receiving a call request from a second electronic device, when a connection is established with a third electronic device via a data cable and a long press operation on the power on / off key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device.
[0195] In an alternative embodiment, S702 may include:
[0196] Based on the call connection, use DTMF to receive a password sent from the second electronic device.
[0197] In an alternative embodiment, S703 may include:
[0198] Receiving a password sent from a second electronic device based on a call connection;
[0199] When the password is empty, obtaining a verification result according to the setting of the unlock password of the first electronic device;
[0200] When the password is not empty, determining the type of the password according to the format of the password;
[0201] Translating the password according to the corresponding translation method of the type to obtain the translated password;
[0202] When the translated password is consistent with the unlock password of the first electronic device, the obtained verification result indicates successful verification;
[0203] When the translated password is inconsistent with the unlock password of the first electronic device, the obtained verification result indicates failed verification.
[0204] In an alternative embodiment, the above method may further include:
[0205] When the password is the first preset character, determining that the password is empty;
[0206] When the password is not the first preset character, determining that the password is not empty.
[0207] In an alternative embodiment, when the password is empty, obtaining a verification result according to the setting of the unlock password of the first electronic device may include:
[0208] When the password is empty and the first electronic device is not set with an unlock password, determining that the verification result indicates successful verification;
[0209] When the password is empty and the first electronic device is set with an unlock password, determining that the verification result indicates failed verification.
[0210] In an alternative embodiment, when the password is not empty, determining the type of the password according to the format of the password may include:
[0211] When the password is not empty and the first N preset characters of the password are the second preset character, determining that the password is a numeric password;
[0212] When the password is not empty and the first N preset characters of the password are the third preset character, determining that the password is a nine - grid pattern password;
[0213] When the password is not empty and the first N preset characters of the password are the fourth preset character, determining that the password is a password combining numbers and letters.
[0214] In an alternative embodiment, according to the translation method corresponding to the type, the password is translated to obtain the translated password, which may include:
[0215] When the password is a pure numeric password, the digits at the preset positions in the password are determined as the translated password;
[0216] When the password is a password in the form of a nine - grid pattern, the pattern formed by connecting the digits at the preset positions in the password on the nine - grid is determined as the translated password;
[0217] When the password is a password combining numbers and letters, the digits at the preset positions in the password are translated according to the decimal or octal method in the ASCII code to obtain the translated password.
[0218] In an alternative embodiment, the above method may further include:
[0219] When establishing a call connection with the second electronic device, a first prompt tone is emitted; wherein, the first prompt tone is used to prompt the first electronic device to establish a call connection with the second electronic device.
[0220] In an alternative embodiment, the above method may further include:
[0221] When the connection between the first electronic device and the third electronic device through the data cable is disconnected, the call connection with the second electronic device is disconnected, and a second prompt tone is emitted; wherein, the second prompt tone is used to prompt that the connection between the first electronic device and the third electronic device through the data cable is disconnected.
[0222] Secondly, the above unlocking method is described from the perspective of the second electronic device.
[0223] An embodiment of the present application provides an unlocking method, which is applied to the second electronic device. Figure 8 For the flowchart of another alternative unlocking method provided by the embodiment of the present application, as Figure 8 shown, the unlocking method may include:
[0224] S801: When the first electronic device fails to respond to the touch operation on the screen, send a call request to the first electronic device;
[0225] S802: When the first electronic device establishes a connection with the third electronic device through the data cable and the first electronic device receives a key operation on the preset physical key of the first electronic device, establish a call connection with the first electronic device;
[0226] S803: Receive and respond to the touch operation on the dial pad of the second electronic device to generate a password;
[0227] S804: Based on the call connection, send a password to the first electronic device so that the first electronic device verifies the password, and unlock the first electronic device when the verification result indicates successful verification.
[0228] In addition, based on the same inventive concept as the foregoing embodiments, an unlocking device is provided in an embodiment of the present application. The device is disposed in the first electronic device, and the first electronic device cannot respond to the touch operation on the screen. Figure 9 It is a schematic structural diagram of an optional unlocking device provided in an embodiment of the present application. As Figure 9 shown, the unlocking device may include:
[0229] A first connection module 91, configured to, after receiving a call request from a second electronic device, when establishing a connection with a third electronic device through a data cable and receiving a key operation on a preset physical key of the first electronic device, respond to the call request and establish a call connection with the second electronic device;
[0230] A receiving module 92, configured to receive a password sent from the second electronic device based on the call connection;
[0231] A verification module 93, configured to verify the password to obtain a verification result;
[0232] An unlocking module 94, configured to unlock the first electronic device when the verification result indicates successful verification.
[0233] In an optional embodiment, the device is further configured to:
[0234] When the verification result indicates successful verification, perform USB debugging authorization on the third electronic device.
[0235] In an optional embodiment, the device is further configured to:
[0236] When the verification result indicates successful verification, set the automatic screen-off duration of the first electronic device to a preset duration.
[0237] In an optional embodiment, the device is further configured to:
[0238] When the verification result indicates failed verification, disconnect the call connection with the second electronic device.
[0239] In an optional embodiment, the first connection module 91 is specifically configured to:
[0240] After receiving a call request from a second electronic device, when establishing a connection with a third electronic device through a data cable and receiving key operations on the volume up key and the volume down key of the first electronic device, respond to the call request and establish a call connection with the second electronic device.
[0241] In an alternative embodiment, the first connection module 91 is specifically configured to:
[0242] After receiving a call request from a second electronic device, when establishing a connection with a third electronic device through a data cable and receiving a long press operation on the power on / off key of the first electronic device, respond to the call request and establish a call connection with the second electronic device.
[0243] In an alternative embodiment, the receiving module 92 is specifically configured to:
[0244] Based on the call connection, use DTMF to receive the password sent from the second electronic device.
[0245] In an alternative embodiment, the verification module 93 is specifically configured to:
[0246] Based on the call connection, receive the password sent from the second electronic device;
[0247] When the password is empty, obtain a verification result according to the setting of the unlock password of the first electronic device;
[0248] When the password is not empty, determine the type of the password according to the format of the password;
[0249] Translate the password according to the corresponding translation method of the type to obtain the translated password;
[0250] When the translated password is consistent with the unlock password of the first electronic device, the obtained verification result indicates successful verification;
[0251] When the translated password is inconsistent with the unlock password of the first electronic device, the obtained verification result indicates failed verification.
[0252] In an alternative embodiment, the device is further configured to:
[0253] When the password is the first preset character, determine that the password is empty;
[0254] When the password is not the first preset character, determine that the password is not empty.
[0255] In an alternative embodiment, when the password is empty, the device obtains a verification result according to the setting of the unlock password of the first electronic device, including:
[0256] When the password is empty and the first electronic device is not set with an unlock password, determine that the verification result indicates successful verification;
[0257] When the password is empty and the first electronic device is set with an unlock password, determine that the verification result indicates failed verification.
[0258] In an alternative embodiment, when the password is not empty, the device determines the type of the password according to the format of the password, including:
[0259] When the password is not empty and the first N preset characters of the password are the second preset characters, it is determined that the password is a numeric password;
[0260] When the password is not empty and the first N preset characters of the password are the third preset characters, it is determined that the password is a password in the form of a nine - grid pattern;
[0261] When the password is not empty and the first N preset characters of the password are the fourth preset characters, it is determined that the password is a password combining numbers and letters.
[0262] In an alternative embodiment, the device translates the password according to the translation method corresponding to the type, and the translated password includes:
[0263] When the password is a numeric password, the numbers at the preset positions in the password are determined as the translated password;
[0264] When the password is a password in the form of a nine - grid pattern, the pattern formed by connecting the numbers at the preset positions in the password on the nine - grid is determined as the translated password;
[0265] When the password is a password combining numbers and letters, the numbers at the preset positions in the password are translated according to the decimal or octal method in the ASCII code to obtain the translated password.
[0266] In an alternative embodiment, the device is further configured to:
[0267] When establishing a call connection with a second electronic device, emit a first prompt tone; wherein, the first prompt tone is used to prompt the first electronic device to establish a call connection with the second electronic device.
[0268] In an alternative embodiment, the device is further configured to:
[0269] When the connection between the first electronic device and the third electronic device via the data cable is disconnected, disconnect the call connection with the second electronic device and emit a second prompt tone; wherein, the second prompt tone is used to prompt that the connection between the first electronic device and the third electronic device via the data cable is disconnected.
[0270] In practical applications, the above-mentioned first connection module 91, receiving module 92, verification module 93, and unlocking module 94 can be implemented by a processor located on the unlocking device, specifically a Central Processing Unit (CPU), Microprocessor Unit (MPU), Digital Signal Processing (DSP), or Field Programmable Gate Array (FPGA), etc.
[0271] An embodiment of the present application provides an unlocking device, which is disposed in a second electronic device. Figure 10 As shown in the following figure, which is a schematic structural diagram of another optional unlocking device provided by an embodiment of the present application. Figure 10 As shown, the unlocking device may include:
[0272] A first sending module 101, configured to send a call request to the first electronic device when the first electronic device fails to respond to a touch operation on the screen.
[0273] A second connection module 102, configured to establish a call connection with the first electronic device when the first electronic device establishes a connection with a third electronic device through a data cable and the first electronic device receives a key operation on a preset physical key of the first electronic device.
[0274] A generating module 103, configured to receive and respond to a touch operation on the dial of the second electronic device to generate a password.
[0275] A second sending module 104, configured to send the password to the first electronic device based on the call connection, so that the first electronic device verifies the password, and unlocks the first electronic device when the verification result indicates successful verification.
[0276] In practical applications, the above-mentioned first sending module 101, second connection module 102, generating module 103, and second sending module 104 can be implemented by a processor located on the unlocking device, specifically a CPU, MPU, DSP, or FPGA, etc.
[0277] Based on the same inventive concept as the foregoing embodiments, an embodiment of the present application provides a first electronic device, which is the same as the first electronic device provided in the above one or more embodiments.
[0278] An embodiment of the present application provides a first electronic device. Figure 11 As shown in the following figure, which is a schematic structural diagram of an optional first electronic device provided by an embodiment of the present application. Figure 11As shown in the figure, the first electronic device 1100 includes: a processor 111 and a storage medium 112 storing instructions executable by the processor; the storage medium 112 operates depending on the processor 111 via a communication bus 113. When the instructions are executed by the processor, the unlocking method executed on the processor side in the above one or more embodiments is performed.
[0279] It should be noted that in practical applications, each component in the first electronic device 1100 is coupled together via the communication bus 113. It can be understood that the communication bus 113 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 113 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 11 all kinds of buses are labeled as the communication bus 113.
[0280] Based on the same inventive concept as the foregoing embodiments, an embodiment of the present application provides a second electronic device, which is consistent with the second electronic device provided in the above one or more embodiments.
[0281] An embodiment of the present application provides a second electronic device, Figure 12 which is a schematic structural diagram of an optional second electronic device provided by an embodiment of the present application. As Figure 12 shown, the second electronic device 1200 includes: a processor 121 and a storage medium 122 storing instructions executable by the processor; the storage medium 122 operates depending on the processor 121 via a communication bus 123. When the instructions are executed by the processor, the unlocking method executed on the processor side in the above one or more embodiments is performed.
[0282] It should be noted that in practical applications, each component in the second electronic device 1200 is coupled together via the communication bus 123. It can be understood that the communication bus 123 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 123 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 12 all kinds of buses are labeled as the communication bus 123.
[0283] An embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the unlocking method described in the above one or more embodiments.
[0284] Among them, the computer-readable storage medium can be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.
[0285] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program codes.
[0286] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0287] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0288] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to produce a computer-implemented process, thereby the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified in one process or multiple processes and / or one block or multiple blocks. Figure 1 one process or multiple processes and / or Figure 1 one block or multiple blocks.
[0289] As mentioned above, it is only a preferred embodiment of the present application, and is not used to limit the protection scope of the present application.
Claims
1. An unlocking method, characterized in that, The method is applied to a first electronic device, where the first electronic device cannot respond to touch operations on the screen, and includes: After receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device; Based on the call connection, receive a password sent from the second electronic device; Verify the password to obtain a verification result; When the verification result indicates successful verification, unlock the first electronic device.
2. The method according to claim 1, wherein The method further includes: When the verification result indicates successful verification, perform USB debugging authorization on the third electronic device.
3. The method according to claim 1, wherein The method further includes: When the verification result indicates successful verification, set the automatic screen-off duration of the first electronic device to a preset duration.
4. The method according to claim 1, wherein The method further includes: When the verification result indicates failed verification, disconnect the call connection with the second electronic device.
5. The method according to any one of claims 1 to 4, characterized in that The step of, after receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device, includes: After receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and key operations on the volume up key and volume down key of the first electronic device are received, respond to the call request and establish a call connection with the second electronic device.
6. The method according to any one of claims 1 to 4, characterized in that, The step of, after receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a key operation on a preset physical key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device, includes: After receiving a call request from a second electronic device, when a connection is established with a third electronic device through a data cable and a long press operation on the power on / off key of the first electronic device is received, respond to the call request and establish a call connection with the second electronic device.
7. The method according to any one of claims 1 to 4, characterized in that The step of, based on the call connection, receive a password sent from the second electronic device, includes: Based on the call connection, use DTMF to receive a password sent from the second electronic device.
8. The method according to any one of claims 1 to 4, characterized in that, The step of, verify the password to obtain a verification result, includes: Based on the call connection, receive a password sent from the second electronic device; When the password is empty, obtain the verification result according to the setting of the unlock password of the first electronic device; When the password is not empty, determine the type of the password according to the format of the password; Translate the password according to the translation method corresponding to the type to obtain a translated password; When the translated password is consistent with the unlock password of the first electronic device, the obtained verification result indicates successful verification; When the translated password is inconsistent with the unlock password of the first electronic device, the obtained verification result indicates failed verification.
9. The method according to claim 8, wherein The method further includes: When the password is the first preset character, determining that the password is empty; When the password is not the first preset character, determining that the password is not empty.
10. The method according to claim 8 or 9, characterized in that The step of, when the password is empty, obtaining the verification result according to the setting of the unlock password of the first electronic device, includes: When the password is empty and the first electronic device is not set with an unlock password, determining that the verification result indicates successful verification; When the password is empty and the first electronic device is set with an unlock password, determining that the verification result indicates failed verification.
11. The method according to claim 8 or 9, characterized in that The step of, when the password is not empty, determining the type of the password according to the format of the password, includes: When the password is not empty and the first N preset characters of the password are the second preset character, determining that the password is a numeric password; When the password is not empty and the first N preset characters of the password are the third preset character, determining that the password is a nine - grid pattern password; When the password is not empty and the first N preset characters of the password are the fourth preset character, determining that the password is a password combining numbers and letters.
12. The method according to claim 8 or 9, characterized in that, The step of translating the password according to the translation method corresponding to the type to obtain the translated password, includes: When the password is a numeric password, determining the numbers at preset positions in the password as the translated password; When the password is a nine - grid pattern password, determining the pattern formed by connecting the numbers at preset positions in the password on the nine - grid as the translated password; When the password is a password combining numbers and letters, translating the numbers at preset positions in the password in decimal or octal according to the ASCII code to obtain the translated password.
13. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When establishing a call connection with the second electronic device, emitting a first prompt tone; wherein, the first prompt tone is used to prompt that the first electronic device establishes a call connection with the second electronic device.
14. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When the connection between the first electronic device and the third electronic device is disconnected through the data cable, disconnecting the call connection with the second electronic device and emitting a second prompt tone; wherein, the second prompt tone is used to prompt that the connection between the first electronic device and the third electronic device is disconnected through the data cable.
15. An unlocking method, characterized in that, The method applied to the second electronic device includes: When the first electronic device cannot respond to the touch operation on the screen, sending a call request to the first electronic device; When the first electronic device establishes a connection with the third electronic device through the data cable and the first electronic device receives a key operation on a preset physical key of the first electronic device, establishing a call connection with the first electronic device; Receiving and responding to the touch operation on the dial pad of the second electronic device to generate a password; Based on the call connection, sending the password to the first electronic device so that the first electronic device verifies the password, and unlocking the first electronic device when the verification result indicates successful verification.
16. An unlocking device, characterized in that, The device is disposed in a first electronic device, where the first electronic device cannot respond to touch operations on the screen, and includes: A first connection module, configured to, after receiving a call request from a second electronic device, when establishing a connection with a third electronic device through a data cable and receiving a key operation on a preset physical key of the first electronic device, respond to the call request and establish a call connection with the second electronic device; A receiving module, configured to receive a password sent from the second electronic device based on the call connection; A verification module, configured to verify the password to obtain a verification result; An unlocking module, configured to unlock the first electronic device when the verification result indicates successful verification.
17. An unlocking device, characterized in that, The device is disposed in a second electronic device and includes: A first sending module, configured to send a call request to the first electronic device when the first electronic device cannot respond to touch operations on the screen; A second connection module, configured to establish a call connection with the first electronic device when the first electronic device establishes a connection with a third electronic device through a data cable and the first electronic device receives a key operation on a preset physical key of the first electronic device; A generating module, configured to receive and respond to a touch operation on a dial pad of the second electronic device to generate a password; A second sending module, configured to send the password to the first electronic device based on the call connection, so that the first electronic device verifies the password and unlocks the first electronic device when the verification result indicates successful verification.
18. A first electronic device, characterized in that, Includes: A processor and a storage medium storing instructions executable by the processor. The storage medium depends on the processor to execute operations through a communication bus. When the instructions are executed by the processor, the unlocking method according to any one of claims 1 to 14 above is executed.
19. A second electronic device, characterized in that, Includes: A processor and a storage medium storing instructions executable by the processor. The storage medium depends on the processor to execute operations through a communication bus. When the instructions are executed by the processor, the unlocking method according to claim 15 above is executed.
20. A computer storage medium, characterized in that, Stores executable instructions. When the executable instructions are executed by one or more processors, the processor executes the unlocking method according to any one of claims 1 to 14 above, or executes the unlocking method according to claim 15 above.