Screen unlocking method and device, storage medium and electronic device
Patent Information
- Application Number
- CN202211659323.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-12-22
AI Technical Summary
[0004]然而,发明人在研究中发现,当使用同一个指纹采集组件实现多项功能时,容易造成多项功能冲突导致其中一项或者某几项功能启动失败
[0018]当检测到针对指纹采集组件的触控信息时,通过获取指纹服务指示的指纹状态,能够确定用户基于当前的触控信息想要执行何种操作。
Smart Images

Figure CN115828210B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of human-computer interaction technology, and in particular to a screen unlocking method, device, storage medium, and electronic device. Background Technology
[0002] With the application and development of smart terminals, manufacturers have gradually begun to use fingerprint recognition technology to encrypt and decrypt smart terminals, thereby protecting various types of information stored by users on smart terminals.
[0003] In the existing technology, in order to provide users with more services through smart terminals, manufacturers provide a technology that enables other data collection functions based on the original fingerprint collection component in the smart terminal, thereby providing users with more service functions. For example, the heart rate collection function can be implemented based on the fingerprint collection component, thereby providing users with the user's current heart rate and heart rate-related body data.
[0004] However, the inventors discovered during their research that when the same fingerprint acquisition component is used to implement multiple functions, it can easily cause conflicts between the functions, resulting in one or more functions failing to start. Summary of the Invention
[0005] In view of the above, this disclosure provides a screen unlocking method, apparatus, storage medium, and electronic device.
[0006] According to a first aspect of the present disclosure, a screen unlocking method is provided, applied to a smart terminal, the method comprising:
[0007] When touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service is obtained;
[0008] When there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state, the screen unlock operation is performed based on the collected fingerprint.
[0009] According to a second aspect of the present disclosure, a screen unlocking device is provided, the device being applied to a smart terminal, the device comprising:
[0010] The acquisition module is used to acquire the fingerprint status indicated by the fingerprint service when touch information is detected for the fingerprint acquisition component.
[0011] The unlocking module is used to perform a screen unlocking operation based on the collected fingerprint when there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state.
[0012] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0013] processor;
[0014] Memory used to store processor-executable instructions;
[0015] The processor is configured to implement the steps of any of the screen unlocking methods of the first aspect by running the executable instructions.
[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the methods described in the first aspect above.
[0017] The technical solutions provided in this disclosure may have the following beneficial effects:
[0018] When touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service can be obtained to determine what operation the user wants to perform based on the current touch information.
[0019] However, when there are multiple fingerprint states, it's impossible to determine which fingerprint state's operation should be executed. In this case, if the fingerprint unlock start state is among the multiple fingerprint states, it indicates that the smart device is currently in a locked screen state (otherwise, the fingerprint unlock start state cannot be triggered). In this situation, the screen unlock operation is executed first based on the collected fingerprint, thus preventing the screen from being unable to unlock due to conflicts between multiple fingerprint states.
[0020] Furthermore, after unlocking the screen, users can easily perform other operations on the unlocked screen, such as heart rate recognition and fingerprint enrollment, so as to improve the user's enrollment efficiency through screen prompts.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0023] Figure 1 This disclosure is a flowchart illustrating a screen unlocking method according to an exemplary embodiment;
[0024] Figure 2 This is a flowchart illustrating another screen unlocking method according to an exemplary embodiment of the present disclosure;
[0025] Figure 3 This is a flowchart illustrating another screen unlocking method according to an exemplary embodiment of the present disclosure;
[0026] Figure 4 This is a schematic diagram of the structure of a screen unlocking device according to an exemplary embodiment of the present disclosure;
[0027] Figure 5 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0029] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0030] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0031] The smart terminal can be a mobile phone, computer, tablet, wristband, smart glasses, or other terminal that interacts with the fingerprint collection component. For ease of understanding, this embodiment uses a mobile phone as an example of a smart terminal.
[0032] When designing mobile phones, manufacturers incorporate fingerprint collection components to provide users with fingerprint enrollment and screen unlocking functions, enabling users to unlock the screen quickly and easily while ensuring data security.
[0033] As more users pay attention to their health, manufacturers are adding heart rate detection functionality to smartphones and other smart devices. Without adding other components, this functionality is based on a fingerprint sensor. When a user opens the heart rate detection interface on their phone, they interact with the fingerprint sensor by touching or pressing it, generating touch information. The thread responsible for determining the heart rate detection status then updates the fingerprint status to heart rate detection mode, allowing the phone to perform the detection. Similarly, when the user triggers the fingerprint sensor while the screen is off, touch information is also generated. In this case, the thread responsible for unlocking the screen updates the fingerprint status to fingerprint unlock start mode, allowing the phone to unlock the screen.
[0034] However, since the updates to the heart rate detection status and the fingerprint unlock start status are executed by different threads, if the two threads receive touch information at the same time, it will cause a conflict between the two threads, which may cause the fingerprint status obtained by one of the threads to become invalid.
[0035] For example, when a phone is in the heart rate detection interface and the user is collecting heart rate data via fingerprint scanning, if the screen suddenly turns off, the fingerprint remains in the heart rate detection state (the heart rate detection stopped state within the heart rate detection state). Since the finger is still on the fingerprint scanner, this triggers the thread used to unlock the screen, updating the fingerprint state to the fingerprint unlock start state. This can easily lead to a conflict between the two fingerprint states, potentially causing the screen unlock to fail.
[0036] To address the aforementioned problems, this disclosure provides a screen unlocking method, apparatus, storage medium, and electronic device, which will be described in detail below.
[0037] Figure 1 This is a flowchart illustrating a screen unlocking method according to an exemplary embodiment of the present disclosure, such as... Figure 1 As shown, the method includes the following steps:
[0038] Step 101: When touch information is detected for the fingerprint acquisition component, obtain the fingerprint status indicated by the fingerprint service.
[0039] Specifically, a fingerprint acquisition component can be either a hardware component or a software component. When the fingerprint acquisition component is a software component, it assists hardware devices (such as fingerprint sensors, fingerprint scanners, heart rate sensors, etc.) in fingerprint acquisition. For example, it's a component that displays the fingerprint image on a mobile phone, used to prompt the user to touch the location where the fingerprint acquisition component is displayed. When the fingerprint acquisition component is a hardware component, it can be a fingerprint sensor, fingerprint scanner, heart rate sensor, etc.
[0040] When a user touches or presses the fingerprint sensor, touch information is generated for the sensor. When the phone detects this touch information, it begins acquiring the current fingerprint state using multiple threads that handle different fingerprint states.
[0041] A service is a background application component that performs long-running tasks that require no interaction (no user interface). The service continues to run in the background even if the user switches to another application. The fingerprint service is created specifically for fingerprint tasks, and the fingerprint states it can indicate include, but are not limited to: heart rate detection status (heart rate detection start and heart rate detection stop), fingerprint enrollment status (fingerprint enrollment start and fingerprint enrollment stop), and fingerprint unlock status (fingerprint unlock start and fingerprint unlock stop). When the fingerprint service indicates different fingerprint states, it executes the corresponding operations for those fingerprint states.
[0042] Step 102: When there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state, perform a screen unlock operation based on the collected fingerprint.
[0043] Specifically, the touch information in step 101 is valid within the target duration. Therefore, if the touch information triggers multiple thread operations simultaneously within the target duration, the number of fingerprint states will be multiple. Then, it is necessary to determine the fingerprint state to be executed from the multiple fingerprint states.
[0044] Therefore, if it is determined that the fingerprint unlock start state is included among multiple fingerprint states, the operation corresponding to the fingerprint unlock start state is taken as the operation to be executed first. At this time, the fingerprint collector can collect the user's fingerprint and perform the screen unlock operation based on the collected fingerprint (for example, if the collected fingerprint information matches the fingerprint information in the fingerprint database, the unlock is successful; if the collected fingerprint information does not match the fingerprint information in the fingerprint database, the unlock fails).
[0045] When touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service can be obtained to determine what operation the user wants to perform based on the current touch information.
[0046] However, when there are multiple fingerprint states, it's impossible to determine which fingerprint state's operation should be executed. In this case, if the fingerprint unlock start state is among the multiple fingerprint states, it indicates that the smart device is currently in a locked screen state (otherwise, the fingerprint unlock start state cannot be triggered). In this situation, the screen unlock operation is executed first based on the collected fingerprint, thus preventing the problem of being unable to unlock the screen due to conflicts between multiple fingerprint states.
[0047] Furthermore, after unlocking the screen, users can easily perform other operations on the unlocked screen, such as heart rate recognition and fingerprint enrollment, so as to improve the user's enrollment efficiency through screen prompts.
[0048] In a feasible implementation plan Figure 2 This is a flowchart illustrating another screen unlocking method according to an exemplary embodiment of the present disclosure, such as... Figure 2 As shown, the method further includes the following steps:
[0049] Step 201: When there are multiple fingerprint states, determine a thread corresponding to each fingerprint state to obtain multiple threads corresponding to multiple fingerprint states.
[0050] Specifically, the fingerprint service corresponds to one or more fingerprint states. When there are multiple fingerprint states, it means that the phone has multiple threads running in parallel. Each thread is used to obtain a fingerprint state. In this case, by obtaining the thread that corresponds one-to-one with each fingerprint state, multiple threads corresponding to multiple fingerprint states can be obtained.
[0051] For example, fingerprint states include: heart rate detection state, fingerprint unlock start state, and fingerprint enrollment state. These three fingerprint states correspond to three threads, which are used to determine whether the user has triggered the state corresponding to their respective thread.
[0052] Step 202: Set a synchronization lock for the multiple threads; wherein the synchronization lock is used to control the sequential execution of the multiple threads.
[0053] Specifically, because there are multiple threads that execute in parallel, at least two threads may be triggered by touch information at the same time. Since the states obtained by both threads are updated to the latest fingerprint state, the operation corresponding to the fingerprint state of one thread may be overwritten by the fingerprint state of another thread before the operation of the fingerprint state of one thread is executed, thus causing the fingerprint state of some threads to be lost.
[0054] To address the aforementioned issues, a synchronization lock (synconize lock) is set for multiple threads. This allows one thread to acquire the lock and execute normally, while other threads that haven't acquired the lock enter a blocked state, waiting for the lock to be released before acquiring it and resuming normal operation. This sequential execution of threads helps the fingerprint service accurately indicate the fingerprint state acquired by each thread, reducing the risk of fingerprint state loss.
[0055] In one feasible implementation, the method further includes the following steps:
[0056] A callback function is set for the plurality of threads; among the plurality of threads, the target thread that acquires the synchronization lock is determined; the fingerprint state of the target thread is obtained through the callback function, and the fingerprint state of the target thread is determined as the fingerprint state to be executed.
[0057] Specifically, by setting a callback function for each thread, the smart terminal can obtain the latest fingerprint state of each thread based on the callback function. Since a synchronization lock is set for multiple threads (for example, the synchronization lock can be set directly through the callback function in each thread), the multiple threads will execute sequentially. By identifying the thread that acquires the synchronization lock as the target thread, the currently executing thread can be determined from multiple threads, and the fingerprint state of the current target thread can be determined as the fingerprint state to be executed through the callback function.
[0058] At this time, when the plurality of fingerprint states also include a heart rate detection state, at least the following two situations will occur (taking the plurality of fingerprint states as having a heart rate detection state and a fingerprint unlock start state as examples):
[0059] Scenario 1: When it is determined that the first thread corresponding to the fingerprint unlock start state is in a blocked state, and the target thread is the second thread corresponding to the heart rate detection state, the second thread is shut down so that the second thread no longer acquires the synchronization lock.
[0060] Specifically, when the target thread acquires the synchronization lock, all other threads besides the target thread are in a blocked state. Blocked threads cannot run normally, while the target thread, having acquired the synchronization lock, can run normally. When the second thread is the target thread, it means that the second thread has acquired the synchronization lock. At this point, the smart terminal determines that the current fingerprint state to be executed is the heart rate detection state.
[0061] However, since multiple threads are triggered by touch information, resulting in multiple fingerprint states, it is necessary to further determine whether other threads are in a blocked state due to not acquiring the synchronization lock. If it is determined that the first thread is in a blocked state, it means that the fingerprint state at this time includes at least: heart rate detection state and fingerprint unlock start state.
[0062] Therefore, in order to prioritize the screen unlock operation corresponding to the fingerprint unlock start state, it is necessary to skip the heart rate detection operation corresponding to the heart rate detection state, that is, to shut down the second thread, thus allowing the second thread to complete its execution. By shutting down the second thread, the current fingerprint state to be executed (i.e., the heart rate detection state) becomes invalid, and the second thread cannot acquire the synchronization lock before the fingerprint state is updated again (if other threads in a blocked state can acquire the synchronization lock after the second thread cannot acquire it, they will enter a normal operation state). This helps the first thread acquire the synchronization lock, and thus helps to determine the current fingerprint state to be executed as the fingerprint unlock start state corresponding to the first thread.
[0063] Scenario 2: If the target thread is determined to be the first thread corresponding to the fingerprint unlock start state, then obtaining the fingerprint state of the target thread through the callback function and determining the fingerprint state of the target thread as the current fingerprint state to be executed includes: obtaining the fingerprint unlock start state corresponding to the first thread through the callback function and determining the fingerprint unlock start state as the current fingerprint state to be executed, so as to execute the screen unlock operation based on the first thread.
[0064] Specifically, when multiple threads are triggered by touch information, the fingerprint service determines multiple fingerprint states. At this point, the following two sub-cases exist:
[0065] Sub-case 1: If the first thread acquires the synchronization lock first, then the first thread sends the fingerprint unlock start state of the first thread to the architecture layer of the smart terminal through the callback function. The smart terminal determines the fingerprint state to be executed as the fingerprint unlock start state. At this time, since the fingerprint unlock start state is determined to be at least among the multiple fingerprint states, the first thread can perform the screen unlock operation based on the collected fingerprint through step 102.
[0066] Sub-case 2: If the second thread acquires the synchronization lock first, it sends its heart rate detection status to the smart terminal's architecture layer via a callback function. The smart terminal then determines the current fingerprint state to be executed as the heart rate detection state. At this point, due to the entry into case 1 above, the smart terminal closes the second thread, and the second thread no longer acquires the synchronization lock. After the synchronization lock is released, the first thread acquires the lock and exits the blocked state. The first thread can then execute normally and sends its own fingerprint unlock start state to the smart terminal's architecture layer via a callback function. The smart terminal determines the current fingerprint state to be executed as the fingerprint unlock start state. Since at least the fingerprint unlock start state is included among the multiple fingerprint states, step 102 allows the first thread to perform the screen unlock operation based on the acquired fingerprint.
[0067] It's important to note that the fingerprint states of both the first and second threads are triggered based on the same touch information, and therefore are determined within a single cycle. If new touch information triggers multiple threads again, the fingerprint states in all threads will be updated again, and the steps described above will be executed again.
[0068] It should also be noted that when the screen unlocking operation is based on under-display fingerprint recognition technology, the method further includes, before executing the screen unlocking operation, setting a light spot illumination sub-operation for the fingerprint acquisition component, thereby acquiring valid fingerprint information by shining light on the user's finger. The light spot illumination sub-operation can be one of the sub-operations corresponding to the fingerprint unlocking start state. Only when the current fingerprint state to be executed is determined to be the fingerprint unlocking start state can the light spot illumination sub-operation be invoked to achieve the effect of shining light on the finger, thus facilitating fingerprint acquisition and enabling the screen unlocking operation to be performed based on the acquired valid fingerprint.
[0069] For example, the light spot illumination operation can be completed by other threads (such as the fifth thread). When the architecture layer of the smart terminal determines that the current fingerprint state to be executed is the fingerprint unlock start state based on the callback function, the architecture layer of the smart terminal will notify the fifth thread to perform the light spot illumination operation, thereby making the collected fingerprint information valid, and thus enabling the screen unlock operation to be performed based on the collected valid fingerprint information.
[0070] The above method ensures that the screen unlock operation is performed first, which helps to solve the problem of unlock failure.
[0071] It should be noted that in this embodiment, both the determination of the fingerprint unlock start state and the screen unlock operation are completed by the first thread. However, in another feasible implementation, they can be completed by different threads. For example, the first thread determines the fingerprint unlock start state and sends it to the architecture layer of the smart terminal through a callback function. After determining that the current fingerprint state to be executed is the fingerprint unlock start state, the architecture layer of the smart terminal notifies the third thread to execute the screen unlock operation corresponding to the fingerprint unlock start state. Similarly, the determination of the heart rate detection state and the heart rate detection operation can also be completed by different threads. For example, the second thread completes the determination of the heart rate detection state, and the fourth thread completes the heart rate detection operation; wherein, the third thread and the fourth thread can be the same thread or different threads.
[0072] Figure 3 This is a flowchart illustrating another screen unlocking method according to an exemplary embodiment of the present disclosure, such as... Figure 3 As shown, the method includes the following steps:
[0073] Step 301, fingerprint status update.
[0074] Specifically, when touch information is detected targeting the fingerprint acquisition component, at least one thread starts running to update the fingerprint status.
[0075] Step 302: Determine whether there are multiple fingerprint states.
[0076] Specifically, by determining whether the touch information triggers multiple threads corresponding to fingerprint states, the number of fingerprint states is determined. If there are multiple fingerprint states, step 303 is executed.
[0077] Step 303: Determine the thread corresponding to each fingerprint state.
[0078] Specifically, if it is determined that there are multiple fingerprint states within the target duration, there may be fingerprint state conflicts. In this case, it is necessary to determine the thread corresponding to each fingerprint state.
[0079] Step 304: Set up synchronization locks and callback functions for multiple threads.
[0080] Specifically, after determining the thread corresponding to each fingerprint state, setting a synchronization lock for multiple threads (e.g., setting a synchronization lock in the callback function) allows multiple threads to execute sequentially. This enables the fingerprint state of each thread to be obtained through the callback function, preventing the loss of fingerprint state due to some threads being unable to upload the state to the architecture layer of the smart terminal based on the callback function.
[0081] Step 305: Determine if the following conditions are met: the second thread acquires the synchronization lock, and the first thread is in a blocked state.
[0082] Specifically, if the condition in step 305 above is met, it means that the second thread executes first, followed by the first thread, and step 307 is executed. Otherwise, step 306 is executed.
[0083] Step 306: Set the current fingerprint state to be executed to the fingerprint unlock start state, and proceed to step 308.
[0084] Specifically, if the conditions in step 305 above are not met, it means that the first thread corresponding to the fingerprint unlock start state is executed first, and the second thread corresponding to the heart rate detection state is executed subsequently. At this time, the current fingerprint state to be executed is determined as the fingerprint unlock start state, and step 308 is executed.
[0085] Step 307: Skip the notification heart rate detection state and set the current fingerprint state to be executed to the fingerprint unlock start state.
[0086] Specifically, if the conditions in step 305 are met, it means that the operation corresponding to the heart rate detection state should be executed first, and then the operation corresponding to the fingerprint unlock start state should be executed. In this case, by skipping the step of notifying the heart rate detection state, the smart terminal will not execute the heart rate detection operation corresponding to the heart rate detection state. Furthermore, by setting the current fingerprint state to be executed to the fingerprint unlock start state, the smart terminal will prioritize the screen unlock operation.
[0087] Step 308: Determine whether the following condition is met: the fingerprint status includes at least the fingerprint unlock start state.
[0088] Specifically, if step 308 is met, then step 310 should be executed, which is to perform the screen unlock operation corresponding to the fingerprint unlock start state.
[0089] Step 309: Screen unlocking operation.
[0090] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should know that this disclosure is not limited to the described order of actions, because according to this disclosure, some steps may be performed in other orders or simultaneously.
[0091] Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by this disclosure.
[0092] Corresponding to the aforementioned application function implementation method embodiments, this disclosure also provides embodiments of a screen unlocking device and a corresponding terminal.
[0093] Figure 4 This disclosure is a schematic diagram illustrating the structure of a screen unlocking device according to an exemplary embodiment. The device is applied to a smart terminal, such as... Figure 4 As shown, the screen unlocking device may include:
[0094] The acquisition module 401 is used to acquire the fingerprint status indicated by the fingerprint service when touch information for the fingerprint acquisition component is detected.
[0095] The unlocking module 402 is used to perform a screen unlocking operation based on the collected fingerprint when there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state.
[0096] In one feasible implementation, the device further includes:
[0097] The first determining module is used to determine a thread corresponding to each fingerprint state when there are multiple fingerprint states, thereby obtaining multiple threads corresponding to multiple fingerprint states.
[0098] The configuration module is used to set synchronization locks for the multiple threads; wherein the synchronization locks are used to control the sequential execution of the multiple threads.
[0099] In one feasible implementation, the device further includes:
[0100] The callback module is used to set callback functions for the multiple threads.
[0101] The second determining module is used to determine the target thread that acquires the synchronization lock among the plurality of threads.
[0102] The third determining module is used to obtain the fingerprint state of the target thread through the callback function, and determine the fingerprint state of the target thread as the fingerprint state to be executed.
[0103] In one feasible implementation, the device further includes:
[0104] The closing module is used to close the second thread when it is determined that the first thread corresponding to the fingerprint unlock start state is in a blocked state and the target thread is the second thread corresponding to the heart rate detection state, so that the second thread no longer acquires the synchronization lock.
[0105] In one feasible implementation, the third determining module is used to obtain the fingerprint state of the target thread through the callback function and determine the fingerprint state of the target thread as the current fingerprint state to be executed, specifically for:
[0106] When the target thread is determined to be the first thread corresponding to the fingerprint unlock start state, the fingerprint unlock start state corresponding to the first thread is obtained through a callback function, and the fingerprint unlock start state is determined as the current fingerprint state to be executed, so as to execute the screen unlock operation based on the first thread.
[0107] Based on the above device, when touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service can be obtained to determine what operation the user wants to perform based on the current touch information.
[0108] However, when there are multiple fingerprint states, it's impossible to determine which fingerprint state's operation should be executed. In this case, if the fingerprint unlock start state is among the multiple fingerprint states, it indicates that the smart device is currently in a locked screen state (otherwise, the fingerprint unlock start state cannot be triggered). In this situation, the screen unlock operation is executed first based on the collected fingerprint, thus preventing the problem of being unable to unlock the screen due to conflicts between multiple fingerprint states.
[0109] Furthermore, after unlocking the screen, users can easily perform other operations on the unlocked screen, such as heart rate recognition and fingerprint enrollment, so as to improve the user's enrollment efficiency through screen prompts.
[0110] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0111] Accordingly, this disclosure provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of any of the screen unlocking methods described above by executing the executable instructions.
[0112] Figure 5 This disclosure is a schematic diagram illustrating the structure of an electronic device according to an exemplary embodiment. For example, the electronic device 500 can be a user device, specifically a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, wearable device such as smartwatch, smart glasses, smart bracelet, smart running shoes, etc.
[0113] Reference Figure 4 The electronic device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.
[0114] Processing component 502 typically controls the overall operation of electronic device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0115] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on electronic device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0116] Power supply component 506 provides power to various components of electronic device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 500.
[0117] Multimedia component 508 includes a screen that provides an output interface between the aforementioned electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0118] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when electronic device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0119] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0120] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of electronic device 500. For example, sensor assembly 514 can detect the on / off state of electronic device 500, the relative positioning of components such as the display and keypad of electronic device 500, changes in position of electronic device 500 or a component of electronic device 500, the presence or absence of user contact with electronic device 500, orientation or acceleration / deceleration of electronic device 500, and temperature changes of electronic device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0121] Communication component 516 is configured to facilitate wired or wireless communication between electronic device 500 and other devices. Electronic device 500 can access wireless networks based on communication standards, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the aforementioned communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0122] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0123] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 504 including instructions. When the instructions in the storage medium are executed by the processor 520 of the electronic device 500, the electronic device 500 is enabled to perform a screen unlocking method applied to a smart terminal. The method includes:
[0124] When touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service is obtained.
[0125] When there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state, the screen unlock operation is performed based on the collected fingerprint.
[0126] The non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0127] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0128] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A screen unlocking method, characterized in that, The method is applied to a smart terminal, and the method includes: When touch information is detected on the fingerprint acquisition component, the fingerprint status indicated by the fingerprint service is obtained; When there are multiple fingerprint states, and the fingerprint states include at least the fingerprint unlock start state, the screen unlock operation corresponding to the fingerprint unlock start state is taken as the operation to be executed first, and the screen unlock operation is executed based on the collected fingerprint. Different types of fingerprint states are generated by different threads based on the touch information.
2. The method according to claim 1, characterized in that, The method further includes: When there are multiple fingerprint states, a thread is determined for each fingerprint state, resulting in multiple threads corresponding to multiple fingerprint states. A synchronization lock is set for the plurality of threads; wherein the synchronization lock is used to control the sequential execution of the plurality of threads.
3. The method according to claim 2, characterized in that, The method further includes: Set callback functions for the multiple threads; Among the multiple threads, determine the target thread that acquires the synchronization lock; The fingerprint state of the target thread is obtained through the callback function, and the fingerprint state of the target thread is determined as the fingerprint state to be executed.
4. The method according to claim 3, characterized in that, The plurality of fingerprint states also include a heart rate detection state, and the method further includes: When it is determined that the first thread corresponding to the fingerprint unlock start state is in a blocked state, and the target thread is the second thread corresponding to the heart rate detection state, the second thread is shut down so that the second thread no longer acquires the synchronization lock.
5. The method according to claim 3 or 4, characterized in that, When it is determined that the target thread is the first thread corresponding to the fingerprint unlock start state, the step of obtaining the fingerprint state of the target thread through the callback function and determining the fingerprint state of the target thread as the current fingerprint state to be executed includes: The fingerprint unlock start state corresponding to the first thread is obtained through the callback function, and the fingerprint unlock start state is determined as the current fingerprint state to be executed, so as to perform the screen unlock operation based on the first thread.
6. A screen unlocking device, characterized in that, The device is used in a smart terminal, and the device includes: The acquisition module is used to acquire the fingerprint status indicated by the fingerprint service when touch information is detected for the fingerprint acquisition component. The unlocking module is used to, when there are multiple fingerprint states, and the fingerprint states include at least a fingerprint unlock start state, select the screen unlock operation corresponding to the fingerprint unlock start state as the operation to be executed first, and perform the screen unlock operation based on the collected fingerprint. Different types of fingerprint states are generated by different threads based on the touch information.
7. The apparatus according to claim 6, characterized in that, The device further includes: The first determining module is used to determine a thread corresponding to each fingerprint state when the number of fingerprint states is multiple, thereby obtaining multiple threads corresponding to multiple fingerprint states; The configuration module is used to set synchronization locks for the multiple threads; wherein the synchronization locks are used to control the sequential execution of the multiple threads.
8. The apparatus according to claim 6, characterized in that, The device further includes: The callback module is used to set callback functions for the multiple threads; The second determining module is used to determine the target thread that acquires the synchronization lock among the plurality of threads; The third determining module is used to obtain the fingerprint state of the target thread through the callback function, and determine the fingerprint state of the target thread as the fingerprint state to be executed.
9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 5 by running the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for transmitting fingerprint information, computer device, and storage medium
CN109375860A