Device unlocking method, medium, and electronic device

By communicating between electronic devices, a second device is used to collect identity data and generate authentication information, solving the problem of low unlocking efficiency for devices lacking fingerprint or facial recognition capabilities and achieving a highly efficient unlocking experience.

CN119312315BActive Publication Date: 2025-11-28HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310868975.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2025-11-28
Estimated Expiration
2043-07-14

AI Technical Summary

Technical Problem

Some electronic devices lack fingerprint sensors or cameras, making it impossible to unlock them with fingerprints or facial recognition. Users can only use less efficient numeric or pattern passwords to unlock them, which reduces the user experience.

Method used

By communicating between an electronic device that does not have fingerprint unlocking or facial recognition capabilities and a second device that does have these capabilities, the second device collects user identity data and generates authentication information, which is then matched and unlocked by the first device.

Benefits of technology

This enables devices without fingerprint or facial recognition capabilities to use these efficient unlocking methods, improving user unlocking efficiency and reducing accidental touches and unlocking time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312315B_ABST
    Figure CN119312315B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of terminal technology, and provides a device unlocking method, a medium and an electronic device. The method comprises the following steps: detecting that a user selects a target unlocking mode, and a first device sends an unlocking request to a second device. The second device collects user identity data corresponding to the target unlocking mode, generates an authentication code according to the collected identity data, and sends the authentication code as authentication information to the first device. The first device compares the identity data authentication information collected by the second device with preset authentication information, and if the two are consistent, the first device is successfully unlocked. Furthermore, through the device unlocking method provided by the application, the first device without unlocking modes such as fingerprint unlocking and face recognition unlocking can also obtain authentication information corresponding to the user's identity data, and the user does not need to use slow unlocking modes such as digital unlocking and image unlocking, thereby improving the user's unlocking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminal, and in particular, to a device unlocking method, medium and electronic device. BACKGROUND

[0002] In order to improve the information security of the electronic device, the electronic device needs to be unlocked before entering the working state (unlocked state) from the locked state. For example, when the electronic device such as a mobile phone and a smart watch enters the unlocked state from the locked state, the unlocking password needs to be obtained first. The current unlocking method can include digital password unlocking, pattern password unlocking, fingerprint unlocking, face recognition unlocking and the like. Among them, the biological unlocking method such as fingerprint unlocking and face recognition unlocking is relatively fast and convenient, and has gradually become the preferred unlocking method of users.

[0003] However, since part of the electronic devices are not configured with devices such as cameras and fingerprint sensors, for example, the devices such as smart watches can only be unlocked by digital password or pattern password, and cannot be unlocked by fingerprint or face recognition. Or, the electronic device has devices such as cameras and fingerprint sensors, but the devices such as cameras and fingerprint sensors are malfunctioning or occupied by other applications, so the fingerprint or face recognition cannot be performed. Further, the user can only choose the digital password unlocking or pattern password unlocking with low efficiency, which leads to a long time spent by the user in unlocking and reduces the user experience. SUMMARY

[0004] Therefore, the present application provides a device unlocking method, medium and electronic device.

[0005] In a first aspect, a device unlocking method is provided, including: applied to a first device, based on the first device obtaining an operation of a user selecting a target unlocking method, the first device sends an unlocking request corresponding to the target unlocking method to a second device, the unlocking request is used to make the second device obtain identity data of the user in a manner corresponding to the target unlocking method; the first device obtains authentication information corresponding to the identity data, and the first device matches the authentication information with preset authentication information, and based on the result of successful matching, switches to an unlocked state.

[0006] In the above scheme, the authentication information can be identity data or an authentication code, and the authentication code is processed identity data. The preset authentication information can be preset identity data or a preset authentication code. The target unlocking mode is a fingerprint unlocking, face recognition unlocking, or the like. In this way, the device unlocking method provided in the present application enables the first device without the fingerprint unlocking, face recognition unlocking, or the like to obtain the authentication information corresponding to the identity data of the user, so that the first device can also use the fingerprint unlocking, face recognition unlocking, or the like. The user does not need to use the digital unlocking, image unlocking, or the like with low efficiency, thereby improving the unlocking efficiency of the user.

[0007] In combination with the first aspect, in some implementations, the method further includes: the first device obtaining an authentication code generated by the second device from the identity data as the authentication information; the first device comparing the authentication code with the preset authentication information; and based on the authentication code being consistent with the preset authentication information, the first device switching to the unlocked state.

[0008] In the above scheme, the second device can compress or encrypt the identity data extraction feature to generate the authentication code, thereby reducing the data transmission amount, accelerating the unlocking efficiency, and saving the storage space occupied by the first device.

[0009] In combination with the first aspect, in some implementations, the method further includes: based on the authentication code being inconsistent with the preset authentication information pre-stored by the first device, the first device maintaining the current state; or the first device sending an unlocking request to the second device again.

[0010] In the above scheme, if the current authentication information is inconsistent with the pre-stored authentication information, the unlocking fails, and the first device maintains the locked state or attempts to unlock again.

[0011] In combination with the first aspect, in some implementations, the method further includes: the first device displaying a first unlocking control, and the first unlocking control corresponding to the target unlocking mode; and based on the first device detecting a triggering operation on the first unlocking control, the first device determining that the operation of selecting the target unlocking mode is obtained.

[0012] In the above scheme, the user can click the control corresponding to the face unlocking, fingerprint unlocking, or the like to switch the unlocking mode. In this way, the device unlocking method provided in the present application enables the first device without the fingerprint unlocking, face recognition unlocking, or the like to obtain the authentication information corresponding to the identity data of the user, thereby improving the unlocking efficiency of the user.

[0013] In combination with the first aspect, in some implementations, the method further includes: the first device and the second device logging in the same device account, or the accounts logged in by the first device and the second device being associated.

[0014] In the above solution, the devices that can assist in unlocking can be accounts logged into the same account or linked accounts based on specific relationships such as family or friends. This allows the primary device to use more devices to assist in unlocking, making unlocking more convenient and faster for the user.

[0015] In conjunction with the first aspect, in some implementations, the method also includes: identity data including one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

[0016] In the above solution, even electronic devices 100 that lack fingerprint or facial recognition unlocking methods can obtain authentication information corresponding to the user's identity data. This allows the first device to also use fingerprint or facial recognition unlocking functions. Users no longer need to use slower unlocking methods such as digital unlocking or image unlocking, thus improving unlocking efficiency.

[0017] Secondly, a device unlocking method is provided, comprising: based on a second device receiving an unlock request from a first device corresponding to a target unlocking method, the second device obtains the identity data of a user corresponding to the target unlocking method, wherein the unlock request is determined based on the user's operation of selecting the target unlocking method in the first device; the second device obtains the user's identity data in a manner corresponding to the target unlocking method; and based on the identity data, the second device generates authentication information.

[0018] In conjunction with the second aspect, in some implementations, the method further includes: the second device sending an authentication code corresponding to the unlock request to the first device.

[0019] In conjunction with the second aspect, in some implementations, the method further includes: the second device sending an authentication code corresponding to the unlock request to the third device.

[0020] In conjunction with the second aspect, in some implementations, the method further includes: the first device and the second device logging into the same device account, or the accounts logged into by the first device and the second device being associated.

[0021] In conjunction with the second aspect, in some implementations, the method also includes: identity data including one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

[0022] In a third aspect, a device unlocking method is provided, including: based on a first device obtaining an operation of a user selecting a target unlocking manner, the first device sending an unlocking request to a second device, the unlocking request being used to cause the second device to obtain identity data of the user in a manner corresponding to the target unlocking manner; the second device obtaining the identity data in the manner corresponding to the target unlocking manner, the second device generating authentication information according to the identity data; the second device sending the authentication information to the first device; and the first device matching the authentication information with preset authentication information, and based on a result of the matching being successful, switching to an unlocked state.

[0023] In combination with the third aspect, in some implementations, the method further includes: based on a result of the matching being unsuccessful, the first device maintaining a current state, or the first device sending the unlocking request to the second device again.

[0024] In combination with the third aspect, in some implementations, the method further includes: the first device displaying a first unlocking control, the first unlocking control corresponding to the target unlocking manner; and based on the first device detecting a triggering operation on the first unlocking control, the first device determining that the operation of selecting the target unlocking manner is obtained.

[0025] In combination with the third aspect, in some implementations, the method further includes: the first device and the second device logging in a same device account, or the accounts logged in by the first device and the second device being associated.

[0026] In combination with the third aspect, in some implementations, the method further includes: the identity data including one or more of face data, iris data, fingerprint data, and voiceprint data of the user.

[0027] In a fourth aspect, a device unlocking method is provided, including: based on a first device obtaining an operation of a user selecting a target unlocking manner, the first device sending an unlocking request corresponding to the target unlocking manner to a second device, the unlocking request being used to cause the second device to obtain identity data of the user in a manner corresponding to the target unlocking manner; the first device obtaining authentication information corresponding to the identity data from a third device, wherein the authentication information is generated by the third device based on the identity data generated by the second device, and the first device switching to an unlocked state based on the authentication information.

[0028] In combination with the fourth aspect, in some implementations, the method further includes: the first device matching the authentication information with preset authentication information, and based on a result of the matching being successful, switching to the unlocked state.

[0029] In combination with the fourth aspect, in some implementations, the method further includes: based on a result of the matching being unsuccessful, the first device maintaining a current state, or the first device sending the unlocking request to the second device again.

[0030] In some implementations of the fourth aspect, the method further includes: displaying, by the first device, a first unlocking control, the first unlocking control corresponding to the target unlocking manner; and determining, by the first device, that the operation of selecting the target unlocking manner is obtained based on the first device detecting a triggering operation on the first unlocking control.

[0031] In some implementations of the fourth aspect, the method further includes: the first device and the second device log in a same device account, or the accounts logged in by the first device and the second device are associated.

[0032] In some implementations of the fourth aspect, the identity data includes one or more of face data, iris data, fingerprint data, and voiceprint data of the user.

[0033] In some implementations of the fifth aspect, the method further includes: the first device and the second device log in a same device account, or the accounts logged in by the first device and the second device are associated.

[0034] In some implementations of the fifth aspect, the method further includes: the first device matches the authentication information with preset authentication information based on the authentication information, and switches to the unlocked state based on a matching success result.

[0035] In some implementations of the fifth aspect, the method further includes: based on a matching failure result, the first device maintains a current state, or the first device sends the unlocking request to the second device again.

[0036] In some implementations of the fifth aspect, the method further includes: displaying, by the first device, a first unlocking control, the first unlocking control corresponding to the target unlocking manner; and determining, by the first device, that the operation of selecting the target unlocking manner is obtained based on the first device detecting a triggering operation on the first unlocking control.

[0037] In some implementations of the fifth aspect, the method further includes: the first device and the second device log in a same device account, or the accounts logged in by the first device and the second device are associated.

[0038] In some implementations of the fifth aspect, the identity data includes one or more of face data, iris data, fingerprint data, and voiceprint data of the user.

[0039] In a sixth aspect, the present application provides an electronic device, comprising a processor and a memory, the memory being configured to store instructions, and the processor being configured to execute the instructions, when the processor executes the instructions, performing the method described in any one of the first aspect, the second aspect, and the fourth aspect.

[0040] In a third aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium storing instructions, when the instructions are executed on an electronic device, performing the method described in any one of the first aspect, the second aspect, and the fourth aspect.

[0041] In a fourth aspect, the present application provides a computer program product, the computer program product comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device performing the method described in any one of the first aspect, the second aspect, and the fourth aspect.

[0042] In summary, through the device unlocking method, the medium, and the electronic device provided by the present application, the electronic device without the unlocking mode such as fingerprint unlocking and face recognition unlocking can also obtain the authentication information corresponding to the identity data of the user, so that the electronic device can also use the unlocking function such as fingerprint unlocking and face recognition unlocking. The user does not need to use the slow unlocking mode such as digital unlocking and image unlocking, thereby improving the unlocking efficiency of the user. BRIEF DESCRIPTION OF DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows.

[0044] Figure 1 is an interface schematic diagram of a watch unlocked by a digital password provided by an embodiment of the present application;

[0045] Figure 2A and Figure 2B is an interaction schematic diagram of a mobile phone assisting in unlocking a watch provided by an embodiment of the present application;

[0046] Figure 3 is a flow schematic diagram of a mobile phone assisting in unlocking a watch provided by an embodiment of the present application;

[0047] Figure 4 is an interface schematic diagram of triggering the watch to use a target unlocking mode to unlock provided by an embodiment of the present application;

[0048] Figure 5 is an interface schematic diagram of a mobile phone obtaining user authorization provided by an embodiment of the present application;

[0049] Figure 6 is an interface schematic diagram of a mobile phone displaying an unlocking result provided by an embodiment of the present application;

[0050] Figure 7 is a flowchart of a process in which a mobile phone assists a watch to acquire user face data for the first time, according to an embodiment of the present application;

[0051] Figure 8 is a flowchart of a process in which a mobile phone assists a watch to unlock through face data, according to an embodiment of the present application;

[0052] Figure 9 is a flowchart of a process in which a smart screen and a server assist a watch to acquire user face data for the first time, according to an embodiment of the present application;

[0053] Figure 10 is a flowchart of a process in which a smart screen and a server assist a watch to unlock through face data, according to an embodiment of the present application;

[0054] Figure 11 is a device unlocking apparatus applied to a first device, according to an embodiment of the present application;

[0055] Figure 12 is a device unlocking apparatus applied to a second device, according to an embodiment of the present application;

[0056] Figure 13 is a structural diagram of an electronic device, according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] Illustrative embodiments of the present application include, but are not limited to, a device unlocking method, a medium, and an electronic device.

[0058] Exemplarily, as shown in Figure 1 , a schematic diagram of an interface in a digital password unlocking process of a watch 10 is shown. As shown in (A) of Figure 1 , an interface 11 displayed in a lock screen or a black screen state of the watch 10, wherein the interface 11 includes a real-time clock background and a lock screen icon 12.

[0059] When the watch 10 is in a black screen, a lock screen or a black screen state, and detects a wake-up operation of a user, for example, a wrist lifting operation, or an operation such as clicking or sliding on the screen, as shown in (B) of Figure 1 , the watch 10 displays an interface 13 for inputting a digital password, and the interface 13 displays a digital keyboard with a plurality of digital controls. As shown in (C) of Figure 1 , a user can click the corresponding digital control to input the password, wherein the watch 10 can also display a dynamic effect of the digital control corresponding to the digital "5" being reduced under the clicking operation in the interface 14 when detecting the user clicking the digital "5".

[0060] When the watch 10 detects that the number password input by the user is the preset password, the unlocking is successful, at this time the watch 10 can switch the display interface to the unlocking interface 15 as shown in (D) of FIG. 1C, the unlocking interface 15 does not contain the lock screen state icon 12 compared with the interface 11 as shown in (A) of FIG. 1C. When the watch 10 detects that the number password input by the user is not the preset password, the watch 10 will return to the lock screen state as shown in (A) of FIG. 1C, or return to the state as shown in (B) of FIG. 1C, and wait for the user to input the password again. Figure 1 Figure 1 Figure 1 Figure 1

[0061] Because the screen of the watch 10 is relatively small, the user is not easy to accurately click the correct number on the number keyboard, and is easy to mis-touch the control of the adjacent number, so that the mis-touch rate is high during the input of the number password. The user needs to spend more time to re-input the password to unlock the watch, and if the user mis-touches other number controls for many times, the password input is wrong, and the watch 10 will be locked and cannot be normally used.

[0062] That is to say, when the electronic device cannot use the fingerprint unlocking, face recognition unlocking and other biological unlocking modes due to that the electronic device is not equipped with a camera, a fingerprint sensor and the like, or the camera, the fingerprint sensor and the like cannot be normally used, the user's unlocking efficiency of the electronic device is low. As described above, only the number password unlocking and the pattern password unlocking with low efficiency can be used. However, there are other problems in the number password unlocking or the pattern password unlocking. For example, when the user performs the number password unlocking on the smart watch, because the screen of the smart watch is relatively small, the control of each number on the number keyboard displayed on the screen of the smart watch is also relatively small. The user is not easy to accurately click the correct number on the number keyboard, and is easy to mis-touch the control of the adjacent number, so that the mis-touch rate is high during the input of the number password.

[0063] ​​​​In order to solve the problem that the user is inefficient in unlocking the electronic device, the present application provides a device unlocking method, which is applied to an electronic device 100 and an electronic device 200. The electronic device 100 has a locking function, that is, it needs to be unlocked before entering the unlocked state from the locked state of the device. The electronic device 200 can obtain identity data corresponding to the target unlocking mode, such as fingerprint image data, face image data, iris image data, or voiceprint data, etc. When the electronic device 100 is in the state to be unlocked, including the black screen state, the lock screen state, and the screen-off state, etc., and detects the operation of the user selecting the target unlocking mode, the electronic device 100 will send an unlocking request to the electronic device 200. Then, the electronic device 200 will collect the user identity data corresponding to the target unlocking mode, and then generate an authentication code according to the collected identity data, and send the authentication code as authentication information to the electronic device 100. The electronic device 100 will compare the authentication information with the preset authentication information, which is a preset authentication code, and if they are consistent, the electronic device 100 will be successfully unlocked. Wherein, the authentication code is generated by the electronic device 200 according to the collected identity information after encryption or feature extraction.

[0064] Wherein, the electronic device 200 can be the same device account as the electronic device 100, or the device accounts of the two are associated accounts of specific relationships such as family, friends, etc., and / or devices within the preset range of the electronic device 100.

[0065] Optionally, the electronic device 200 can also directly send the identity data to the electronic device 100, and the preset authentication information pre-stored by the electronic device 100 is the preset identity data. The electronic device 100 compares the identity data collected by the electronic device 200 with the preset identity data, and if they are consistent, the electronic device 100 is successfully unlocked.

[0066] Optionally, the electronic device 200 can also send the identity data to the electronic device 300, and the electronic device 300 stores the preset identity data, and the electronic device 300 compares the preset identity data with the identity data collected by the electronic device 200. Then the electronic device 300 sends the comparison result as authentication information to the electronic device 100. Similarly, at this time, the electronic device 200 can also be any device with a camera or fingerprint collection function, so that the electronic device 100 can use more devices to assist its unlocking, so that the user can unlock more conveniently and quickly. And at this time, the electronic device 100 also does not need to receive the authentication code generated by the electronic device 200 according to the collected identity data, and the electronic device 100 does not need to store the preset authentication code and the authentication code, which can also save the storage space of the electronic device 100.

[0067] Alternatively, the electronic device 200 can also send the authentication code to the electronic device 300, and the electronic device 300 stores a preset authentication code, and the electronic device 300 compares the preset authentication code with the authentication code generated by the electronic device 200. Then the electronic device 300 sends the comparison result as authentication information to the electronic device 100.

[0068] For example, the electronic device 100 can be the watch 10 described above, which does not have a face recognition function, and the electronic device 200 can be a mobile phone 20 that has a function of collecting face data. As shown in Figure 2A When the watch 10 detects a wake-up operation such as a user clicking the screen in a locked state, the watch 10 can display an interface 201 as shown in Figure 2A The interface 201 includes a digital keyboard. The user can perform a left swipe operation based on the interface 201, so that the watch 10 switches the unlocking mode to face recognition. Further, the watch 10 triggers the watch 10 to send an unlocking request to the mobile phone 20. As an example, the mobile phone 20 and the watch 10 are logged in the same device account.

[0069] As shown in Figure 2B After receiving the unlocking request, the mobile phone 20 starts the face recognition function, and obtains face image data (hereinafter referred to as face data) of the user through the camera 202. The mobile phone 20 can also display the obtained face data in a display box 203 on the screen of the mobile phone 20. Then the mobile phone 20 sends the obtained face data to the watch 10, so that the watch 10 can compare the collected face data with the pre-stored face data in the watch 10, and the watch 10 can also display the obtained face data on the interface 204. If the collected face data is consistent with the pre-stored face data, the watch 10 is successfully unlocked. The pre-stored face data in the watch 10 can be obtained in advance through the mobile phone 20 or other devices.

[0070] Further, the device unlocking method provided by the present application enables the electronic device 100 without fingerprint unlocking, face recognition unlocking and other unlocking modes to obtain authentication information corresponding to the identity data of the user, so that the electronic device 100 can also use the fingerprint unlocking, face recognition unlocking and other unlocking functions. The user does not need to use the digital unlocking, image unlocking and other slow unlocking methods, which improves the unlocking efficiency of the user.

[0071] And the electronic device 200 assisted by the electronic device 100 to unlock is to send the authentication information corresponding to the identity data collected to the electronic device 100, and the electronic device 100 performs identity authentication, and the electronic device 100 determines whether the authentication information is the preset authentication information. That is, the preset authentication information of the user is stored by the electronic device 100, and the electronic device 200 does not need to store the preset authentication information of the user. Further, the electronic device 200 can be any device with a function of collecting a face or a fingerprint, such as a smart door lock, a sweeping robot, and the like. Among them, for example, the device such as a sweeping robot does not necessarily store the preset authentication information, and further, the electronic device 100 can use more devices to assist it to unlock, so that the user unlocks more conveniently and quickly.

[0072] In addition, the electronic device 100 can be any electronic device with a locking function, and as described above, the electronic device 200 can be any electronic device with a function of collecting a face or a fingerprint. For example, the electronic device 100 and the electronic device 200 can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a smart home device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or a dedicated camera (such as a single-lens reflex camera, a card-type camera), and the like. The specific type of the electronic device 100 and the electronic device 200 is not limited in the present application.

[0073] The electronic device 300 can be a terminal device, or a physical server or a cloud device, such as an X86 server, an ARM server, and the like, or a virtual machine (VM) based on a general physical server combined with network function virtualization (NFV) technology. The virtual machine refers to a complete computer system running in a completely isolated environment by software simulation with complete hardware system function. The specific type of the electronic device 300 is not limited in the present application.

[0074] The following takes the electronic device 100 as a watch 10 and the electronic device 200 as a mobile phone 20 as an example for introduction. As shown in Figure 3 Figure 3 A flowchart of a device assistance method applied to the watch 10 and the mobile phone 20 is shown. Specifically, it includes:

[0075] ​S301: Watch 10 receives the operation of selecting the target unlock method.

[0076] The target unlock method requires user identity data that needs to be collected by other devices, such as face unlock and fingerprint unlock. Non-target unlock methods can be numeric password unlock or pattern password unlock. When the Watch 10 is in a locked or screen-off state, the user can wake it up by pressing the power button, tapping the screen, shaking the Watch 10, or raising their wrist. The Watch 10 will first enter a non-target unlock method, and then the user can select the target unlock method to switch to it and obtain user identity data. Alternatively, when the Watch 10 is in a locked or screen-off state, after the user performs a wake-up operation, the Watch 10 can directly enter the target unlock method; in this case, the user's wake-up operation is the selection of the target unlock method.

[0077] In other words, the default unlock method for the Watch 10 can be either the target unlock method or a different method. The following sections describe these two scenarios separately.

[0078] When the default unlock method of the Watch 10 is the target unlock method, the wake-up operation performed by the user is the operation that selects the target unlock method. That is, when the Watch 10 is in a locked or off state, a wake-up operation performed by the user, such as tapping the screen, shaking the Watch 10, or raising the wrist, will trigger the Watch 10 to obtain the user's identity data through methods such as face unlock and fingerprint unlock.

[0079] For example, such as Figure 4 As shown in (A), when the watch 10 is in the locked screen state, the display interface 11 and control 12 are shown. For details, please refer to the previous section. Figure 1 (A) and its related description. At this time, the user performs a swipe to the left to wake up the watch 10 and unlock it using a target unlocking method (such as face unlock). At this time, the watch 10 will execute step S302 to obtain face data.

[0080] When the default unlock method of the Watch 10 is not the target unlock method, when the Watch 10 is in a locked or off state, if the user performs a wake-up operation, the Watch 10 will enter a numeric password unlock or pattern password unlock mode. The user will need to perform another operation to switch the unlock method before the Watch 10 will use the target unlock method to obtain the user's identity data.

[0081] For example, when a user performs such Figure 4 When the leftward swipe operation is shown in (A) above, watch 10 will display as shown below. Figure 4The interface 401 shown in (B) of FIG. 10 includes a digital keyboard for obtaining a digital password input by the user. That is, the default unlocking mode of the watch 10 is the digital password unlocking mode. At this time, the user still needs to continue to swipe the interface 401 to the left, so as to trigger the watch 10 to perform step S302 to obtain the face data.

[0082] Alternatively, the operation of the user switching the unlocking mode can be the clicking operation or the swiping operation, and can also be the clicking operation on an icon corresponding to the target unlocking mode. For example, as shown in (C) of FIG. 10, after the watch 10 is woken up, the interface 402 displayed by the watch 10 includes a digital keyboard and a face recognition icon 403. The user can click the face recognition icon 403 to make the watch 10 switch to the face unlocking mode. Figure 4 Figure 4 Alternatively, as shown in (D) of FIG. 10, the digital keyboard interface 404 displayed by the watch 10 can include a fingerprint recognition icon 405 in addition to the face recognition icon 403. The user can click the fingerprint recognition icon 405 to make the watch 10 switch to the fingerprint unlocking mode. It should be understood that the specific type of the operation of selecting the target unlocking mode is not limited in the present application.

[0083] S302: The watch 10 sends an unlocking request to the mobile phone 20.

[0084] When the watch 10 obtains the target unlocking, the watch 10 sends an unlocking request to the mobile phone 20 to make the mobile phone 20 assist the watch 10 to obtain the identity data of the user. The unlocking request can include the identification information of the watch 10 and / or the identification information of the target unlocking mode.

[0085] Further, the watch 10 also authenticates whether the mobile phone 20 meets the preset condition. Only when the mobile phone 20 meets the preset condition, the watch 10 determines to send the unlocking request to the mobile phone 20. The preset condition includes a device logged in the same device account as the watch 10, a device with an associated account of the device account of the watch 10, a device within the preset range of the watch 10, or a device in the same local area network as the watch 10. For example, when the watch 10 uses Bluetooth or other near field communication, the preset condition is a device within 5 meters of the watch 10 and capable of near field communication with the watch 10. When the watch 10 uses wireless local area network (WLAN), the preset condition is a device in the same local area network as the watch 10. The associated account can be preset by the user in advance, for example, the device account of the family member is set as the associated account, so that the device of the family member can also assist in unlocking the device of the user. The type of the preset condition is not limited in the present application.

[0086] ​In some embodiments, the watch 10 can also display a list of devices that meet the preset condition on the screen. The user can also select one of the devices as the device that can be used to unlock the watch 10 according to the list of devices. Alternatively, the watch 10 can also preset one or more devices as preferred devices, and when the watch 10 finds that there is a preferred device that meets the preset condition, the watch 10 can directly send an unlocking request to the preferred device.

[0087] S303: The mobile phone 20 collects user identity data and generates authentication information.

[0088] When the mobile phone 20 obtains the unlocking request, the mobile phone 20 will also determine the type of user identity data to be collected according to the unlocking request. For example, when the identification information of the unlocking request indicates that the target unlocking mode is face unlocking, the mobile phone 20 will collect the face data of the user. Alternatively, when the identification information of the unlocking request indicates that the target unlocking mode is fingerprint unlocking, the mobile phone 20 will collect the fingerprint information of the user.

[0089] After processing the user identity, the mobile phone 20 will generate authentication information and send the authentication information to the watch 10. For example, when the mobile phone 20 collects face data, the mobile phone 20 can also extract feature information of the face data after image processing, then generate an authentication code according to the feature information, and finally send the authentication code to the watch 10. In this way, the amount of data to be transmitted can be reduced, the transmission efficiency is improved, and the unlocking efficiency is further improved. Alternatively, the mobile phone 20 can also encrypt the user identity data, for example, using data encryption standard (DES) or message digest algorithm 5 (MD5), and use the encrypted user identity data as authentication information.

[0090] In some embodiments, before obtaining the user identity data, the mobile phone 20 will also obtain user authorization, and will only collect the user identity data after the user authorization is passed. If the user authorization is not passed, the mobile phone 20 will feed back information of authorization failure to the watch 10, and the watch 10 will display the lock screen interface again or send an unlocking request to other devices, etc.

[0091] The interface of the mobile phone 20 for obtaining user authorization can refer to Figure 5 , for example Figure 5As shown, the mobile phone 20 displays a prompt box 502 on the interface 501, which is used to prompt the user whether to agree to the face recognition to unlock the watch. In addition, the prompt box 502 further includes a control 503 for the user to authorize the face recognition, a control 504 for the user to refuse to authorize the face recognition, and a control 505 for the user to refuse to authorize the face recognition, and the control 505 can also be used to close the prompt box 502. In addition, the interface 501 can further include a display box 506, which includes one or more signal strength indicators of the mobile communication signal, one or more signal strength indicators of the WiFi signal, a battery status indicator, and a time indicator. The interface 501 further includes one or more application icons, such as an icon 507 of a camera application, an icon 508 of a contacts application, an icon 509 of a phone application, and an icon 510 of a message application.

[0092] In some embodiments, when the mobile phone 20 obtains the user authorization to collect the user identity data, the mobile phone 20 can further display the obtained user identity data. As shown in FIG. 2, the mobile phone 20 displays the obtained face data on a display box 203. For details, refer to FIG. 2 and the related description thereof. Figure 2B Figure 2B In some embodiments, when the mobile phone 20 obtains the user authorization to collect the user identity data, the mobile phone 20 can further display the obtained user identity data. As shown in FIG. 2, the mobile phone 20 displays the obtained face data on a display box 203. For details, refer to FIG. 2 and the related description thereof.

[0093] S304: The mobile phone 20 sends the authentication information to the watch 10.

[0094] After the mobile phone 20 collects the user identity data corresponding to the target unlocking mode and generates the authentication information, the mobile phone 20 sends the authentication information to the watch 10.

[0095] S305: The watch 10 judges whether the authentication information is consistent with the preset authentication information.

[0096] After the watch 10 obtains the authentication information sent by the mobile phone 20, the watch 10 compares the preset authentication information with the authentication information corresponding to the currently collected user identity data. In the case of consistent comparison result, the unlocking is successful, and the watch 10 performs step S306. In the case of inconsistent comparison result, the unlocking is considered to be failed, and the watch 10 performs step S307.

[0097] In some embodiments, the watch 10 pre-stores the preset authentication information, which can be collected by the watch 10 in advance through the mobile phone 20 or other devices. The preset authentication information can have one or more. When the currently collected identity data matches any one of the preset authentication information, it is considered that the user identity data authentication is passed. When the currently collected identity data does not match all the preset authentication information, it is considered that the user identity data authentication is failed.

[0098] S306: The watch 10 enters the unlocked state. ​​

[0099] When the pre-stored identity data matches the currently collected user identity data, the user identity data authentication is successful, and the watch 10 is successfully unlocked, entering the unlocked state. For example, the watch 10 may display something like... Figure 1 Interface 15 shown in (D) is described in detail in the previous section. Figure 1 Related descriptions.

[0100] In some embodiments, after the watch 10 successfully unlocks, it can also send a message indicating successful unlocking to the mobile phone 20. The mobile phone 20 can also display a success message on its interface. For example, such as... Figure 6 As shown, the mobile phone 20 displays a prompt box 602 on the interface 601, which is used to notify the user that the face unlock was successful. The prompt box 602 also includes controls 603 and 604, which can be used to close the prompt box 602.

[0101] S307: Watch 10 is restored to lock screen state.

[0102] When the comparison result between the pre-stored identity data and the currently collected user identity data is inconsistent, the user identity data authentication fails, and the watch 10 can return to the lock screen state. Alternatively, the watch 10 can display a message indicating unlock failure on the interface and then return to the lock screen state, displaying the lock screen interface. The watch 10 can also maintain its current state and display the interface of the default unlock method. Alternatively, the watch 10 can also execute step S302 again to send an unlock request to the mobile phone 20 to obtain the user identity data through the mobile phone 20. This application does not specifically limit the operations performed by the watch 10 after unlock failure.

[0103] Furthermore, the device unlocking method provided in this application enables the Watch 10, which lacks fingerprint or facial recognition unlocking methods, to obtain authentication information corresponding to the user's identity data. This allows the Watch 10 to utilize fingerprint and facial recognition unlocking functions. Users no longer need to use slower unlocking methods such as digital unlocking or image unlocking, thus improving unlocking efficiency.

[0104] Next, let's combine... Figure 7 and Figure 8 Taking facial recognition as the target unlocking method, and electronic device 100 as watch 10 and electronic device 200 as mobile phone 20 as examples, and using the authentication code in the authentication code as the authentication information, this application's device unlocking method is described. For example, Figure 7 As shown, Figure 7 A flowchart illustrating the initial setup process for the unlock function on the Watch 10. Specifically, it includes:

[0105] S701: Watch 10 received a wake-up command.

[0106] The watch 10 can detect in real time whether a user's wake-up operation, such as pressing a power key, clicking a screen, shaking the watch 10, or raising a wrist, is acquired in a black screen state, a lock screen state, or an off screen state, and the like. The interface of the watch 10 in the lock screen state can refer to (A) and related descriptions thereof in FIG. 7A, and can also refer to the foregoing step S301, which will not be described here again. Figure 1

[0107] S702: The watch 10 displays a digital keyboard and acquires a digital password input by a user.

[0108] When the watch 10 detects a wake-up operation, an interface corresponding to a default unlocking mode is displayed, that is, a digital keyboard is displayed, to acquire a preset digital password set by a user. Since the preset unlocking mode of the watch 10 is a digital password unlocking, the watch 10 will first set a digital password.

[0109] The interface in which the watch 10 displays the digital keyboard can refer to (B) and related descriptions thereof in FIG. 7B. A user can click a control in the digital keyboard to input a digital password, and the input digital password is a preset digital password that needs to be pre-stored by the user, that is, a digital password used by the user to unlock the watch 10 subsequently. The interface of the watch 10 when the user inputs the digital password can also refer to (C) and related descriptions thereof in FIG. 7C, which will not be described here again. Figure 1 Figure 1

[0110] It should be understood that since the watch 10 is set for the first time, the watch 10 will also acquire the preset digital password input by the user twice or more, to ensure that the preset digital password input by the user is correct.

[0111] S703: The watch 10 determines whether a user inputs the same digital password twice.

[0112] The watch 10 determines whether the digital password input by the user twice is consistent. If yes, it means that the digital password input by the user is correct, and the digital password is saved as a preset digital password. The watch 10 will further perform step S704 to determine whether a face recognition function is enabled. If no, it means that at least one of the digital passwords input by the user twice is incorrect, and the watch 10 will re-perform step S702 to acquire the digital password input by the user again.

[0113] S704: The watch 10 determines whether a face recognition function is enabled.

[0114] ​​​After the watch 10 successfully pre-stores the preset digital password, the watch 10 will also confirm whether the user needs to start the face recognition function. Specifically, the watch 10 can prompt the user on the interface of the watch 10 to obtain whether the user agrees to start the face recognition function. If the watch 10 obtains that the user agrees to start the face recognition function, step S705 is performed. If the watch 10 obtains that the user does not agree to start the face recognition function, the watch 10 only uses the digital password unlocking mode, and can also perform step S713 to display the lock screen interface.

[0115] In some embodiments, the user can also set to start the face recognition function in the setting application of the watch 10. If the user sets to start the face recognition function, the watch 10 will also perform step S705.

[0116] S705: The watch 10 sends a face recognition request to the mobile phone 20.

[0117] When the watch 10 obtains that the face recognition function needs to be started, the watch 10 will send a face recognition request to the mobile phone 20 that meets the preset condition to obtain the preset face data. The preset condition includes the same device account as the watch 10, the associated account of the device account of the watch 10, and the device within the preset range of the watch 10. For details, refer to the foregoing step S302 and the related description, which will not be repeated here.

[0118] S706: The mobile phone 20 displays a prompt interface for collecting face data.

[0119] After the mobile phone 20 obtains the face recognition request, the mobile phone 20 will obtain the user's authorization before collecting the user's face data. After the user's authorization is passed, the user's identity data will be collected. Specifically, the mobile phone 20 can remind the user whether to agree to obtain the face data on the interface of the mobile phone 20. For details, refer to the foregoing step S302 and the related description, which will not be repeated here. Figure 5

[0120] S707: The mobile phone 20 judges whether the user's authorization to collect face data is obtained.

[0121] After the mobile phone 20 prompts the user whether the face can be collected, the mobile phone 20 will confirm the feedback information of the user. If the user's authorization to collect face data is obtained, step S708 is performed. If the user's authorization to collect face data is refused, step S712 can also be performed to feed back the information to the watch 10. Alternatively, if the user's authorization to collect face data is refused, the watch 10 and the mobile phone 20 can directly end the process.

[0122] S708: The mobile phone 20 starts the face recognition APP and collects face data.

[0123] ​After the mobile phone 20 obtains the user's authorization to collect the face data, the mobile phone 20 can start an application (APP) for face recognition, such as a sports health APP, and collect the user's face data through the face recognition APP.

[0124] S709: The mobile phone 20 generates an authentication code or encrypted face data according to the collected face data.

[0125] The mobile phone 20 processes the collected face data, including extracting face features, and then generates an authentication code from the face features. Alternatively, the mobile phone 20 encrypts the face data to generate encrypted face data.

[0126] S710: The mobile phone 20 sends the authentication code or encrypted face data corresponding to the face data to the watch 10.

[0127] The mobile phone 20 sends the authentication code or encrypted face data corresponding to the face data to the watch 10, so that the watch 10 can collect the face data without having a face collection function.

[0128] S711: The watch 10 saves the authentication code or encrypted face data as preset face data.

[0129] The watch 10 saves the authentication code or encrypted face data corresponding to the face data collected by the mobile phone 20 as preset face data, which is used for subsequent user face recognition to unlock the watch 10.

[0130] In some embodiments, the mobile phone 20 can also generate an authentication code from the encrypted face data and save the generated authentication code as preset face data.

[0131] S712: The mobile phone 20 feeds back an authorization failure to the watch 10.

[0132] If the mobile phone 20 obtains the user's refusal to start the face recognition function, the mobile phone 20 feeds back an authorization failure to the watch 10. After receiving the information of the authorization failure, the watch 10 can select other devices that meet the preset conditions to collect the preset face data, or give up collecting the face data and execute step S713.

[0133] S713: The watch 10 displays a lock screen interface.

[0134] When the user refuses to start the face recognition function and / or refuses to authorize the mobile phone 20 to collect the face data, and the watch 10 does not obtain the user's operation within a certain time, the watch 10 can enter a lock screen state and display a lock screen interface. The interface of the watch 10 in the lock screen state can refer to (A) and related descriptions in the specification, which will not be described here. Figure 1 ​

[0135] As Figure 8 shown, Figure 8 the method flowchart for unlocking the watch 10 after pre-storing the preset face data, and the default unlocking mode of the watch 10 is the digital password unlocking. Specifically, it includes:

[0136] S801: The watch 10 in the locked state acquires a wake-up operation.

[0137] The watch 10 can detect in real time whether a user's wake-up operation is acquired in a black screen state, a locked state, or an off-screen state, such as pressing the power key, clicking the screen, shaking the watch 10, or lifting the wrist, and the like. The interface of the watch 10 in the locked state can refer to (A) and the related description thereof in Figure 1 , which will not be repeated here.

[0138] S802: The watch 10 displays a digital keyboard.

[0139] When the watch 10 detects the wake-up operation, the interface corresponding to the default unlocking mode is displayed, that is, the digital keyboard is displayed. The interface of the watch 10 displaying the digital keyboard can refer to (B) and the related description thereof in Figure 1 .

[0140] S803: The watch 10 determines whether a password is input.

[0141] The watch 10 detects that the user inputs a digital password, indicating that the user selects the digital password unlocking mode, and then executes step S804. If the watch 10 does not detect the digital password input by the user, it will further determine whether the user selects the face recognition unlocking, that is, step S806 is executed. The interface of the watch 10 when the user inputs the digital password can also refer to (C) and the related description thereof in Figure 1 , which will not be repeated here.

[0142] S804: The watch 10 determines whether the digital password input by the user is a preset password.

[0143] If the watch 10 detects that the user inputs a digital password, it will further determine whether the digital password input by the user is a preset password. If yes, step S805 is executed. If no, the digital keyboard is displayed again, that is, step S802 can be executed, at which time the user can select to input the digital password again or select other unlocking modes, such as face recognition unlocking.

[0144] In some embodiments, the watch 10 will also acquire the number of times the user inputs the digital password, and if the number of times the user continuously inputs the digital password incorrectly exceeds the preset number of times, the watch 10 can also lock the watch 10 for a preset period of time, and the watch 10 cannot be unlocked within the preset period of time. Alternatively, the watch 10 can also send an alarm prompt to other devices, such as the mobile phone 20, which are logged into the same device account, to prompt the user that the number of times the watch 10 is unlocked fails exceeds the preset number of times.

[0145] S805: The watch 10 displays an unlocking interface.

[0146] In the case that the watch 10 acquires the preset password, or in the case that the watch 10 acquires the preset password within the preset number of times, the watch 10 is successfully unlocked, and then displays the unlocking interface. The unlocking interface of the watch 10 can also refer to (D) and the related description thereof, which will not be repeated here. Figure 1

[0147] S806: The watch 10 determines whether the face recognition function is selected.

[0148] If the watch 10 does not receive the operation of the user inputting the password, the watch 10 will also determine whether the user performs the operation of selecting the face recognition function. If the watch 10 acquires that the user selects the face recognition function, step S807 is performed, and if the user does not select the face recognition function, the watch 10 can perform step S802 to display the digital keyboard and detect whether the user inputs the digital password.

[0149] The operation of the user selecting the face recognition function can be performing a left swipe or clicking the face recognition icon. For details, refer to the foregoing and the related description thereof. Figure 4

[0150] S807: The watch 10 sends a face recognition request to the mobile phone 20.

[0151] When the watch 10 acquires that the face recognition function needs to be started, the watch 10 will send a face recognition request to the mobile phone 20 that meets the preset condition to acquire the face data. The preset condition includes a device that is logged into the same device account as the watch 10, a device account that is an associated account with the device account of the watch 10, and a device that is within the preset range of the watch 10. For details, refer to the foregoing step S302 and the related description thereof, which will not be repeated here.

[0152] S808: The mobile phone 20 displays a prompt interface for acquiring face data.

[0153] After the mobile phone 20 acquires the face recognition request, the user's authorization will be acquired before the user's face data is collected, and the user's identity data will be collected only after the user's authorization is passed. Specifically, the user can be reminded on the interface of the mobile phone 20 whether to agree to acquire the face data. For details, refer to the foregoing and the related description thereof. Figure 5 ​​and the related description, which will not be repeated here.

[0154] S809: The mobile phone 20 judges whether the user authorizes to acquire the face data.

[0155] After prompting the user whether the face data can be collected, the mobile phone 20 confirms the feedback information of the user. If the user authorizes to collect the face data is acquired, step S811 is executed. If the user refuses to authorize to collect the face data is acquired, step S810 can be executed to feedback the data to the watch 10. Alternatively, if the user refuses to authorize to collect the face data is acquired, the watch 10 and the mobile phone 20 can directly end the process.

[0156] S810: The mobile phone 20 feedbacks the authorization failure.

[0157] If the mobile phone 20 acquires that the user does not agree to start the face recognition function, the mobile phone 20 will feedback the authorization failure to the watch 10. After receiving the information of the authorization failure, the watch 10 can select other devices that meet the preset conditions to acquire the preset face data. Alternatively, the watch 10 can give up acquiring the face data and execute step S802 to display the digital keyboard. Alternatively, the watch 10 can also directly display the lock screen interface.

[0158] S811: The mobile phone 20 starts the face recognition APP and collects the face data.

[0159] After the mobile phone 20 acquires that the user authorizes to collect the face data, the mobile phone 20 can start the face recognition APP, such as the sports health APP. And the face data of the user is collected through the face recognition APP.

[0160] S812: The mobile phone 20 generates the authentication code according to the collected face data, or generates the encrypted face data.

[0161] The mobile phone 20 will process the collected face data, including extracting the face features, and then generating the authentication code according to the face features. Alternatively, the face data is encrypted to generate the encrypted face data.

[0162] S813: The mobile phone 20 sends the authentication code or the encrypted face data to the watch 10.

[0163] The mobile phone 20 sends the authentication code or the encrypted face data corresponding to the face data to the watch 10, so that the watch 10 can also collect the face data without the face collection function.

[0164] S814: The watch 10 judges whether the acquired authentication code or encrypted face data is consistent with the preset face data.

[0165] The mobile phone 20 will compare the current obtained authentication code or encrypted face data with the pre-stored preset face data to determine whether they are consistent. If yes, step S815 is executed, and the watch 10 is successfully unlocked. If no, step S802 is executed, and the digital keyboard interface is displayed again, or the lock screen interface is displayed.

[0166] In some embodiments, the watch 10 can also confirm whether the similarity between the obtained authentication code or face data and the pre-stored preset face data reaches a preset standard, for example, whether the similarity is greater than 90%. If yes, step S815 is executed, and the watch 10 is successfully unlocked. If no, step S802 is executed, and the digital keyboard interface is displayed again, or the lock screen interface is displayed.

[0167] In some embodiments, if the formats of the preset face data and the current obtained face data (authentication code or encrypted face data) are inconsistent, the cloud server 40 can also convert the format of the obtained face data or the format of the preset face data, and then perform authentication again.

[0168] If the pre-stored preset face data of the cloud server 40 is in the form of an authentication code, when the obtained data is an authentication code, the cloud server 40 can directly compare the current obtained authentication code with the pre-stored preset face data. If the obtained data is encrypted face data, the cloud server 40 can also convert the encrypted face data into an authentication code, and then compare the authentication code with the pre-stored preset face data.

[0169] If the pre-stored preset face data of the cloud server 40 is encrypted face data, if the obtained data is encrypted face data, the cloud server 40 can directly compare the encrypted face data with the preset face data. If the obtained data is an authentication code, the cloud server 40 can also convert the preset encrypted face data into an authentication code, and then compare the authentication code with the current obtained authentication code.

[0170] S815: The watch 10 displays an unlock interface.

[0171] If the current obtained authentication code of the mobile phone 20 is consistent with the pre-stored preset face data, or the similarity is greater than the preset standard, the unlocking is successful, and the unlock interface is displayed. The unlock interface displayed by the watch 10 can refer to (D) and related descriptions thereof in FIG. 8. Figure 1

[0172] ​In summary, the device unlocking method provided in this application enables the watch 10, which lacks fingerprint or facial recognition unlocking methods, to obtain the user's identity data. This allows the watch 10 to utilize fingerprint and facial recognition unlocking functions. Users no longer need to use slower unlocking methods such as numeric or image unlocking, thus improving unlocking efficiency. Furthermore, the phone 20 does not need to store the user's facial data, saving storage space.

[0173] Next, let's combine... Figure 9 and Figure 10 Taking facial recognition as the target unlocking method, and electronic device 100 as watch 10 and electronic device 200 as smart screen 30 as examples, this application introduces the device unlocking method. Furthermore, this device unlocking method also includes electronic device 300, and taking electronic device 300 as cloud server 40 as an example, cloud server 40 pre-stores a preset authentication code of watch 10. Cloud server 40 compares whether the authentication code obtained by smart screen 30 is consistent with the preset authentication code, and uses the authentication result after comparison as authentication information.

[0174] like Figure 9 As shown, Figure 9 A flowchart illustrating the initial setup process for the unlock function on the Watch 10. Specifically, it includes:

[0175] S901: Watch 10 received a wake-up command.

[0176] The Watch 10 can detect whether it receives a user's wake-up operation in real time, whether the screen is off, locked, or not. The Watch 10's interface in lock screen mode can be found here. Figure 1 For details regarding (A) and its related descriptions, please refer to the aforementioned step S301, which will not be repeated here.

[0177] S902: Watch 10 displays a numeric keypad and retrieves the numeric password entered by the user.

[0178] When the watch 10 detects a wake-up operation, it will display the interface corresponding to the default unlock method, i.e., the numeric keypad, to retrieve the user-set preset numeric password. Since the watch 10's preset unlock method is numeric password unlock, the watch 10 will first perform the numeric password setting.

[0179] The interface for displaying the numeric keypad on Watch 10 can be referenced. Figure 1 (B) and its related description. Users can click the controls on the numeric keypad to enter a numeric password. The entered numeric password is a preset numeric password that the user needs to save, which is the numeric password for unlocking the watch 10 later. The interface of the watch 10 when the user enters the numeric password can also refer to, for example, Figure 1(C) in the above description and will not be repeated here.

[0180] It should be understood that, since the watch 10 is set for the first time to unlock the function, the watch 10 will also repeatedly obtain the preset digital password input by the user twice or more times to ensure that the user inputs the preset digital password correctly.

[0181] S903: The watch 10 determines whether the user inputs the same digital password twice.

[0182] The watch 10 determines whether the digital password input by the user twice is consistent. If consistent, it indicates that the digital password input by the user is correct, and the digital password will be saved as the preset digital password. The watch 10 will also perform step S904 to confirm whether the user enables the face recognition function. If inconsistent, it indicates that at least one of the digital passwords input by the user twice has an input error, and step S902 will be re-executed to obtain the digital password input by the user again.

[0183] S904: The watch 10 confirms whether the user enables the face recognition function.

[0184] After the watch 10 successfully stores the preset digital password, the watch 10 will also confirm whether the user needs to enable the face recognition function. Specifically, the watch 10 can prompt the user on the interface of the watch 10 to obtain whether the user agrees to enable the face recognition function. If the watch 10 obtains that the user agrees to enable the face recognition function, step S905 will be performed. If the watch 10 obtains that the user does not agree to enable the face recognition function, the watch 10 will only use the digital password unlocking mode, and step S913 can also be performed to display the lock screen interface.

[0185] In some embodiments, the user can also set to enable the face recognition function in the setting application of the watch 10. If the user sets to enable the face recognition function, the watch 10 will also perform step S905.

[0186] S905: The watch 10 sends a face recognition request to the smart screen 30.

[0187] When the watch 10 obtains that the face recognition function needs to be enabled, the watch 10 will send a face recognition request to the smart screen 30 that meets the preset condition to obtain the preset face data. The preset condition includes a device that logs in the same device account as the watch 10, a device that has an associated account with the device account of the watch 10, and a device within the preset range of the watch 10. For details, reference can be made to the foregoing step S302 and the related description thereof, which will not be repeated here.

[0188] S906: The smart screen 30 displays a prompt interface for obtaining face data.

[0189] After the smart screen 30 obtains the face recognition request, the smart screen 30 will obtain the user authorization before collecting the user face data. After the user authorization is passed, the user identity data will be collected. Specifically, the smart screen 30 can prompt the user on the interface of the smart screen 30 whether to agree to collect the face data. For details, refer to the related description of the smart screen 30, which will not be described here. Figure 5

[0190] S907: The smart screen 30 determines whether the user authorization to collect the face data is obtained.

[0191] After the smart screen 30 prompts the user whether the face data can be collected, the smart screen 30 will confirm the feedback information of the user. If the user authorization to collect the face data is obtained, step S908 is performed. If the user authorization to collect the face data is obtained, step S912 can also be performed to feed back the information to the watch 10. Alternatively, if the user authorization to collect the face data is obtained, the watch 10 and the smart screen 30 can directly end the process.

[0192] S908: The smart screen 30 starts the face recognition APP and collects the face data.

[0193] After the smart screen 30 obtains the user authorization to collect the face data, the smart screen 30 can start an application (APP) for face recognition, for example, a sports health APP. The face data of the user is collected through the face recognition APP.

[0194] S909: The smart screen 30 generates an authentication code according to the collected face data, or generates encrypted face data.

[0195] The smart screen 30 will process the collected face data, including extracting face features, and then generating an authentication code from the face features. Alternatively, the face data is encrypted to generate encrypted face data.

[0196] S910: The smart screen 30 sends the authentication code corresponding to the face data or the encrypted face data to the cloud server 40.

[0197] The smart screen 30 sends the authentication code corresponding to the face data or the encrypted face data to the cloud server 40, so that the cloud server 40 can assist the watch 10 in face recognition authentication.

[0198] S911: The cloud server 40 saves the authentication code or the encrypted face data as preset face data.

[0199] The cloud server 40 saves the authentication code corresponding to the face data or the encrypted face data obtained by the smart screen 30 as preset face data, which is used for subsequent user face recognition to unlock the watch 10.

[0200] ​In some embodiments, the cloud server 40 can also use the encrypted face data to generate an authentication code and save the generated authentication code as preset face data.

[0201] S912: Smart Screen 30 reports authorization failure to Watch 10.

[0202] If the smart screen 30 detects that the user does not agree to enable the face recognition function, the smart screen 30 will send an authorization failure message to the watch 10. After receiving the authorization failure message, the watch 10 can choose another device that meets the preset conditions to obtain the preset face data, or give up obtaining the face data and proceed to step S913.

[0203] S913: Watch 10 displays the lock screen interface.

[0204] When the user refuses to enable the face recognition function and / or refuses to authorize the Smart Screen 30 to obtain face data, and the Watch 10 does not receive any user input within a certain period of time, the Watch 10 can enter lock screen mode and display the lock screen interface. The interface of the Watch 10 in lock screen mode can be found in the image below. Figure 1 The details of (A) and its related descriptions are omitted here.

[0205] like Figure 10 As shown, Figure 10 The flowchart illustrates the method for unlocking the Watch 10 after pre-storing facial data. The Watch 10's default unlocking method is a numeric password. Specifically, this includes:

[0206] S1001: The Watch 10 can be woken up when the screen is locked.

[0207] The Watch 10 can detect whether it receives a user's wake-up operation in real time, whether the screen is off, locked, or not. This includes actions such as pressing the power button, tapping the screen, shaking the Watch 10, or raising the wrist. The Watch 10's interface in lock screen mode can be found here. Figure 1 The details of (A) and its related descriptions are omitted here.

[0208] S1002: Watch 10 displays a numeric keypad.

[0209] When the watch 10 detects a wake-up operation, it will display the interface corresponding to the default unlock method, i.e., the numeric keypad. The numeric keypad interface on the watch 10 can be found here. Figure 1 (B) and its related description.

[0210] S1003: Watch 10 determines whether a password has been entered.

[0211] The watch 10 detects that the user inputs the digital password, indicating that the user selects the digital password unlocking mode, and then executes step S1004. When the watch 10 does not detect that the user inputs the digital password, it further judges whether the user selects the face recognition unlocking, i.e., executes step S1006.

[0212] The interface of the watch 10 when the user inputs the digital password can also refer to (C) and the related description in the foregoing embodiment, which will not be described here. Figure 1

[0213] S1004: The watch 10 judges whether the digital password input by the user is the preset password.

[0214] If the watch 10 detects that the user inputs the digital password, it further judges whether the digital password input by the user is the preset password. If yes, it executes step S1005. If no, it re-displays the digital keyboard, i.e., can execute step S1002. At this time, the user can select to input the digital password again or select other unlocking modes, such as the face recognition unlocking.

[0215] In some embodiments, the watch 10 further acquires the number of times that the user inputs the digital password. If the number of times that the user continuously inputs the digital password incorrectly exceeds the preset number of times, the watch 10 can also lock the watch 10 for a preset time length, and the watch 10 cannot be unlocked within the preset time length. Alternatively, the watch 10 can also send an alarm prompt to other devices, such as the smart screen 30, which are logged in the same device account, to prompt the user that the number of times that the watch 10 fails to be unlocked exceeds the preset number of times.

[0216] S1005: The watch 10 displays the unlocking interface.

[0217] In the case that the watch 10 acquires the preset password or the watch 10 acquires the preset password within the preset number of times, the watch 10 is successfully unlocked, and then displays the unlocking interface. The unlocking interface of the watch 10 can also refer to (D) and the related description in the foregoing embodiment, which will not be described here. Figure 1

[0218] S1006: The watch 10 judges whether the face recognition function is selected.

[0219] If the watch 10 does not receive the operation of the password input by the user, it further judges whether the user performs the operation of selecting the face recognition function. If the watch 10 acquires that the user selects the face recognition function, it executes step S1007. If the user does not select the face recognition function, the watch 10 can execute step S1002 to display the digital keyboard and detect whether the user inputs the digital password.

[0220] ​​The operation of the user selecting the face recognition function can be performing a left swipe or clicking a face recognition icon. For details, refer to the foregoing step S302 and related descriptions thereof, which will not be repeated here. Figure 4 and related descriptions thereof.

[0221] S1007: The watch 10 sends a face recognition request to the smart screen 30.

[0222] When the watch 10 needs to start the face recognition function, it sends a face recognition request to the smart screen 30 that meets the preset condition to obtain the preset face data. The preset condition includes a device that is logged in to the same device account as the watch 10 and / or a device within the preset range of the watch 10. For details, refer to the foregoing step S302 and related descriptions thereof, which will not be repeated here.

[0223] S1008: The smart screen 30 displays a prompt interface for obtaining face data.

[0224] After the smart screen 30 obtains the face recognition request, it will obtain the user's authorization before collecting the user's face data. After the user's authorization is passed, the user's identity data will be collected. Specifically, the smart screen 30 can prompt the user on the interface whether to agree to obtain the face data. For details, refer to the foregoing step S304 and related descriptions thereof, which will not be repeated here. Figure 5 and related descriptions thereof.

[0225] S1009: The smart screen 30 determines whether the user authorizes obtaining the face data.

[0226] After prompting the user whether to collect the face, the smart screen 30 confirms the user's feedback information. If the user authorizes collecting the face data is obtained, step S1011 is performed. If the user refuses to authorize collecting the face data is obtained, step S1010 can be performed to feed back the information to the watch 10. Alternatively, if the user refuses to authorize collecting the face data is obtained, the watch 10 and the smart screen 30 can directly end the process.

[0227] S1010: The smart screen 30 feeds back a failed authorization.

[0228] If the smart screen 30 obtains that the user does not agree to start the face recognition function, the smart screen 30 feeds back a failed authorization to the watch 10. After receiving the information of the failed authorization, the watch 10 can select other devices that meet the preset condition to obtain the preset face data. Alternatively, the watch 10 can give up obtaining the face data and perform step S1002 to display the digital keyboard. Alternatively, the watch 10 can also directly display the lock screen interface.

[0229] S1011: The smart screen 30 starts a face recognition APP and collects face data.

[0230] After the smart screen 30 obtains the user's authorization to collect face data, the smart screen 30 can start a face recognition APP, such as a sports health APP. The face data of the user is collected through the face recognition APP.

[0231] S1012: The smart screen 30 generates an authentication code according to the collected face data, or generates encrypted face data.

[0232] The smart screen 30 processes the collected face data, including extracting face features, and then generates an authentication code from the face features. Alternatively, the face data is encrypted to generate encrypted face data.

[0233] S1013: The smart screen 30 sends the authentication code or encrypted face data to the cloud server 40.

[0234] The smart screen 30 sends the authentication code or encrypted face data corresponding to the face data to the watch 10, so that the watch 10 can also collect face data without face collection function.

[0235] S1014: The cloud server 40 generates an authentication result according to the obtained authentication code or encrypted face data and the preset face data.

[0236] The comparison result generated by the cloud server 40 can be consistent or inconsistent. In some embodiments, the cloud server 40 can confirm the similarity between the obtained authentication code or encrypted face data and the pre-stored preset face data, and take the similarity as the authentication result.

[0237] In some embodiments, if the formats of the preset face data and the currently obtained face data (authentication code or encrypted face data) are inconsistent, the cloud server 40 can also convert the formats of the obtained face data or the preset face data, and then perform authentication.

[0238] If the preset face data pre-stored by the cloud server 40 is in the form of an authentication code, when the obtained is an authentication code, the cloud server 40 can directly compare the currently obtained authentication code with the pre-stored preset face data. If the obtained is encrypted face data, the cloud server 40 can also convert the encrypted face data into an authentication code, and then compare the authentication code with the pre-stored preset face data.

[0239] If the preset face data pre-stored in the cloud server 40 is encrypted face data, if the acquired face data at this time is encrypted face data, the cloud server 40 can directly compare the encrypted face data with the preset face data. If the acquired face data at this time is an authentication code, the cloud server 40 can also convert the preset encrypted face data into an authentication code, and then compare the authentication code with the acquired authentication code.

[0240] S1015: The cloud server 40 sends the authentication result to the watch 10.

[0241] The cloud server 40 sends the authentication result to the watch 10, so that the watch 10 can determine whether the unlocking is successful.

[0242] S1016: The watch 10 determines whether the acquired authentication result indicates that the authentication is passed.

[0243] The watch 10 determines whether the acquired authentication result indicates that the authentication is passed. If yes, the watch 10 is successfully unlocked in step S1017. If no, the digital keyboard interface is displayed again or the lock screen interface is displayed in step S1002.

[0244] In some embodiments, if the authentication result sent by the cloud server 40 to the watch is a similarity, the watch 10 can also determine whether the similarity meets a preset standard, for example, whether the similarity is greater than 90%. If yes, the watch 10 is successfully unlocked in step S1017. If no, the digital keyboard interface is displayed again or the lock screen interface is displayed in step S1002.

[0245] S1017: The watch 10 displays an unlocking interface.

[0246] If the acquired authentication code of the watch 10 is consistent with the preset face data pre-stored, or the similarity is greater than the preset standard, the unlocking is successful, and the unlocking interface is displayed. The unlocking interface displayed by the watch 10 can refer to (D) and related descriptions thereof in the Figure 1

[0247] As described above, through the device unlocking method provided in the present application, the watch 10 without fingerprint unlocking, face recognition unlocking and other unlocking modes can also acquire the identity data of the user. In this way, the watch 10 can also use the fingerprint unlocking, face recognition unlocking and other unlocking functions. The user does not need to use the digital unlocking, image unlocking and other slow unlocking modes, which improves the unlocking efficiency of the user. Moreover, the smart screen 30 does not need to store the user face data, which saves the storage space of the smart screen 30.

[0248] In order to solve the problem of low efficiency of user unlocking electronic devices, the present application provides a device unlocking apparatus 1100, which can be applied to a first device, i.e. an electronic device 100. As shown in​Figure 11 As shown, the device unlocking apparatus 1100 comprises a sending unit 1110, an obtaining unit 1120, a switching unit 1130, a determining unit 1140, and a displaying unit 1150.

[0249] The sending unit 1110 is configured to, based on the first device obtaining an operation of the user selecting a target unlocking manner, send, by the first device, an unlocking request corresponding to the target unlocking manner to the second device, the unlocking request being used to cause the second device to obtain identity data of the user in a manner corresponding to the target unlocking manner. The obtaining unit 1120 is configured to obtain, by the first device, authentication information corresponding to the identity data, and match, by the first device, the authentication information with preset authentication information. The switching unit 1130 is configured to switch to an unlocked state based on a result of the matching being successful.

[0250] In some embodiments, the obtaining unit 1120 is further configured to obtain, by the first device, an authentication code generated by the second device from the identity data as the authentication information. The determining unit 1140 is configured to compare, by the first device, the authentication code with the preset authentication information. The switching unit 1130 is further configured to switch, by the first device, to the unlocked state based on the authentication code being consistent with the preset authentication information.

[0251] In other embodiments, the determining unit 1140 is further configured to keep, by the first device, a current state based on the authentication code being inconsistent with preset authentication information pre-stored by the first device, or the sending unit 1110 is further configured to send, by the first device, the unlocking request to the second device again based on the authentication code being inconsistent with the preset authentication information pre-stored by the first device.

[0252] In other embodiments, the displaying unit 1150 is configured to display, by the first device, a first unlocking control, the first unlocking control corresponding to the target unlocking manner, and the determining unit 1140 is further configured to determine, by the first device, that the operation of selecting the target unlocking manner is obtained based on the first device detecting a triggering operation on the first unlocking control.

[0253] In other embodiments, the first device and the second device log in to a same device account, or the accounts logged in by the first device and the second device are associated.

[0254] In other embodiments, the identity data comprises one or more of face data, iris data, fingerprint data, and voiceprint data of the user.

[0255] Further, by the device unlocking method provided in the present application, the first device without the unlocking manner of fingerprint unlocking, face recognition unlocking, etc. can also obtain authentication information corresponding to the identity data of the user, so that the first device can also use the unlocking function of fingerprint unlocking, face recognition unlocking, etc. The user does not need to use the unlocking manner of digital unlocking, image unlocking, etc. with lower efficiency, and the efficiency of unlocking of the user is improved.

[0256] To address the problem of low efficiency in unlocking electronic devices, this application provides a device unlocking device 1200, which can be applied to a second device, namely an electronic device 200. Figure 12 As shown, the device unlocking device 1200 includes a receiving unit 1210, an acquiring unit 1220, a generating unit 1230, and a sending unit 1240.

[0257] The receiving unit 1210 is used to receive an unlock request from the first device corresponding to the target unlock method, and the obtaining unit 1220 is used for the second device to obtain the user's identity data corresponding to the target unlock method. The unlock request is determined based on the user's operation of selecting the target unlock method in the first device. The obtaining unit 1220 is also used for the second device to obtain the user's identity data in a manner corresponding to the target unlock method. The generating unit 1230 is used for the second device to generate authentication information based on the identity data.

[0258] In some embodiments, the sending unit 1240 is used for the second device to send an authentication code corresponding to the unlocking request to the first device.

[0259] In other embodiments, the sending unit 1240 is also used for the second device to send an authentication code corresponding to the unlocking request to the third device.

[0260] In other embodiments, the first device and the second device log in to the same device account, or the accounts logged in by the first device and the second device are associated.

[0261] In other embodiments, identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

[0262] The electronic device 1300 involved in the embodiments of this application is first introduced below. The electronic device 1300 may be the aforementioned first device, second device and third device, or electronic device 100, electronic device 200 and electronic device 300.

[0263] See Figure 13 , Figure 13 A schematic diagram of the structure of an exemplary electronic device 1300 provided in an embodiment of this application is shown.

[0264] The electronic device 1300 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, and the like. The sensor module 180 can include a pressure sensor 180A, a distance sensor 180B, a fingerprint sensor 180C, a touch sensor 180D, and the like.

[0265] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Different processing units can be independent devices, or can be integrated in one or more processors. The processor 110 can also be provided with a memory for storing instructions and data.

[0266] In some embodiments, the processor 110 can include one or more interfaces. It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative, and does not constitute a structural limitation of the electronic device 1300. In another embodiment of the present application, the electronic device 1300 can also use different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0267] The charging management module 140 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger.

[0268] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.

[0269] The wireless communication function of the electronic device 1300 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.

[0270] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 1300 can be configured to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.

[0271] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 1300. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.

[0272] The wireless communication module 160 can provide a solution for wireless communication including UWB, wireless local area networks (WLAN) (e.g., wireless fidelity (WiFi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like, applied to the electronic device 1300.

[0273] In some embodiments, the antenna 1 and the mobile communication module 150 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 1300 can communicate with a network through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0274] The electronic device 1300 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0275] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a MINILED, a MICROLED, a MICRO-OLED, a quantum dot light emitting diode (QLED), or the like. In some embodiments, the electronic device 1300 can include one or N display screens 194, where N is a positive integer greater than 1.

[0276] In some embodiments of the present application, the display screen 194 displays interface content currently output by the system. For example, the interface content is lock screen information, acquired face data, or the like.

[0277] The electronic device 1300 can implement a photographing function through an ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor.

[0278] The ISP is configured to process data fed back by the camera 193. The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects the optical image to a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.

[0279] In some embodiments of the present application, the camera 193 can be a depth camera in particular, which can be configured to acquire face data of a user.

[0280] The digital signal processor is configured to process digital signals. In addition to processing digital image signals, the digital signal processor can also process other digital signals. For example, when the electronic device 1300 selects a frequency point, the digital signal processor is configured to perform Fourier transform on frequency point energy, and the like.

[0281] The video codec is configured to compress or decompress digital videos. The electronic device 1300 can support one or more video codecs. In this way, the electronic device 1300 can play or record videos in multiple encoding formats.

[0282] The NPU is a neural-network (NN) calculation processor. By drawing on the structure of a biological neural network, for example, by drawing on the transmission mode between human brain neurons, the NPU can quickly process input information and can continuously self-learn. Through the NPU, the electronic device 1300 can implement intelligent cognition and other applications, for example, image recognition, face recognition, voice recognition, text understanding, and the like.

[0283] The external memory interface 120 can be used to connect an external memory card, for example, a Micro SD card, to expand the storage capacity of the electronic device 1300. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, music, video, and other files can be saved in the external memory card.

[0284] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various function applications and data processing of the electronic device 1300 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area.

[0285] The electronic device 1300 can implement an audio function through the audio module 170 and an application processor, and the like. For example, music playing, voice recording, and the like.

[0286] The audio module 170 is used to convert digital audio information into an analog audio signal output and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode an audio signal.

[0287] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. There are many types of pressure sensors 180A, such as a resistance type pressure sensor, an inductance type pressure sensor, a capacitance type pressure sensor, and the like. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. In some optional embodiments of the present application, the pressure sensor 180A can be used to capture a pressure value generated when a user's finger part contacts the display screen and transmit the pressure value to the processor, so that the processor identifies which finger part of the user inputs a user operation.

[0288] The distance sensor 180B is used to measure a distance. The electronic device 1300 can measure a distance by using infrared or laser. In some embodiments, when a scene is photographed, the electronic device 1300 can use the distance sensor 180B to measure a distance to achieve fast focusing.

[0289] The fingerprint sensor 180C is used to collect a fingerprint. The electronic device 1300 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint answering a call, and the like.

[0290] The touch sensor 180D, also referred to as a "touch panel". The touch sensor 180D can be disposed on the display screen 194, and the touch sensor 180D and the display screen 194 form a touch screen, also referred to as a "touch screen". The touch sensor 180D is used to detect a touch operation acting on or near the touch sensor 180D, and the touch operation refers to an operation of a user's hand, elbow, touch pen, etc. contacting the display screen 194. The touch sensor 180D can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180D can also be disposed on the surface of the electronic device 1300, which is different from the position of the display screen 194.

[0291] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys. They can also be touch keys. The electronic device 1300 can receive key input and generate key signal input related to user settings and function control of the electronic device 1300.

[0292] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback.

[0293] The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and also to indicate a message, a missed call, a notification, etc.

[0294] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 1300.

[0295] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 1300. In other embodiments of the present application, the electronic device 1300 can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0296] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk) and the like.

[0297] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be instructed by a computer program to complete the relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The storage medium mentioned above includes read only memory (ROM) or random access memory (RAM), magnetic disk or optical disk and various media that can store program codes.

Claims

1. A device unlocking method, characterized in that, Applied to a first device, the method includes: Based on the first device's acquisition of the user's selection of a target unlock method, the first device sends an unlock request corresponding to the target unlock method to the second device. The unlock request is used to enable the second device to acquire the user's identity data in the manner corresponding to the target unlock method. The first device acquires authentication information corresponding to the identity data, and, The first device matches the authentication information with preset authentication information, and switches to the unlocked state based on the successful matching result.

2. The method according to claim 1, characterized in that, The first device acquires authentication information corresponding to the identity data, including: The first device obtains an authentication code generated by the second device based on the identity data, which serves as the authentication information. The first device matches the authentication information with preset authentication information, and switches to the unlocked state based on a successful match, including: The first device compares the authentication code with the preset authentication information; Based on the fact that the authentication code matches the preset authentication information, the first device switches to the unlocked state.

3. The method according to claim 2, characterized in that, The method further includes: If the authentication code is inconsistent with the preset authentication information stored in the first device, the first device maintains its current state; or, the first device sends an unlock request to the second device again.

4. The method according to claim 1, characterized in that, The first device receives the user's selection of a target unlock method, including: The first device displays a first unlock control, which corresponds to the target unlock method; Based on the first device detecting a trigger operation on the first unlock control, the first device determines that it has obtained the operation of selecting the target unlock method.

5. The method according to claim 1, characterized in that, The first device and the second device are logged into the same device account, or the accounts logged into the first device and the second device are associated.

6. The method according to claim 1, characterized in that, The identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

7. A device unlocking method, characterized in that, Applied to a second device, the method includes: Based on the second device receiving an unlock request sent by the first device corresponding to the target unlock method, the second device obtains the identity data of the user corresponding to the target unlock method. The unlock request is determined based on the user's operation of selecting the target unlock method in the first device. The second device obtains the user's identity data in a manner corresponding to the target unlocking method; Based on the identity data, the second device generates authentication information.

8. The method according to claim 7, characterized in that, The authentication information is an authentication code, and the method further includes: The second device sends an authentication code corresponding to the unlock request to the first device.

9. The method according to claim 7, characterized in that, The authentication information is an authentication code, and the method further includes: The second device sends an authentication code corresponding to the unlock request to the third device.

10. The method according to claim 7, characterized in that, The first device and the second device are logged into the same device account, or the accounts logged into the first device and the second device are associated.

11. The method according to claim 7, characterized in that, The identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

12. A device unlocking method, characterized in that, Applied to a first device and a second device, the method includes: Based on the first device's acquisition of the user's selection of a target unlocking method, the first device sends an unlocking request to the second device, the unlocking request being used to enable the second device to acquire the user's identity data in a manner corresponding to the target unlocking method; The second device acquires the identity data in a manner corresponding to the target unlocking method. The second device generates authentication information based on the identity data; the second device sends the authentication information to the first device; The first device matches the authentication information with preset authentication information, and switches to the unlocked state based on the successful matching result.

13. The method according to claim 12, characterized in that, The method further includes: Based on the result of the failed match, the first device maintains its current state, or the first device sends an unlock request to the second device again.

14. The method according to claim 12, characterized in that, The first device receives the user's selection of a target unlock method, including: The first device displays a first unlock control, which corresponds to the target unlock method; Based on the first device detecting a trigger operation on the first unlock control, the first device determines that it has obtained the operation of selecting the target unlock method.

15. The method according to claim 13, characterized in that, The first device and the second device are logged into the same device account, or the accounts logged into the first device and the second device are associated.

16. The method according to claim 13, characterized in that, The identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

17. A device unlocking method, characterized in that, Applied to a first device, the method includes: Based on the first device's acquisition of the user's selection of a target unlock method, the first device sends an unlock request corresponding to the target unlock method to the second device. The unlock request is used to enable the second device to acquire the user's identity data in the manner corresponding to the target unlock method. The first device acquires authentication information corresponding to the identity data from the third device, wherein the authentication information is generated by the third device based on the identity data generated by the second device, and... The first device switches to the unlocked state based on the authentication information.

18. The method according to claim 17, characterized in that, The first device switches to the unlocked state based on the authentication information, including: The first device matches the authentication information with preset authentication information, and switches to the unlocked state based on the successful matching result.

19. The method according to claim 18, characterized in that, The method further includes: Based on the result of the failed match, the first device maintains its current state, or the first device sends an unlock request to the second device again.

20. The method according to claim 17, characterized in that, The first device receives the user's selection of a target unlock method, including: The first device displays a first unlock control, which corresponds to the target unlock method; Based on the first device detecting a trigger operation on the first unlock control, the first device determines that it has obtained the operation of selecting the target unlock method.

21. The method according to claim 17, characterized in that, The first device and the second device are logged into the same device account, or the accounts logged into the first device and the second device are associated.

22. The method according to claim 17, characterized in that, The identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

23. A device unlocking method, characterized in that, Applied to a first device, a second device, and a third device, the method includes: Based on the first device's acquisition of the user's selection of a target unlocking method, the first device sends an unlocking request to the second device, the unlocking request being used to enable the second device to acquire the user's identity data in a manner corresponding to the target unlocking method; The second device obtains the user's identity data in a manner corresponding to the target unlocking method; The second device generates an authentication code based on the identity data; The second device sends the authentication code to the third device; The third device sends authentication information to the first device based on the authentication code and the pre-stored preset authentication code; The first device switches to the unlocked state based on the authentication information.

24. The method according to claim 23, characterized in that, The first device switches to the unlocked state based on the authentication information, including: The first device matches the authentication information with preset authentication information, and switches to the unlocked state based on the successful matching result.

25. The method according to claim 24, characterized in that, The method further includes: Based on the result of the failed match, the first device maintains its current state, or the first device sends an unlock request to the second device again.

26. The method according to claim 23, characterized in that, The first device receives the user's selection of a target unlock method, including: The first device displays a first unlock control, which corresponds to the target unlock method; Based on the first device detecting a trigger operation on the first unlock control, the first device determines that it has obtained the operation of selecting the target unlock method.

27. The method according to claim 23, characterized in that, The first device and the second device are logged into the same device account, or the accounts logged into the first device and the second device are associated.

28. The method according to claim 23, characterized in that, The identity data includes one or more of the user's facial data, iris data, fingerprint data, and voiceprint data.

29. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store instructions, the processor being used to execute the instructions, and when the processor executes the instructions, performing the method as claimed in any one of claims 1 to 11 or claims 17 to 22.

30. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1 to 11 or 17 to 22.

Citation Information

Patent Citations

  • Unlocking method, apparatus and device

    CN106709293A

  • Equipment unlocking method and device, equipment and storage medium

    CN111966991A