Identity verification method, device and system
By establishing a trust relationship between the terminal device and the wearable device, using Bluetooth connection and preset operations, the identity verification process is simplified, the problem of the cumbersome identity verification process in the existing technology is solved, and the user experience and security are improved.
Patent Information
- Application Number
- CN202310306221.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, the identity verification process of the terminal device is cumbersome, the user experience is poor, and it is difficult to simplify the operation while ensuring security.
Simplify the authentication process by establishing a trust relationship between the end device and the wearable device, leveraging Bluetooth connectivity and preset actions. The specific method includes prompting the user to confirm whether the wearer is the owner when the terminal device unlocks the screen for the first time after the wearable device is worn. If confirmed, the identity verification is completed and frequent verification is reduced in subsequent use. The user only needs to confirm when wearing the wearable device for the first time. Perform a preset action.
It simplifies user operations while ensuring security, improves the confirmation process of trust relationships between terminal devices, makes user operations more convenient and faster, avoids unnecessary identity verification, and improves efficiency.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an identity authentication method, device and system. Background Art
[0002] As terminal devices become more and more popular, they gradually become the medium that connects people with information and people with services. Terminal devices are widely used and become indispensable items in people's lives. They are regarded as the extension of human organs. For example, users can use mobile phones to scan codes and make payments conveniently. For example, watches can record the wearer's exercise and health status, and display this information on the paired mobile phone. Therefore, mobile phones, watches and other terminal devices can be equivalent to the user himself in some occasions.
[0003] Sometimes, a user has multiple terminal devices. Multiple terminal devices belonging to the same user can collaborate to provide some functions. Before executing the process of these collaborative functions, some form of identity authentication is required to confirm that multiple terminal devices belong to the same user. In other words, it is necessary to prove that the same user is operating on different terminal devices and that the user is the owner of these terminal devices.
[0004] For example, when a user wears a watch, it is necessary to confirm that the user wearing the watch is the owner of the mobile phone before the watch and the mobile phone can work together to provide some functions; for example, displaying the user's health information collected by the watch on the mobile phone.
[0005] At present, the operation process of user identity authentication on terminal devices is relatively cumbersome, and the user experience is poor. How to simplify the user operation process while ensuring security is a problem that needs to be solved. Summary of the invention
[0006] The embodiments of the present application provide an identity authentication method, device and system, which simplify the user operation process of confirming the trust relationship between terminal devices while ensuring security, thereby improving the user experience.
[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0008] In the first aspect, an identity authentication method is provided, the method comprising: after the wearable device switches from an unworn state to a worn state, the terminal device receives a first operation of a user for unlocking the terminal device screen for the first time; in response to the first operation, the terminal device issues a first prompt message, prompting the user to confirm whether the user wearing the wearable device is the owner of the terminal device; if the terminal device receives a preset operation of the user on the first prompt message, the terminal device confirms that the user wearing the wearable device is the owner of the terminal device. In this way, the terminal device completes the identity authentication of the wearable device, the terminal device and the wearable device establish a trust relationship, and the terminal device and the wearable device can provide some collaborative functions.
[0009] In this method, the user only needs to perform a preset operation, such as clicking a button, when the wearable device is worn and the terminal device unlocks the screen for the first time, to complete the identity authentication of the wearable device; frequent verification is not required during subsequent use; the user operation is convenient and fast. In addition, the owner of the terminal device confirms that the user wearing the wearable device is the owner of the terminal device, which can ensure security.
[0010] In combination with the first aspect, in one embodiment, before the terminal device receives the user's first operation for the first time, the terminal device receives the user's operation to activate the identity authentication function; in response to the operation to activate the identity authentication function, the terminal device activates the identity authentication function; wherein the identity authentication function is that the terminal device determines whether the user wearing the wearable device is the owner of the terminal device.
[0011] In this method, the user can actively enable or disable the identity authentication function.
[0012] In combination with the first aspect, in one embodiment, after the wearable device is switched from an unworn state to a worn state, the terminal device receives the user's first operation for the first time, including: after the wearable device is switched from an unworn state to a worn state, the terminal device receives the user's first operation for the first time after receiving the user's operation to activate the identity authentication function; or, after the terminal device receives the user's operation to activate the identity authentication function, it confirms that the wearable device is taken off and worn again, and then receives the user's first operation for the first time.
[0013] In this method, the wearable device is authenticated every time the user unlocks the terminal device screen for the first time after putting on the wearable device. One case is that the user puts on the wearable device, then activates the authentication function, and then unlocks the terminal device screen without taking off the wearable device; another case is that the user takes off the wearable device and puts it back on again after the authentication function has been activated, and then unlocks the terminal device screen.
[0014] In combination with the first aspect, in one implementation, after the terminal device receives an operation from a user to activate the identity authentication function, the terminal device generates and saves the authentication credentials; the terminal device sends the authentication credentials to the wearable device for the wearable device to save; the terminal device sets the authentication credentials saved by the terminal device to an unavailable state, which is used to indicate that the identity authentication function has been activated and the terminal device has not received the user's first operation. If the authentication credentials saved by the terminal device are in an unavailable state, the terminal device receives a first operation, indicating that it is the first time that the first operation has been received, and the terminal device issues a first prompt message. Then, the terminal device sets the saved authentication credentials to an available state.
[0015] In combination with the first aspect, in one implementation, if the user takes off the wearable device, the wearable device will delete the saved authentication credentials. When the terminal device receives the first operation, if it is determined that the authentication credentials saved by the terminal device are in an available state and the wearable device does not have any saved authentication credentials, indicating that it is the first time to receive the first operation, the terminal device sends a first prompt message.
[0016] In combination with the first aspect, in one implementation, before the terminal device receives the first operation of the user for the first time, the terminal device establishes a Bluetooth connection with the wearable device.
[0017] In this method, the terminal device authenticates the bound wearable device, which can prevent unauthorized wearable devices from authenticating and ensure security. In addition, authentication is initiated only for bound wearable devices, which can avoid unnecessary authentication, reduce invalid processes, and improve efficiency.
[0018] In combination with the first aspect, in one implementation, if the terminal device does not receive a preset operation of the user on the first prompt information within a preset time period, the terminal device confirms that the user wearing the wearable device is not the owner of the terminal device.
[0019] In combination with the first aspect, in one implementation, the terminal device receives a first change notification from the wearable device, indicating that the wearable device changes from a worn state to an unworn state; the terminal device stops determining whether the user wearing the wearable device is the owner of the terminal device.
[0020] In this method, the terminal device only authenticates the worn wearable device.
[0021] In a second aspect, an electronic device is provided, which has the function of implementing the method described in the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0022] In a third aspect, an electronic device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to perform a method as described in any one of the above-mentioned first aspects.
[0023] In a fourth aspect, an electronic device is provided, comprising: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute a method as described in any one of the above-mentioned first aspects according to the instructions.
[0024] In a fifth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer can execute any of the methods described in the first aspect.
[0025] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect.
[0026] In a seventh aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
[0027] Among them, the technical effects brought about by any design method in the second to seventh aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of a scenario applicable to the identity authentication method provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of a scenario example applicable to the identity authentication method provided in an embodiment of the present application;
[0030] Figure 3A A schematic diagram of a scenario example of an identity authentication method;
[0031] Figure 3B A schematic diagram of a scenario example applicable to the identity authentication method provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a scenario example of an identity authentication method in the prior art;
[0033] Figure 5 A schematic diagram of an identity authentication method provided in an embodiment of the present application;
[0034] Figure 6 A schematic diagram of a scenario example of the identity authentication method provided in an embodiment of the present application;
[0035] Figure 7 A schematic diagram of a system architecture applicable to the identity authentication method provided in an embodiment of the present application;
[0036] Figure 8 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0037] Fig. 9 A schematic diagram of the hardware structure of a wearable device provided in an embodiment of the present application;
[0038] Fig.10 A flowchart of an identity authentication method provided in an embodiment of the present application;
[0039] Fig.11 A schematic diagram of a scenario example of the identity authentication method provided in an embodiment of the present application;
[0040] Fig.12 A schematic diagram of a scenario example of the identity authentication method provided in an embodiment of the present application;
[0041] Fig.13 A flowchart of the identity authentication method provided in the embodiment of the present application combined with various scenarios of user operation;
[0042] Fig.14 A flowchart of an identity authentication method provided in an embodiment of the present application;
[0043] Fig.15 A schematic diagram of the software architecture of a mobile phone provided in an embodiment of the present application;
[0044] Fig.16 A schematic diagram of the software architecture of a watch provided in an embodiment of the present application;
[0045] Fig.17 A flowchart of an identity authentication method provided in an embodiment of the present application;
[0046] Fig.18 A detailed flow chart of the Bluetooth pairing phase (phase one) of the mobile phone and the watch in the identity authentication method provided in the embodiment of the present application;
[0047] Fig.19 A detailed flow chart of the stage (stage 2) of enabling the identity authentication function on a mobile phone in the identity authentication method provided in an embodiment of the present application;
[0048] Fig. 20 A detailed flow chart of the stage (stage three) of a user unlocking a mobile phone screen for the first time in the identity authentication method provided in an embodiment of the present application;
[0049] Fig.21 A detailed flow chart of the stage (stage 4) in which the user takes off the watch in the identity authentication method provided in the embodiment of the present application;
[0050] Fig. 22 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0051] Fig.23 A schematic diagram of the chip system structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include such expressions as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.
[0053] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0054] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0055] With the popularity of wearable devices, more and more users often wear wearable devices. Wearable devices can work with other terminal devices to provide some functions and bring convenient experience to users. In order to ensure security, such as avoiding the leakage of user privacy information, before allowing wearable devices to work with other terminal devices to provide specific functions, the terminal device needs to authenticate the wearable device first to confirm that the user wearing the wearable device is the owner of the terminal device.
[0056] In one example, as mentioned above, a watch can record the wearer's exercise, health status and other information. When a user wears a watch, in order to avoid leakage of user information, it is necessary to confirm that the user wearing the watch is the owner of the mobile phone before the exercise, health status and other information recorded by the watch can be displayed on the mobile phone. In other words, the mobile phone needs to authenticate the watch first to confirm that the user wearing the watch is the owner of the mobile phone; if the authentication is successful, a trust relationship is established between the mobile phone and the watch. Subsequently, the mobile phone and the watch can work together to provide some functions; for example, the information recorded by the watch can be sent to the mobile phone for display.
[0057] In another example, Figure 1 As shown, mobile phone 10, tablet computer 20, large screen, speaker and other terminal devices are connected to the same local area network. By logging in the same user account on these terminal devices, mobile phone 10, tablet computer 20, large screen, speaker and other devices are added to the same trust ring, and cross-device collaboration can be performed. For example, Figure 1 The user (the owner of the mobile phone 10) is using the tablet computer 20, and the mobile phone 10 is in another room, and the distance between the mobile phone 10 and the user is far. Figure 2As shown, the "chat" application on the mobile phone 10 generates a notification message, and the notification bar of the mobile phone 10 displays the notification message 11. The mobile phone 10 transfers the notification message to the tablet computer 20, and the tablet computer 20 displays the notification message 21 in the notification bar. In this way, the user can directly see the notification message generated by the "chat" application of the mobile phone 10 on the tablet computer 20. Although the mobile phone 10 is not around, the user can also receive the notification message of the mobile phone 10 in time to avoid missing important information. Exemplarily, the user sees the notification message 21 displayed by the tablet computer 20. The content of the notification message is that the "chat" application receives the message "Do you go running today?" from another user "Xiaohong?" The user wants to reply to "Xiaohong". Since the mobile phone 10 is in another room, if the operation is performed on the mobile phone 10, the user needs to move to another room, which is very inconvenient. If the mobile phone 10 casts the user interface of the "chat" application to the tablet computer 20, the user can directly enter the content of the reply message to "Xiaohong" on the tablet computer 20. The tablet computer 20 sends the content entered by the user to the mobile phone 10, and the "chat" application of the mobile phone 10 can reply to "Xiaohong".
[0058] It is understandable that before the mobile phone 10 projects the screen onto the tablet computer 20, it is necessary to authenticate the tablet computer 20 to confirm that the tablet computer 20 is trustworthy, that is, to confirm that the user's operation on the tablet computer 20 is permitted by the mobile phone 10. For example, if it is confirmed that the user operating on the tablet computer 20 is an authorized user of the mobile phone 10, it can be confirmed that the user's operation on the tablet computer 20 is trustworthy. Successfully confirming the trust relationship between the mobile phone 10 and the tablet computer 20 before projecting the screen onto the tablet computer 20 can avoid information leakage of the mobile phone 10.
[0059] Figure 3A The figure shows a method for implementing the trusted authentication of a tablet computer by a mobile phone in the prior art. Figure 3AAs shown, the user wants to reply to "Xiao Hong" and clicks on the notification message 21 on the tablet computer 20. The tablet computer 20 receives the user's click operation on the notification message 21 and displays the verification interface 22; the verification interface 22 is used to enter the lock screen password of the mobile phone 10. The user needs to enter the lock screen password of the mobile phone 10 on the verification interface 22 of the tablet computer 20. The tablet computer 20 receives the password entered by the user and can send the password to the mobile phone 10. If the mobile phone 10 verifies that the password is correct, it can be confirmed that the person who initiated the screen projection request on the tablet computer 20 is the owner of the mobile phone 10, that is, it can be confirmed that the tablet computer 20 is trustworthy; the mobile phone 10 projects the user interface of the "chat" application to the tablet computer 20, and the tablet computer 20 displays the user interface 23 of the "chat" application. In this way, the user can directly enter the content of the reply message to "Xiao Hong" on the user interface 23 displayed by the tablet computer 20; there is no need to move to another room and operate on the mobile phone 10.
[0060] In this implementation, the user needs to enter the lock screen password of the mobile phone 10 on the tablet computer 20 to perform the trusted authentication, which is not convenient; especially if the lock screen password is complex (such as a mixture of numbers and letters), the user experience is poor. In addition, in order to alleviate the problem of frequent trusted authentication, the business layer of the tablet computer 20 has to cache the trusted authentication results for a period of time, which brings the risk of reduced security.
[0061] In an implementation provided in an embodiment of the present application, a wearable device can be used to assist in determining the trust relationship between the mobile phone 10 and the tablet computer 20. For example, Figure 3B As shown, the user wants to reply to "Xiao Hong" and clicks on the notification message 21. The tablet computer 20 receives the user's click operation on the notification message 21, and notifies the watch 30 to display a prompt interface 31. The prompt interface 31 includes a prompt message 32 "The mobile phone requests collaborative authentication, please confirm!". Optionally, the prompt interface 31 also includes a confirmation button 33 and a cancel button 34. The user can click the confirmation button 33 to indicate that the tablet computer 20 is trustworthy. The mobile phone 10 confirms that the watch 30 receives the user's operation of clicking the confirmation button 33, and can confirm that the tablet computer 20 is trustworthy; the mobile phone 10 casts the user interface of the "Chat" application to the tablet computer 20, and the tablet computer 20 displays the user interface 23 of the "Chat" application. In this way, the user can directly enter the content of the reply message to "Xiao Hong" on the user interface 23 displayed on the tablet computer 20; it is very convenient. In addition, the user operates on the watch 30 to help the mobile phone 10 authenticate the tablet computer 20, which is convenient, quick and easy to operate. For example, in Figure 1In the scenario shown, the mobile phone 10 and the tablet computer 20 are in the same room. The user does not need to move to another room, but only needs to click a button on the watch 30 to complete the trusted authentication.
[0062] It should be noted that Figure 3B The prompt information and user operation shown are only examples. In other embodiments, other forms of prompt information or user operations can be set. The embodiments of the present application do not limit this.
[0063] In this example, the mobile phone 10 needs to authenticate the watch 30 first to establish a trust relationship between the mobile phone 10 and the watch 30. Then, the trust relationship between the mobile phone 10 and the tablet computer 20 is determined with the help of the watch 30. In other words, the mobile phone 10 needs to authenticate the watch 30 first to determine that the user wearing the watch 30 is the owner of the mobile phone 10; if the identity authentication of the watch 30 is passed, the mobile phone 10 and the watch 30 have established a trust relationship. Subsequently, the mobile phone 10 and the watch 30 can work together to provide some functions; for example, the watch 30 can be used to help the mobile phone 10 authenticate the tablet computer 20.
[0064] It can be seen that in the scenario where the terminal device and the wearable device work together to provide some functions, how the terminal device can conveniently and quickly complete the identity authentication of the wearable device is a problem that needs to be solved.
[0065] In one implementation of the prior art, based on the photoplethysmographic (PPG) or electrocardiography (ECG) signal identity authentication technology, the PPG or ECG signal is obtained through the PPG or ECG sensor on the watch, the signal is denoised, and then the feature is extracted through the algorithm, and the optimization is performed according to the training results on the sample set, and finally the wearer's identification and classification are completed. In this implementation, the PPG or ECG signal is greatly affected by the wearer's emotions and physical condition, and the accuracy of identity authentication is low.
[0066] In another implementation of the prior art, the watch provides a lock screen password and a wrist detection function. Figure 4 , when the phone needs to authenticate the watch, the user needs to enter the lock screen password on the watch and keep wrist detection turned on. That is to say, in this implementation, a watch that is worn and has unlocked the screen is considered to be the phone owner's watch. This verification method requires the user to enter the lock screen password of the watch, which is relatively cumbersome.
[0067] The embodiment of the present application provides an identity authentication method, which can quickly and easily authenticate the identity of a wearable device while ensuring security, and confirm that the user wearing the wearable device is the owner of the terminal device.
[0068] Still taking the mobile phone 10 and the watch 30 as an example. For example, Figure 5 As shown, the mobile phone 10 and the watch 30 can discover each other via Bluetooth and pair and connect; in this way, the watch 30 is bound to the mobile phone 10. The mobile phone 10 can configure and manage the watch 30.
[0069] For further reference, Figure 6 When the user wears the watch 30 and unlocks the mobile phone 10 for the first time, the mobile phone 10 displays a prompt interface 12, which includes a prompt message "Please confirm that it is you who is wearing the watch?" This prompt message is used to prompt the user to confirm whether the person wearing the watch 30 is the owner of the mobile phone 10. Optionally, the prompt interface 12 also includes a "Confirm" button 13 and a "No" button 14; the user can click the "Confirm" button 13 to indicate that the person wearing the watch 30 is the owner of the mobile phone 10, and the user can click the "No" button 14 to indicate that the person wearing the watch 30 is not the owner of the mobile phone 10. If the watch 30 receives the user's click operation on the "Confirm" button 13, it confirms that the user wearing the watch 30 is the owner of the mobile phone 10; that is, the identity authentication of the watch 30 is completed.
[0070] Afterwards, while the user is wearing the watch 30 (before the watch 30 is taken off), a trust relationship exists between the mobile phone 10 and the watch 30, which can allow the watch 30 and the mobile phone 10 to provide some specific functions.
[0071] The identity authentication method provided in the embodiment of the present application allows the user to complete the identity authentication of the wearable device by simply clicking a button when the terminal device unlocks the screen for the first time after the wearable device is worn; frequent authentication is not required during subsequent use; and the user operation is convenient and fast. In addition, the owner of the terminal device confirms that the user wearing the wearable device is the owner of the terminal device, which can ensure security.
[0072] The identity authentication method provided in the embodiment of the present application can be applied to Figure 7The system shown includes a terminal device 100 and a wearable device 200. The terminal device 100 and the wearable device 200 establish a short-range wireless connection. Exemplarily, the short-range wireless connection may include a Bluetooth connection, a wireless fidelity (Wi-Fi) direct connection, etc. In one implementation, the terminal device 100 and the wearable device 200 establish a Bluetooth connection through Bluetooth pairing. That is, the wearable device 200 is bound to the terminal device 100, and the terminal device 100 can configure and manage the wearable device 200.
[0073] After the user wears the wearable device 200, the wearable device 200 can notify the terminal device 100 of its wearing status. While the user is wearing the wearable device 200 (i.e., before the user takes off the wearable device 200), when the terminal device 100 unlocks the screen for the first time, the user can confirm on the terminal device 100 that the user wearing the wearable device 200 is the owner of the terminal device 100. Before the user takes off the wearable device 200, there is no need to repeatedly verify the identity of the wearable device 200.
[0074] The above-mentioned terminal device 100 may include a mobile phone, a tablet computer, a laptop computer, a personal computer (PC), an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a smart home device (for example, a smart TV, a smart screen, a large screen, a smart speaker, a smart air conditioner, etc.), a personal digital assistant (PDA), a vehicle-mounted device, a virtual reality device, etc., and the embodiments of the present application do not impose any restrictions on this.
[0075] The wearable device 200 may include a watch, a smart bracelet, etc.
[0076] In one example, the terminal device 100 is Figure 1 The mobile phone 10 and the wearable device 200 are Figure 1 After the terminal device 100 completes the identity authentication of the wearable device 200, the wearable device 200 can help the terminal device 100 to perform trusted authentication on other devices (such as the tablet computer 20).
[0077] For example, Figure 8A schematic diagram of the structure of the terminal device 100 is shown. The terminal device 100 may 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 button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a fingerprint sensor, a temperature sensor, a touch sensor, etc.
[0078] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device 100. In other embodiments, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0080] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0083] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the first device. In other embodiments, the first device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0084] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the first device. While the charging management module 140 is charging the battery 142, it may also power the first device through the power management module 141.
[0085] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0086] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0087] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0088] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0089] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0090] In the embodiment of the present application, the terminal device 100 can establish a Bluetooth connection with the wearable device 200 through the wireless communication module 160 to achieve Bluetooth communication. The terminal device 100 can also access the wireless local area network through the wireless communication module 160 to achieve access to the same local area network as the second device 200.
[0091] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0092] The display screen 194 is used to display images, videos, etc. 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-OLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc.
[0093] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0094] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0095] Camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first device may include 1 or N cameras 193, where N is a positive integer greater than 1. In the embodiment of the present application, the camera 193 can be used to capture video images.
[0096] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0097] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, audio, video and other files are stored in the external memory card.
[0098] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the first device by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area may store data (such as video files) created during the use of the first device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0099] The pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be arranged on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation based on the pressure sensor. The terminal device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor.
[0100] A touch sensor is also called a "touch panel". The touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass 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 180K can also be arranged on the surface of the terminal device 100, which is different from the position of the display screen 194.
[0101] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the first device. The first device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0102] For example, Fig. 9 A schematic diagram of the structure of a wearable device 200 is shown. The wearable device 200 may include a processor 210, a memory 220, a display screen 230, a power module 240, a sensor module 250, a wireless communication module 260, an audio module 270, and the like.
[0103] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the wearable device 200. In other embodiments of the present application, the wearable device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.
[0104] The processor 210 may include one or more processors, for example, the processor 210 may include an application processor, a controller, a digital signal processor (DSP), etc. Different processors may be independent devices or integrated into one or more processors.
[0105] The controller may be the nerve center and command center of the wearable device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0106] The application processor may be installed with an operating system of the wearable device 200, which is used to manage the hardware and software resources of the wearable device 200. For example, it may manage and configure memory, determine the priority of system resource supply and demand, control input and output devices, operate the network, manage the file system, manage drivers, etc. The operating system may also be used to provide an operating interface for users to interact with the system. Various types of software may be installed in the operating system, such as drivers, applications (Apps), etc.
[0107] The memory 220 is used to store instructions and data. In some embodiments, the memory 220 is a cache memory. The memory can save instructions or data used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory 220. Repeated access is avoided, the waiting time of the processor 210 is reduced, and the efficiency of the system is improved. In some embodiments, the memory 220 can also be set in the processor 210, that is, the processor 210 includes the memory 220. This embodiment of the present application is not limited to this.
[0108] Display screen 230 is used to display images, videos, etc. Display screen 230 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the wearable device 200 may include 1 or N display screens 230, where N is a positive integer greater than 1.
[0109] The power module 240 can be used to supply power to various components included in the wearable device 200. In some embodiments, the power module 240 can be a battery, such as a rechargeable battery.
[0110] The pressure sensor 250A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 250A can be arranged on the display screen 230. There are many types of pressure sensors 250A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 250A, the capacitance between the electrodes changes. The wearable device 200 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 230, the wearable device 200 detects the intensity of the touch operation based on the pressure sensor 250A. The wearable device 200 can also calculate the position of the touch based on the detection signal of the pressure sensor 250A.
[0111] The touch sensor 250B is also called a "touch panel". The touch sensor 250B can be arranged on the display screen 230, and the touch sensor 250B and the display screen 230 form a touch screen, also called a "touch screen". The touch sensor 250B is used to detect touch operations acting on or near it. The touch sensor can pass 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 230. In other embodiments, the touch sensor 250B can also be arranged on the surface of the wearable device 200, which is different from the position of the display screen 230.
[0112] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), ZigBee, etc., which are applied to the wearable device 200. For example, the wireless communication module 260 can be used to establish a Bluetooth connection between the wearable device 200 and the terminal device 100 in the embodiment of the present application to realize Bluetooth communication. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via an antenna, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0113] The wearable device 200 can implement audio functions through the audio module 270, the speaker 270A, the microphone 270B, and the application processor. For example, music playback, recording, etc. In the embodiment of the present application, the wearable device 200 can implement the function of receiving user voice through the audio module 270, the microphone 270B, and the application processor. The wearable device 200 can implement the sound playback function through the audio module 270, the speaker 270A, and the application processor; for example, play the prompt voice.
[0114] The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.
[0115] The speaker 270A, also called a "horn", is used to convert audio electrical signals into sound signals.
[0116] The microphone 270B, also called a "microphone" or "microphone", is used to convert a sound signal into an electrical signal. A user can make a sound by approaching the microphone 270B with his or her mouth, and input the sound signal into the microphone 270B.
[0117] The following takes the terminal device 100 as a mobile phone and the wearable device 200 as a watch as an example to describe in detail the identity authentication method provided in the embodiment of the present application.
[0118] Exemplary, reference Fig.10 The identity authentication method provided in the embodiment of the present application may include:
[0119] Stage 1: The phone and watch are paired via Bluetooth to establish a Bluetooth connection.
[0120] The mobile phone and the watch establish a Bluetooth connection, that is, the watch is bound to the mobile phone. In this way, the mobile phone can configure and manage the watch. In one example, the mobile phone configures and manages Bluetooth devices such as watches and smart bracelets through the sports health app. The user can initiate Bluetooth discovery, pairing and connection between the mobile phone and the watch in the sports health app of the mobile phone, and bind the watch to the mobile phone.
[0121] Phase 2: The user activates the identity authentication function on the mobile phone.
[0122] Optionally, when the user wears the watch, the user can enable or disable the identity verification function on the mobile phone. If the identity verification function is enabled, the watch can be authenticated on the mobile phone to confirm whether the user wearing the watch is the owner of the mobile phone. If the identity verification function is disabled, the watch is not authenticated on the mobile phone.
[0123] In one example, the user can open the "Settings" application of the mobile phone 10 and set the identity authentication function to be turned on or off. Fig.11 The setting function includes a "biometric identification and password" option. The user can select the "biometric identification and password" option, and the mobile phone 10 displays the "biometric identification and password" interface 15. The "biometric identification and password" interface 15 includes a "watch owner identification" switch 16. The user can turn on the "watch owner identification" switch 16 to enable the identity authentication function; the user can also turn off the "watch owner identification" switch 16 to turn off the identity authentication function.
[0124] In one implementation, after receiving the user's operation to turn on the "watch owner identification" switch 16, the mobile phone 10 queries the watch 30 for the wearing status of the watch 30. The wearing status includes worn and not worn; worn means that the watch 30 is worn by the user, and not worn means that the watch 30 is not worn by the user. If it is confirmed that the wearing status of the watch 30 is worn, the mobile phone 10 activates the identity authentication function. The identity authentication function is only allowed to be activated when the watch 30 is worn, which can ensure that the user wearing the watch 30 activates the identity authentication function on the mobile phone 10, thereby improving security.
[0125] Phase 3: After the identity verification function is activated, the phone screen is unlocked for the first time; the phone authenticates the watch.
[0126] When the watch is worn and the identity verification function on the phone is enabled, the phone receives the user's unlocking operation for the first time. The phone obtains the wearing status of the watch. If the wearing status of the watch is confirmed to be worn, the phone sends a first prompt message; the first prompt message is used to prompt the user to confirm whether the user wearing the watch is the owner of the phone. For example, Figure 6 As shown, the mobile phone 10 displays a prompt interface 12, which includes a prompt message "Please confirm that you are wearing the watch?"
[0127] If the watch receives the user's confirmation operation (preset operation), it can be confirmed that the user wearing the watch is the owner of the mobile phone; that is, the identity authentication of the watch is completed. The user's confirmation operation is used to confirm that the user wearing the watch is the owner of the mobile phone. For example, refer to Figure 6 The user's confirmation operation is a click operation on the “Confirm” button 13 .
[0128] After that, while the watch is being worn, if the user does not take off the watch and the phone receives the user's operation of unlocking the screen, there is no need to authenticate the watch again.
[0129] Stage 4: The user takes off the watch and the phone stops authenticating the watch.
[0130] If the user takes off the watch, the watch sends a first change notification to the mobile phone, which is used to indicate that the wearing status of the watch has changed from worn to not worn. The mobile phone confirms that the wearing status of the watch has changed from worn to not worn, and the mobile phone stops authenticating the watch during the period when the watch is not worn.
[0131] Send a second prompt message; the second prompt message is used to prompt the user that the watch cannot be authenticated. Fig.12 , the user takes off the watch 30, and the mobile phone 10 displays a prompt message 17 "You have taken off your watch and your identity cannot be verified."
[0132] Stage 5: When the identity verification function on the mobile phone is enabled, the user takes off the watch and then puts it on again, and the phone unlocks the screen for the first time; the phone authenticates the watch.
[0133] After the user takes off the watch and puts it on again, the mobile phone receives the user's unlocking operation for the first time. The mobile phone confirms that the identity authentication function has been activated, and then sends a first prompt message; the first prompt message is used to prompt the user to confirm whether the user wearing the watch is the owner of the mobile phone. For example, Figure 6 As shown, the mobile phone 10 displays a prompt interface 12, which includes a prompt message "Please confirm that you are wearing the watch?"
[0134] If the watch receives the user's confirmation operation, it can be confirmed that the user wearing the watch is the owner of the mobile phone; that is, the identity verification of the watch is completed. The user's confirmation operation is used to confirm that the user wearing the watch is the owner of the mobile phone. For example, refer to Figure 6 The user's confirmation operation is a click operation on the “Confirm” button 13 .
[0135] After that, while the watch is being worn, if the user does not take off the watch and the phone receives the user's operation of unlocking the screen, there is no need to authenticate the watch again.
[0136] It should be noted that the above five stages are only examples of a possible implementation method combined with user operations. In other embodiments, more or fewer stages may be included; and the order of certain stages may be swapped. Exemplarily, in some embodiments, the identity authentication function may be enabled by default, and the user does not need to enable or disable the identity authentication function. In other words, stage two may not be included. Exemplarily, in some embodiments, the user wears a watch, and after activating the identity authentication function on the mobile phone, the mobile phone locks the screen. Then the user takes off the watch, and the mobile phone stops authenticating the watch. After the user wears the watch again, the mobile phone unlocks the screen for the first time; the mobile phone authenticates the watch. In other words, stage three is not included in the process.
[0137] The identity authentication method provided in the embodiment of the present application is that when a user wears a watch and the user unlocks the phone screen for the first time, the phone prompts the user to confirm whether the user currently wearing the watch is the owner of the phone. If the user's confirmation operation is received on the phone, it can be determined that the user wearing the watch is the owner of the phone, and the identity authentication of the watch is completed. Optionally, the user can turn on or off the identity authentication function on the phone; if the identity authentication function is turned on, the phone executes the above-mentioned process of authenticating the watch; if the identity authentication function is turned off, the phone does not authenticate the watch.
[0138] For example, Fig.13 A flow chart showing the identity authentication method provided in an embodiment of the present application combined with various scenarios of user operations.
[0139] like Fig.13 As shown, after the user unlocks the phone screen, he can open the "Settings" app to check whether the identity authentication function is enabled. If the identity authentication function is not enabled, the user opens the settings function and turns on the "Watch Owner Identification" switch in the "Biometrics and Passwords" interface. The phone can query whether there is a paired watch through the Sports Health App. If there is no paired watch, the user can open the Sports Health App, add the watch on the "Add Device" page, initiate Bluetooth discovery, pairing and connection between the phone and the watch, and bind the watch to the phone. If the phone and watch fail to pair, the identity authentication function of the phone fails to be enabled. If the phone and watch are paired successfully, query whether the phone and watch have established a Bluetooth connection. If it is confirmed that the phone and watch have not established a Bluetooth connection, the identity authentication function of the phone has failed to be enabled, and the phone can issue a prompt message "Please connect the watch and try again." If it is confirmed that the phone and watch have established a Bluetooth connection, query whether the watch supports the identity authentication function. If it is determined that the watch does not support the identity authentication function, the identity authentication function of the phone fails to be enabled, and the phone can issue a prompt message "The watch does not support identity authentication." If it is determined that the watch supports the identity authentication function, query whether the watch is worn. If the watch is not worn, the mobile phone's identity verification function fails to be activated, and the mobile phone can send a prompt message "Please wear the watch and try again." If the watch is worn, the mobile phone's identity verification function is successfully activated, and the mobile phone sends a prompt message "Watch identity verification has been successfully activated."
[0140] If the authentication function is enabled, in a scenario where the user is not wearing the watch, the authentication function cannot be used. In this scenario, the phone will not authenticate the watch.
[0141] In one scenario, the user is wearing a watch. The user can lock the phone screen and then unlock it. If it is the first time to unlock the phone screen after the identity verification function is activated, the phone sends a first prompt message to prompt the user to confirm whether the user wearing the watch is the owner of the phone. For example, Figure 6 As shown, the mobile phone 10 displays a prompt interface 12, which includes a prompt message "Please confirm that you are the one wearing the watch?" The user can confirm that the user wearing the watch is the owner of the mobile phone by performing a preset operation on the mobile phone. Figure 6 As shown, the mobile phone displays a "Confirm" button 13 and a "No" button 14. Optionally, if the user clicks the "Confirm" button 13, the mobile phone passes the identity authentication of the watch, that is, the mobile phone confirms that the user wearing the watch is the owner of the mobile phone; during the period when the watch is worn (before the user takes off the watch), there is no need to authenticate the watch in subsequent use. Exemplarily, the watch may also issue a prompt message "Authentication completed". Optionally, if the user clicks the "No" button 14 or does not click the button within a preset time, the mobile phone fails to authenticate the watch, that is, the mobile phone cannot confirm that the user wearing the watch is the owner of the mobile phone.
[0142] In one scenario, the user takes off the watch. The watch detects that the user has taken off the watch and sends a prompt message, prompting the user that the watch cannot be authenticated. If the mobile phone and the watch are connected via Bluetooth, the watch sends a first change notification to the mobile phone, and the first change notification is used to indicate that the wearing status of the watch has changed from worn to not worn. The mobile phone stops authenticating the watch. Optionally, the mobile phone sends a second prompt message, prompting the user that the watch cannot be authenticated.
[0143] In one scenario, the user takes off the watch and then puts it on again. When the user unlocks the phone screen for the first time, the phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the phone. For example, Figure 6 As shown, the mobile phone 10 displays a prompt interface 12, which includes a prompt message "Please confirm that you are the one wearing the watch?" The user can confirm that the user wearing the watch is the owner of the mobile phone by performing a preset operation on the mobile phone. Figure 6 As shown, the mobile phone displays a "Confirm" button 13 and a "No" button 14. Optionally, if the user clicks the "Confirm" button 13, the mobile phone passes the identity authentication of the watch, that is, the mobile phone confirms that the user wearing the watch is the owner of the mobile phone; subsequently, while the watch is worn (before the user takes off the watch), the watch does not need to be authenticated again. Exemplarily, the watch may also issue a prompt message "Authentication completed". Optionally, if the user clicks the "No" button 14 or does not click the button within a preset time, the mobile phone fails to authenticate the watch, that is, the mobile phone cannot confirm that the user wearing the watch is the owner of the mobile phone.
[0144] For example, Fig.14 A flow chart of a mobile phone in the identity authentication method provided in an embodiment of the present application is shown.
[0145] S1401. In response to the user's setting operation, the mobile phone activates the identity authentication function.
[0146] Optionally, the mobile phone and the watch are paired by Bluetooth. After the Bluetooth connection is established, the user can activate the identity authentication function on the mobile phone. In one implementation, the user performs the setting operation on the mobile phone. Fig.11 In the “Biometric Identification and Password” interface 15 shown, the “Watch Owner Identification” switch 16 is turned on.
[0147] In one implementation, upon receiving a setting operation from the user, the mobile phone inquires whether there is a paired watch. If it is determined that there is no paired watch, the activation of the identity authentication function of the mobile phone fails. If it is determined that there is a paired watch, the mobile phone inquires whether the paired watch and the mobile phone are connected by Bluetooth. If it is determined that the paired watch and the mobile phone are not connected by Bluetooth, the activation of the identity authentication function of the mobile phone fails. If it is determined that the paired watch and the mobile phone have established a Bluetooth connection, the mobile phone inquires whether the watch supports the identity authentication function. If it is confirmed that the watch does not support the identity authentication function, the activation of the identity authentication function of the mobile phone fails. If it is confirmed that the watch supports the identity authentication function, the mobile phone inquires about the wearing status of the watch. If it is determined that the wearing status of the watch is worn, the identity authentication function of the mobile phone is successfully activated. If it is determined that the wearing status of the watch is not worn, the activation of the identity authentication function of the mobile phone fails.
[0148] S1402: The mobile phone receives an operation of unlocking the screen by the user. If it is determined that the watch has been worn and the identity authentication function on the mobile phone has been activated, a first prompt message is sent to prompt the user to confirm whether the user wearing the watch is the owner of the mobile phone.
[0149] For example, Figure 6 As shown, the user wears the watch 30, and after the mobile phone 10 receives the user's unlocking operation, it displays a prompt interface 12, which includes a prompt message "Please confirm that you are wearing the watch?"
[0150] In one implementation, the mobile phone only sends the first prompt message after receiving the user's unlocking operation for the first time, triggering the user to perform the preset operation. During the subsequent period when the user wears the watch, there is no need to frequently authenticate the watch every time the mobile phone screen is unlocked. During the period when the user wears the watch, it is considered that there is a trust relationship between the mobile phone and the watch. In this way, it can avoid the inconvenience caused by the user having to repeatedly perform verification operations.
[0151] In one scenario, a user wears a watch, activates the identity verification function on the phone, locks the phone screen, and then unlocks the phone screen. The phone confirms that the user has unlocked the phone screen for the first time after the identity verification function has been activated while the user is wearing the watch; at this time, the phone sends a first prompt message.
[0152] In one scenario, after the identity authentication function is activated on the mobile phone, the user takes off the watch, then puts on the watch again, and then the user unlocks the mobile phone screen. The mobile phone confirms that the identity authentication function is activated and the mobile phone receives the user's operation of unlocking the mobile phone screen for the first time after the user wears the watch; at this time, the mobile phone sends a first prompt message.
[0153] S1403: The mobile phone receives a preset operation by the user and determines that the user wearing the watch is the owner of the mobile phone.
[0154] Optionally, after the mobile phone sends the first prompt message, the user can perform a preset operation, indicating that the user wearing the watch is the owner of the mobile phone.
[0155] The preset operation may be that the user clicks a preset button on the mobile phone, makes a preset action or gesture to the mobile phone, or inputs a preset voice into the mobile phone. Figure 6 , the preset operation is to click the "Confirm" button 13.
[0156] When the mobile phone receives the user's preset operation, it can determine that the user wearing the watch is the owner of the mobile phone.
[0157] S1404: The mobile phone does not receive a preset operation from the user within a preset time period, and determines that the user wearing the watch is not the owner of the mobile phone.
[0158] Optionally, after the mobile phone sends the first prompt message, the user does not perform a preset operation, indicating that it cannot be confirmed that the user wearing the watch is the owner of the mobile phone.
[0159] In one example, the user performs other operations. Figure 6 , the user clicks the “No” button 14.
[0160] In one example, the user does not perform an operation within a preset time period. For example, the user does not click the "confirm" button 13 or the "no" button 14 within 5 seconds.
[0161] Understandably, in Fig.14 In the process shown, the watch can detect the wearing status and notify the mobile phone in time. The mobile phone can also save the information of the wearing status of the watch for identity authentication of the watch (confirming whether the user wearing the watch is the owner of the mobile phone).
[0162] In order to realize the related functions in the above embodiments, the mobile phone (terminal device 100) and the watch (wearable device 200) may include Figure 15-16 The software architecture is shown.
[0163] For example, Fig.15 A schematic diagram of the software architecture of a mobile phone is shown. Fig.15 As shown, the mobile application layer may include a series of application packages. For example, the application package may include screen projection services, chat applications, settings, health services and other applications.
[0164] The application framework layer (framework layer for short) provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Fig.15 As shown, the collaborative authentication service is used to process the relevant processes of trusted authentication; for example, subscribing to the status of the wearable device 200, providing collaborative authentication capabilities, etc. The collaborative authentication service is also used to process identity authentication related processes; for example, identity authentication of the wearable device 200. The setting service is used to set various switches, capabilities, functions, etc. of the mobile phone. For example, setting the identity authentication function, setting the specific form of the preset operation, etc. The lock screen service is used to provide the mobile phone with the ability to lock the screen and unlock the screen, and control the lock screen and unlock screen related processes. The communication channel is used to provide the mobile phone with the ability to communicate with other devices (such as tablets, PCs, watches, smart speakers, etc.), and the mobile phone sends and receives communication data through the communication channel. In one implementation, the communication channel includes a wearable device channel (wearkit) and a super channel (magiclink). The mobile phone interacts with wearable devices (such as watches, smart bracelets, etc.) through the wearable device channel. The mobile phone transmits data with devices in the same trust ring (such as tablets, PCs, large screens, etc.) through the super channel. Understandably, the mobile phone may not distinguish between the wearable device channel and the super channel, but use one communication channel to transmit data with devices such as watches, smart bracelets, tablets, PCs or large screens.
[0165] In some embodiments, the trusted execution environment (TEE) layer of the mobile phone includes a collaborative authentication cryptographic service. The TEE is not used by the conventional operating system (such as ) interference computing environment, runs independently of the conventional operating system, and can provide secure services for the conventional operating system. The collaborative authentication cryptographic service is used to provide cryptographic related processing capabilities such as key negotiation, authentication credential encryption and decryption, and signature verification for the collaborative authentication process.
[0166] For example, Fig.16A schematic diagram of the software architecture of a watch is shown.
[0167] like Fig.16 As shown, the watch's operating system (such as ) includes a collaborative authentication module, a Bluetooth module, an encryption module and a motion algorithm module. The collaborative authentication module is used to provide identity authentication capabilities, etc. The Bluetooth module is used to provide the watch with wireless communication capabilities; the watch can achieve wireless communication with the mobile phone through the Bluetooth module and the predefined protocol interface of the wearable device channel (wearkit) of the mobile phone. The encryption module is used to provide key negotiation, authentication credential encryption and decryption capabilities. The communication key module is used to provide communication key negotiation capabilities for wireless communication. The motion algorithm module is used to provide the ability to capture watch movements and verify user movements, etc. In one implementation, the motion algorithm module includes a wearing detection module for detecting whether the user is wearing a watch. The motion algorithm module also includes a motion perception algorithm library for providing the motion posture of the watch.
[0168] Next, combine Figure 15-16 , taking the terminal device 100 as a mobile phone and the wearable device 200 as a watch as an example, the identity authentication method provided in the embodiment of the present application is Fig.10 The specific implementation methods of the five stages shown are introduced in detail.
[0169] Exemplary, reference Fig.17 The identity authentication method provided in the embodiment of the present application includes:
[0170] S1701. The mobile phone and the watch perform Bluetooth pairing, establish a Bluetooth connection, and negotiate a session key.
[0171] In one implementation, the mobile phone and the watch are paired via Bluetooth, and after establishing a Bluetooth connection, a session key is negotiated for encrypting session data when the mobile phone and the watch communicate via Bluetooth. The mobile phone and the watch respectively save the session key and the version number of the session key.
[0172] S1702: When the user wears the watch, the mobile phone screen is unlocked. The mobile phone receives the user's unlock screen operation and executes the unlock screen operation.
[0173] It should be noted that the order of executing S1701 and S1702 is not limited. In some scenarios, when the user wears the watch, he adds the watch in the sports health app, and the mobile phone and the watch perform Bluetooth pairing to establish a Bluetooth connection. Afterwards, the user locks the mobile phone screen and then unlocks the mobile phone screen. In some scenarios, the user wears the watch, unlocks the mobile phone screen; then adds the watch in the sports health app, and the mobile phone and the watch perform Bluetooth pairing to establish a Bluetooth connection.
[0174] S1703: The user activates the identity authentication function in the settings application of the mobile phone. The mobile phone receives the user's operation of activating the identity authentication function and notifies the collaborative authentication service to activate the identity authentication function.
[0175] S1704. The collaborative authentication service of the mobile phone queries the wearable device channel for the connection status and wearing status of the watch. The wearable device channel confirms that the mobile phone and the watch have established a Bluetooth connection, and queries the watch for the wearing status. The collaborative authentication module of the watch notifies the wearing detection module to register the wearing monitoring. The wearing detection module returns the wearing status to the collaborative authentication module. The wearable device channel of the mobile phone returns the connection status and wearing status of the watch to the collaborative authentication service.
[0176] S1705. If the collaborative authentication service of the mobile phone confirms that the watch is connected and worn, an authentication credential is generated. The collaborative authentication service of the mobile phone pushes the authentication credential to the watch. After the collaborative authentication module of the watch obtains the authentication credential, it encrypts and stores the authentication credential; afterwards, the collaborative authentication module of the watch notifies the mobile phone that the authentication credential has been saved successfully. The collaborative authentication service of the mobile phone returns the successful activation of the identity authentication function to the settings application. In one implementation, the collaborative authentication service of the mobile phone sets the status of the locally saved authentication credentials to an unavailable state; indicating that the identity authentication function has been activated and the mobile phone has not received the user's first screen unlocking operation.
[0177] In some scenarios, the user unlocks the phone screen for the first time after the authentication function is activated.
[0178] S1706. The lock screen service of the mobile phone receives the user's operation to unlock the screen, and notifies the collaborative authentication service that the operation to unlock the screen has been received.
[0179] S1707. The collaborative authentication service of the mobile phone confirms that the status of the locally stored authentication credentials is unavailable, confirms that it is the first time that an unlock screen operation is received after the identity authentication function is activated, and sends a first prompt message to prompt the user to confirm whether the user wearing the watch is the owner of the mobile phone.
[0180] S1708. The user performs a preset operation to confirm that the person wearing the watch is the owner of the mobile phone. After receiving the preset operation of the user, the collaborative authentication service of the mobile phone confirms that the person wearing the watch is the owner of the mobile phone. In this way, the identity verification of the watch is completed, and a trust relationship is established between the mobile phone and the watch. The collaborative authentication service of the mobile phone activates the authentication credential and sets the status of the authentication credential to an available state.
[0181] In some scenarios, the user takes off the watch.
[0182] S1709. The wearing detection module of the watch detects that the watch is taken off, and notifies the collaborative authentication module that the wearing status has changed from worn to not worn.
[0183] S1710: The collaborative authentication module of the watch confirms that the wearing state has changed to not being worn, and deletes the locally stored authentication credentials. In this way, the watch cannot perform collaborative tasks with the mobile phone.
[0184] Optionally, if the Bluetooth connection between the watch and the mobile phone is connected, the collaborative authentication module of the watch notifies the mobile phone that the authentication credentials have been deleted and the collaborative task is not supported. The mobile phone sends a second prompt message, prompting the user that the watch cannot be authenticated.
[0185] In some scenarios, the user takes off the watch and then puts it on again. After that, the user unlocks the phone screen.
[0186] S1711, the wearing detection module of the watch detects that the watch is worn, and notifies the collaborative authentication module that the wearing status has changed from not worn to worn. If the Bluetooth connection status between the watch and the mobile phone is connected, the watch notifies the mobile phone that the wearing status has changed from not worn to worn.
[0187] S1712. The lock screen service of the mobile phone receives the user's operation to unlock the screen, and notifies the collaborative authentication service that the operation to unlock the screen has been received.
[0188] S1713. The collaborative authentication service of the mobile phone queries the wearable device channel for the connection status and the wearing status of the watch. The wearable device channel returns to the collaborative authentication service that the connection status of the watch is connected and the wearing status is worn.
[0189] S1714. The collaborative authentication service of the mobile phone confirms that the status of the locally stored authentication credentials is available, and queries the watch whether the watch has the authentication credentials.
[0190] S1715: There is no authentication credential on the watch side, and a message is sent to the mobile phone indicating that there is no authentication credential on the watch.
[0191] S1716. The collaborative authentication service of the mobile phone confirms that the authentication credentials exist locally and are in an available state. If the authentication credentials do not exist on the watch, it is confirmed that this is the first time that the user has unlocked the mobile phone screen after wearing the watch. The mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone.
[0192] S1717: The user performs a preset operation to confirm that the person wearing the watch is the owner of the mobile phone. After receiving the preset operation of the user, the collaborative authentication service of the mobile phone confirms that the identity authentication of the watch is completed, and a trust relationship is established between the mobile phone and the watch.
[0193] S1718. The collaborative authentication service of the mobile phone also regenerates the authentication credentials and pushes the new authentication credentials to the watch. The collaborative authentication module of the watch obtains the new authentication credentials and encrypts and stores the new authentication credentials; then, the collaborative authentication module of the watch notifies the mobile phone that the authentication credentials have been successfully saved. In one implementation, the collaborative authentication service of the mobile phone sets the status of the locally saved authentication credentials to an available state.
[0194] For example, Figure 18-Figure 21 , combined with user operations and distinguishing modules, a detailed process of the identity authentication method provided in an embodiment of the present application is shown.
[0195] Fig.18 A detailed flow chart of the Bluetooth pairing phase (phase one) between a mobile phone and a watch is shown.
[0196] like Fig.18As shown, the user performs the operation of unlocking the mobile phone screen, and the lock screen service receives the user's operation of unlocking the mobile phone screen and unlocks the screen. The user opens the settings and turns on Bluetooth. The user also opens the sports health application and adds a device. The watch is close to the phone. The sports health application of the mobile phone initiates the discovery of Bluetooth devices to the watch through the wearable device channel, which carries the media access control (MAC) address of the mobile phone. The Bluetooth module of the watch returns the device name, MAC address, etc. of the watch to the mobile phone. The wearable device channel of the mobile phone returns the device name of the watch to the collaborative authentication service. The mobile phone and the watch discover each other, and the mobile phone and the watch respectively send pairing confirmation request information. If the user clicks "Agree" on both the mobile phone and the watch, the sports health app of the mobile phone receives the user's consent to the pairing request and requests the watch to confirm the identity. The communication key module of the watch generates a random number B, and the Bluetooth module of the watch returns the consent verification to the mobile phone and returns the random number B. The sports health app on the mobile phone generates a random number A, and uses the preset shared key, random number A and random number B to calculate a hash message authentication code (HMAC) to generate authentication code one; illustratively, authentication code one = HMAC (HMAC (shared key + 0x0100), (random number B | random number A), (random number A | random number B)). The sports health app on the watch requests the watch to perform key negotiation, which carries random number A and authentication code one. The communication key module of the watch receives the request for key negotiation, and uses the preset shared key, random number A and random number B to calculate HMAC to generate authentication code two; illustratively, authentication code two = HMAC (HMAC (shared key + 0x0100), (random number B | random number A), (random number A | random number B)). If it is confirmed that authentication code one and authentication code two are the same, the preset shared key, random number A and random number B are used to calculate HMAC to generate authentication code three; illustratively, authentication code three = HMAC (HMAC (shared key + 0x0100), (random number B | random number A), (random number A | random number B)). The communication key module of the watch sends authentication code three to the mobile phone and requests reverse verification. The sports health app of the mobile phone uses the preset shared key, random number A and random number B to calculate HMAC and obtain authentication code four; if it is determined that authentication code four is the same as authentication code three, the legitimacy verification of the Bluetooth channels of the mobile phone and watch is completed, and pairing is allowed. The mobile phone and watch respectively send prompt messages indicating successful pairing.
[0197] Furthermore, the mobile phone and the watch negotiate a session key. Specifically, the sports health app of the mobile phone generates a random number as the session key; C1 and C2 are preset key materials, and KEK is generated based on C1 and C2; wherein, KEK = SHA256((SHA256((C1<<4)xorC2)>>6)xor(watch MAC address)). According to the session key and KEK, the cipher block chaining (CBC) mode of the advanced encryption standard (AES) is used for encryption to obtain the encrypted ciphertext; the encrypted ciphertext = AES encryption-128-CBC(session key, KEK, iv). The sports health app sends the encrypted ciphertext to the watch. The communication key module of the watch obtains the encrypted ciphertext, C1 and C2 are preset key materials, and KEK is generated based on C1 and C2; wherein, KEK = SHA256((SHA256((C1<<4)xorC2)>>6)xor(watch MAC address)). According to the encrypted ciphertext and KEK, AES CBC is used to decrypt and obtain the session key, wherein the session key = AES decryption-128-CBC (encrypted ciphertext, KEK, iv). The communication key module of the watch returns the decryption success to the mobile phone.
[0198] During subsequent Bluetooth connections, the session key is used to encrypt and transmit session data. If Bluetooth is disconnected and then reconnected, the negotiation of the session key process is triggered again to generate a new session key.
[0199] Fig.19 A detailed flow chart of the stage (stage 2) of enabling the identity authentication function on a mobile phone is shown.
[0200] like Fig.19As shown, the user unlocks the phone screen; then the user opens the settings to enable the identity authentication function. Exemplarily, the user turns on the settings function and turns on the "Watch Owner Identification" switch in the "Biometrics and Passwords" interface. The phone's settings application notifies the collaborative authentication service to activate the identity authentication function. The collaborative authentication service queries the wearable device channel for currently connected Bluetooth devices. The wearable device channel returns a list of devices to the collaborative authentication service, including watches. If the device list returned by the wearable device channel is empty, the collaborative authentication service returns a failure to the settings application. The phone notifies the user that the identity authentication function has failed to be activated and that there is no connection to the Bluetooth device. If the device list returned by the wearable device channel is not empty, the collaborative authentication service requests the wearable device channel to filter out devices that have been paired with the Sports Health App. The wearable device channel returns devices that have been paired with the Sports Health App to the collaborative authentication service. If the devices returned by the wearable device channel are empty, the collaborative authentication service returns a failure to the settings application. The phone notifies the user that the identity authentication function has failed to be activated, prompting that it is not connected to the specified Bluetooth device. If the devices returned by the wearable device channel are not empty, the collaborative authentication service requests the wearable device channel to query whether the device supports the identity authentication function. The wearable device channel returns whether it is supported to the collaborative authentication service. If the wearable device channel returns "not supported", the collaborative authentication service returns a failure to the settings application. The mobile phone notifies the user that the identity authentication function has failed to be activated, and the Bluetooth device does not support the identity authentication function. If the wearable device channel returns "supported", the collaborative authentication service queries the wearable device channel for the wearing status of the Bluetooth device. The wearable device channel returns to the collaborative authentication service whether it is worn. If the wearable device channel returns "not worn", the collaborative authentication service returns a failure to the settings application. The mobile phone notifies the user that the identity authentication function has failed to be activated, and prompts the user to try again after wearing the device. If the wearable device channel returns "worn", the collaborative authentication service checks whether there is a saved authentication credential corresponding to the Bluetooth device, and if so, deletes the saved authentication credential. The collaborative authentication service generates an authentication credential. In one implementation, the authentication credential is generated and saved in the TEE. Exemplarily, the authentication credential = peer Bluetooth device identifier | timestamp | version number | random number. The collaborative authentication service of the mobile phone sends the authentication credential to the mobile phone. In one implementation, the session key is used for encryption when sending. The Bluetooth module of the watch receives the encrypted authentication credential and decrypts it using the session key. The Bluetooth module sends the authentication credential to the collaborative authentication module. The collaborative authentication module checks whether there are old authentication credentials saved. If so, it deletes the old authentication credentials and the old key. The collaborative authentication module notifies the encryption module to generate a key, and the encryption module returns the key generation result. The collaborative authentication module notifies the encryption module to encrypt the authentication credentials, and the encryption module returns the result of the encrypted authentication credentials. If the encryption module returns a failure to delete the key, a failure to generate the key, or a failure to encrypt the authentication credentials, the collaborative authentication module of the watch returns a failure to save the authentication credentials to the mobile phone.The collaborative authentication service of the mobile phone receives the failure to save the authentication credentials, and returns the abnormality of saving the authentication credentials of the watch to the settings app. The mobile phone notifies the user that the identity authentication function has failed to be activated, and prompts the user to try again. If the encryption module returns the successful encryption of the authentication credentials, the watch prompts the user that the identity authentication function has been successfully activated. The collaborative authentication module of the watch returns the successful saving of the authentication credentials to the mobile phone. The collaborative authentication service of the mobile phone receives the successful saving of the authentication credentials, and sets the status of the authentication credentials to unavailable. The collaborative authentication service of the mobile phone returns the successful saving of the authentication credentials of the watch to the settings app. The mobile phone notifies the user that the identity authentication function has been successfully activated, and prompts the user to unlock the mobile phone screen again to take effect.
[0201] Fig. 20 A detailed flow chart of the stage (stage three) of a user unlocking a mobile phone screen for the first time after the identity authentication function is activated is shown.
[0202] like Fig. 20 As shown, the user wears a watch and unlocks the phone screen; the phone's lock screen service receives the user's unlocking operation and unlocks the screen. The phone's lock screen service notifies the collaborative authentication service of receiving the unlocking operation. If it is confirmed that the phone-side authentication credentials exist and the authentication credentials are in an unavailable state, the collaborative authentication service confirms that this is the first time the unlocking operation has been received after the identity authentication function has been activated. This is the scenario of Phase 3.
[0203] The collaborative authentication service queries the wearable device channel for currently connected Bluetooth devices. The wearable device channel returns a list of devices to the collaborative authentication service, including watches. If the list of devices returned by the wearable device channel is empty, the collaborative authentication service does not process it. If the list of devices returned by the wearable device channel is not empty, the collaborative authentication service requests the wearable device channel to filter out devices that have been paired with the sports health app. The wearable device channel returns the devices that have been paired with the sports health app to the collaborative authentication service. If the number of devices returned by the wearable device channel is empty, the collaborative authentication service does not process it. If the number of devices returned by the wearable device channel is not empty, the collaborative authentication service requests the wearable device channel to query whether the device supports the identity authentication function. The wearable device channel returns whether it is supported to the collaborative authentication service. If the wearable device channel returns no support, the collaborative authentication service does not process it. If the wearable device channel returns support, the collaborative authentication service queries the wearable device channel for the wearing status of the Bluetooth device. The wearable device channel returns whether it is worn to the collaborative authentication service. If the wearable device channel returns not worn, the collaborative authentication service does not process it. If the wearable device channel returns worn, the collaborative authentication service queries the wearable device channel for information on the authentication credentials of the peer (watch side). The wearable device channel returns the authentication credentials of the other end (watch side) to the collaborative authentication service, including whether the authentication credentials exist, the version number of the authentication credentials, the timestamp of the authentication credentials, etc.
[0204] In one scenario, the authentication credentials on the watch side do not exist, and the authentication credentials on the mobile phone side are within the validity period (for example, 12 hours), and the mobile phone pushes the locally saved authentication credentials to the watch.
[0205] In one implementation, the collaborative authentication service of the mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone. In one example, a preset operation of the user is received, such as the user clicking the "Confirm" button. The collaborative authentication service of the mobile phone sends the authentication credentials to the watch, and the session key is used for encryption when sending. The Bluetooth module of the watch receives the encrypted authentication credentials and decrypts them using the session key. The Bluetooth module sends the authentication credentials to the collaborative authentication module. The collaborative authentication module notifies the encryption module to generate a key, and the encryption module returns the key generation result. The collaborative authentication module notifies the encryption module to encrypt the authentication credentials, and the encryption module returns the result of the encrypted authentication credentials. If the encryption module returns that the key generation fails or the authentication credentials fail to be encrypted, the collaborative authentication module of the watch returns the authentication credentials to the mobile phone. Failure to save the failure. If the encryption module returns that the key generation is successful and the authentication credentials are encrypted successfully, the watch prompts the user that the identity authentication is successful. The collaborative authentication module of the watch returns the authentication credentials to the mobile phone. The collaborative authentication service of the mobile phone receives the authentication credentials and saves successfully, and sets the status of the authentication credentials on the mobile phone side to an available state. In one example, the preset operation of the user is not received, such as the user clicking the "No" button. The collaborative authentication service of the mobile phone confirms that the activation of the authentication credentials fails, and the process ends.
[0206] In another scenario, the authentication credentials on the watch side do not exist, and the authentication credentials on the mobile phone side have exceeded the validity period (for example, 12 hours). The mobile phone generates new authentication credentials and pushes the new authentication credentials to the watch.
[0207] In one implementation, the collaborative authentication service of the mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone. In one example, a preset operation of the user is received, such as the user clicking the "Confirm" button. The collaborative authentication service of the mobile phone deletes the authentication credentials on the mobile phone side and regenerates new authentication credentials. Exemplarily, the new authentication credentials are generated and saved in the TEE. The collaborative authentication service of the mobile phone sends the new authentication credentials to the watch, and the session key is used to encrypt the authentication credentials when sending. The Bluetooth module of the watch receives the encrypted new authentication credentials and decrypts them using the session key. The Bluetooth module sends the new authentication credentials to the collaborative authentication module. The collaborative authentication module notifies the encryption module to generate a key, and the encryption module returns the key generation result. The collaborative authentication module notifies the encryption module to encrypt the authentication credentials, and the encryption module returns the encrypted authentication credentials result. If the encryption module returns a failure to generate a key or a failure to encrypt the authentication credentials, the collaborative authentication module of the watch returns a failure to save the authentication credentials to the mobile phone. If the encryption module returns a success in generating a key and the encryption of the authentication credentials is successful, the watch prompts the user that the identity authentication is successful. The collaborative authentication module of the watch returns a success in saving the authentication credentials to the mobile phone. The collaborative authentication service of the mobile phone receives the authentication credentials and saves them successfully, and sets the status of the authentication credentials on the mobile phone side to an available state. In one example, the user's preset operation is not received, such as the user clicking the "No" button. The collaborative authentication service of the mobile phone confirms that the activation of the authentication credentials has failed, and the process ends.
[0208] In another scenario, the authentication credentials on the watch side exist, but the version number of the authentication credentials on the watch side is inconsistent with the version number of the authentication credentials on the mobile phone side, and the mobile phone pushes the locally saved authentication credentials to the watch.
[0209] In one implementation, the collaborative authentication service of the mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone. In one example, a preset operation of the user is received, such as the user clicking the "Confirm" button. The collaborative authentication service of the mobile phone sends the authentication credentials to the watch, and the session key is used for encryption when sending. The Bluetooth module of the watch receives the encrypted authentication credentials and decrypts them using the session key. The Bluetooth module sends the authentication credentials to the collaborative authentication module. The collaborative authentication module of the watch deletes the old authentication credentials. The collaborative authentication module notifies the encryption module to delete the key, and the encryption module returns the result of deleting the key. The collaborative authentication module notifies the encryption module to generate a key, and the encryption module returns the result of key generation. The collaborative authentication module notifies the encryption module to encrypt the authentication credentials, and the encryption module returns the result of encrypting the authentication credentials. If the encryption module returns that the key deletion fails, the key generation fails, or the authentication credentials fail to be encrypted, the collaborative authentication module of the watch returns the authentication credentials to the mobile phone. Failure to save the failure. If the encryption module returns that the key is successfully deleted, the key is successfully generated, and the authentication credentials are successfully encrypted, the watch prompts the user that the identity authentication is successful. The collaborative authentication service of the mobile phone receives the authentication credentials and saves them successfully, and sets the status of the authentication credentials on the mobile phone side to an available state. In one example, the user's preset operation is not received, such as the user clicking a "No" button. The collaborative authentication service of the mobile phone confirms that the activation of the authentication credential has failed, and the process ends.
[0210] In another scenario, the authentication credentials on the watch side exist, the version number of the authentication credentials on the watch side is consistent with the version number of the authentication credentials on the mobile phone side, the authentication credentials exceed the validity period (for example, 12 hours), the mobile phone generates new authentication credentials, and pushes the new authentication credentials to the watch.
[0211] In one implementation, the collaborative authentication service of the mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone. In one example, a preset operation of the user is received, such as the user clicking the "Confirm" button. The collaborative authentication service of the mobile phone deletes the authentication credentials on the mobile phone side and regenerates new authentication credentials. Exemplarily, the new authentication credentials are generated and saved in the TEE. The collaborative authentication service of the mobile phone sends the new authentication credentials to the watch, and the session key is used for encryption when sending. The Bluetooth module of the watch receives the encrypted new authentication credentials and decrypts them using the session key. The Bluetooth module sends the new authentication credentials to the collaborative authentication module. The collaborative authentication module of the watch deletes the old authentication credentials. The collaborative authentication module notifies the encryption module to delete the key, and the encryption module returns the result of deleting the key. The collaborative authentication module notifies the encryption module to generate a key, and the encryption module returns the result of key generation. The collaborative authentication module notifies the encryption module to encrypt the authentication credentials, and the encryption module returns the result of encrypting the authentication credentials. If the encryption module returns a failure to delete the key or a failure to generate the key or a failure to encrypt the authentication credentials, the collaborative authentication module of the watch returns a failure to save the authentication credentials to the mobile phone. If the encryption module returns that the key has been deleted successfully, the key has been generated successfully, and the authentication credentials have been encrypted successfully, the watch prompts the user that the identity verification is successful. The collaborative authentication module of the watch returns to the mobile phone that the authentication credentials have been saved successfully. The collaborative authentication service of the mobile phone receives the successful saving of the authentication credentials and sets the status of the authentication credentials on the mobile phone to an available state. In one example, the user's preset operation is not received, such as the user clicking the "No" button. The collaborative authentication service of the mobile phone confirms that the activation of the authentication credentials has failed, and the process ends.
[0212] In another scenario, the watch-side authentication credentials exist, the version number of the watch-side authentication credentials is consistent with the version number of the mobile phone-side authentication credentials, and the authentication credentials are within the validity period (for example, 12 hours), and the mobile phone-side authentication credentials are activated.
[0213] In one implementation, the collaborative authentication service of the mobile phone sends a first prompt message, prompting the user to confirm whether the user wearing the watch is the owner of the mobile phone. In one example, the user's preset operation is received, such as the user clicking the "Confirm" button. The collaborative authentication service of the mobile phone sets the status of the authentication credential on the mobile phone to an available state. In one example, the user's preset operation is not received, such as the user clicking the "No" button. The collaborative authentication service of the mobile phone confirms that the activation of the authentication credential has failed, and the process ends.
[0214] Fig.21 A detailed flow chart of the stage (stage four) in which the user takes off the watch is shown.
[0215] like Fig.21As shown, the user takes off the watch, and the watch's wearing detection module detects that the watch has been taken off. The watch's wearing detection module notifies the collaborative authentication module that the watch has been taken off. The collaborative authentication module deletes the authentication credentials on the watch side and notifies the encryption module to delete the key. The watch's wearing detection module notifies the mobile phone that the watch's wearing status has changed from worn to not worn. The collaborative authentication service of the mobile phone determines that the identity authentication function has failed and cannot authenticate the watch.
[0216] For the stage where the user unlocks the phone screen for the first time after taking off the watch and wearing it again (stage five), the user wears the watch and unlocks the phone screen; the phone's lock screen service receives the user's operation to unlock the phone screen and unlocks the screen. The phone's lock screen service notifies the collaborative authentication service of receiving the operation to unlock the screen. If it is confirmed that there are authentication credentials on the phone side, and the status of the authentication credentials is available, and there are no authentication credentials on the watch side, the collaborative authentication service confirms that this is the first time the phone has received the operation to unlock the screen after the user took off the watch and wore it again.
[0217] In one scenario, the authentication credentials on the watch side do not exist, and the authentication credentials on the mobile phone side are within the validity period (for example, 12 hours), and the mobile phone pushes the locally saved authentication credentials to the watch.
[0218] In another scenario, the authentication credentials on the watch side do not exist, and the authentication credentials on the mobile phone side have exceeded the validity period (for example, 12 hours). The mobile phone generates new authentication credentials and pushes the new authentication credentials to the watch.
[0219] In another scenario, the authentication credentials on the watch side exist, but the version number of the authentication credentials on the watch side is inconsistent with the version number of the authentication credentials on the mobile phone side, and the mobile phone pushes the locally saved authentication credentials to the watch.
[0220] In another scenario, the authentication credentials on the watch side exist, the version number of the authentication credentials on the watch side is consistent with the version number of the authentication credentials on the mobile phone side, the authentication credentials exceed the validity period (for example, 12 hours), the mobile phone generates new authentication credentials, and pushes the new authentication credentials to the watch.
[0221] In each scenario of Phase 5, the detailed interaction process between the mobile phone and each module of the watch can be referred to Fig. 20 The corresponding scenario of stage 3 is not described here.
[0222] It is understandable that, in order to realize the above functions, each of the above devices includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0223] The embodiment of the present application can divide the functional modules of the above-mentioned device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0224] In the case of an integrated unit, Fig. 22 A possible structural diagram of the terminal device involved in the above embodiment is shown. The electronic device 2100 includes: a processing unit 2101, a communication unit 2102 and a storage unit 2103. Among them, the processing unit 2101 is used to control and manage the actions of the electronic device 2100; the communication unit 2102 is used to support the communication between the electronic device 2100 and other network entities; the storage unit 2103 stores the instructions and data of the electronic device 2100, and the above instructions can be used to execute the various steps in the corresponding embodiments of this application.
[0225] Of course, the unit modules in the electronic device 2100 include but are not limited to the processing unit 2101, the communication unit 2102 and the storage unit 2103. For example, the electronic device 2100 may also include a display unit, etc., and the display unit is used to display the user interface of the electronic device 2100.
[0226] The processing unit 2101 may be a processor or a controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The communication unit 2102 may be a transceiver, a transceiver circuit, etc. The storage unit 2103 may be a memory.
[0227] The electronic device 2100 provided in the embodiment of the present application can be Figure 8 The terminal device 100 shown in FIG. 1 is a terminal device 100. The processor, memory, communication interface, etc. may be connected together, for example, via a bus. The processor calls the program code stored in the memory to execute each step in the above method embodiment.
[0228] The present application also provides a chip system, such as Fig.23 As shown, the chip system includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 and the interface circuit 2202 can be interconnected via lines. For example, the interface circuit 2202 can be used to receive signals from other devices (such as the memory of a routing device). For another example, the interface circuit 2202 can be used to send signals to other devices (such as processor 2201). Exemplarily, the interface circuit 2202 can read instructions stored in the memory and send the instructions to the processor 2201. When the instruction is executed by the processor 2201, the first device or the third device can perform the various steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0229] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the above-mentioned processor executes the computer program code, the electronic device executes the method in the above-mentioned embodiment.
[0230] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer executes the method in the above embodiments.
[0231] Among them, the electronic device 2100, chip system, computer-readable storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0232] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0233] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0234] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0235] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROMs, magnetic disks, or optical disks.
[0236] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An identity authentication method, applied to a terminal device, characterized in that: The method comprises: After the wearable device is switched from an unworn state to a worn state, the terminal device receives a first operation of the user for the first time, where the first operation is used to unlock the screen of the terminal device; In response to the first operation, the terminal device sends a first prompt message, where the first prompt message is used to prompt the user to confirm whether the user wearing the wearable device is the owner of the terminal device; If the terminal device receives a preset operation of the user on the first prompt information, the terminal device confirms that the user wearing the wearable device is the owner of the terminal device.
2. The method according to claim 1, characterized in that Before the terminal device receives a first operation of the user for the first time, the method further includes: The terminal device receives an operation of a user activating an identity authentication function; the identity authentication function is that the terminal device determines whether the user wearing the wearable device is the owner of the terminal device; In response to the operation of activating the identity authentication function, the terminal device activates the identity authentication function.
3. The method according to claim 2, characterized in that After the wearable device is switched from the unworn state to the worn state, the terminal device receives the first operation of the user for the first time, including: After the wearable device is switched from the unworn state to the worn state, the terminal device receives the first operation of the user for the first time after receiving the operation of the user to activate the identity authentication function; or, After the terminal device receives the user's operation to activate the identity authentication function, it confirms that the wearable device is taken off and then put on again, and then receives the user's first operation for the first time.
4. The method according to claim 3, characterized in that After the terminal device receives an operation of the user to activate the identity authentication function, the method further includes: The terminal device generates and stores authentication credentials; The terminal device sends the authentication credential to the wearable device for the wearable device to save; The terminal device sets the authentication credentials saved by the terminal device to an unavailable state, where the unavailable state is used to indicate that the identity authentication function has been activated and the terminal device has not received the first operation of the user.
5. The method according to claim 4, characterized in that The terminal device issues a first prompt message in response to the first operation, including: If it is determined that the authentication credentials saved by the terminal device are unavailable, the terminal device sends a first prompt message.
6. The method according to claim 5, characterized in that After the terminal device sends the first prompt information, the method further includes: The terminal device sets the authentication credentials saved by the terminal device to an available state, where the available state is used to indicate that the identity authentication function has been activated and the terminal device has received the first operation.
7. The method according to claim 4, characterized in that The terminal device issues a first prompt message in response to the first operation, including: If it is determined that the authentication credentials saved by the terminal device are in an available state, and the wearable device does not have any saved authentication credentials, the terminal device issues a first prompt message.
8. The method according to any one of claims 1 to 7, characterized in that: Before the terminal device receives the first operation of the user for the first time, the method further includes: The terminal device establishes a Bluetooth connection with the wearable device.
9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the terminal device does not receive a preset operation of the user on the first prompt information within a preset time period, the terminal device confirms that the user wearing the wearable device is not the owner of the terminal device.
10. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: The terminal device receives a first change notification from the wearable device, where the first change notification is used to indicate that the wearable device is changed from a worn state to a not worn state; The terminal device stops determining whether the user wearing the wearable device is the owner of the terminal device.
11. A terminal device, characterized in that: The terminal device comprises: a processor and a memory, wherein the processor is coupled to the memory; the memory is used to store computer program code; the computer program code comprises computer instructions, and when the processor executes the above-mentioned computer instructions, the terminal device executes the method according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 10.
