EP-4542354-B1 - FINGERPRINT-BASED UNLOCKING METHOD, ELECTRONIC DEVICE, READABLE STORAGE MEDIUM, AND CHIP
Inventors
- MU, Weihu
Dates
- Publication Date
- 20260506
- Application Date
- 20230419
Claims (13)
- A fingerprint unlocking method, applied to an electronic device, wherein the method comprises: generating (1201) an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device; controlling (1202), in response to the interrupt instruction, the touchscreen to perform an initialization operation; when initialization on the touchscreen is completed and the touch area is greater than or equal to the area threshold, illuminating (1203) a backlight in a preset region, wherein the preset region is the fingerprint recognition region and a frame region of the electronic device; and controlling (1204), when the backlight is illuminated, the electronic device to perform a fingerprint unlocking operation.
- The method according to claim 1, wherein the electronic device comprises a touchscreen touch module and a touchscreen controller; and the generating (1201) an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device comprises: in response to the touch operation on the fingerprint recognition region in the touchscreen, generating, by the touchscreen touch module, the interrupt instruction, and detecting the touch area of the touch operation; and sending, by the touchscreen touch module, the interrupt instruction to the touchscreen controller.
- The method according to claim 2, wherein the controlling (1202), in response to the interrupt instruction, the touchscreen to perform an initialization operation comprises: when receiving the interrupt instruction, performing, by the touchscreen controller, an initialization operation on the touchscreen in response to the interrupt instruction.
- The method according to claim 2, after the generating (1201) an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device, further comprising: when the touch area is less than the area threshold, sending, by the touchscreen touch module, a touch failure message to the touchscreen controller; and when receiving the touch failure message, stopping, by the touchscreen controller, the initialization operation on the touchscreen if the initialization operation on the touchscreen is not completed.
- The method according to claim 2, wherein the electronic device further comprises a fingerprint module and a display module; and the illuminating a backlight of the electronic device when initialization on the touchscreen is completed and the touch area is greater than or equal to an area threshold comprises: when initialization on the touchscreen is completed, sending, by the touchscreen controller, an initialization complete message to the display module; when the touch area is greater than or equal to the area threshold, sending, by the touchscreen touch module, a touch complete message to the display module by using the fingerprint module; and when receiving the initialization complete message and the touch complete message, illuminating, by the display module, the backlight.
- The method according to claim 5, after the generating (1201) an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device, further comprising: when the touch area is less than the area threshold, separately sending, by the touchscreen touch module, a touch failure message to the touchscreen controller and the fingerprint module; when receiving the touch failure message, stopping, by the touchscreen controller, the initialization operation on the touchscreen if the initialization operation on the touchscreen is not completed; and when receiving the touch failure message, skipping making, by the fingerprint module, any response.
- The method according to any one of claims 1-6, wherein the controlling (1204), when the backlight is illuminated, the electronic device to perform a fingerprint unlocking operation comprises: collecting fingerprint information in the fingerprint recognition region when the backlight is illuminated; performing fingerprint verification based on the fingerprint information; and controlling, based on a current state of the electronic device when the fingerprint verification succeeds, the electronic device to perform an operation corresponding to a fingerprint unlocking function.
- The method according to claim 7, before the collecting fingerprint information in the fingerprint recognition region when the backlight is illuminated, further comprising: recognizing a type of the touch operation; and when the type of the touch operation is a touch operation for fingerprint recognition, performing the operation of collecting fingerprint information in the fingerprint recognition region when the backlight is illuminated.
- The method according to claim 8, wherein the controlling, based on a current state of the electronic device when the fingerprint verification succeeds, the electronic device to perform an operation corresponding to the fingerprint unlocking function comprises: when the fingerprint verification succeeds, if the electronic device is currently in a screen to-be-unlocked state, unlocking a screen of the electronic device; when the fingerprint verification succeeds, if the electronic device is currently in a resource to-be-paid state, performing a resource payment operation; when the fingerprint verification succeeds, if the electronic device is currently in an account to-be-logged-in state, performing an account login operation; or when the fingerprint verification succeeds, if the electronic device is currently in an application lock to-be-unlocked state, unlocking an application lock of a target application to display an application interface of the target application, wherein the target application is any application installed on the electronic device, the target application is set with the application lock and is currently in a to-be-started state, and the application lock is used to encrypt startup of the target application.
- The method according to any one of claims 1-9, wherein the detecting a touch area of the touch operation comprises: detecting a quantity of touch sensors touched by the touch operation in the fingerprint recognition region; and when the quantity of touch sensors is greater than or equal to a quantity threshold, determining that the touch area of the touch operation is greater than or equal to the area threshold.
- An electronic device, wherein the electronic device comprises a processor (1310), and the processor is configured to invoke a computer program in a memory (1320) to perform the method according to any one of claims 1-10.
- A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 1-10.
- A chip, wherein the chip comprises a processor, and the processor is configured to invoke a computer program in a memory to perform the method according to any one of claims 1-10
Description
This application claims priority to Chinese Patent Application No. 202210908805.0, filed with the China National Intellectual Property Administration on July 29, 2022 and entitled "FINGERPRINT UNLOCKING METHOD, ELECTRONIC DEVICE, READABLE STORAGE MEDIUM, AND CHIP". TECHNICAL FIELD This application relates to the field of terminal technologies, and in particular, to a fingerprint unlocking method, an electronic device, a readable storage medium, and a chip. BACKGROUND As people increasingly depend on an electronic device, more user information is recorded in the electronic device. The user information is related to property, privacy, and the like of a user. Therefore, the user imposes an increasingly high requirement on security of the electronic device. To ensure security of the electronic device, various types of unlocking verification such as fingerprint unlocking verification may be generally set for the electronic device. In a fingerprint unlocking process, the electronic device needs to illuminate a liquid crystal display (liquid crystal display, LCD) screen, collect fingerprint information in a fingerprint recognition region, perform fingerprint recognition verification based on the fingerprint information, and perform unlocking after the fingerprint verification succeeds. For this series of operations, how to improve fingerprint unlocking efficiency becomes a problem that needs to be urgently resolved. CN113361305A relates to the field of fingerprint technology, and in particular to a fingerprint collection method, electronic equipment, and computer-readable storage medium. CN110059464A relates to the field of mobile terminal technologies, and in particular, to a method, an apparatus, a mobile terminal, and a readable storage medium for unlocking a terminal. SUMMARY The invention is defined in the independent claims. Further specific technical features have been defined in the dependent claims. This application provides a fingerprint unlocking method, an electronic device, a readable storage medium, and a chip, so that a problem, in a related technology, of how to improve fingerprint unlocking efficiency can be resolved. The technical solutions are as follows: According to a first aspect, a fingerprint unlocking method is provided, and is applied to an electronic device, where the method includes: generating an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device;controlling, in response to the interrupt instruction, the touchscreen to perform an initialization operation;illuminating a backlight of the electronic device when initialization on the touchscreen is completed and the touch area is greater than or equal to an area threshold; andcontrolling, when the backlight is illuminated, the electronic device to perform a fingerprint unlocking operation. In this way, in a fingerprint unlocking process, when the touch operation is detected, the touchscreen may be directly controlled, in response to the interrupt instruction, to perform the initialization operation, so that the initialization operation on the touchscreen and the operation of detecting the touch area are performed at the same time, thereby shortening fingerprint unlocking duration, and improving fingerprint unlocking efficiency. As an example of this application, the illuminating a backlight of the electronic device when initialization on the touchscreen is completed and the touch area is greater than or equal to an area threshold includes: when initialization on the touchscreen is completed and the touch area is greater than or equal to the area threshold, illuminating a backlight in a preset region, where the preset region is at least one of the fingerprint recognition region and a frame region of the electronic device. In this way, the backlight of the electronic device is selectively illuminated, so that diversity of a backlight function is improved. In addition, because the screen of the electronic device does not need to be illuminated, power waste is reduced. As an example of this application, the electronic device includes a touchscreen touch module and a touchscreen controller; and the generating an interrupt instruction and detecting a touch area of a touch operation in response to the touch operation on a fingerprint recognition region in a touchscreen of the electronic device includes:in response to the touch operation on the fingerprint recognition region in the touchscreen, generating, by the touchscreen touch module, the interrupt instruction, and detecting the touch area of the touch operation; andsending, by the touchscreen touch module, the interrupt instruction to the touchscreen controller. In this way, when detecting the touch operation, the touchscreen touch module may send the interrupt instruction to the touchscreen controller, so that an occasion of sending the interrupt instruction is