Processing methods, unlocking methods, and electronic devices
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-28
- Publication Date
- 2026-08-14
AI Technical Summary
[0002]电子设备在锁定状态下需用户手动输入密码或进行生物特征识别才能解锁,操作繁琐,且当用户不便直接操作设备时无法完成解锁,影响用户体验
Smart Images

Figure CN122571561A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of terminal technology, and in particular to a processing method, an unlocking method, and an electronic device. Background Technology
[0002] Electronic devices require users to manually enter a password or perform biometric identification to unlock when locked, which is cumbersome and cannot be unlocked when users are unable to operate the device directly, thus affecting the user experience. Summary of the Invention
[0003] In view of this, the present disclosure provides a processing method, an unlocking method, and an electronic device.
[0004] According to a first aspect of this disclosure, a processing method is provided, applied to a first electronic device, the method comprising: if the first electronic device is in a locked state, in response to detecting that the positional relationship between the second electronic device and the first electronic device satisfies a first condition, generating a first instruction, sending the first instruction to the second electronic device, the first instruction being used to acquire basic information and motion information of the second electronic device; receiving second basic information and motion information from the second electronic device, and if the first basic information of the first electronic device and the second basic information of the second electronic device are the same, and the motion information satisfies a second condition, triggering the unlocking of the first electronic device.
[0005] According to a second aspect of this disclosure, an unlocking method is provided, applied to a first electronic device, the method comprising: in response to receiving a target signal, if the first electronic device is in a locked state, establishing a secure communication link between the first electronic device and a second electronic device through a target operation; receiving first verification information from the second electronic device through the secure communication link; acquiring an image of the first verification information in a display area of the second electronic device through a first image acquisition device of the first electronic device to obtain second verification information; and unlocking the first electronic device if the second verification information matches the first verification information.
[0006] According to embodiments of this disclosure, the method further includes: in response to receiving a first instruction message, acquiring image information of the first location of the environment where the first electronic device is currently located through a first image acquisition device of the first electronic device to obtain a first image; and sending the first image to a second electronic device through a secure communication link.
[0007] According to embodiments of this disclosure, the method further includes: generating second indication information in response to successful unlocking of the first electronic device; and sending the second indication information to the second electronic device via a secure communication link.
[0008] According to a third aspect of this disclosure, an unlocking method is provided, applied to a second electronic device, the method comprising: in response to establishing a secure communication link between a first electronic device and a second electronic device through a target operation; sending first verification information to the first electronic device through the secure communication link; and displaying the first verification information in a display area of the second electronic device.
[0009] According to an embodiment of this disclosure, sending first verification information to a first electronic device via a secure communication link includes: generating first verification information if the similarity between the current environment of the first electronic device and the second electronic device is greater than a target threshold; sending the first verification information to the first electronic device via the secure communication link; and displaying the first verification information in the display area of the second electronic device.
[0010] According to embodiments of this disclosure, the method further includes: generating first indication information and sending the first indication information to a first electronic device via a secure communication link; receiving a first image via the secure communication link, the first image being acquired by a first image acquisition device of the first electronic device in a first orientation of the environment in which the first electronic device is currently located; acquiring a second image, the second image being acquired by a second image acquisition device of the second electronic device in a second orientation of the environment in which the second electronic device is currently located, wherein the framing range of the first image in the first orientation and the framing range of the second image in the second orientation at least partially overlap; and if the first image and the second image match, determining that the similarity between the environments in which the first electronic device and the second electronic device are currently located is greater than a target threshold.
[0011] According to embodiments of this disclosure, the method further includes: determining that the first image matches the second image if multiple first features in the first image are identical and multiple second features in the second image are identical.
[0012] According to embodiments of this disclosure, the method further includes: if the similarity between the current environments of the first electronic device and the second electronic device is greater than a target threshold, triggering at least one unlocking method; and if the unlocking information for the at least one unlocking method is correct, generating first verification information.
[0013] According to embodiments of this disclosure, the method further includes: if the unlocking information for at least one unlocking method is incorrect, prohibiting the transmission of first verification information to the first electronic device via a secure communication link, and prohibiting the display of the first verification information in the display area of the second electronic device.
[0014] According to embodiments of this disclosure, the method further includes: in response to receiving second instruction information, displaying a target interface in the display area of the second electronic device, wherein the target interface is the content displayed before the second electronic device establishes a secure communication link with the first electronic device.
[0015] A fourth aspect of this disclosure provides an electronic device, comprising: a processor configured to, if a first electronic device is in a locked state, generate a first instruction in response to detecting that the positional relationship between a second electronic device and the first electronic device satisfies a first condition, and send the first instruction to the second electronic device, the first instruction being used to acquire basic information and motion information of the second electronic device; receive second basic information and motion information from the second electronic device; and, if the first basic information of the first electronic device and the second basic information of the second electronic device are the same, and the motion information satisfies a second condition, trigger the unlocking of the first electronic device.
[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0017] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0018] Figure 1 This diagram illustrates an application scenario of the processing method and unlocking method according to embodiments of the present disclosure.
[0019] Figure 2 A flowchart illustrating a processing method according to an embodiment of the present disclosure is shown, wherein the method is applied to a first electronic device;
[0020] Figure 3 A flowchart illustrating an unlocking method according to an embodiment of the present disclosure is shown, wherein the method is applied to a first electronic device;
[0021] Figure 4 A schematic diagram illustrating an unlocking method according to an embodiment of the present disclosure is shown.
[0022] Figure 5 A flowchart illustrating an unlocking method according to an embodiment of the present disclosure is shown, wherein the method is applied to a second electronic device;
[0023] Figure 6 A schematic diagram of an unlocking method according to an embodiment of the present disclosure is shown, wherein the method is applied to a second electronic device.
[0024] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing a processing / unlocking method according to an embodiment of the present disclosure. Detailed Implementation
[0025] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0026] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0027] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0028] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0029] This disclosure provides a processing method, an unlocking method, and an electronic device. Before introducing the technical solutions provided by this disclosure, the relevant technologies involved in this disclosure will be described first.
[0030] Electronic devices require users to manually enter a password or perform biometric identification to unlock when locked, which is cumbersome and cannot be unlocked when users are unable to operate the device directly, thus affecting the user experience.
[0031] In one example, some solutions for wearable devices integrate fingerprint sensors for biometric authentication. However, when users are busy, they cannot use the fingerprint sensor for authentication, making it difficult to unlock the wearable device and impacting the user experience. Furthermore, integrating fingerprint sensors into wearable devices significantly increases production costs, hindering product adoption and market competitiveness; it also requires space for placement, posing challenges to device thinning and industrial design.
[0032] Figure 1The diagram illustrates an application scenario of the processing method according to an embodiment of the present disclosure.
[0033] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first electronic device 110 and a second electronic device 120.
[0034] The processing and unlocking methods provided in this disclosure can be applied to any electronic device, such as mobile phones, wearable devices, AR (augmented reality) / VR (virtual reality) devices, tablets, laptops, UMPCs (ultra-mobile personal computers), netbooks, and PDAs (personal digital assistants), and this disclosure does not impose any limitations on them.
[0035] like Figure 1 As shown, the first electronic device in this embodiment can be a wearable device 110. The following detailed description uses the wearable device 110 as an example. It should be understood that the illustrated wearable device 110 is merely an example of an electronic device, and the wearable device 110 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
[0036] like Figure 1 As shown, the second electronic device in this embodiment of the present disclosure can be a mobile phone 120. The following detailed description uses a mobile phone 120 as an example. It should be understood that the illustrated mobile phone 120 is merely an example of an electronic device, and the mobile phone 120 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
[0037] The following will be based on Figure 1 The described scene, through Figure 2 The processing method of the embodiments of this disclosure will be described in detail.
[0038] The processing method of this disclosure embodiment is applied to a first electronic device.
[0039] For example, the first electronic device may be a device in a locked state, and the first electronic device may be a different device from the second electronic device. For instance, the first electronic device may be a wearable device, such as smart glasses, a smartwatch, etc.
[0040] The second electronic device can be a device that can be paired with the first electronic device. For example, the second electronic device can be a handheld mobile device, such as a mobile phone or tablet.
[0041] Figure 2 A flowchart illustrating a processing method according to an embodiment of the present disclosure is shown schematically.
[0042] like Figure 2 As shown, the processing method of this embodiment includes operations S210 to S220.
[0043] In operation S210, if the first electronic device is in a locked state, in response to detecting that the positional relationship between the second electronic device and the first electronic device meets the first condition, a first instruction is generated and sent to the second electronic device. The first instruction is used to obtain the basic information and motion information of the second electronic device.
[0044] In operation S220, second basic information and motion information are received from the second electronic device. If the first basic information of the first electronic device and the second basic information of the second electronic device are the same, and the motion information meets the second condition, the first electronic device is triggered to unlock.
[0045] For example, a locked state can be a state in which a first electronic device is currently unable to use its functions normally by an unauthorized user. This state can take various forms, such as screen lock, system login lock, or application lock. For instance, a user's smart glasses may enter a locked state due to inactivity for a period of time, rendering them unusable and requiring iris scanning or other methods to unlock.
[0046] The positional relationship can be the spatial relative relationship between the first electronic device and the second electronic device. The first condition can be a specific limitation on this positional relationship. For example, the second electronic device is located directly in front of the first electronic device, and the distance between them is within a preset range (such as less than 30cm). The smart glasses can detect whether a second electronic device meeting the condition is present directly in front of them through a front-facing infrared distance sensor, camera image recognition, or UWB ranging.
[0047] When the location relationship meets the first condition, the first electronic device automatically generates a control command (i.e., the first command) and sends it to the second electronic device via wireless communication (such as Bluetooth, Wi-Fi Direct, UWB, etc.). The first command can be a command message requesting data, used to actively initiate an information collection request to the second electronic device.
[0048] Basic information can refer to the static identification information of a second electronic device, used to verify the device's identity. For example, basic information may include unique identifiers such as the device's MAC address, serial number, name, or user account information.
[0049] Motion information can refer to dynamic motion data collected in real time by a second electronic device through its built-in sensors. For example, motion information may include accelerometer data, gyroscope data, step frequency data, and attitude angle data.
[0050] The first basic information can be reference information related to authorized paired devices that is pre-stored locally on the first electronic device. The first electronic device compares the received second basic information with the locally stored first basic information. Only if the two match completely can it be determined that the currently approaching second electronic device is an authorized and legitimate device, and not some other unfamiliar device.
[0051] The second condition can be a constraint rule on motion information, used to determine whether the current motion state of the second electronic device meets expectations. The second condition verifies that the user of the second electronic device is performing a specific action with an authorized intent; for example, whether the second electronic device is currently being actively held by the user and is in a specific posture. For instance, the combined acceleration of the phone exceeds a rest threshold (indicating the phone is being held rather than stationary), and the phone's posture angle conforms to the specific range of "vertically facing the eyes."
[0052] If both device authentication and motion status verification pass simultaneously, the first electronic device automatically unlocks, exits the locked state, and returns to normal usability. Throughout the process, the user can trigger the unlocking of the first electronic device with a specific action, achieving seamless, intention-driven automatic unlocking.
[0053] The second condition could be: motion information indicating that the second electronic device is in an active state of motion, rather than being stationary in a certain place; or, the second condition could be that the motion pattern of the second device is highly consistent with the motion pattern detected by the first device (cooperative motion verification).
[0054] In one example, a user wearing smart glasses holds a smartphone. The user brings the smartphone screen close to the lenses of the smart glasses. When the front sensor of the smart glasses detects the phone approximately 15 centimeters in front, the user determines that the positional relationship between the two meets the first condition. The smart glasses then generate a first command and send it to the phone, requesting the phone's user account information and acceleration data. Upon receiving the first command, the phone reads its own identification information and sensor data, packages them into a response message, and sends it back. The smart glasses receive and parse this message, extracting the phone's user account information (second basic information) and acceleration data (motion information). The user account information on the phone is compared with the user account information on the smart glasses (first basic information). They match perfectly, passing the first verification. Simultaneously, the phone's acceleration data indicates that it is being held and experiencing natural shaking, meeting the second condition and passing the second verification. Once the smart glasses confirm that the user account information on the phone matches the user account information on the smart glasses and that the phone is currently being held in motion, they trigger the unlocking operation.
[0055] Understandably, by using the positional relationship between devices as a trigger condition when the first electronic device is locked, the basic information and motion information of the second electronic device are automatically obtained. Based on the identity information matching, a secondary verification is performed by combining the motion information. Unlocking is only triggered when both conditions are met. Thus, automated unlocking based on device collaboration is achieved without requiring the user to perform traditional password input or biometric collection operations. This significantly improves the convenience and efficiency of the unlocking operation, and effectively avoids accidental triggering or unauthorized unlocking by unauthorized devices through the intent verification of motion information. This optimizes the user experience while ensuring security.
[0056] The following will be based on Figure 1 The described scene, through Figures 3-4 The processing method of the embodiments of this disclosure will be described in detail.
[0057] The unlocking method of this disclosure is applied to a first electronic device.
[0058] For example, the first electronic device can be a device with image acquisition capabilities and a locked state, such as smart glasses or a head-mounted display device. The second electronic device can be a mobile terminal capable of communicating with the first electronic device and having display capabilities, such as a mobile phone or a tablet computer.
[0059] Figure 3 A flowchart illustrating an unlocking method according to an embodiment of the present disclosure is shown, wherein the method is applied to a first electronic device. Figure 4 A schematic diagram of an unlocking method according to an embodiment of the present disclosure is shown.
[0060] like Figure 3 As shown, the processing method of this embodiment includes operations S310 to S340.
[0061] In operation S310, in response to receiving the target signal, if the first electronic device is in a locked state, a secure communication link is established between the first electronic device and the second electronic device through the target operation.
[0062] During operation of S320, first verification information is received from the second electronic device via a secure communication link.
[0063] In operation S330, the first image acquisition device of the first electronic device acquires an image of the first verification information in the display area of the second electronic device, and obtains the second verification information.
[0064] In operation S340, if the second verification information matches the first verification information, the first electronic device is unlocked.
[0065] For example, the target signal can be a signal used to trigger the first electronic device to unlock. For instance, the target signal can be a signal triggered by the processing method described above. It can also be a signal triggered by a specific button in the first electronic device. Alternatively, it can be a specific interaction action detected by the second electronic device. For example, the camera of the smart glasses detects that the user has picked up their phone and placed it directly in front of the smart glasses.
[0066] The target operation can be a sequence of interactive operations required to establish a secure authentication communication channel between the first electronic device and the second electronic device. For example, the target operation may include operations such as tap-to-tap, Bluetooth pairing, scanning a QR code, and acoustic pairing.
[0067] A secure communication link can be a communication channel established between a first electronic device and a second electronic device, equipped with authentication and data encryption protection mechanisms. For example, a secure communication link can be an encrypted channel established based on the Bluetooth secure connection protocol, a point-to-point encrypted communication link established based on the Wi-Fi Direct protocol, or a short-range encrypted communication link established based on the Near Field Communication (NFC) protocol, etc.
[0068] The first image acquisition device may be a camera or image sensor integrated on the first electronic device for acquiring external image information. For example, the first image acquisition device may be a front-facing camera of smart glasses, with the camera's acquisition direction facing directly in front of the user. When the user holds the second electronic device in their hand directly in front of the first electronic device, the first image acquisition device can acquire images of the display area of the second electronic device.
[0069] The display area can be an interface area used by a second electronic device to present visual content. For example, the display area can be the touch screen of a mobile phone, where the second electronic device presents the first verification information in a visual form for the first image acquisition device to collect and recognize.
[0070] The second verification information can be verification data extracted from the image after the first image acquisition device acquires the image of the display area of the second electronic device through image recognition processing. For example, if the first verification information is presented on the screen of the second electronic device in the form of a digital verification code, then the second verification information is the corresponding digital string parsed from the acquired image using optical character recognition (OCR) technology; if the first verification information is presented in the form of a QR code, then the second verification information is the original encoded data restored from the acquired image using a QR code decoding algorithm.
[0071] The process involves comparing the second verification information with the first verification information and determining whether they match. If the second verification information matches the first verification information, the matching is considered successful, the first electronic device is unlocked, and its normal function is restored; if the two do not match, the matching is considered unsuccessful, and the first electronic device remains locked.
[0072] In one example, after the device identity information and motion state verification described in operations S210-S220 are both successful, the smart glasses have confirmed that the mobile phone approximately 15 cm in front of them is an authorized pairing device and that the phone is in motion, actively held by the user. Based on this, a target signal is generated to trigger the smart glasses to unlock. The smart glasses establish a secure communication link with the mobile phone via a tap, and the mobile phone sends the first verification information to the smart glasses through this link. This first verification information is a six-digit verification code "1234" dynamically generated by the mobile phone, valid for 30 seconds. At the same time, the display area of the mobile phone screen displays the verification code "1234". The front-facing camera of the smart glasses (i.e., the first image acquisition device) automatically captures images of the display area of the mobile phone screen in front of it (see reference). Figure 4 The system extracts the string "1234" from the captured image using optical character recognition technology, which serves as the second verification information. The smart glasses then compare the second verification information "1234" with the first verification information "1234" received in advance through a secure communication link. If the two are completely identical, the smart glasses perform an unlocking operation, exit the locked state, and resume normal operation.
[0073] It is understandable that the secure unlocking and authentication of the first electronic device can be completed through the interaction of verification information between the first electronic device and the second electronic device. On the one hand, this can reduce the integration of unlocking verification sensors in the first electronic device and reduce the production cost of the device; on the other hand, it facilitates the user's unlocking operation of the first electronic device and improves the user experience.
[0074] As described above, the unlocking method of this embodiment may further include the following operations: in response to receiving a first instruction message, acquiring image information of the first location of the environment where the first electronic device is currently located through a first image acquisition device of the first electronic device to obtain a first image; and sending the first image to a second electronic device through a secure communication link.
[0075] For example, the first instruction information may be an image acquisition control command sent from the second electronic device to the first electronic device via a secure communication link.
[0076] The first orientation can be a specific spatial direction or angular range corresponding to the image acquisition in the current environment of the first electronic device. For example, the first orientation can be the horizontal direction directly in front of the first electronic device. The first orientation can be explicitly specified by the orientation parameter carried in the first indication information, or it can be a preset default acquisition direction adopted by the first electronic device when no specific orientation parameter is received.
[0077] The first image acquisition device can be a camera or image sensor integrated into the first electronic device for acquiring images of the external environment. For example, for smart glasses, the first image acquisition device can be a front-facing camera mounted on the front of the frame, oriented in a direction that is basically consistent with the user's normal line of sight, and capable of acquiring images of the environmental scene corresponding to the user's current field of vision.
[0078] The first image may be a scene image obtained by the first image acquisition device after capturing the current environment of the first electronic device in a first orientation. For example, the first image may include environmental visual information such as building facades, sky, and ground scenery within the field of view in that orientation. This visual information constitutes the scene feature content of the first image, which can be used by the second electronic device for subsequent analysis and processing.
[0079] In one example, let's continue with the scenario of unlocking the smart glasses through interaction with a mobile phone. In addition to the verification unlocking via the verification information displayed on the mobile phone, another verification unlocking method is implemented: dual unlocking verification. After a secure communication link is established, the mobile phone sends a first instruction message to the smart glasses via this link. Upon receiving the first instruction message, the smart glasses activate the front-facing camera (i.e., the first image acquisition device) and captures an image of the surrounding outdoor environment in a horizontal direction. At this time, the outdoor scene corresponding to the front view of the smart glasses includes a white-washed building facade, a blue dome structure, the side outline of buildings, and a clear, cloudless sky. The front-facing camera captures the first image, which fully records the visual content of the outdoor scene. Subsequently, the smart glasses transmit the first image to the mobile phone in encrypted form via the established secure communication link. The mobile phone successfully receives the first image, which will serve as the data basis for subsequent environmental comparison and verification, used for further unlocking verification.
[0080] It is understandable that by using the existing first image acquisition device of the first electronic device to acquire scene images of the current environment, and then transmitting the obtained first image back to the second electronic device via a secure communication link, the unlocking verification between the two devices can be performed without adding any additional hardware, thus further improving the multi-level authentication system based on dual-device collaboration.
[0081] As described above, the unlocking method of this embodiment may further include operations: generating second indication information in response to successful unlocking of the first electronic device; and sending the second indication information to the second electronic device via a secure communication link.
[0082] Exemplarily, successful unlocking may be an event node after the first electronic device completes all preset verification processes, officially exits the locked state, and resumes normal available functions.
[0083] The second indication information may be a status notification sent by the first electronic device to the second electronic device after successful unlocking.
[0084] In one example, continuing with the scenario of the above-mentioned interactive unlocking of smart glasses between smart glasses and a mobile phone for illustration. The smart glasses complete all verification processes, successfully trigger the unlocking operation, officially exit the locked state, and record the event of successful unlocking this time. In response to this event of successful unlocking, the smart glasses immediately generate the second indication information. The smart glasses send the second indication information to the mobile phone via the established Bluetooth secure communication link between the smart glasses and the mobile phone. After the mobile phone successfully receives and decrypts the message, it analyzes the carried unlocking success status identifier, confirms that the smart glasses have been unlocked, and then triggers subsequent linkage processing according to the second indication information, such as automatically closing the verification code display interface on the screen, or pushing a prompt notification of unlocking completion to the user, etc.
[0085] It can be understood that the unlocking result of the first electronic device is synchronously sent to the second electronic device in real time in an active notification manner, enabling the second electronic device to timely perceive the latest status change of the first electronic device and trigger corresponding subsequent linkage processing accordingly, constructing a real-time synchronization mechanism for the unlocking status across devices, and realizing a complete end-to-end closed loop of the dual-device collaborative unlocking system.
[0086] The following will be based on Figure 1 the described scenario, and Figure 5 describe the processing method of the embodiments of the present disclosure in detail.
[0087] The processing method of the embodiments of the present disclosure is applied to the second electronic device.
[0088] Exemplarily, the second electronic device may be a mobile terminal with a display function and capable of communicating with the first electronic device. For example, the second electronic device may be a mobile phone, a tablet computer, etc.
[0089] The first electronic device may be a device with an image acquisition function and a locked state. For example, the first electronic device may be smart glasses, a head-mounted display device, etc.
[0090] Figure 5 Schematically shows a flowchart of the unlocking method according to the embodiments of the present disclosure, which is applied to the second electronic device.
[0091] like Figure 5 As shown, the processing method of this embodiment includes operations S410 to S420.
[0092] In operation S410, a secure communication link is established between the first electronic device and the second electronic device in response to the target operation.
[0093] During operation of S420, first verification information is sent to the first electronic device via a secure communication link, and the first verification information is displayed in the display area of the second electronic device.
[0094] For example, the first verification information can be verification data dynamically generated by the second electronic device for verification and comparison by the first electronic device. For instance, the first verification information can be a dynamically generated numeric verification code, an alphanumeric verification code, or verification data encoded in the form of a QR code. After generating the first verification information, the second electronic device sends it to the first electronic device via a secure communication link and simultaneously displays it on its own display area for the first electronic device's image acquisition device to collect and recognize.
[0095] In one example, let's continue with the scenario of unlocking smart glasses through interaction between the smart glasses and a mobile phone. After the device identity information and motion state verification described in operations S210 to S220 are successful, the smart glasses confirm that the mobile phone located approximately 15 cm in front is an authorized pairing device and that the phone is being actively held by the user. The smart glasses then generate a target signal and initiate a tap request to the mobile phone. Upon receiving this request, the mobile phone responds to the tap operation (i.e., the target operation), completes near-field interaction with the smart glasses, and establishes a secure communication link between them. After the secure communication link is successfully established, the mobile phone dynamically generates a six-digit verification code "1234" with a validity period of 30 seconds as the first verification information. On one hand, the mobile phone sends the first verification information "1234" to the smart glasses through the secure communication link; on the other hand, the mobile phone screen (i.e., the display area) displays the verification code "1234" in the center of the screen for the front-facing camera of the smart glasses to capture the image. The mobile phone simultaneously completes the above two operations, providing the necessary information foundation for the smart glasses to subsequently complete the unlock verification through image capture and information comparison.
[0096] As described above, in operation S420, first verification information is sent to the first electronic device via a secure communication link. In one possible implementation, this operation may further include: if the similarity between the current environments of the first electronic device and the second electronic device is greater than a target threshold, generating first verification information; sending the first verification information to the first electronic device via the secure communication link; and displaying the first verification information in the display area of the second electronic device.
[0097] For example, environmental similarity can be a quantified value calculated by comparing the environmental feature data collected by the first electronic device and the second electronic device respectively, used to measure whether the two devices are currently in the same physical space. For instance, after a secure communication link is established, the second electronic device can request the environmental feature data currently collected by the first electronic device through the link, and compare the received environmental feature data of the first electronic device with the corresponding data it synchronously collected to calculate the environmental similarity; the environmental feature data used to calculate the environmental similarity can be the environmental audio spectrum features collected by the two devices respectively, or the environmental image features collected by the two devices respectively, etc.
[0098] The target threshold can be a pre-set environmental similarity reference value used to determine whether two devices are in the same physical space. For example, the target threshold can be a fixed value determined based on statistical analysis of a large amount of real-world test data, or it can be an adaptive threshold that is dynamically adjusted according to different usage scenarios and security level requirements. If the environmental similarity is greater than the target threshold, it is determined that the first electronic device and the second electronic device are currently in the same physical space, and the generation of the first verification information is allowed; if the environmental similarity is not greater than the target threshold, it is determined that the two devices may not be in the same physical space, the generation of the first verification information is refused, and the current unlocking process is terminated.
[0099] In one example, let's continue with the scenario of unlocking smart glasses through interaction between the smart glasses and the mobile phone. After the secure communication link is established, the mobile phone does not immediately generate a verification code. Instead, it first sends an environmental audio feature collection request to the smart glasses via the secure communication link. The smart glasses sample the audio of the current environment using its own microphone, extracting environmental audio spectrum features with the 100Hz to 8000Hz frequency band as the main component, and transmits this feature data back to the mobile phone via the secure communication link. The mobile phone simultaneously samples the current environmental audio using its own microphone, extracts the corresponding environmental audio spectrum features, calculates the similarity between the two sets of spectrum feature data, and finds that the current environment similarity is 92%. The target threshold is preset to 85%. Since the current environment similarity of 92% is greater than the target threshold of 85%, the mobile phone determines that the smart glasses and itself are currently in the same physical space, and then dynamically generates a six-digit verification code "1234" with a validity period of 30 seconds as the first verification information. Subsequently, the mobile phone sends the first verification information "1234" to the smart glasses through a secure communication link. At the same time, the digital verification code "1234" is displayed in large font in the central display area of the screen for the front-facing camera of the smart glasses to capture the image, providing a complete information foundation for the smart glasses to complete image capture, information comparison and final unlocking operations.
[0100] Understandably, by introducing a judgment on the similarity of the current environment of the first electronic device and the second electronic device before generating the first verification information, it is possible to effectively confirm that the two devices are in the same physical space, thereby improving the security of unlocking verification.
[0101] As described above, the unlocking method of this embodiment may further include the following operations: generating first indication information, sending the first indication information to a first electronic device via a secure communication link, receiving a first image via the secure communication link, the first image being acquired by a first image acquisition device of the first electronic device in a first orientation of the environment in which the first electronic device is currently located; acquiring a second image, the second image being acquired by a second image acquisition device of the second electronic device in a second orientation of the environment in which the second electronic device is currently located, wherein the framing range of the first image in the first orientation and the framing range of the second image in the second orientation at least partially overlap; and if the first image and the second image match, determining that the similarity between the environments in which the first electronic device and the second electronic device are currently located is greater than a target threshold.
[0102] For example, the first instruction information may be a control command generated by the second electronic device to instruct the first electronic device to start the image acquisition device to acquire images of the current environment and transmit the acquisition results back.
[0103] The second image acquisition device can be a camera or image sensor integrated into a second electronic device for acquiring external image information. For example, the second image acquisition device can be the rear camera of a mobile phone, or the front camera of a mobile phone, etc.
[0104] The second orientation can be the direction in which the second image acquisition device of the second electronic device faces when acquiring the second image. For example, the second orientation can be a direction directly in front of the second image acquisition device, in the same direction as the first image acquisition device, so that the scene content presented by the second image and the scene content presented by the first image spatially overlap at least partially, to ensure that the two images contain a common scene area that can be compared; it can also be other orientations that have a certain angular deviation from the first orientation but still allow the framing range of the two images to overlap.
[0105] Matching the first and second images can be a process of comparing the scene content in the two images through image feature extraction and similarity calculation to determine whether they present the same or highly similar environmental scenes. For example, local invariant features can be extracted from the first and second images respectively, and the feature point matching score between the two images can be calculated. If the matching score exceeds a preset matching threshold, the two images are determined to match. Alternatively, a scene semantic feature vector can be extracted from the two images respectively using an image scene semantic feature extraction model, and the cosine similarity between the two vectors can be calculated. If the similarity exceeds a preset value, the two images are determined to match, and so on. If the first and second images match, it is determined that the similarity of the current environment of the first and second electronic devices is greater than the target threshold, and the generation of the first verification information is allowed. If the first and second images do not match, it is determined that the similarity of the current environment of the two devices is not greater than the target threshold, and the current unlocking process is terminated.
[0106] In one example, let's continue with the scenario of unlocking the smart glasses through interaction between the smart glasses and the mobile phone. After the secure communication link is established, the mobile phone generates a first instruction message and sends it to the smart glasses via the secure communication link. Upon receiving the first instruction message, the smart glasses activate the front-facing camera (i.e., the first image acquisition device) to capture images of the current indoor environment, obtaining a first image. The first image presents the indoor environment directly in front of the user, including elements such as a desk, bookshelves, windows, and natural light from outside. The smart glasses then encrypt and transmit the first image back to the mobile phone via the secure communication link. Simultaneously, the mobile phone activates the rear-facing camera (i.e., the second image acquisition device), pointing the lens directly in front (i.e., the second direction) in the same direction as the front-facing camera of the smart glasses, to capture images of the current indoor environment, obtaining a second image. The second image also presents elements such as a portion of the desk, the lower half of the bookshelf, and the window, partially overlapping the first image in the area directly in front. The phone extracts feature points from the first and second images respectively. The feature point matching calculation yields a score of 91, exceeding the preset matching threshold of 80. Therefore, the first and second images are determined to match. This indicates that the similarity between the smart glasses and the phone's current environment is greater than the target threshold. The phone then dynamically generates a six-digit verification code "1234" with a validity period of 30 seconds as the first verification information. This first verification information "1234" is sent to the smart glasses via a secure communication link. The smart glasses record this as the second verification information and simultaneously display the verification code "1234" in large font in the center of the screen. The smart glasses' front-facing camera captures the image and identifies the first verification information "1234" displayed on the phone. The first and second verification information are compared; if they match, the smart glasses are unlocked.
[0107] As described above, the unlocking method of this embodiment may further include the operation of determining that the first image matches the second image if multiple first features in the first image and multiple second features in the second image are the same.
[0108] For example, the first feature may be feature data extracted from the first image that can characterize the visual attributes of a specific region or element within the first image.
[0109] The second feature can be feature data extracted from the second image that corresponds to the first feature type. It is used to compare with multiple first features in the first image one by one to determine whether the two images present the same real-world scene content.
[0110] The phrase "multiple first features are the same as multiple second features" can mean that, during the process of comparing multiple first features extracted from the first image with multiple second features extracted from the second image one by one, the number of feature pairs confirmed to meet the same condition reaches a preset threshold.
[0111] In one example, let's continue with the scenario of unlocking the smart glasses via interaction with a mobile phone. The mobile phone performs keypoint detection on the first image, extracting 18 first features. Each first feature corresponds to a visual element in a different location within the indoor scene, including a desk (first feature 1), a bookshelf (first feature 2), a window frame (first feature 3), books on the upper shelf of the bookshelf (first feature 4), and a water glass (first feature 5). Simultaneously, the mobile phone performs keypoint detection on the second image, extracting 16 second features, including the same elements: a desk (first feature 1), a bookshelf (first feature 2), a window frame (first feature 3), books on the upper shelf of the bookshelf (first feature 4), and a water glass (first feature 5). The mobile phone compares the 18 first features with the 16 second features, ultimately confirming that 7 pairs of features meet the same conditions, exceeding the preset threshold of 5 pairs. Therefore, the first image and the second image are determined to match, and the similarity between the smart glasses and the mobile phone's current environment is greater than the target threshold. The phone then dynamically generates a six-digit verification code "1234" valid for 30 seconds as the first verification information. It then continues with operation S620, sending the first verification information "1234" to the smart glasses via a secure communication link. Simultaneously, the verification code "1234" is displayed in large font in the center of the screen. The smart glasses' front-facing camera captures the image and identifies the first verification information "1234" displayed on the phone. The first verification information is compared with the second verification information; if they match, the smart glasses are unlocked.
[0112] As described above, the unlocking method of this embodiment may further include the following operations: if the similarity between the current environment of the first electronic device and the second electronic device is greater than a target threshold, trigger at least one unlocking method; if the unlocking information for at least one unlocking method is correct, generate first verification information.
[0113] For example, the unlocking method can be an identity authentication means used by the second electronic device to verify whether the current holder is authorized to operate. For instance, the unlocking method may include fingerprint recognition, facial recognition, numeric password input, pattern unlocking, etc. Triggering at least one unlocking method may involve the second electronic device sending an identity verification request to the current holder after the environmental similarity condition is met, requiring the holder to provide corresponding identity credentials to complete the authorization verification.
[0114] Unlock information can be the identity credential data provided by the operator when responding to an unlock request. For example, if the unlock method is fingerprint recognition, the unlock information is the fingerprint feature data collected after the operator presses the sensor; if the unlock method is numeric password input, the unlock information is the numeric string entered by the operator.
[0115] In one example, let's continue with the scenario of unlocking smart glasses through interaction between the smart glasses and the phone. Before generating and sending the first verification information, the phone first captures a second image of its current environment using its camera. Simultaneously, the smart glasses capture a first image of its current environment using its camera and send it to the phone. The phone extracts features from the first and second images. If seven features are identical in both images, the similarity score between the first and second electronic devices is determined to be 0.96, which is higher than the preset target threshold of 0.80. This indicates that the phone and smart glasses are in the same physical environment, and the environmental conditions are met. The phone then triggers its fingerprint recognition unlocking method, initiating a fingerprint verification request to the user. The user presses their right thumb against the phone's fingerprint sensor. The phone captures the corresponding fingerprint feature data as unlocking information and compares it with the pre-stored authorized fingerprint template. If they match perfectly, the unlocking information is correct, and identity verification is successful. The phone then dynamically generates a unique six-digit verification code "1234" for this session as the first verification information. This verification code is sent to the smart glasses via a secure communication link, and "1234" is simultaneously displayed on the phone screen for the smart glasses' front-facing camera to capture the image. This allows for subsequent image recognition and comparison verification, ultimately triggering the smart glasses to unlock.
[0116] As described above, the unlocking method of this embodiment may further include the following operations: if the unlocking information for at least one unlocking method is incorrect, the first verification information shall be prevented from being sent to the first electronic device through the secure communication link, and the first verification information shall be prevented from being displayed in the display area of the second electronic device.
[0117] For example, an unlocking information error can occur when the identity credential data provided by the operator in response to an unlocking request does not match the authorization credential pre-stored on the second electronic device. Specifically, if the unlocking method is fingerprint recognition, an unlocking information error means that the collected fingerprint feature data does not match the pre-stored authorized fingerprint template; if the unlocking method is numeric password input, an unlocking information error means that the numeric string entered by the operator does not match the device's preset password; and if the unlocking method is facial recognition, an unlocking information error means that the collected facial feature data does not match the pre-stored authorized facial template.
[0118] In one example, let's continue with the scenario of unlocking smart glasses through interaction between the smart glasses and the phone. The environmental similarity score between the phone and the smart glasses reaches 0.96, exceeding the preset target threshold of 0.80. After the phone triggers fingerprint recognition to unlock, another person picks up the phone and presses their left index finger against the fingerprint sensor. The phone collects the corresponding fingerprint feature data as unlock information and compares it with the pre-stored authorized fingerprint template. Finding a mismatch, the phone determines the unlock information is incorrect, and identity verification fails. The phone then simultaneously triggers dual-path blocking measures: firstly, it prohibits sending the first verification information to the smart glasses through the established secure communication link, preventing the smart glasses from obtaining any verification credentials for this session via the data channel; secondly, it prohibits displaying the first verification information on the phone screen. Even if the smart glasses' front-facing camera continuously captures images of the phone screen, the captured images do not contain any valid verification content, making it impossible to extract the second verification information for unlocking comparison. With both prohibitions in effect, the smart glasses were unable to complete the subsequent verification information comparison process due to the complete blocking of both their data and visual acquisition channels, remaining locked in the same state. This unauthorized unlocking request was completely blocked.
[0119] As described above, the unlocking method of this embodiment may further include the operation of: in response to receiving a second instruction message, displaying a target interface in the display area of the second electronic device, wherein the target interface is the content displayed before the second electronic device and the first electronic device establish a secure communication link.
[0120] For example, the second indication information may be process termination notification data sent by the first electronic device to the second electronic device via a secure communication link after completing the unlock authentication. For instance, the second indication information may include a status flag indicating that the current unlock process has been successfully terminated, a unique identifier for this session, and a confirmation field indicating that the first electronic device has successfully completed the unlock authentication. Upon receiving the second indication information, the second electronic device parses the status flag it carries, confirms that the current unlock process has been normally terminated, and then triggers a content restoration operation in the display area.
[0121] The target interface can be the content displayed in the display area of the second electronic device before a secure communication link is established with the first electronic device. For example, if the second electronic device is running a map application before the secure communication link is established, the target interface is the corresponding map application interface.
[0122] In one example, let's continue with the scenario of unlocking smart glasses through interaction between the smart glasses and the phone. Before the phone generates a six-digit verification code "1234", sends it to the smart glasses via a secure communication link, and displays the code on the phone screen, the phone screen is currently running a map navigation application. When establishing the secure communication link, the phone takes a snapshot of the current map navigation interface and then enters the verification code display phase, switching from the map navigation interface to a temporary verification interface displaying the verification code "1234". The smart glasses' front-facing camera captures the "1234" displayed on the phone screen and compares it as the second verification information with the first verification information "1234" received via the secure communication link. If they match perfectly, the smart glasses unlock, and then send a second indication message containing a successful unlock status marker and a session identifier to the phone via the secure communication link. After receiving the second instruction, the phone parses the unlock success status marker to confirm that the unlocking process has been terminated normally. Then, based on the previously recorded display status snapshot, it restores the target interface in the display area of the phone screen. The phone screen seamlessly switches from the temporary verification interface displaying the verification code "1234" back to the normal display state of the map navigation application.
[0123] In some embodiments, the unlocking method of this embodiment further includes the following operations: obtaining first context information of a first electronic device and second context information of a second electronic device, wherein the context information represents information about environmental detection of the electronic device; determining a first context feature value based on the first context information and determining a second context feature value based on the second context information; and determining that the similarity between the current environment of the first electronic device and the second electronic device is greater than a target threshold if the first context feature value and the second context feature value match.
[0124] The context information includes at least one of the following: image information, motion information, location information, and time information. It should be noted that the context information here may include historical context information and / or current context information.
[0125] In some embodiments, the method further includes: determining a target score based on a first context feature value, a second context feature value, and a one-time random number, wherein the target score characterizes the consistency of context information between electronic devices; and determining that the first context feature value and the second context feature value match if the target score is greater than or equal to a preset threshold.
[0126] For example, refer to Figure 6 Using the contextual information of the electronic device's environment as a dynamic authentication factor, the mobile phone and smart glasses are required to independently collect and compare the following information within a short period of time:
[0127] (1) Visual information: Image / video features captured by their respective cameras (such as SIFT, depth features or scene hashes).
[0128] (2) Motion information: swaying patterns, gait, and relative motion sensed by IMU (accelerometer, gyroscope).
[0129] (3) Spatial information: GPS location, Wi-Fi / BLE beacon fingerprint, barometer altitude.
[0130] (4) Time information: synchronized timestamps and event sequences.
[0131] Each electronic device extracts context features corresponding to its context information, exchanges context features (instead of raw data) through a secure channel, calculates a consistency score, and is only considered a "legitimate bound device in the same physical environment" when the score exceeds a dynamic threshold, allowing subsequent key negotiation or sensitive operations.
[0132] In one example, taking smart glasses as the first electronic device and a mobile phone as the second electronic device, Step 1: Environmental context acquisition triggering: The mobile phone and the glasses send a "context information acquisition request" to each other, carrying a random number (Nonce) to prevent replay. Step 2: Environmental information feature extraction:
[0133] equipment Types of information collected Feature extraction methods cell phone Rear camera preview, GPS, IMU, time Image feature point / scene hash, location coordinates, acceleration sequence, timestamp Glasses Front / ambient camera, IMU, time Same as above (due to the difference in perspective, perspective-invariant features must be used).
[0134] Note that the image may wobble on both devices, so cross-view consistency verification can be used—even if the camera angles of the phone and glasses are different, view-independent scene feature vectors can still be extracted through deep learning models (such as Siamese networks) and cosine similarity can be calculated.
[0135] Step 3: Feature Generation and Exchange: Each end compresses the extracted feature vector into a fixed-length environmental context feature (e.g., through hashing or quantization), encrypts it with a temporary session key, and sends it to the other end. Simultaneously, it sends the timestamp and nonce of feature acquisition to ensure uniqueness.
[0136] Step 4: Consistency Score Calculation: After receiving the contextual features from the glasses, the mobile phone decrypts them and calculates the matching degree of different dimensions of the context:
[0137] (1) Visual consistency: Feature vector similarity (0~1)
[0138] (2) Motion consistency: Distance fluctuation normalization of acceleration sequence
[0139] (3) Spatial consistency: GPS distance difference (<threshold), Wi-Fi fingerprint Jaccard similarity
[0140] (4) Temporal consistency: Timestamp deviation < Δt
[0141] The calculation formula for the target score is as follows:
[0142] S = Wv * Sv + Wm * Sm + Ws * Ss + Wt * St
[0143] Where, Wv represents the weight of visual features, Sv represents visual features, Wm represents the weight of motion features, Sm represents motion features, Ws represents the weight of spatial features, Ss represents spatial features, Wt represents the weight of temporal features, and St represents temporal features.
[0144] It should be noted that the weights can be dynamically adjusted according to the scenario (such as increasing the weights of space and features in an indoor scenario).
[0145] Step 5: Authentication decision and factor condition correction: Assume that the predefined threshold T1 is 0.75 and T0 is 0.5. If S ≥ T1: Full trust, allowing subsequent unlocking of the glasses; if T0 ≤ S < T1: Degraded trust, only allowing basic operations (such as displaying some sensitive notifications on the glasses but not unlocking), and requiring the user to confirm additionally (such as clicking the button on the glasses frame); if S < T0: Reject authentication, disconnect or require re - acquisition. Dynamic factor condition: Adaptively adjust T1, T0 and each weight (such as Wv, Wm, Ws, Wt) according to the historical authentication success rate and the environmental change rate. For example, increase the visual weight of picture preview in a stable indoor scenario and increase the motion weight in a mobile scenario.
[0146] It can be understood that the real - time environmental information (visual, position, motion) jointly sensed by the mobile phone and the glasses is used as "consistency evidence", and a secure connection is only allowed to be established or maintained when the context highly matches, thereby correcting the static conditions of the authentication factors. Through the secure verification of multi - dimensional information, on the one hand, it resists replay attacks: Each authentication uses a one - time random number and a timestamp, and the features are only valid once. On the other hand, it resists man - in - the - middle attacks. Even if the attacker intercepts the features, they cannot forge the real - time context information of the other end (because the distance changes caused by motion and visual synchronization are difficult to forge). Moreover, for privacy protection, only the feature fingerprints are exchanged instead of the original images or positions, and the fingerprints are irreversible.
[0147] Figure 7 A block diagram of an electronic device suitable for implementing the processing / unlocking method according to an embodiment of the present disclosure is schematically shown.
[0148] Such as Figure 7As shown, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage portion 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0149] RAM 503 stores various programs and data required for the operation of electronic device 500. Processor 501, ROM 502, and RAM 503 are interconnected via bus 504. Processor 501 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 502 and / or RAM 503. It should be noted that programs may also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
[0150] According to embodiments of this disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to a bus 504. The electronic device 500 may also include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 510 as needed so that computer programs read from it can be installed into the storage section 508 as needed.
[0151] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0152] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 502 and / or RAM 503 and / or one or more memories other than ROM 502 and RAM 503 described above.
[0153] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the processing / unlocking methods provided in the embodiments of this disclosure.
[0154] When the computer program is executed by the processor 501, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0155] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 509, and / or installed from a removable medium 511. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0156] In such an embodiment, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by processor 501, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0157] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0159] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0160] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A processing method applied to a first electronic device, the method comprising: If the first electronic device is in a locked state, in response to detecting that the positional relationship between the second electronic device and the first electronic device meets the first condition, a first instruction is generated and sent to the second electronic device. The first instruction is used to obtain the basic information and motion information of the second electronic device. The system receives second basic information and motion information from the second electronic device. If the first basic information of the first electronic device and the second basic information of the second electronic device are the same, and the motion information satisfies the second condition, the system triggers the unlocking of the first electronic device.
2. An unlocking method applied to a first electronic device, the method comprising: In response to receiving a target signal, if the first electronic device is in a locked state, a secure communication link is established between the first electronic device and the second electronic device through the target operation; Receive first verification information from the second electronic device through the secure communication link; The first image acquisition device of the first electronic device acquires an image of the first verification information in the display area of the second electronic device to obtain the second verification information; If the second verification information matches the first verification information, the first electronic device is unlocked.
3. The method according to claim 2, further comprising: In response to receiving the first instruction information, the first electronic device acquires image information of the first location of the current environment of the first electronic device through the first image acquisition device of the first electronic device to obtain the first image; The first image is transmitted to the second electronic device via the secure communication link.
4. The method according to claim 1, further comprising: In response to the successful unlocking of the first electronic device, a second indication message is generated; The second indication information is sent to the second electronic device via the secure communication link.
5. An unlocking method applied to a second electronic device, the method comprising: In response to establishing a secure communication link between the first electronic device and the second electronic device through a target operation; The first verification information is sent to the first electronic device through the secure communication link, and the first verification information is displayed in the display area of the second electronic device.
6. The method according to claim 5, wherein sending first verification information to the first electronic device via the secure communication link comprises: If the similarity between the current environment of the first electronic device and the second electronic device is greater than the target threshold, the first verification information is generated; The first verification information is sent to the first electronic device through the secure communication link, and the first verification information is displayed in the display area of the second electronic device.
7. The method according to claim 6, further comprising: Generate first indication information and send the first indication information to the first electronic device through the secure communication link; The first image is received through the secure communication link. The first image is acquired by the first image acquisition device of the first electronic device in the first position of the current environment of the first electronic device. Acquire a second image, which is acquired by the second image acquisition device of the second electronic device in a second orientation of the current environment of the second electronic device. The framing range of the first image in the first orientation and the framing range of the second image in the second orientation at least partially overlap. If the first image matches the second image, it is determined that the similarity between the current environment of the first electronic device and the second electronic device is greater than the target threshold.
8. The method according to claim 7, further comprising: If multiple first features in the first image are the same as multiple second features in the second image, then the first image is determined to match the second image.
9. The method according to claim 6, further comprising: If the similarity of the current environment of the first electronic device and the second electronic device is greater than a target threshold, at least one unlocking method is triggered; If the unlocking information for at least one unlocking method is correct, first verification information is generated.
10. An electronic device, comprising: The processor is configured to, if the first electronic device is in a locked state, generate a first instruction in response to detecting that the positional relationship between the second electronic device and the first electronic device satisfies a first condition, and send the first instruction to the second electronic device, wherein the first instruction is used to obtain basic information and motion information of the second electronic device; The system receives second basic information and motion information from the second electronic device. If the first basic information of the first electronic device and the second basic information of the second electronic device are the same, and the motion information satisfies the second condition, the system triggers the unlocking of the first electronic device.