WO2024021696A1 - 指纹解锁方法、电子设备、可读存储介质及芯片 - Google Patents

指纹解锁方法、电子设备、可读存储介质及芯片 Download PDF

Info

Publication number
WO2024021696A1
WO2024021696A1 PCT/CN2023/089316 CN2023089316W WO2024021696A1 WO 2024021696 A1 WO2024021696 A1 WO 2024021696A1 CN 2023089316 W CN2023089316 W CN 2023089316W WO 2024021696 A1 WO2024021696 A1 WO 2024021696A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
fingerprint
area
electronic device
module
Prior art date
Application number
PCT/CN2023/089316
Other languages
English (en)
French (fr)
Inventor
慕伟虎
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024021696A1 publication Critical patent/WO2024021696A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Definitions

  • the present application relates to the field of terminal technology, and in particular to a fingerprint unlocking method, electronic device, readable storage medium and chip.
  • the electronic device needs to light up the liquid crystal display (LCD) screen, collect fingerprint information in the fingerprint recognition area, perform fingerprint recognition verification based on the fingerprint information, and unlock after the fingerprint verification is passed.
  • LCD liquid crystal display
  • This application provides a fingerprint unlocking method, electronic device, readable storage medium and chip, which can solve problems in related technologies on how to improve fingerprint unlocking efficiency.
  • the technical solutions are as follows:
  • a fingerprint unlocking method which is used in electronic devices.
  • the method includes:
  • the electronic device When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
  • the touch screen can be controlled to perform an initialization operation in direct response to the interrupt command, so that the initialization operation of the touch screen and the operation of detecting the touch area are performed simultaneously, thereby shortening the time required.
  • the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved.
  • lighting the backlight of the electronic device when the touch screen initialization is completed and the touch area is greater than or equal to the area threshold includes:
  • the touch screen initialization When the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the backlight at the preset area is lit, and the preset area is the fingerprint recognition area and the electronic device. At least one area within the border area.
  • the electronic device includes a touch screen touch module and a touch screen controller
  • Generating an interrupt instruction and detecting the touch area of the touch operation in response to a touch operation on the fingerprint recognition area in the touch screen of the electronic device includes:
  • the touch screen touch module In response to a touch operation on the fingerprint recognition area in the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
  • the touch screen touch module sends the interrupt instruction to the touch screen controller.
  • the touch screen touch module can send an interrupt command to the touch screen controller when a touch operation is detected, thereby advancing the timing of sending the interrupt command and speeding up the unlocking speed.
  • controlling the touch screen to perform an initialization operation in response to the interrupt instruction includes:
  • the touch screen controller When receiving the interrupt instruction, the touch screen controller performs an initialization operation on the touch screen in response to the interrupt instruction.
  • the touch screen controller can simultaneously perform the initialization operation of the touch screen, thereby shortening the time waiting for the touch screen initialization operation and speeding up the fingerprint unlocking speed.
  • the method further includes:
  • the touch screen touch module sends a touch failure message to the touch screen controller
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen.
  • the electronic device also includes a fingerprint module and a display module;
  • lighting the backlight of the electronic device includes:
  • the touch screen controller sends an initialization completion message to the display module
  • the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
  • the display module When receiving the initialization completion message and the touch completion message, the display module lights the backlight.
  • the backlight is lit in response to the initialization completion message and the touch completion message, thereby ensuring that the backlight is lit when the touch operation is not a mistaken operation and the touch screen meets the fingerprint recognition conditions, thereby improving fingerprint recognition. reliability.
  • the method further includes:
  • the touch screen touch module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen;
  • the fingerprint module does not perform any response when receiving the touch failure message.
  • controlling the electronic device to perform a fingerprint unlocking operation when the backlight is turned on includes:
  • the electronic device is controlled to perform an operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
  • the method before collecting the fingerprint information in the fingerprint recognition area when the backlight is turned on, the method further includes:
  • the type of the touch operation is a touch operation for fingerprint recognition
  • the operation of collecting fingerprint information in the fingerprint recognition area is performed while the backlight is turned on.
  • the fingerprint verification is passed, if the electronic device is currently in a resource pending payment state, the resource payment operation is performed;
  • the fingerprint verification is passed, if the electronic device is currently in the account pending login state, the account login operation is performed;
  • the application lock of the target application is unlocked to display the application interface of the target application, and the target application is the electronic device. Any application installed on the device, the target application is set with the application lock and is currently in a state to be started, and the application lock is used to encrypt the startup of the target application.
  • the screen unlocking function, resource payment function, account login function, application lock function, etc. of electronic devices can be realized, thereby increasing the application scope and application richness of fingerprint unlocking.
  • detecting the touch area of the touch operation includes:
  • an electronic device in a second aspect, includes a processor and a memory.
  • the memory is used to store a program that supports the electronic device to execute the fingerprint unlocking method provided in the first aspect, and stores a program for Data involved in implementing the fingerprint unlocking method described in the first aspect.
  • the processor is configured to execute a program stored in the memory.
  • the electronic device may also include a communication bus for establishing a connection between the processor and the memory.
  • the processor is configured to:
  • the electronic device When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
  • the processor is further configured to:
  • the touch screen initialization When the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the backlight at the preset area is lit, and the preset area is the fingerprint recognition area and the electronic device. At least one area within the border area.
  • the electronic device includes a touch screen touch module and a touch screen controller; the processor is further configured to:
  • the touch screen touch module In response to a touch operation on the fingerprint recognition area in the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
  • the touch screen touch module sends the interrupt instruction to the touch screen controller.
  • the processor is further configured to:
  • the touch screen controller When receiving the interrupt instruction, the touch screen controller performs an initialization operation on the touch screen in response to the interrupt instruction.
  • the processor is further configured to:
  • the touch screen touch module sends a touch failure message to the touch screen controller
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen.
  • the electronic device also includes a fingerprint module and a display module;
  • the processor is also configured to:
  • the touch screen controller sends an initialization completion message to the display module
  • the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
  • the display module When receiving the initialization completion message and the touch completion message, the display module lights the backlight.
  • the processor is further configured to:
  • the touch screen touch module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen;
  • the fingerprint module does not perform any response when receiving the touch failure message.
  • the processor is further configured to:
  • the electronic device is controlled to perform an operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
  • the processor is further configured to:
  • the type of the touch operation is a touch operation for fingerprint recognition
  • the operation of collecting fingerprint information in the fingerprint recognition area is performed while the backlight is turned on.
  • the processor is further configured to:
  • the fingerprint verification is passed, if the electronic device is currently in a resource pending payment state, the resource payment operation is performed;
  • the fingerprint verification is passed, if the electronic device is currently in the account pending login state, the account login operation is performed;
  • the application lock of the target application is unlocked to display the application interface of the target application, and the target application is the electronic device. Any application installed on the device, the target application is set with the application lock and is currently in a state to be started, and the application lock is used to encrypt the startup of the target application.
  • the processor is further configured to:
  • a computer-readable storage medium stores instructions, which when run on a computer, cause the computer to execute the fingerprint unlocking method described in the first aspect.
  • a chip in a fourth aspect, includes a processor, and the processor is configured to call a computer program in a memory to execute the fingerprint unlocking method described in the first aspect.
  • a fifth aspect provides a computer program product containing instructions that, when run on a computer, causes the computer to execute the fingerprint unlocking method described in the first aspect.
  • Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a software framework of an electronic device according to an exemplary embodiment
  • Figure 4 is a schematic diagram of a fingerprint unlocking application scenario according to an exemplary embodiment
  • Figure 5 is a schematic diagram of a fingerprint unlocking application scenario according to another exemplary embodiment
  • Figure 6 is a schematic diagram of a fingerprint unlocking application scenario according to another exemplary embodiment
  • Figure 7 is a schematic diagram of a fingerprint unlocking application scenario according to another exemplary embodiment
  • Figure 8 is a schematic flow chart of a fingerprint unlocking method according to an exemplary embodiment
  • Figure 9 is a schematic flowchart of a fingerprint unlocking method according to another exemplary embodiment.
  • Figure 10 is a schematic flowchart of a fingerprint unlocking method according to another exemplary embodiment
  • Figure 11 is a schematic flowchart of a fingerprint unlocking method according to another exemplary embodiment
  • Figure 12 is a schematic flowchart of a fingerprint unlocking method according to another exemplary embodiment
  • FIG. 13 is a schematic structural diagram of an electronic device according to another exemplary embodiment.
  • the fingerprint module 12 collects fingerprint information, identifies the collected fingerprint information, and sends an LCD interrupt command to the LCD controller 13 after the fingerprint verification passes; the LCD controller 13 receives the LCD interrupt
  • the LCD screen is initialized, and an initialization completion message is sent to the display module 14 after the initialization is completed.
  • the display module 14 receives the initialization completion message, it lights the LCD screen, and sends the lighting message of the LCD screen to the unlocking module 15.
  • the lock screen interface 2 is displayed, and the lock screen interface 2 displays Fingerprint recognition area.
  • the unlocking module 15 unlocks the screen of the mobile phone and displays the screen opening interface.
  • the screen opening interface is the interface displayed before the last lock screen, for example, the mobile phone desktop 3 is displayed.
  • the LCD interrupt command can be sent to the LCD controller only after the fingerprint verification is passed, it will cause the LCD screen to receive the The initialization operation of the LCD screen can only be carried out after interrupting the command. This will cause the LCD screen to take a long time to initialize and make the final fingerprint unlocking efficiency relatively low.
  • a fingerprint unlocking method which can directly report to the LCD controller when the electronic device detects a touch operation through the TP touch module.
  • the LCD interrupt command allows the LCD controller to initialize the LCD screen first.
  • the TP touch module can be used to detect whether the touch area of the touch operation is greater than or equal to the area threshold, and when the touch area is greater than or equal to the area threshold, , and after the LCD initialization operation is completed, the fingerprint recognition operation is performed through the fingerprint module.
  • the area threshold is a preset threshold.
  • the touch operation is a valid operation and is not an accidental touch operation of the fingerprint recognition area by the user. Therefore, the touch operation can be After the area is greater than or equal to the area threshold, the fingerprint recognition operation is performed through the fingerprint module. Since the initialization operation of the LCD screen and the operation of detecting the touch area are performed simultaneously, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved. Its specific implementation can be found below.
  • the method provided by the embodiment of the present application can be executed by an electronic device, and the electronic device supports the fingerprint unlocking function.
  • the electronic device may be installed with applications such as video, navigation, e-books, music, shopping, and games, and these applications can support the function of paying for resources through fingerprint unlocking, and/or support payment through fingerprint unlocking.
  • applications such as video, navigation, e-books, music, shopping, and games, and these applications can support the function of paying for resources through fingerprint unlocking, and/or support payment through fingerprint unlocking.
  • the electronic device may be, but is not limited to, a mobile phone action camera (GoPro), a digital camera, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) ⁇ virtual reality (VR) equipment, mobile phone, door locks, smart appliances, etc.
  • GoPro mobile phone action camera
  • UMPC ultra-mobile personal computer personal computer
  • netbook cellular phone
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna.
  • a processor 110 may include a central processing unit (CPU) for performing various functions.
  • an external memory interface 120 may include a central processing unit (C) interface 130, etc.
  • USB universal serial bus
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environment.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the processor 110 may include one or more interfaces, such as an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output, GPIO) interface, subscriber identity module (SIM) interface, and/or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix).
  • the electronic device 100 may include 1 or N display screens 194, where N is an integer greater than 1.
  • Internal memory 121 may be used to store computer-executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the strength of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the pressure threshold is applied to the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the pressure threshold is applied to the short message application icon, the instruction to create a new short message is executed.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor 180K may pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • the buttons 190 include a power button, a volume button, etc.
  • the button 190 may be a mechanical button or a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software system of the electronic device 100 .
  • FIG. 3 is a block diagram of a software system of an electronic device 100 provided by an embodiment of the present application. See Figure 3, points The layer architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, hardware abstract layer (HAL), and kernel layer.
  • application layer application framework layer
  • HAL hardware abstract layer
  • the application layer can include a series of application packages. As shown in Figure 3, the application package can include shopping, video, social, camera, calendar, map and other applications.
  • the application layer also includes an unlocking module, which is used to unlock the screen of the electronic device upon receiving a fingerprint verification pass message sent by the HAL layer.
  • the application layer also includes a payment module, which is used to perform resource payment operations upon receiving a fingerprint verification pass message sent by the HAL layer.
  • the application layer also includes a login module, which is used to perform an account login operation upon receiving a fingerprint verification pass message sent by the HAL layer.
  • the application layer also includes an application lock module.
  • the application lock module is used to unlock the application corresponding to the application lock module to display the corresponding application when receiving a fingerprint verification pass message sent by the HAL layer.
  • the application interface, the corresponding application refers to the application that has an application lock and currently needs to be started.
  • Setting an application lock on an application refers to encrypting the startup of the application. That is, when starting the application, the application needs to be unlocked before the application interface of the application can be displayed.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. These data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc. The view system can be used to build the display interface of the application.
  • the display interface can be composed of one or more views. For example, it includes a view that displays SMS notification icons, a view that displays text, and a view that displays pictures.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of graphics or scrollbar text, such as notifications for applications running in the background.
  • the notification manager can also be a notification that appears on the screen in the form of a dialog window, such as prompting text information in the status bar, emitting a prompt sound, vibrating the electronic device, flashing the indicator light, etc.
  • the HAL layer at least includes a fingerprint (FP) module.
  • the fingerprint module is used to identify the touch data according to the touch data carried in the touch completion message when receiving the touch completion message sent by the kernel layer. Whether the touch operation is a touch operation for fingerprint recognition, and at the same time, the touch completion message is sent to the kernel layer, so that the kernel layer lights the backlight based on the touch completion message, where identifying the type of touch operation may mean identifying Whether the touch operation is a touch operation for fingerprint recognition; and when the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message sent by the kernel layer, it can Collect fingerprint information and identify the collected fingerprint information.
  • FP fingerprint
  • the backlight lighting message is sent when the kernel layer lights the backlight after receiving the touch completion message.
  • the fingerprint module determines that the fingerprint verification has passed based on the collected fingerprint information, it can send a fingerprint verification pass message to the module corresponding to the current fingerprint unlocking scenario. For example, in the screen unlocking scenario, the fingerprint module can send a fingerprint verification passing message to the unlocking module; in the resource payment scenario, the fingerprint module can send a fingerprint verification passing message to the payment module; in the account login scenario, the fingerprint module can send a fingerprint verification passing message to the login module Send a fingerprint verification passed message; in the scenario where the application is started and the application is set with an application lock, the fingerprint module sends a fingerprint verification passed message to the application lock module.
  • the fingerprint module may include a fingerprint collection module, a fingerprint identification module, etc.
  • the fingerprint acquisition module is used to collect fingerprint information and send the collected fingerprint information to the fingerprint identification module;
  • the fingerprint identification module is used to perform fingerprint identification based on the fingerprint information after receiving the fingerprint information sent by the fingerprint acquisition module, and perform fingerprint verification after After passing, a fingerprint verification pass message is sent to the module corresponding to the current fingerprint unlocking scenario.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes TP touch module, LCD controller, display module, display driver, camera driver, audio driver, and sensor driver.
  • the TP touch module is used to detect a touch operation on the screen of an electronic device, and when the touch operation is detected, trigger an LCD interrupt to send an LCD interrupt instruction to the LCD controller, and determine Whether the touch area of the touch operation is greater than or equal to the area threshold. If the TP touch module detects that the touch area is greater than or equal to the area threshold, it means that the touch operation is not a misoperation by the user. Therefore, a touch completion message can be sent to the fingerprint module; if the TP touch module detects a touch If the area is less than the area threshold, it means that the touch operation is a misoperation by the user. Therefore, a touch failure message can be sent to the LCD controller and/or the fingerprint module, or no message can be sent.
  • the TP touch module may include a touch sensor and a touch processor, where the touch sensor is used to detect touch operations on the screen of the electronic device; the touch processor is used to trigger an LCD interrupt. , to send an LCD interrupt command to the LCD controller, and at the same time, detect whether the touch area of the touch operation is greater than or equal to the area threshold.
  • the LCD controller is used to initialize the LCD screen when receiving an LCD interrupt command, and after the initialization is completed, send an initialization completion message to the display module.
  • the LCD controller receives the touch failure message, if the current initialization operation on the LCD screen is not completed, the initialization operation will no longer be performed.
  • the display module is configured to light the backlight of the electronic device screen when receiving the initialization completion message and the touch completion message, and send the backlight lighting message to the fingerprint module.
  • the display module may include a high brightness monitor (High Brightness Monitor, HBM).
  • HBM High Brightness Monitor
  • the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the original input event. Taking the touch operation as a click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then calls the kernel layer to start the camera driver. 193 Capture still images or video.
  • FIG. 4 is a schematic diagram of an application scenario according to an exemplary embodiment.
  • users in order to avoid leaking the privacy of the mobile phone, users usually set a lock screen password on the mobile phone, for example, set a fingerprint password on the mobile phone.
  • a lock screen password on the mobile phone
  • the TP touch module 11 in the phone In response to the touch operation on the fingerprint recognition area 1, the LCD interrupt is triggered to send an LCD interrupt instruction to the LCD controller 13.
  • the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and When the touch area is greater than or equal to the area threshold, a touch completion message is sent to the fingerprint module 12 .
  • the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition, and at the same time sends the touch completion message to the display module 14; the LCD controller 13 receives the LCD interrupt command. In this case, the initialization operation of the LCD screen is performed.
  • an initialization completion message is sent to the display module 14; when the display module 14 receives the initialization completion message and the touch completion message, it lights up the LCD screen.
  • the fingerprint module 12 backlight, and sends a backlight lighting message to the fingerprint module 12; after the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects fingerprints in the fingerprint recognition area. information, and when the fingerprint verification passes, the fingerprint verification message is sent to the unlocking module 15; the mobile phone unlocks the LCD screen of the mobile phone through the unlocking module 15, and displays the unlocked mobile phone interface, for example, displaying the desktop 3 of the mobile phone .
  • the display module 14 when the display module 14 turns on the backlight, it can turn on all the backlights, or it can turn on the backlights in some areas. For example, it can turn on the backlights at the frame of the mobile phone and light up the backlights in the fingerprint recognition area. Lights etc.
  • lighting of the backlight in the fingerprint recognition area is used as an example for explanation, and in the illustration of the embodiment of the present application, the background filling of the fingerprint recognition area is used to represent lighting of the backlight of the fingerprint recognition area. lamp.
  • the user when using a mobile phone, the user may pay for resources through the payment application of the mobile phone. Before paying for resources, security verification is usually required for property security.
  • the payment verification interface 4 can be displayed.
  • the payment verification interface 4 displays a fingerprint recognition area 1, and the user can touch the fingerprint recognition area 1; the TP touch module in the mobile phone 11
  • the LCD interrupt is triggered to send an LCD interrupt instruction to the LCD controller 13.
  • the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, And when the touch area is greater than or equal to the area threshold, a touch completion message is sent to the fingerprint module 12 .
  • the fingerprint module 12 When the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition, and at the same time sends the touch completion message to the display module 14; the LCD controller 13 receives the LCD interrupt command. In this case, the initialization operation of the LCD screen is performed.
  • an initialization completion message is sent to the display module 14; when the display module 14 receives the initialization completion message and the touch completion message, it lights up the LCD screen. backlight, and sends a backlight lighting message to the fingerprint module 12; since the fingerprint identification operation is performed when the mobile phone displays the payment verification interface, the mobile phone screen is already in a lighting state, so in response to lighting up the backlight of the LCD screen operation, the mobile phone can continue to display the payment verification interface.
  • the fingerprint module 12 After the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint recognition area. fingerprint information at the domain, and if the fingerprint verification passes, the fingerprint verification pass message is sent to the payment module 16; the mobile phone completes the payment of resources through the payment module 16, and displays the payment completion interface 5 after the payment is completed.
  • the user when logging in to an account through fingerprint verification in a video application, the user can touch the fingerprint recognition area 1 in the fingerprint login interface 6 of the video application; the TP touch module 11 in the mobile phone responds to The touch operation on the fingerprint recognition area 1 triggers an LCD interrupt to send an LCD interrupt command to the LCD controller 13.
  • the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and When the control area is greater than or equal to the area threshold, a touch completion message is sent to the fingerprint module 12.
  • the fingerprint module 12 receives the touch completion message, it identifies whether the type of touch operation is a touch operation for fingerprint recognition.
  • the touch completion message is sent to the display module 14; when the LCD controller 13 receives the LCD interrupt command, it performs an initialization operation of the LCD screen, and when the initialization operation is completed, it sends an initialization completion message to the display module 14; When the display module 14 receives the initialization completion message and the touch completion message, it lights the backlight of the LCD screen and sends the backlight lighting message to the fingerprint module 12; this is done while the mobile phone is displaying the fingerprint login interface. During the fingerprint recognition operation, the mobile phone screen is already in a lit state. Therefore, in response to the operation of lighting up the backlight of the LCD screen, the mobile phone can continue to display the fingerprint login interface.
  • the fingerprint module 12 After the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information in the fingerprint recognition area, and if the fingerprint verification passes, the fingerprint module 12 passes the fingerprint verification. The message is sent to the login module 17; the mobile phone completes the account login through the login module 17, and displays the application interface 7 of the video application program.
  • the user when using the mobile phone, the user may set application locks on some applications. For example, setting application locks on social applications, the user clicks the application icon of the social application; in response to the For the click operation of the application icon, see Figure 7, the mobile phone displays the application unlocking interface 8, and the user can touch the fingerprint recognition area 1 displayed in the application unlocking interface 8; the TP touch module 11 in the mobile phone responds to the touch on the fingerprint recognition area 1.
  • the touch operation triggers the LCD interrupt to send an LCD interrupt command to the LCD controller 13.
  • the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and when the touch area is greater than or equal to the area threshold, In the case of , a touch completion message is sent to the fingerprint module 12.
  • the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition, and at the same time sends the touch completion message to the display Module 14;
  • the LCD controller 13 receives the LCD interrupt command, it performs the initialization operation of the LCD screen.
  • the initialization operation is completed, it sends an initialization completion message to the display module 14; the display module 14 receives the initialization completion message.
  • the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information in the fingerprint recognition area, and if the fingerprint verification passes, the fingerprint module 12 passes the fingerprint verification.
  • the message is sent to the application lock module 18; the mobile phone no longer displays the application unlocking interface 8 through the application lock module 18, that is, the mobile phone is unlocked through the application lock module Set the application lock on the social application, and then display the application interface 9 of the social application.
  • FIG. 8 is a schematic flowchart of a fingerprint unlocking method according to an exemplary embodiment
  • FIG. 8 takes unlocking a mobile phone screen as an example for explanation.
  • here is an example of the method being applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules as shown in Figure 3.
  • the method may include some or all of the following content:
  • Step A1 In the locked screen state, the TP touch module responds to the touch operation on the fingerprint recognition area, triggers the LCD interrupt, sends an LCD interrupt command to the LCD controller, and detects whether the touch area of the touch operation is greater than or equal to the area threshold.
  • the TP touch module can directly trigger an LCD interrupt to send an LCD interrupt command to the LCD controller and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
  • touch area of the touch operation refers to the contact area between the user's finger and the mobile phone screen when the user's finger acts on the fingerprint recognition area.
  • the TP touch module can include a touch sensor and a touch processor. Therefore, as an example, the TP touch module can detect the user's touch operation through the touch sensor, and after detecting the user's touch operation In this case, the touch processor triggers the LCD interrupt to send an LCD interrupt instruction to the LCD controller, and detects whether the touch area of the touch operation is greater than or equal to the area threshold.
  • the area threshold is a threshold set in advance according to requirements, and the minimum value of the set area threshold is the area required to implement the fingerprint recognition function.
  • the operation of the TP touch module to detect whether the touch area of the touch operation is greater than or equal to the area threshold includes: detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area. When the number is greater than or equal to the number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
  • the operation of the TP touch module to detect whether the touch area of the touch operation is greater than or equal to the area threshold may not only include the above methods, but may also include other methods.
  • the operation of the TP touch module to detect whether the touch area of the touch operation is greater than or equal to the area threshold may not only include the above methods, but may also include other methods.
  • the embodiments of this application are This will not be described one by one.
  • Step A2 After receiving the LCD interrupt command, the LCD controller initializes the LCD screen.
  • the TP touch module can send an LCD interrupt command to the LCD controller when detecting a touch operation, during the process of the TP touch module detecting whether the touch area is greater than or equal to the area threshold, The LCD controller can perform initialization operations on the LCD screen at the same time, thereby shortening the time waiting for the LCD initialization operation and speeding up fingerprint unlocking.
  • the LCD controller can refer to related technologies for initializing the LCD screen, such as for example, the initialization operations of the LCD controller on the LCD screen include clearing the LCD screen (DISPLAY CLEAR), setting the function of the LCD screen (FUNCTION SET), display on/off control mode (DISPLAY ON/OFF CONTROL) and LCD screen Input mode setting (ENTRY MODE SET), etc. This will not be described in detail in the embodiments of this application.
  • Step A3 When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
  • the LCD controller can send an initialization completion message to the display module after the LCD screen initialization is completed.
  • Step A4 When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
  • the minimum value of the area threshold is the area required to realize the fingerprint recognition function, therefore, when the touch area is greater than or equal to the area threshold, A touch completion message can be sent to the fingerprint module.
  • the TP touch module when the TP touch module detects that the touch area is smaller than the area threshold, it indicates that the user may have touched the fingerprint recognition area by mistake and did not intend to unlock the phone. Therefore, the TP touch module can The controller sends a touch failure message. When the LCD controller receives the touch failure message, if the current initialization operation on the LCD screen is not completed, the initialization operation will no longer be performed. At the same time, the TP touch module will not send any message to the fingerprint module.
  • the TP touch module when the TP touch module detects that the touch area is less than the area threshold, the TP touch module can also send a touch failure message to the LCD controller and the fingerprint module at the same time. If the current initialization of the LCD screen If the operation is not completed, the initialization operation will no longer be performed; at the same time, the fingerprint module will not perform any operation when receiving the touch failure message.
  • the TP touch module when the TP touch module detects that the touch area is smaller than the area threshold, it does not send a touch failure message to any module.
  • Step A5 When receiving the touch completion message, the fingerprint module forwards the touch completion message to the display module.
  • the touch area is greater than or equal to the area threshold, it means that this touch operation is not a misoperation of the mobile phone screen by the user, but requires fingerprint unlocking.
  • fingerprint unlocking process in order to remind the user of this The touch operation is valid and the backlight can be turned on during the fingerprint unlocking process. Therefore, when the fingerprint module receives the touch completion message, it can forward the touch completion message to the display module.
  • the fingerprint module when receiving the touch completion message, can not only forward the touch completion message to the display module, but also identify the touch operation based on the touch data carried in the touch completion message. Whether it is a touch operation for fingerprint recognition.
  • the touch data may include the touch operation in the fingerprint recognition area. Control the duration.
  • the fingerprint module can refer to related technologies for identifying the type of touch operation based on touch data. For example, if the touch data includes the touch duration, if it is detected that the touch duration is greater than or equal to If the duration threshold is determined, the touch operation is determined to be a touch operation for fingerprint recognition. Alternatively, the touch data may also include the capacitance value in the screen after the touch operation, the pressure value generated by the touch operation on the screen, the acceleration value generated by the touch operation on the mobile phone, etc. If the fingerprint module detects that the capacitance value is located When the pressure value is within the preset capacitance range, the pressure value is within the preset pressure range, and the acceleration value is within the preset acceleration range, the touch operation is determined to be a touch operation for fingerprint recognition.
  • the preset capacitance range, the preset pressure range and the preset acceleration range are all obtained based on the machine learning algorithm. For example, you can conduct multiple touch tests on the screen of the mobile phone in advance, and each time you touch the knuckles, hand Touch screens such as fingernails, fingertips, and touch capacitive pens, and record the touch data corresponding to each touch, and then compare the touch operations generated by touch operations through the fingertips and touch operations through non-fingertips. The data is counted and differentiated to determine the range of touch data generated by each type of touch operation. This will not be described in detail in the embodiments of this application.
  • the TP touch module may have sent a touch completion message to the fingerprint module; or, when the TP touch module detects that the touch area is greater than or equal to the area In the case of the threshold, the LCD controller has sent an initialization completion message to the display module; or, in the case where the TP touch module detects that the touch area is greater than or equal to the area threshold, the LCD controller happens to have also completed the initialization of the LCD screen. operation, therefore, while the LCD controller sends an initialization completion message to the display module, the TP touch module is also sending a touch completion message to the fingerprint module. Therefore, the execution order of step A3 and step A4 is not limited in this embodiment of the present application.
  • Step A6 After receiving the touch completion message and the initialization completion message, the display module lights the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
  • the backlight of the LCD screen lit by the display module can be all the backlights installed in the mobile phone, or it can be the backlight in a designated area. For example, it can light up the backlight in the fingerprint recognition area and the frame of the mobile phone. backlight, etc.
  • the embodiments of this application do not specifically limit this.
  • Step A7 When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
  • the fingerprint module includes a fingerprint collection module. Therefore, when the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it can collect the fingerprint recognition area through the fingerprint collection module. fingerprint information within.
  • the fingerprint collection module may include a fingerprint sensor. Therefore, the fingerprint information in the fingerprint recognition area may be collected through the fingerprint sensor.
  • Step A8 The fingerprint module performs fingerprint verification based on fingerprint information.
  • the fingerprint module includes a fingerprint identification module. Therefore, after the fingerprint acquisition module collects the fingerprint information, it can send the fingerprint information to the fingerprint identification module. After receiving the fingerprint information, the fingerprint identification module performs fingerprint verification based on the fingerprint information. .
  • the fingerprint identification module performs fingerprint verification based on fingerprint information including: comparing the collected fingerprint information with the stored fingerprint information, and determining that the fingerprint verification passes if the target fingerprint information exists in the stored fingerprint information.
  • the target fingerprint information is fingerprint information whose similarity to the collected fingerprint information is greater than or equal to the similarity threshold.
  • the stored fingerprint information refers to the fingerprint information that the user has entered in advance in the mobile phone.
  • the mobile phone in response to the fingerprint unlocking setting operation, can display the fingerprint entry interface, and the user can also The pad of a finger is touched multiple times on the fingerprint entry area in the fingerprint entry interface, so that the mobile phone stores the fingerprint information of the finger in response to the multiple touch operations on the fingerprint entry area.
  • users can repeat the above operations to make the phone store fingerprint information of different fingers.
  • the similarity threshold can be set in advance according to requirements.
  • the similarity threshold can be 99%, 96%, 90%, etc.
  • Step A9 When the fingerprint verification passes, the fingerprint module sends a fingerprint verification passing message to the unlocking module.
  • the fingerprint module can unlock the mobile phone, when the fingerprint verification passes, the fingerprint module sends a fingerprint verification passing message to the unlocking module.
  • Step A10 Upon receiving the message that the fingerprint verification has passed, the unlocking module unlocks the mobile phone screen.
  • the operation of the unlocking module to unlock the mobile phone screen can refer to related technologies.
  • the unlocking module can create a wake lock (WakeLock) corresponding to the screen and activate the wake lock, thereby unlocking the mobile phone screen. This will not be described in detail in the embodiments of this application.
  • the user can implement various functions through the mobile phone, and different touch operations can trigger different functions.
  • the unlocking module unlocks the mobile phone screen, the mobile phone The fingerprint recognition area is no longer displayed.
  • the unlocking module can also send an unlocking success message to the display module.
  • the display module lights up the screen of the mobile phone.
  • the LCD interrupt command can be directly sent to the LCD controller when a touch operation is detected, the operation of initializing the LCD screen is combined with the operation of detecting the touch area. At the same time, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved.
  • FIG. 9 is a schematic flowchart of a fingerprint unlocking method according to another exemplary embodiment.
  • payment of resources through fingerprint identification is used as an example for illustration.
  • here is an example of the method being applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules as shown in Figure 3.
  • the method may include some or all of the following content:
  • Step B1 The shopping application displays a payment verification interface in response to the triggering operation of confirming the payment option.
  • the shopping application may display a payment verification interface in which the fingerprint recognition area is displayed.
  • Step B2 In response to the touch operation on the fingerprint recognition area in the payment verification interface, the TP touch module triggers the LCD interrupt to send an LCD interrupt command to the LCD controller and detects whether the touch area of the touch operation is greater than or equal to the area. threshold.
  • Step B3 After receiving the LCD interrupt command, the LCD controller initializes the LCD screen.
  • the fingerprint recognition operation is performed when the payment verification interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted.
  • the LCD screen is already in Initialization completion status. Therefore, when the LCD controller receives the LCD interrupt command and detects the initialization completion flag, it can directly perform the operation of step B4 below.
  • the initialization completion identifier is used to uniquely identify the completion of the initialization operation of the LCD screen.
  • Step B4 When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
  • Step B5 When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
  • Step B6 When receiving the touch completion message, the fingerprint module forwards the touch completion message to the display module.
  • Step B7 After receiving the touch completion message and the initialization completion message, the display module lights the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
  • the display module can directly send a fingerprint collection message to the fingerprint module if it detects the lighting logo. information.
  • the lighting logo is used to uniquely identify that the backlight of the LCD screen is lit.
  • Step B8 When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
  • Step B9 The fingerprint module performs fingerprint verification based on the fingerprint information.
  • steps B2-B9 may refer to the above-mentioned operations of steps A1-A8, which will not be described in detail in the embodiment of the present application.
  • Step B10 When the fingerprint verification passes, the fingerprint module sends a fingerprint verification passing message to the payment module.
  • the fingerprint module Since the payment module is capable of resource payment, when the fingerprint verification passes, the fingerprint module sends a fingerprint verification pass message to the payment module.
  • Step B11 Upon receiving the fingerprint verification passing message, the payment module performs a resource payment operation.
  • the LCD interrupt command can be directly sent to the LCD controller when a touch operation is detected, the operation of initializing the LCD screen is combined with the operation of detecting the touch area. At the same time, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved.
  • FIG. 10 is a schematic flow chart of a fingerprint unlocking method according to another exemplary embodiment
  • FIG. 10 takes account login through fingerprint recognition as an example for explanation.
  • here is an example of the method being applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules as shown in Figure 3.
  • the method may include some or all of the following content:
  • Step C1 The video application displays the fingerprint login interface in response to the triggering operation on the login option.
  • the video application can display the fingerprint login interface.
  • the fingerprint login interface Displays fingerprint recognition area.
  • Step C2 In response to the touch operation on the fingerprint recognition area in the fingerprint login interface, the TP touch module triggers the LCD interrupt to send an LCD interrupt command to the LCD controller, and detects whether the touch area of the touch operation is greater than or equal to the area. threshold.
  • Step C3 After receiving the LCD interrupt command, the LCD controller initializes the LCD screen.
  • the fingerprint recognition operation is performed when the fingerprint login interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted.
  • the LCD screen is already in Initialization completion status. Therefore, when the LCD controller receives the LCD interrupt command and detects the initialization completion flag, it can directly perform the operation of step C4 below.
  • the initialization completion identifier is used to uniquely identify the completion of the initialization operation of the LCD screen.
  • Step C4 When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
  • Step C5 When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
  • Step C6 When receiving the touch completion message, the fingerprint module forwards the touch completion message to the display module.
  • Step C7 After receiving the touch completion message and the initialization completion message, the display module lights the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
  • the display module can directly send a fingerprint collection message to the fingerprint module if it detects the lighting logo. information.
  • the lighting logo is used to uniquely identify that the backlight of the LCD screen is lit.
  • Step C8 When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
  • Step C9 The fingerprint module performs fingerprint verification based on fingerprint information.
  • steps C2 to C9 may refer to the operations of steps A1 to A8, which will not be described in detail in the embodiments of the present application.
  • Step C10 When the fingerprint verification passes, the fingerprint module sends a fingerprint verification passing message to the login module.
  • the fingerprint module can realize account login, when the fingerprint identification is successful, the fingerprint module can send a fingerprint verification pass message to the login module.
  • Step C11 Upon receiving the message that the fingerprint verification has passed, the login module performs the account login operation.
  • the LCD interrupt command can be directly sent to the LCD controller when a touch operation is detected, the operation of initializing the LCD screen is combined with the operation of detecting the touch area. At the same time, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved.
  • FIG. 11 shows a schematic flow chart of a fingerprint unlocking method according to another exemplary embodiment
  • FIG. 11 takes starting an application through fingerprint recognition as an example for illustration.
  • here is an example of the method being applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules as shown in Figure 3.
  • the method may include some or all of the following content:
  • Step D1 In response to the startup operation of the social application, the application lock module displays an application unlocking interface.
  • application locks can usually be set on applications. For example, in order to avoid the leakage of chat records, users can set application locks on social applications.
  • the application lock module may display an application unlocking interface, and the fingerprint recognition area may be displayed in the application unlocking interface.
  • the operation of the application lock module to display the application unlock interface includes: in response to the startup operation of the social application, the application lock module may interrupt the display of the application interface of the social application, And display the application unlock interface.
  • the operation of the application lock module to interrupt the display of the application interface of the social application includes: the application lock module overlays and displays the application unlock interface on the application interface of the social application.
  • the App Lock module interrupts the launch process of the social application.
  • Step D2 In response to the touch operation on the fingerprint recognition area in the application unlocking interface, the TP touch module triggers an LCD interrupt to send an LCD interrupt command to the LCD controller, and detects whether the touch area of the touch operation is greater than or equal to the area. threshold.
  • Step D3 After receiving the LCD interrupt command, the LCD controller initializes the LCD screen.
  • the fingerprint recognition operation is performed when the application unlocking interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted.
  • the LCD screen is already in Initialization completion status. Therefore, when the LCD controller receives the LCD interrupt command and detects the initialization completion flag, it can directly perform the operation of step D4 below.
  • the initialization completion identifier is used to uniquely identify the completion of the initialization operation of the LCD screen.
  • Step D4 When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
  • Step D5 When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
  • Step D6 When receiving the touch completion message, the fingerprint module forwards the touch completion message to the display module.
  • Step D7 After receiving the touch completion message and the initialization completion message, the display module lights the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
  • the display module Since in the current scene, the backlight of the LCD screen is already on, the display module is receiving After the touch completion message and the initialization completion message are received, if the lighted logo is detected, the fingerprint collection message can be sent directly to the fingerprint module.
  • the lighting logo is used to uniquely identify that the backlight of the LCD screen is lit.
  • Step D8 When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
  • Step D9 The fingerprint module performs fingerprint verification based on fingerprint information.
  • steps D2 to D9 may refer to the operations of steps A1 to A8, which will not be described in detail in the embodiments of the present application.
  • Step D10 When the fingerprint verification passes, the fingerprint module sends a fingerprint verification passing message to the application lock module.
  • the application lock module can lock and unlock the social application, in order to unlock the social application, when the fingerprint verification passes, the fingerprint module can send a fingerprint verification pass message to the application lock module.
  • Step D11 Upon receiving the fingerprint verification passed message, the application lock module displays the application interface of the social application.
  • the application lock module can lock social applications in different ways, that is, the application lock module can interrupt the display of the application interface of the social application in different ways.
  • the application lock module can display the application interface of the social application in different ways. application interface.
  • the application lock module locks the social application by overlaying and displaying the fingerprint recognition interface on the application interface of the social application
  • the application lock module if the application lock module receives the fingerprint verification passed message, the application lock module no longer Display the fingerprint recognition interface to realize the display of the application interface of the social application.
  • the application lock module locks the social application by interrupting the startup process of the social application
  • the application lock module if the application lock module receives the fingerprint verification passed message, the application lock module releases the interruption of the startup process of the social application. The operation is interrupted so that the social application continues the startup process and the application interface of the social application is displayed.
  • the LCD interrupt command can be directly sent to the LCD controller when a touch operation is detected, the operation of initializing the LCD screen is combined with the operation of detecting the touch area. At the same time, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved.
  • Figure 12 shows a schematic flow chart of a fingerprint unlocking method according to another exemplary embodiment.
  • the method is applied to electronic devices here.
  • the method may include some or all of the following content:
  • Step 1201 In response to a touch operation on the fingerprint recognition area in the touch screen of the electronic device, generate an interrupt instruction and detect the touch area of the touch operation.
  • the electronic device may include a touch screen touch module and a touch screen controller; therefore, as an example, in response to a touch operation on the fingerprint recognition area in the touch screen of the electronic device, an interrupt instruction is generated and the touch operation is detected.
  • the operation of the touch area includes: in response to the touch operation on the fingerprint recognition area in the touch screen, the touch screen touch module generates an interrupt command and detects the touch area of the touch operation; the touch screen touch module sends an interrupt command to the touch screen controller.
  • the touch screen touch module can send an interrupt command to the touch screen controller when a touch operation is detected, the timing of sending the interrupt command is advanced and the unlocking speed is accelerated.
  • touch screen touch module can be the TP touch module described above
  • touch screen controller can be the LCD controller described above
  • interrupt command can be the LCD interrupt command described above. This is not the case in the embodiments of the present application. Make specific limitations.
  • touch area of the touch operation refers to the contact area between the user's finger and the touch screen of the electronic device when the user's finger acts on the fingerprint recognition area.
  • the electronic device detects the touch area of the touch operation in order to detect whether the touch area is greater than or equal to the area threshold. Therefore, the operation of the electronic device detecting the touch area of the touch operation includes: detecting the touch area of the touch operation in the fingerprint. The number of touch sensors touched by the identification area; when the number of touch sensors is greater than or equal to the number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
  • the number threshold can be set in advance according to requirements.
  • the minimum value of the number threshold can be the number required to implement the fingerprint recognition function.
  • the area threshold can also be set in advance according to requirements, and the minimum value of the set area threshold is the area required to implement the fingerprint recognition function.
  • the operation of the electronic device to detect the touch area of the touch operation may not only include the above methods, but may also include other methods.
  • Step 1202 In response to the interrupt instruction, control the touch screen to perform initialization operations.
  • the touch screen touch module sends an interrupt command to the touch screen controller. Therefore, the touch screen controller can initialize the touch screen in response to the interrupt command when receiving the interrupt command.
  • the touch screen module since the touch screen module detects a touch operation, it can send an interrupt command to the touch screen controller, so that during the process of the touch screen module detecting whether the touch area is greater than or equal to the area threshold, the touch screen controller can The touch screen initialization operation is performed at the same time, thereby shortening the time waiting for the touch screen initialization operation and speeding up fingerprint unlocking.
  • Step 1203 When the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, light the backlight of the electronic device.
  • the electronic device when the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the electronic device can light up all the installed backlights, etc., and can further light up the backlights in some areas, for example, lighting up preset Assume that the backlight is provided in an area, and the preset area is at least one area among a fingerprint recognition area and a frame area of the electronic device.
  • the preset area may also be the designated area described above, which is not specifically limited in this embodiment of the present application.
  • the backlight of the electronic device can be selectively lit, the diversity of the backlight functions is improved, and since there is no need to light up the screen of the electronic device, power waste is saved.
  • the electronic device also includes a fingerprint module and a display module; therefore, as an example, when the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the operation of the electronic device to light up the backlight of the electronic device includes : When the touch screen initialization is completed, the touch screen controller sends an initialization completion message to the display module; when the touch area is greater than or equal to the area threshold, the touch screen touch module sends a touch completion message to the display module through the fingerprint module; display The module lights up the backlight after receiving the initialization completion message and touch completion message.
  • the touch screen touch module can send a touch completion message to the fingerprint module. And because the touch area is greater than or equal to the area threshold, it means that this touch operation is not a misoperation of the TV device screen by the user, but requires fingerprint unlocking, and during the fingerprint unlocking process, in order to prompt the user This touch operation is valid and can also light up the backlight during the fingerprint unlocking process. Therefore, when the fingerprint module receives the touch completion message, it can forward the touch completion message to the display module.
  • the touch screen controller can send an initialization completion message to the display module after the touch screen initialization is completed.
  • the touch screen module may detect that the touch area is less than the area threshold. In this case, the touch screen control module may send a touch failure message to the touch screen controller; the touch screen controller may In the case of a touch failure message, if the initialization operation on the touch screen is not completed, the initialization operation on the touch screen is stopped.
  • the touch screen touch module can send a touch signal to the touch screen controller. Control failure message.
  • the initialization operation of the touch screen can be interrupted, thereby avoiding fingerprint recognition when the user accidentally touches it and improving the reliability of fingerprint recognition.
  • the touch screen module when the touch screen module detects that the touch area is less than the area threshold, it can not only send a touch failure message to the touch screen controller, but also send a touch failure message to the fingerprint module; the touch screen When the controller receives a touch failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen; when the fingerprint module receives a touch failure message, it does not need to make any response.
  • the touch screen touch module when the touch screen touch module detects that the touch area is smaller than the area threshold, it may not send a touch failure message to any module.
  • Step 1204 With the backlight on, control the electronic device to perform a fingerprint unlocking operation.
  • fingerprint information in the fingerprint recognition area is collected; fingerprint verification is performed based on the fingerprint information; when the fingerprint verification is passed, the execution of the electronic device is controlled according to the current state of the electronic device Operations corresponding to the fingerprint unlock function.
  • the electronic device can include a display module and a fingerprint module, and the display module can light up the backlight. Therefore, when the backlight is turned on, the display module can send a fingerprint collection message to the fingerprint module; the fingerprint module receives When receiving the fingerprint collection message, you can collect the fingerprint information in the fingerprint recognition area; perform fingerprint verification based on the fingerprint information.
  • the electronic device can also identify the touch operations before collecting fingerprint information in the fingerprint recognition area with the backlight turned on. type; when the type of touch operation is a touch operation for fingerprint recognition, perform the operation of step 1204.
  • the electronic device can identify whether the touch operation type is a touch operation for fingerprint recognition through the fingerprint module.
  • the fingerprint module may identify whether the touch operation is a touch operation for fingerprint recognition based on the touch data carried in the touch completion message.
  • the touch data may include the touch operation in the fingerprint recognition area. Control the duration.
  • the method for the fingerprint module to identify the type of touch operation based on the touch data can refer to the method described in the above step A5, which will not be described in detail in the embodiment of the present application.
  • the operation of the electronic device to perform operations corresponding to the fingerprint unlocking function according to the current state of the electronic device includes: when the fingerprint verification passes, if the electronic device is currently in a screen to be unlocked status, unlock the screen of the electronic device; when the fingerprint verification is passed, if the electronic device is currently in the resource pending payment state, the resource payment operation is performed; when the fingerprint verification is passed, if the electronic device is currently in the account pending login state status, the account login operation is performed; when the fingerprint verification is passed, if the electronic device is currently in the application lock to be unlocked state, the application lock of the target application is unlocked to display the application interface of the target application.
  • the target application is Any application installed on an electronic device.
  • the target application is set with an application lock and is currently in a state of being launched.
  • the application lock is used to encrypt the startup of the target application.
  • the fingerprint unlocking function can be applied in a variety of scenarios, when the fingerprint verification is passed, the electronic device is in different states and the operations performed by the electronic device are also different. Therefore, when the fingerprint verification is passed, the electronic device , it is necessary to perform operations corresponding to the fingerprint unlock function based on the current state of the electronic device.
  • the touch screen initialization operation and the operation of detecting the touch area are performed simultaneously. This shortens the fingerprint unlocking time and improves the fingerprint unlocking efficiency.
  • FIG. 13 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • the structure of the electronic device includes a processor 1310 and a memory 1320.
  • the number of processors 1310 can be one or more. indivual.
  • the memory 1310 is used to store programs that support the electronic device to perform the fingerprint unlocking methods provided in the above embodiments, and to store data involved in implementing the fingerprint unlocking methods described in the above embodiments.
  • the electronic device may further include a communication bus 1330 for establishing a connection between the processor 1310 and the memory 1320 .
  • the processor 1310 is configured to:
  • the electronic device When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
  • the processor 1310 is also configured to:
  • the touch screen initialization When the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the backlight at the preset area is lit, and the preset area is the fingerprint recognition area and the electronic device. At least one area within the border area.
  • the electronic device includes a touch screen touch module and a touch screen controller; the processor 1310 is also configured to:
  • the touch screen touch module In response to a touch operation on the fingerprint recognition area in the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
  • the touch screen touch module sends the interrupt instruction to the touch screen controller.
  • the processor 1310 is also configured to:
  • the touch screen controller When receiving the interrupt instruction, the touch screen controller performs an initialization operation on the touch screen in response to the interrupt instruction.
  • the processor 1310 is also configured to:
  • the touch screen touch module sends a touch failure message to the touch screen controller
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initialization operation on the touch screen is not completed, it stops the initialization operation on the touch screen.
  • the electronic device also includes a fingerprint module and a display module;
  • the processor 1310 is also configured to:
  • the touch screen controller sends an initialization completion message to the display module
  • the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
  • the display module When receiving the initialization completion message and the touch completion message, the display module lights the backlight.
  • the processor 1310 is also configured to:
  • the touch screen touch module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
  • the touch screen controller When the touch screen controller receives the touch control failure message, if the initial operation of the touch screen If the initialization operation is not completed, stop the initialization operation on the touch screen;
  • the fingerprint module does not perform any response when receiving the touch failure message.
  • the processor 1310 is also configured to:
  • the electronic device is controlled to perform an operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
  • the processor 1310 is also configured to:
  • the type of the touch operation is a touch operation for fingerprint recognition
  • the operation of collecting fingerprint information in the fingerprint recognition area is performed while the backlight is turned on.
  • the processor 1310 is also configured to:
  • the fingerprint verification is passed, if the electronic device is currently in a resource pending payment state, the resource payment operation is performed;
  • the fingerprint verification is passed, if the electronic device is currently in the account pending login state, the account login operation is performed;
  • the application lock of the target application is unlocked to display the application interface of the target application, and the target application is the electronic device. Any application installed on the device, the target application is set with the application lock and is currently in a state to be started, and the application lock is used to encrypt the startup of the target application.
  • the processor 1310 is also configured to:
  • the touch screen initialization operation and the operation of detecting the touch area are performed simultaneously. This shortens the fingerprint unlocking time and improves the fingerprint unlocking efficiency.
  • Each functional unit and module in the above embodiments can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can either use hardware. It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the embodiments of the present application.
  • the electronic device provided by the above embodiments and the fingerprint unlocking method embodiments belong to the same concept.
  • the specific working processes and technical effects of the units and modules in the above embodiments can be found in the method embodiments section, and will not be repeated here. narrate.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, such as from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) methods.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center integrated with one or more available media.
  • the available media may be magnetic media (such as floppy disks, hard disks, tapes), optical media (such as Digital Versatile Disc (DVD)) or semiconductor media (such as Solid State Disk (SSD)) wait.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种指纹解锁方法、电子设备、可读存储介质及芯片,属于终端技术领域。应用于电子设备中,所述方法包括:响应于对电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积;响应于所述中断指令,控制所述触摸屏进行初始化操作;在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯;在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作。本申请通过在进行指纹解锁的情况下,若检测到触控操作,则直接响应于中断指令,控制触摸屏进行初始化操作,使得触摸屏的初始化操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。

Description

指纹解锁方法、电子设备、可读存储介质及芯片
本申请要求于2022年07月29日提交到国家知识产权局、申请号为202210908805.0、申请名称为“指纹解锁方法、电子设备、可读存储介质及芯片”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,特别涉及一种指纹解锁方法、电子设备、可读存储介质及芯片。
背景技术
随着人们对电子设备的日渐依赖,电子设备中所记录的用户信息越来越多,这些用户信息关系到用户的财产、隐私等,因此,用户对电子设备安全性的要求越来越高。为了保证电子设备的安全性,通常可以对电子设备设置各类解锁验证,比如,指纹解锁验证。
在指纹解锁过程中,电子设备需要点亮液晶显示屏(liquid crystal display,LCD)屏,采集指纹识别区域内的指纹信息,根据指纹信息进行指纹识别验证,并在指纹验证通过后进行解锁。针对这一系列操作,如何提高指纹解锁效率成为亟需解决的问题。
发明内容
本申请提供了一种指纹解锁方法、电子设备、可读存储介质及芯片,可以解决相关技术中关于如何提高指纹解锁效率的问题。所述技术方案如下:
第一方面,提供了一种指纹解锁方法,应用于电子设备中,所述方法包括:
响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积;
响应于所述中断指令,控制所述触摸屏进行初始化操作;
在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯;
在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作。
如此,在进行指纹解锁的过程中,可以在检测到触控操作的情况下,直接响应于中断指令,控制触摸屏进行初始化操作,使得触摸屏的初始化操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
作为本申请的一个示例,所述在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯,包括:
在所述触摸屏初始化完成且所述触控面积大于或等于所述面积阈值的情况下,点亮预设区域处的背光灯,所述预设区域为所述指纹识别区域和所述电子设备的边框区域中的至少一个区域。
如此,通过选择性地点亮电子设备的背光灯,从而提高了背光灯功能的多样性,且由于无需点亮电子设备的屏幕,节省了电量浪费。
作为本申请的一个示例,所述电子设备中包括触摸屏触控模块和触摸屏控制器;
所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积,包括:
响应于对所述触摸屏中的所述指纹识别区域的触控操作,所述触摸屏触控模块产生所述中断指令并检测所述触控操作的触控面积;
所述触摸屏触控模块向所述触摸屏控制器发送所述中断指令。
如此,触摸屏触控模块在检测到触控操作的情况下即可向触摸屏控制器发送中断指令,从而提前了发送中断指令的时机,加快了解锁速度。
作为本申请的一个示例,所述响应于所述中断指令,控制所述触摸屏进行初始化操作,包括:
所述触摸屏控制器在接收到所述中断指令的情况下,响应于所述中断指令,对所述触摸屏进行初始化操作。
如此,通过在触摸屏触控模块检测触控面积是否大于或等于面积阈值的过程中,触摸屏控制器能够同时进行触摸屏的初始化操作,从而缩短了等待触摸屏初始化操作的时间,加快了指纹解锁速度。
作为本申请的一个示例,所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积之后,还包括:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作。
如此,通过向触摸屏控制器发送触控失败消息,从而避免了在用户误触的情况下进行指纹识别,提高了指纹识别的可靠性。
作为本申请的一个示例,所述电子设备中还包括指纹模块和显示模块;
所述在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯,包括:
在所述触摸屏初始化完成的情况下,所述触摸屏控制器向所述显示模块发送初始化完成消息;
在所述触控面积大于或等于面积阈值的情况下,所述触摸屏触控模块通过所述指纹模块向所述显示模块发送触控完成消息;
所述显示模块在接收到所述初始化完成消息和所述触控完成消息的情况下,点亮所述背光灯。
如此,通过响应初始化完成消息和触控完成消息,来点亮背光灯,从而保证了背光灯是在触控操作不为误操作,且触摸屏满足指纹识别条件的情况下点亮,提高了指纹识别的可靠性。
作为本申请的一个示例,所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积之后,还包括:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器和所述指纹模块分别发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作;
所述指纹模块在接收到所述触控失败消息的情况下,不进行任何响应。
如此,通过分别向触摸屏控制器和指纹模块发送触控失败消息,从而保证了能够通过不同方式来避免在用户误触的情况下进行指纹识别,提高了防止指纹误识别的可靠性。
作为本申请的一个示例,所述在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作,包括:
在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息;
根据所述指纹信息进行指纹验证;
在指纹验证通过的情况下,根据所述电子设备当前所处状态控制所述电子设备执行所述指纹解锁功能对应的操作。
如此,通过在电子设备处于不同的状态下,控制电子设备进行不同的操作,从而提高了指纹解锁的应用范围和应用丰富性。
作为本申请的一个示例,所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息之前,还包括:
识别所述触控操作的类型;
在所述触控操作的类型为进行指纹识别的触控操作的情况下,执行所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息的操作。
如此,通过确定触控操作是否为进行指纹识别的触控操作,从而避免了指纹识别的误操作,提高了指纹识别的可靠性。
作为本申请的一个示例,所述在指纹验证通过的情况下,根据所述电子设备当前所处状态执行所述指纹解锁功能对应的操作,包括:
在指纹验证通过的情况下,若所述电子设备当前处于屏幕待解锁状态,则解锁所述电子设备的屏幕;
在指纹验证通过的情况下,若所述电子设备当前处于资源待支付状态,则进行资源的支付操作;
在指纹验证通过的情况下,若所述电子设备当前处于账号待登录状态,则进行账号登录操作;
在指纹验证通过的情况下,若所述电子设备当前处于应用锁待解锁状态,则解锁目标应用程序的应用锁,以显示所述目标应用程序的应用界面,所述目标应用程序为所述电子设备安装的任意一个应用程序,所述目标应用程序设置有所述应用锁且当前处于待启动状态,所述应用锁用于对所述目标应用程序的启动进行加密。
如此,通过指纹解锁,可以实现电子设备的屏幕解锁功能、资源支付功能、账号登录功能和应用锁功能等,从而提高了指纹解锁的应用范围和应用丰富性。
作为本申请的一个示例,所述检测所述触控操作的触控面积,包括:
检测所述触控操作在所述指纹识别区域所触控的触控传感器的数量;
在所述触控传感器的数量大于或等于个数阈值的情况下,确定所述触控操作的触控面积大于或等于所述面积阈值。
如此,通过检测指纹识别区域被触发的触控传感器的数量即可确定触控面积是否大于或等于面积阈值,从而降低了检测触控面积的复杂度,提高了检测效率。
第二方面,提供了一种电子设备,所述电子设备的结构中包括处理器和存储器,所述存储器用于存储支持电子设备执行上述第一方面所提供的指纹解锁方法的程序,以及存储用于实现上述第一方面所述的指纹解锁方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述电子设备还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。所述处理器被配置为:
响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积;
响应于所述中断指令,控制所述触摸屏进行初始化操作;
在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯;
在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作。
作为本申请的一个示例,所述处理器还被配置为:
在所述触摸屏初始化完成且所述触控面积大于或等于所述面积阈值的情况下,点亮预设区域处的背光灯,所述预设区域为所述指纹识别区域和所述电子设备的边框区域中的至少一个区域。
作为本申请的一个示例,所述电子设备中包括触摸屏触控模块和触摸屏控制器;所述处理器还被配置为:
响应于对所述触摸屏中的所述指纹识别区域的触控操作,所述触摸屏触控模块产生所述中断指令并检测所述触控操作的触控面积;
所述触摸屏触控模块向所述触摸屏控制器发送所述中断指令。
作为本申请的一个示例,所述处理器还被配置为:
所述触摸屏控制器在接收到所述中断指令的情况下,响应于所述中断指令,对所述触摸屏进行初始化操作。
作为本申请的一个示例,所述处理器还被配置为:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作。
作为本申请的一个示例,所述电子设备中还包括指纹模块和显示模块;
所述处理器还被配置为:
在所述触摸屏初始化完成的情况下,所述触摸屏控制器向所述显示模块发送初始化完成消息;
在所述触控面积大于或等于面积阈值的情况下,所述触摸屏触控模块通过所述指纹模块向所述显示模块发送触控完成消息;
所述显示模块在接收到所述初始化完成消息和所述触控完成消息的情况下,点亮所述背光灯。
作为本申请的一个示例,所述处理器还被配置为:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器和所述指纹模块分别发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作;
所述指纹模块在接收到所述触控失败消息的情况下,不进行任何响应。
作为本申请的一个示例,所述处理器还被配置为:
在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息;
根据所述指纹信息进行指纹验证;
在指纹验证通过的情况下,根据所述电子设备当前所处状态控制所述电子设备执行所述指纹解锁功能对应的操作。
作为本申请的一个示例,所述处理器还被配置为:
识别所述触控操作的类型;
在所述触控操作的类型为进行指纹识别的触控操作的情况下,执行所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息的操作。
作为本申请的一个示例,所述处理器还被配置为:
在指纹验证通过的情况下,若所述电子设备当前处于屏幕待解锁状态,则解锁所述电子设备的屏幕;
在指纹验证通过的情况下,若所述电子设备当前处于资源待支付状态,则进行资源的支付操作;
在指纹验证通过的情况下,若所述电子设备当前处于账号待登录状态,则进行账号登录操作;
在指纹验证通过的情况下,若所述电子设备当前处于应用锁待解锁状态,则解锁目标应用程序的应用锁,以显示所述目标应用程序的应用界面,所述目标应用程序为所述电子设备安装的任意一个应用程序,所述目标应用程序设置有所述应用锁且当前处于待启动状态,所述应用锁用于对所述目标应用程序的启动进行加密。
作为本申请的一个示例,所述处理器还被配置为:
检测所述触控操作在所述指纹识别区域所触控的触控传感器的数量;
在所述触控传感器的数量大于或等于个数阈值的情况下,确定所述触控操作的触控面积大于或等于所述面积阈值。
第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的指纹解锁方法。
第四方面,提供了一种芯片,所述芯片包括处理器,所述处理器用于调用存储器中的计算机程序,以执行上述第一方面所述的指纹解锁方法。
第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的指纹解锁方法。
上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
附图说明
图1是本申请实施例提供的一种应用场景的示意图;
图2是本申请实施例提供的一种电子设备的结构示意图;
图3是根据一示例性实施例示出的一种电子设备的软件框架示意图;
图4是根据一示例性实施例示出的一种指纹解锁应用场景的示意图;
图5是根据另一示例性实施例示出的一种指纹解锁应用场景的示意图;
图6是根据另一示例性实施例示出的一种指纹解锁应用场景的示意图;
图7是根据另一示例性实施例示出的一种指纹解锁应用场景的示意图;
图8是根据一示例性实施例示出的一种指纹解锁方法的流程示意图;
图9是根据另一示例性实施例示出的一种指纹解锁方法的流程示意图;
图10是根据另一示例性实施例示出的一种指纹解锁方法的流程示意图;
图11是根据另一示例性实施例示出的一种指纹解锁方法的流程示意图;
图12是根据另一示例性实施例示出的一种指纹解锁方法的流程示意图;
图13是根据另一示例性实施例示出的一种电子设备的结构示意图。
附图标记:
1:指纹识别区域,2:锁屏界面,3:手机桌面,4:支付验证界面,5:支付完成
界面,6:指纹登录界面,7:视频应用程序的应用界面,8:应用解锁界面,9:社交应用程序的应用界面,11:TP触控模块,12:指纹模块,13:LCD控制器,14:显示模块,15:解锁模块,16:支付模块,17:登录模块,18:应用锁模块。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
随着终端技术的发展,为了更好的保护用户隐私以及电子设备的安全性,用户在使用电子设备的过程中通常会对电子设备设置指纹解锁,比如,用户在使用手机的过程中,可以对手机设置指纹解锁。参见图1,在手机灭屏的状态下,用户在需要对手机解锁的情况下,可以触控指纹识别区域1;手机中的触摸屏(TouchPad,TP)触控 模块11响应于手指在指纹识别区域1的触控操作,确定触控操作的触控面积是否大于面积阈值,并在触控面积大于面积阈值的情况下,向指纹模块发送指纹采集消息。指纹模块12在接收到指纹采集消息的情况下,采集指纹信息,并对采集的指纹信息进行识别,在指纹验证通过后向LCD控制器13发送LCD中断指令;LCD控制器13在接收到LCD中断指令的情况下,对LCD屏进行初始化,在初始化完成后向显示模块14发送初始化完成消息。显示模块14接收到初始化完成消息的情况下点亮LCD屏,并将LCD屏的点亮消息发送至解锁模块15,该LCD屏点亮后显示锁屏界面2,该锁屏界面2中显示有指纹识别区域。解锁模块15在接收到点亮消息的情况下,对手机的屏幕进行解锁,并显示开屏界面,该开屏界面为上一次锁屏前显示的界面,比如,显示手机桌面3。
但是,如果在手指与指纹识别区域的接触面积大于或等于面积阈值后再进行指纹识别操作,并在指纹验证通过的情况下才能向LCD控制器发送LCD中断指令的话,会导致LCD屏在接收到中断指令后才能进行LCD屏的初始化操作,这样会导致LCD屏初始化时间较长,使得最终的指纹解锁效率比较低。
为了缩短指纹解锁时间,以提高指纹解锁的效率,本申请实施例提供了一种指纹解锁方法,该方法能够在电子设备通过TP触控模块检测到触控操作的情况下直接向LCD控制器上报LCD中断指令,以使LCD控制器先进行LCD屏初始化的操作,同时,可以通过TP触控模块检测触控操作的触控面积是否大于或等于面积阈值,并在触控面积大于或等于面积阈值,且LCD初始化操作完成后,通过指纹模块进行指纹识别操作。其中,该面积阈值为预先设置的阈值,在触控面积大于或等于面积阈值的情况下,说明该触控操作为有效操作,并不是用户对指纹识别区域的误触操作,因此可以在触控面积大于或等于面积阈值后,通过指纹模块进行指纹识别操作。由于将LCD屏的初始化操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。其具体实现可以参见下文。
在对本申请实施例提供的指纹解锁方法进行详细地解释说明之前,先对本申请实施例涉及的电子设备予以说明。
本申请实施例提供的方法可以由电子设备执行,电子设备支持指纹解锁功能。进一步地,该电子设备中可以安装有诸如视频、导航、电子书、音乐、购物以及游戏等应用程序,这些应用程序能够支持通过指纹解锁进行支付资源的功能,和/或,支持通过指纹解锁进行账号登录的功能,和/或,支持通过指纹解锁进行应用程序启动的功能等等。作为示例而非限定,电子设备可以是但不限于手机运动相机(GoPro)、数码相机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、车载设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、手机、门锁、智能电器等,本申请实施例对此不作限定。
图2是本申请实施例提供的一种电子设备的结构示意图。参见图2,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器 170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,比如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口,如可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix  organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的整数。
内部存储器121可以用于存储计算机可执行程序代码,计算机可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,来执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100在使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,比如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。比如:当有触摸操作强度小于压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
接下来对电子设备100的软件系统予以说明。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的安卓(Android)系统为例,对电子设备100的软件系统进行示例性说明。
图3是本申请实施例提供的一种电子设备100的软件系统的框图。参见图3,分 层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,硬件抽象层(hardware abstract layer,HAL),以及内核层。
应用程序层可以包括一系列应用程序包。如图3所示,应用程序包可以包括购物,视频,社交,相机,日历,地图等应用程序。
作为本申请的一种示例,应用程序层还包括解锁模块,该解锁模块用于在接收到HAL层发送的指纹验证通过消息的情况下,对电子设备的屏幕进行解锁。
作为本申请的一种示例,应用程序层还包括支付模块,该支付模块用于在接收到HAL层发送的指纹验证通过消息的情况下,进行资源支付的操作。
作为本申请的一个示例,应用程序层还包括登录模块,该登录模块用于在接收到HAL层发送的指纹验证通过消息的情况下,进行账号登录的操作。
作为本申请的一个示例,应用程序层还包括应用锁模块,应用锁模块用于在接收到HAL层发送的指纹验证通过消息的情况下,解锁应用锁模块对应的应用程序,以显示对应应用程序的应用界面,对应的应用程序是指设置有应用锁且当前需要启动的应用程序。对应用程序设置应用锁是指对应用程序的启动进行加密,也即是,在启动应用程序时,需要对应用程序进行解锁后才能够显示应用程序的应用界面。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问,这些数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,比如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序的显示界面,显示界面可以由一个或多个视图组成,比如,包括显示短信通知图标的视图,包括显示文字的视图,以及包括显示图片的视图。电话管理器用于提供电子设备100的通信功能,比如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如,通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或滚动条文本形式出现在系统顶部状态栏的通知,比如后台运行的应用程序的通知。通知管理器还可以是以对话窗口形式出现在屏幕上的通知,比如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
作为本申请的一个示例,HAL层至少包括指纹(fingerprint,FP)模块,指纹模块用于在接收到内核层发送的触控完成消息的情况下,根据触控完成消息中携带的触控数据识别触控操作是否为进行指纹识别的触控操作,同时,将触控完成消息发送至内核层,以使内核层基于触控完成消息点亮背光灯,其中识别触控操作的类型可以是指识别触控操作是否为进行指纹识别的触控操作;且指纹模块在识别到触控该操作为进行指纹识别的触控操作,且接收到内核层发送的背光灯点亮消息的情况下,可以采 集指纹信息,并对采集的指纹信息进行识别,该背光灯点亮消息是内核层接收到触控完成消息后点亮背光灯的情况下发送。该指纹模块在基于采集的指纹信息确定指纹验证通过的情况下,可以向当前指纹解锁场景对应的模块发送指纹验证通过消息。比如,在屏幕解锁场景下,指纹模块可以向解锁模块发送指纹验证通过消息;在资源支付场景下,指纹模块可以向支付模块发送指纹验证通过消息;在账号登录场景下,指纹模块可以向登录模块发送指纹验证通过消息;在应用程序启动且应用程序设置有应用锁的场景下,指纹模块向应用锁模块发送指纹验证通过消息。
需要说明的是,该指纹模块中可以包括指纹采集模块、指纹识别模块等。该指纹采集模块用于采集指纹信息,并将采集的指纹信息发送给指纹识别模块;指纹识别模块用于在接收到指纹采集模块发送的指纹信息后,根据指纹信息进行指纹识别,并在指纹验证通过后,向当前指纹解锁场景对应的模块发送指纹验证通过消息。
内核层是硬件和软件之间的层。内核层至少包含TP触控模块、LCD控制器、显示模块、显示驱动,摄像头驱动,音频驱动,传感器驱动。
作为一种示例,该TP触控模块用于检测作用在电子设备屏幕的触控操作,并在检测到触控操作的情况下,触发LCD中断,以向LCD控制器发送LCD中断指令,并确定触控操作的触控面积是否大于或等于面积阈值。若TP触控模块检测到触控面积大于或等于面积阈值,则说明该触控操作并不是用户的误操作,因此,可以向指纹模块发送触控完成消息;若TP触控模块检测到触控面积小于面积阈值,则说明该触控操作为用户的误操作,因此,可以向LCD控制器和/或指纹模块发送触控失败消息,或者,不发送任何消息。
作为本申请的一个示例,该TP触控模块中可以包括触控传感器和触控处理器,其中,触控传感器用于检测作用在电子设备屏幕的触控操作;触控处理器用于触发LCD中断,以向LCD控制器发送LCD中断指令,同时,检测触控操作的触控面积是否大于或等于面积阈值。
作为一种示例,该LCD控制器用于在接收到LCD中断指令的情况下,对LCD屏进行初始化操作,并在初始化完成后向显示模块发送初始化完成消息。另外,LCD控制器在接收到触控失败消息的情况下,若当前对LCD屏的初始化操作未完成,则不再进行初始化操作。
作为一种示例,显示模块用于在接收到初始化完成消息和触控完成消息的情况下,点亮电子设备屏幕的背光灯,并向指纹模块发送背光灯点亮消息。
需要说明的是,该显示模块可以包括高亮度显示器(High Brightness Monitor,HBM)。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别原始输入事件所对应的控件。以该触摸操作是单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用程序框架层的接口,启动相机应用,再调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
为了便于理解,在对本申请实施例提供的方法进行详细介绍之前,基于上述实施例提供的执行主体,接下来以电子设备是手机为例对本申请实施例涉及的应用场景进行介绍。
请参考图4,图4是根据一示例性实施例示出的一种应用场景的示意图。在一种可能的场景中,用户为了避免手机隐私泄露,通常会对手机设置锁屏密码,比如,对手机设置指纹密码。参见图4,在手机处于锁屏状态下,且手机设置有指纹密码的情况下,若用户需要对手机进行解锁,那么用户可以触控手机的指纹识别区域1;手机中的TP触控模块11响应于对指纹识别区域1的触控操作,触发LCD中断,以向LCD控制器13发送LCD中断指令,同时,TP触控模块11确定触控操作的触控面积是否大于或等于面积阈值,并在触控面积大于或等于面积阈值的情况下,向指纹模块12发送触控完成消息。指纹模块12接收到触控完成消息的情况下,识别触控操作是否为进行指纹识别的触控操作,同时将触控完成消息发送至显示模块14;LCD控制器13在接收到LCD中断指令的情况下,进行LCD屏的初始化操作,在初始化操作完成的情况下,向显示模块14发送初始化完成消息;显示模块14在接收到初始化完成消息和触控完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块12发送背光灯点亮消息;指纹模块12在识别到触控操作为进行指纹识别的触控操作,且接收到背光灯点亮消息后,采集指纹识别区域处的指纹信息,并在指纹验证通过的情况下,将指纹验证通过消息发送至解锁模块15;手机通过解锁模块15对手机的LCD屏进行解锁,并显示解锁后的手机界面,比如,显示手机的桌面3。
需要说明的是,显示模块14在点亮背光时,可以点亮全部背光灯,也可以点亮部分区域的背光灯,比如,点亮手机边框处的背光灯,点亮指纹识别区域处的背光灯等。本申请实施例的附图中以点亮指纹识别区域处的背光灯为例进行说明,且本申请实施例的图示中以对指纹识别区域进行背景填充来表示点亮指纹识别区域处的背光灯。
作为本申请的一个示例,用户在使用手机的过程中,可能会通过手机的支付应用程序进行资源支付,在支付资源之前,为了财产安全,通常需要进行安全验证。比如,参见图5,可以在进行资源支付的情况下,显示支付验证界面4,该支付验证界面4中显示有指纹识别区域1,用户可以触控指纹识别区域1;手机中的TP触控模块11响应于对指纹识别区域1的触控操作,触发LCD中断,以向LCD控制器13发送LCD中断指令,同时,TP触控模块11确定触控操作的触控面积是否大于或等于面积阈值,并在触控面积大于或等于面积阈值的情况下,向指纹模块12发送触控完成消息。指纹模块12接收到触控完成消息的情况下,识别触控操作是否为进行指纹识别的触控操作,同时将触控完成消息发送至显示模块14;LCD控制器13在接收到LCD中断指令的情况下,进行LCD屏的初始化操作,在初始化操作完成的情况下,向显示模块14发送初始化完成消息;显示模块14在接收到初始化完成消息和触控完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块12发送背光灯点亮消息;由于是在手机显示支付验证界面的情况下进行指纹识别操作,手机屏幕已经处于点亮状态,因此,响应于点亮LCD屏的背光灯的操作,手机可以继续显示支付验证界面。指纹模块12在识别到触控操作为进行指纹识别的触控操作,且接收到背光灯点亮消息后,采集指纹识别区 域处的指纹信息,并在指纹验证通过的情况下,将指纹验证通过消息发送至支付模块16;手机通过支付模块16完成资源的支付,并在支付完成后显示支付完成界面5。
作为本申请的一个示例,用户在使用手机过程中,有些应用程序需要在登录账号后使用,有些应用程序是在登录账号后实现更多的功能,比如,视频应用程序、银行应用程序、支付应用程序等。但是在通过输入账号和密码进行账号登录的情况下,可能会发生账号输错或密码输错的情况,在这样的情况下,为了降低登录的错误率,通常还可以通过指纹验证的方式的进行账号登录。参见图6,在视频应用程序中通过指纹验证的方式进行账号登录的情况下,用户可以触控视频应用程序的指纹登录界面6中的指纹识别区域1;手机中的TP触控模块11响应于对指纹识别区域1的触控操作,触发LCD中断,以向LCD控制器13发送LCD中断指令,同时,TP触控模块11确定触控操作的触控面积是否大于或等于面积阈值,并在触控面积大于或等于面积阈值的情况下,向指纹模块12发送触控完成消息,指纹模块12接收到触控完成消息的情况下,识别触控操作的类型是否为进行指纹识别的触控操作,同时将触控完成消息发送至显示模块14;LCD控制器13在接收到LCD中断指令的情况下,进行LCD屏的初始化操作,在初始化操作完成的情况下,向显示模块14发送初始化完成消息;显示模块14在接收到初始化完成消息和触控完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块12发送背光灯点亮消息;由于是在手机显示指纹登录界面的情况下进行指纹识别操作,手机屏幕已经处于点亮状态,因此,响应于点亮LCD屏的背光灯的操作,手机可以继续显示指纹登录界面。指纹模块12在识别到触控操作为进行指纹识别的触控操作,且接收到背光灯点亮消息后,采集指纹识别区域处的指纹信息,并在指纹验证通过的情况下,将指纹验证通过消息发送至登录模块17;手机通过登录模块17完成账号登录,并显示视频应用程序的应用界面7。
作为本申请的一个示例,用户在使用手机过程中,可能会对一些应用程序设置应用锁,比如,对社交应用程序设置应用锁,用户点击社交应用程序的应用图标;响应于对社交应用程序的应用图标的点击操作,参见图7,手机显示应用解锁界面8,用户可以触控应用解锁界面8中显示的指纹识别区域1;手机中的TP触控模块11响应于对指纹识别区域1的触控操作,触发LCD中断,以向LCD控制器13发送LCD中断指令,同时,TP触控模块11确定触控操作的触控面积是否大于或等于面积阈值,并在触控面积大于或等于面积阈值的情况下,向指纹模块12发送触控完成消息,指纹模块12接收到触控完成消息的情况下,识别触控操作是否为进行指纹识别的触控操作,同时将触控完成消息发送至显示模块14;LCD控制器13在接收到LCD中断指令的情况下,进行LCD屏的初始化操作,在初始化操作完成的情况下,向显示模块14发送初始化完成消息;显示模块14在接收到初始化完成消息和触控完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块12发送背光灯点亮消息;由于是在手机显示应用解锁界面的情况下进行指纹识别操作,手机屏幕已经处于点亮状态,因此,响应于点亮LCD屏的背光灯的操作,手机可以依旧显示应用解锁界面。指纹模块12在识别到触控操作为进行指纹识别的触控操作,且接收到背光灯点亮消息后,采集指纹识别区域处的指纹信息,并在指纹验证通过的情况下,将指纹验证通过消息发送至应用锁模块18;手机通过应用锁模块18不再显示应用解锁界面8,即手机通过应用锁模块解锁 对社交应用程序设置的应用锁,之后,显示社交应用程序的应用界面9。
需要说明的是,本申请实施例以上述图4-图7所示的应用场景为例进行说明,其他需要进行指纹解锁的场景同样可以适用于本申请实施例所述的方式。
基于上述实施例提供的执行主体和应用场景,接下来对本申请实施例提供的指纹解锁方法进行介绍。请参考图8,图8是根据一示例性实施例示出的一种指纹解锁方法流程示意图,且图8中是以解锁手机屏幕为例进行说明。作为示例而非限定,这里以该方法应用于配置有指纹解锁功能的手机中,手机通过图3所示的多个模块交互实现为例进行说明,该方法可以包括如下部分或者全部内容:
步骤A1:在锁屏的状态下,TP触控模块响应于对指纹识别区域的触控操作,触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
用户在需要使用手机的情况下,若手机处于锁屏状态,那么用户需要先对手机进行解锁。如果手机支持指纹解锁,且该手机中事先设置能够通过指纹进行解锁的功能,那么用户触控手机的指纹识别区域。TP触控模块响应于对指纹识别区域的触控操作,可以直接触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
需要说明的是,触控操作的触控面积是指用户的手指作用在指纹识别区域的情况下,手指与手机屏幕的接触面积。
由上述可知,TP触控模块中可以包括触控传感器和触控处理器,因此作为一个示例,TP触控模块可以通过触控传感器检测用户的触控操作,并在检测到用户的触控操作的情况下,通过触控处理器触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
需要说明的是,面积阈值为根据需求事先设置的阈值,且设置的面积阈值的最小值为实现指纹识别功能所需的面积。
在一些实施例中,TP触控模块检测触控操作的触控面积是否大于或等于面积阈值的操作包括:检测触控操作在指纹识别区域所触控的触控传感器的数量,在触控传感器的数量大于或等于个数阈值的情况下,确定触控操作的触控面积大于或等于面积阈值。
需要说明的是,TP触控模块检测该触控操作的触控面积是否大于或等于面积阈值的操作不仅可以包括上述方式,还可以包括其他方式,其他方式可以参考相关技术,本申请实施例对此不再进行一一赘述。
步骤A2:LCD控制器在接收到LCD中断指令的情况下,对LCD屏进行初始化操作。
值得说明的是,由于TP触控模块在检测到触控操作的情况下,可以向LCD控制器发送LCD中断指令,从而在TP触控模块检测触控面积是否大于或等于面积阈值的过程中,LCD控制器能够同时进行LCD屏的初始化操作,从而缩短了等待LCD初始化操作的时间,加快了指纹解锁速度。
需要说明的是,LCD控制器对LCD屏进行初始化的操作能够参考相关技术,比 如,LCD控制器对LCD屏的初始化操作包括对LCD屏进行清屏(DISPLAY CLEAR)、设置LCD屏的功能(FUNCTION SET)、显示开/关的控制方式(DISPLAY ON/OFF CONTROL)和LCD屏输入方式的设置(ENTRY MODE SET)等。本申请实施例对此不再进行一一赘述。
步骤A3:LCD控制器在LCD屏初始化完成的情况下,向显示模块发送初始化完成消息。
由于指纹解锁的过程中,通常需要点亮背光灯,而背光灯需要在LCD初始化完成后才能被点亮,因此,在LCD屏初始化完成后,LCD控制器可以向显示模块发送初始化完成消息。
步骤A4:TP触控模块在检测到触控面积大于或等于面积阈值的情况下,向指纹模块发送触控完成消息。
由于指纹识别的前提是手指在指纹识别区域内的触控面积达到要求,而面积阈值的最小值为实现指纹识别功能所需的面积,因此,在触控面积大于或等于面积阈值的情况下,可以向指纹模块发送触控完成消息。
在一些实施例中,TP触控模块在检测到触控面积小于面积阈值的情况下,说明用户可能是误触指纹识别区域,并不是要对手机进行解锁,因此,TP触控模块可以向LCD控制器发送触控失败消息。LCD控制器在接收到触控失败消息的情况下,若当前对LCD屏的初始化操作未完成,则不再进行初始化操作。同时,TP触控模块不会向指纹模块发送任何消息。
在一些实施例中,TP触控模块在检测到触控面积小于面积阈值的情况下,TP触控模块还可以同时向LCD控制器和指纹模块发送触控失败消息,若当前对LCD屏的初始化操作未完成,则不再进行初始化操作;同时,指纹模块在接收到触控失败消息的情况下,不做任何操作。
在一些实施例中,TP触控模块在检测到触控面积小于面积阈值的情况下,不向任何模块发送触控失败消息。
步骤A5:指纹模块在接收到触控完成消息的情况下,将该触控完成消息转发至显示模块。
由于在触控面积大于或等于面积阈值的情况下,说明本次的触控操作并不是用户对手机屏幕的误操作,而是需要进行指纹解锁,而指纹解锁的过程中,为了提示用户本次触控操作有效,还可以在指纹解锁过程中点亮背光灯,因此,指纹模块在接收到触控完成消息的情况下,可以向显示模块转发给触控完成消息。
在一些实施例中,指纹模块在接收到触控完成消息的同时,不仅可以将该触控完成消息转发至显示模块,还可以根据该触控完成消息中携带的触控数据识别该触控操作是否为进行指纹识别的触控操作。
由于在进行指纹识别的过程中,要求用户手指在指纹识别区域内作用一定的时长,否则,可能会导致无法进行指纹识别,因此,该触控数据可以包括触控操作作用在指纹识别区域的触控时长。
需要说明的是,指纹模块根据触控数据识别触控操作的类型的方式可以参考相关技术,比如,该触控数据中包括触控时长的情况下,若检测到该触控时长大于或等于 时长阈值,则确定该触控该操作为进行指纹识别的触控操作。或者,该触控数据中还可以包括触控操作后屏幕中的电容值、触控操作对屏幕产生的压力值、触控操作使手机产生的加速度值等,若指纹模块检测到该电容值位于预设的电容范围之内,压力值位于预设的压力范围之内,且加速度值位于预设的加速度范围之内的情况下,确定该触控操作为进行指纹识别的触控操作。其中,预设的电容范围、预设的压力范围和预设的加速度范围均为实现根据机器学习算法得到,比如,可以事先对手机的屏幕进行多次触控试验,每次过指关节、手指甲、指腹、触摸电容笔等触控屏幕,并记录每一次触控时对应的触控数据,然后将通过指腹进行触控操作与通过非指腹进行触控操作时所产生的触控数据进行统计和区分,从而确定每种类型的触控操作产生的触控数据所对应的范围。本申请实施例对此不再进行一一赘述。
还需要说明的是,LCD控制器在LCD屏初始化完成的情况下,TP触控模块可能已经向指纹模块发送了触控完成消息;或者,在TP触控模块检测到触控面积大于或等于面积阈值的情况下,LCD控制器已经向显示模块发送了初始化完成消息;或者,在TP触控模块检测到触控面积大于或等于面积阈值的情况下,LCD控制器恰好也完成对LCD屏初始化的操作,因此,LCD控制器向显示模块发送初始化完成消息的同时,TP触控模块也在向指纹模块发送触控完成消息。因此,在本申请实施例中并不对上述步骤A3和步骤A4的执行顺序进行限制。
步骤A6:显示模块在接收到触控完成消息和初始化完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块发送指纹采集消息。
需要说明的是,显示模块点亮的LCD屏的背光灯可以是手机中安装的所有背光灯,也可以是指定区域处的背光灯,比如,可以点亮指纹识别区域的背光灯、手机边框处的背光灯等。本申请实施例对此不做具体限制。
步骤A7:指纹模块在识别到触控操作为进行指纹识别的触控操作,且接收到指纹采集消息的情况下,采集指纹识别区域内的指纹信息。
由上述可知,指纹模块中包括指纹采集模块,因此,指纹模块在识别到触控操作为进行指纹识别的触控操作,且接收到指纹采集消息的情况下,可以通过指纹采集模块采集指纹识别区域内的指纹信息。
作为一种示例,该指纹采集模块可以包括指纹传感器,因此,可以通过指纹传感器采集指纹识别区域内的指纹信息。
步骤A8:指纹模块根据指纹信息进行指纹验证。
由上述可知,指纹模块中包括指纹识别模块,因此,指纹采集模块在采集到指纹信息后,可以将指纹信息发送给指纹识别模块,指纹识别模块在接收到指纹信息后,根据指纹信息进行指纹验证。
作为一种示例,指纹识别模块根据指纹信息进行指纹验证的操作包括:将采集的指纹信息与存储的指纹信息进行比较,在存储的指纹信息中存在目标指纹信息的情况下,确定指纹验证通过,目标指纹信息为与采集的指纹信息之间的相似度大于或等于相似度阈值的指纹信息。
在一些实施例中,存储的指纹信息是指用户事先在手机中录入的指纹信息,示例性地,手机响应于对指纹解锁的设置操作,可以显示指纹录入界面,用户可以通过同 一个手指的指腹在该指纹录入界面中的指纹录入区域进行多次触控,从而手机响应于对指纹录入区域的多次触控操作,存储该手指的指纹信息。当然,用户可以重复上述操作,以使手机存储不同手指的指纹信息。
需要说明的是,该相似度阈值可以根据需求事先进行设置,比如,该相似度阈值可以为99%、96%、90%等。
步骤A9:在指纹验证通过的情况下,指纹模块向解锁模块发送指纹验证通过消息。
由于解锁模块能够对手机进行解锁,因此,在指纹验证通过的情况下,指纹模块向解锁模块发送指纹验证通过消息。
步骤A10:解锁模块在接收到指纹验证通过消息的情况下,解锁手机屏幕。
需要说明的是,解锁模块解锁手机屏幕的操作可以参考相关技术,比如,解锁模块可以创建屏幕对应的唤醒锁(WakeLock),并激活唤醒锁,从而实现对手机屏幕的解锁。本申请实施例对此不再进行一一赘述。
在一些实施例中,由于手机成功解锁后,用户可以通过手机实现各种各样的功能,不同的触控操作可以触发不同的功能,为了避免发生功能混乱,在解锁模块解锁手机屏幕后,手机不再显示指纹识别区域。
在一些实施例中,在手机解锁成功后,解锁模块还可以向显示模块发送解锁成功消息,显示模块在接收到解锁成功消息的情况下,点亮手机屏幕。
需要说明的是,显示模块点亮手机屏幕的操作可以参考相关技术,本申请实施例对此不再进行一一赘述。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向LCD控制器发送LCD中断指令,使得LCD屏初始化的操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
请参考图9,图9是根据另一示例性实施例示出的一种指纹解锁方法流程示意图,且图9中是以通过指纹识别支付资源为例进行说明。作为示例而非限定,这里以该方法应用于配置有指纹解锁功能的手机中,手机通过图3所示的多个模块交互实现为例进行说明,该方法可以包括如下部分或者全部内容:
步骤B1:购物应用程序响应于对确认支付选项的触发操作,显示支付验证界面。
由于有时候为了支付安全性,用户可能会在支付资源过程中设置指纹解锁,即通过对指纹信息进行验证来确保支付安全性。因此,响应于对确认支付选项的触发操作,购物应用程序可以显示支付验证界面,该支付验证界面中显示有指纹识别区域。
需要说明的是,本申请实施例中仅以购物应用程序为例进行说明,其他具有支付功能的应用程序同样适用于本申请实施例所提供的操作。本申请实施例对此不再进行一一赘述。
步骤B2:TP触控模块响应于对支付验证界面中指纹识别区域的触控操作,触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
步骤B3:LCD控制器在接收到LCD中断指令的情况下,对LCD屏进行初始化操作。
需要说明的是,由于是在显示支付验证界面的情况下进行指纹识别操作,也即是该指纹识别操作是在显示屏高亮的情况下进行的,在该种情况下,由于LCD屏已经处于初始化完成状态,因此,LCD控制器在接收到LCD中断指令的情况下,若检测到初始化完成标识,则可以直接执行下述步骤B4的操作。
需要说明的是,初始化完成标识用于唯一标识LCD屏的初始化操作完成。
步骤B4:LCD控制器在LCD屏初始化完成的情况下,向显示模块发送初始化完成消息。
步骤B5:TP触控模块在检测到触控面积大于或等于面积阈值的情况下,向指纹模块发送触控完成消息。
步骤B6:指纹模块在接收到触控完成消息的情况下,将该触控完成消息转发至显示模块。
步骤B7:显示模块在接收到触控完成消息和初始化完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块发送指纹采集消息。
由于在当前场景下,LCD屏的背光灯已经处于点亮状态,因此,显示模块在接收到触控完成消息和初始化完成消息后,若检测到点亮标识,则可以直接向指纹模块发送指纹采集消息。
需要说明的是,点亮标识用于唯一标识LCD屏的背光灯被点亮。
步骤B8:指纹模块在识别到触控操作为进行指纹识别的触控操作,且接收到指纹采集消息的情况下,采集指纹识别区域内的指纹信息。
步骤B9:指纹模块根据指纹信息进行指纹验证。
需要说明的是,步骤B2-B9的操作可以参考上述步骤A1-A8的操作,本申请实施例对此不再进行一一赘述。
步骤B10:在指纹验证通过的情况下,指纹模块向支付模块发送指纹验证通过消息。
由于支付模块能够进行资源支付,因此,在指纹验证通过的情况下,指纹模块向支付模块发送指纹验证通过消息。
步骤B11:支付模块在接收到指纹验证通过消息的情况下,进行资源的支付操作。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向LCD控制器发送LCD中断指令,使得LCD屏初始化的操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
请参考图10,图10是根据另一示例性实施例示出的一种指纹解锁方法流程示意图,且图10中是以通过指纹识别进行账号登录为例进行说明。作为示例而非限定,这里以该方法应用于配置有指纹解锁功能的手机中,手机通过图3所示的多个模块交互实现为例进行说明,该方法可以包括如下部分或者全部内容:
步骤C1:视频应用程序响应于对登录选项的触发操作,显示指纹登录界面。
由于有时候为了账号登录便利性和账号登录效率,用户可能会通过指纹登录方式进行账号登录,因此,响应于对确认支付选项的触发操作,视频应用程序可以显示指纹登录界面,该指纹登录界面中显示有指纹识别区域。
需要说明的是,本申请实施例中仅以视频应用程序为例进行说明,其他具有账号登录功能的应用程序同样适用于本申请实施例所提供的操作,本申请实施例对此不再进行一一赘述。
步骤C2:TP触控模块响应于对指纹登录界面中指纹识别区域的触控操作,触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
步骤C3:LCD控制器在接收到LCD中断指令的情况下,对LCD屏进行初始化操作。
需要说明的是,由于是在显示指纹登录界面的情况下进行指纹识别操作,也即是该指纹识别操作是在显示屏高亮的情况下进行的,在该种情况下,由于LCD屏已经处于初始化完成状态,因此,LCD控制器在接收到LCD中断指令的情况下,若检测到初始化完成标识,则可以直接执行下述步骤C4的操作。
需要说明的是,初始化完成标识用于唯一标识LCD屏的初始化操作完成。
步骤C4:LCD控制器在LCD屏初始化完成的情况下,向显示模块发送初始化完成消息。
步骤C5:TP触控模块在检测到触控面积大于或等于面积阈值的情况下,向指纹模块发送触控完成消息。
步骤C6:指纹模块在接收到触控完成消息的情况下,将该触控完成消息转发至显示模块。
步骤C7:显示模块在接收到触控完成消息和初始化完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块发送指纹采集消息。
由于在当前场景下,LCD屏的背光灯已经处于点亮状态,因此,显示模块在接收到触控完成消息和初始化完成消息后,若检测到点亮标识,则可以直接向指纹模块发送指纹采集消息。
需要说明的是,点亮标识用于唯一标识LCD屏的背光灯被点亮。
步骤C8:指纹模块在识别到触控操作为进行指纹识别的触控操作,且接收到指纹采集消息的情况下,采集指纹识别区域内的指纹信息。
步骤C9:指纹模块根据指纹信息进行指纹验证。
需要说明的是,步骤C2-步骤C9的操作可以参考上述步骤A1-A8的操作,本申请实施例对此不再进行一一赘述。
步骤C10:在指纹验证通过的情况下,指纹模块向登录模块发送指纹验证通过消息。
由于登录模块能够实现账号的登录,因此,在指纹识别成功的情况下,指纹模块可以向登录模块发送指纹验证通过消息。
步骤C11:登录模块在接收到指纹验证通过消息的情况下,进行账号登录操作。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向LCD控制器发送LCD中断指令,使得LCD屏初始化的操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
请参考图11,图11根据另一示例性实施例示出的一种指纹解锁方法流程示意图,且图11中是以通过指纹识别启动应用程序为例进行说明。作为示例而非限定,这里以该方法应用于配置有指纹解锁功能的手机中,手机通过图3所示的多个模块交互实现为例进行说明,该方法可以包括如下部分或者全部内容:
步骤D1:响应于对社交应用程序的启动操作,应用锁模块显示应用解锁界面。
由于有时候了为了应用程序的使用安全,通常可以对应用程序设置应用锁,比如为了避免聊天记录泄露,用户可以对社交应用程序设置应用锁。在启动社交应用程序的情况下,若社交应用程序设置有应用锁,则用户需要对社交应用程序的应用锁进行解锁,并在解锁成功的情况下,手机显示社交应用程序的应用界面。因此,响应于对社交应用程序的启动操作,应用锁模块可以显示应用解锁界面,该应用解锁界面中可以显示有指纹识别区域。
在一些实施例中,响应于对社交应用程序的启动操作,应用锁模块显示应用解锁界面的操作包括:响应于社交应用程序的启动操作,应用锁模块可以中断社交应用程序的应用界面的显示,并显示应用解锁界面。
作为一种示例,应用锁模块中断社交应用程序的应用界面的显示的操作包括:应用锁模块在社交应用程序的应用界面上覆盖显示应用解锁界面。或者,应用锁模块中断社交应用程序的启动流程。
需要说明的是,本申请实施例中仅以社交应用程序为例进行说明,其他设置有应用锁的应用程序同样适用于本申请实施例所描述的操作,本申请实施例对此不再进行一一赘述。
步骤D2:TP触控模块响应于对应用解锁界面中指纹识别区域的触控操作,触发LCD中断,以向LCD控制器发送LCD中断指令,并检测触控操作的触控面积是否大于或等于面积阈值。
步骤D3:LCD控制器在接收到LCD中断指令的情况下,对LCD屏进行初始化操作。
需要说明的是,由于是在显示应用解锁界面的情况下进行指纹识别操作,也即是该指纹识别操作是在显示屏高亮的情况下进行的,在该种情况下,由于LCD屏已经处于初始化完成状态,因此,LCD控制器在接收到LCD中断指令的情况下,若检测到初始化完成标识,则可以直接执行下述步骤D4的操作。
需要说明的是,初始化完成标识用于唯一标识LCD屏的初始化操作完成。
步骤D4:LCD控制器在LCD屏初始化完成的情况下,向显示模块发送初始化完成消息。
步骤D5:TP触控模块在检测到触控面积大于或等于面积阈值的情况下,向指纹模块发送触控完成消息。
步骤D6:指纹模块在接收到触控完成消息的情况下,将该触控完成消息转发至显示模块。
步骤D7:显示模块在接收到触控完成消息和初始化完成消息的情况下,点亮LCD屏的背光灯,并向指纹模块发送指纹采集消息。
由于在当前场景下,LCD屏的背光灯已经处于点亮状态,因此,显示模块在接收 到触控完成消息和初始化完成消息后,若检测到点亮标识,则可以直接向指纹模块发送指纹采集消息。
需要说明的是,点亮标识用于唯一标识LCD屏的背光灯被点亮。
步骤D8:指纹模块在识别到触控操作为进行指纹识别的触控操作,且接收到指纹采集消息的情况下,采集指纹识别区域内的指纹信息。
步骤D9:指纹模块根据指纹信息进行指纹验证。
需要说明的是,步骤D2-步骤D9的操作可以参考上述步骤A1-步骤A8的操作,本申请实施例对此不再进行一一赘述。
步骤D10:在指纹验证通过的情况下,指纹模块向应用锁模块发送指纹验证通过消息。
由于应用锁模块能够对社交应用程序进行锁定和解锁操作,因此,为了对社交应用程序进行解锁,在指纹验证通过的情况下,指纹模块可以向应用锁模块发送指纹验证通过消息。
步骤D11:应用锁模块在接收到指纹验证通过消息的情况下,显示社交应用程序的应用界面。
由上述可知,应用锁模块可以通过不同方式锁定社交应用程序,即应用锁模块可以通过不同方式中断社交应用程序的应用界面的显示,相应地,应用锁模块可以通过不同的方式显示社交应用程序的应用界面。
作为一种示例,在应用锁模块通过在社交应用程序的应用界面上覆盖显示指纹识别界面的方式锁定社交应用程序的情况下,若应用锁模块接收到指纹验证通过消息,则应用锁模块不再显示指纹识别界面,以实现社交应用程序的应用界面的显示。
作为一种示例,在应用锁模块通过中断社交应用程序的启动流程的方式锁定社交应用程序的情况下,若应用锁模块接收到指纹验证通过消息,则应用锁模块解除对社交应用程序启动流程的中断操作,以使社交应用程序继续进行启动流程,实现社交应用程序的应用界面的显示。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向LCD控制器发送LCD中断指令,使得LCD屏初始化的操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
请参考图12,图12根据另一示例性实施例示出的一种指纹解锁方法流程示意图,作为示例而非限定,这里以该方法应用于电子设备中,该方法可以包括如下部分或者全部内容:
步骤1201:响应于对电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测触控操作的触控面积。
由于在使用电子设备的过程中,可能会遇到需要进行指纹识别的场景,比如,可能会遇到对电子设备的屏幕进行解锁的场景,可能会遇到通过指纹识别进行支付资源的场景,可能会遇到通过指纹识别进行账号登录的场景、可能会遇到通过指纹识别启动应用程序的场景等。在这些场景下,用户可以对电子设备的触摸屏中的指纹识别区域进行触控操作,从而响应于对电子设备的触摸屏中的指纹识别区域的触控操作,产 生中断指令并检测触控操作的触控面积。
由上述可知,电子设备中可以包括触摸屏触控模块和触摸屏控制器;因此,作为一个示例,响应于对电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测触控操作的触控面积的操作包括:响应于对触摸屏中的指纹识别区域的触控操作,触摸屏触控模块产生中断指令并检测触控操作的触控面积;触摸屏触控模块向触摸屏控制器发送中断指令。
如此,由于触摸屏触控模块可以在检测到触控操作的情况下即可向触摸屏控制器发送中断指令,从而提前了发送中断指令的时机,加快了解锁速度。
需要说明的是,触摸屏触控模块可以为上述描述的TP触控模块,触摸屏控制器可以为上述描述的LCD控制器,该中断指令可以为上述描述的LCD中断指令,本申请实施例对此不做具体限定。
还需要说明的是,触控操作的触控面积是指用户的手指作用在指纹识别区域的情况下,手指与电子设备的触摸屏的接触面积。
作为一种示例,电子设备检测触控操作的触控面积就是为了检测触控面积是否大于或等于面积阈值,因此,电子设备检测触控操作的触控面积的操作包括:检测触控操作在指纹识别区域所触控的触控传感器的数量;在触控传感器的数量大于或等于个数阈值的情况下,确定触控操作的触控面积大于或等于面积阈值。
需要说明的是,该个数阈值可以根据需求预先进行设置,比如,该个数阈值的最小值可以为实现指纹识别功能所需的个数。该面积阈值同样可以根据需求预先进行设置,且设置的面积阈值的最小值为实现指纹识别功能所需的面积。
还需要说明的是,电子设备检测该触控操作的触控面积的操作不仅可以包括上述方式,还可以包括其他方式,其他方式可以参考相关技术,本申请实施例对此不再进行一一赘述。
值得说明的是,由于通过检测指纹识别区域被触发的触控传感器的数量即可确定触控面积是否大于或等于面积阈值,从而降低了检测触控面积的复杂度,提高了检测效率。
步骤1202:响应于中断指令,控制触摸屏进行初始化操作。
由上述可知,触摸屏触控模块向触摸屏控制器发送中断指令,因此,触摸屏控制器可以在接收到中断指令的情况下,响应于中断指令,对触摸屏进行初始化操作。
如此,由于触摸屏触控模块在检测到触控操作的情况下,可以向触摸屏控制器发送中断指令,从而在触摸屏触控模块检测触控面积是否大于或等于面积阈值的过程中,触摸屏控制器能够同时进行触摸屏的初始化操作,从而缩短了等待触摸屏初始化操作的时间,加快了指纹解锁速度。
需要说明的是,控制触摸屏进行初始化操作的并不终于可以参考上述描述的LCD控制器对LCD屏进行初始化操作的步骤,本申请实施例对此不再进行一一赘述。
步骤1203:在触摸屏初始化完成且触控面积大于或等于面积阈值的情况下,点亮电子设备的背光灯。
在一些实施例中,在触摸屏初始化完成且触控面积大于或等于面积阈值的情况下,电子设备可以点亮安装的所有背光等,可以进点亮部分区域的背光灯,比如,点亮预 设区域处的背光灯,该预设区域为指纹识别区域和电子设备的边框区域中的至少一个区域。该预设区域也可以为上述描述的指定区域,本申请实施例对此不做具体限定。
值得说明的是,由于可以选择性地点亮电子设备的背光灯,从而提高了背光灯功能的多样性,且由于无需点亮电子设备的屏幕,节省了电量浪费。
由上述可知,电子设备中还包括指纹模块和显示模块;因此,作为一个示例,在触摸屏初始化完成且触控面积大于或等于面积阈值的情况下,电子设备点亮电子设备的背光灯的操作包括:在触摸屏初始化完成的情况下,触摸屏控制器向显示模块发送初始化完成消息;在触控面积大于或等于面积阈值的情况下,触摸屏触控模块通过指纹模块向显示模块发送触控完成消息;显示模块在接收到初始化完成消息和触控完成消息的情况下,点亮背光灯。
由于指纹识别的前提是手指在指纹识别区域内的触控面积达到要求,而面积阈值的最小值为实现指纹识别功能所需的面积,因此,在触控面积大于或等于面积阈值的情况下,触摸屏触控模块可以向指纹模块发送触控完成消息。又由于在触控面积大于或等于面积阈值的情况下,说明本次的触控操作并不是用户对电视设备屏幕的误操作,而是需要进行指纹解锁,而指纹解锁的过程中,为了提示用户本次触控操作有效,还可以在指纹解锁过程中点亮背光灯,因此,指纹模块在接收到触控完成消息的情况下,可以向显示模块转发给触控完成消息。
由于背光灯需要在触摸屏初始化完成后才能被点亮,因此,在触摸屏初始化完成后,触摸屏控制器可以向显示模块发送初始化完成消息。
在一种可能的实现方式中,触摸屏触控模块可能会检测到触控面积小于面积阈值,在该种情况下,触摸屏控制模块可以向触摸屏控制器发送触控失败消息;触摸屏控制器在接收到触控失败消息的情况下,若对触摸屏的初始化操作未完成,则停止对触摸屏的初始化操作。
由于在触摸屏触控模块检测到触控面积小于面积阈值的情况下,说明用户可能是误触指纹识别区域,并不是要对电子设备进行解锁,因此,触摸屏触控模块可以向触摸屏控制器发送触控失败消息。
值得说明的是,通过向触摸屏控制器发送触控失败消息,可以中断触摸屏的初始化操作,从而避免了在用户误触的情况下进行指纹识别,提高了指纹识别的可靠性。
在另一种可能的实现方式中,触摸屏触控模块检测到触控面积小于面积阈值的情况下,不仅可以向触摸屏控制器发送触控失败消息,还可以向指纹模块发送触控失败消息;触摸屏控制器在接收到触控失败消息的情况下,若对触摸屏的初始化操作未完成,则停止对触摸屏的初始化操作;指纹模块在接收到触控失败消息的情况下,可以不进行任何响应。
在另一种可能的实现方式中,触摸屏触控模块检测到触控面积小于面积阈值的情况下,还可以不想任何模块发送触控失败消息。
步骤1204:在点亮背光灯的情况下,控制电子设备进行指纹解锁操作。
在一些实施例中,在点亮背光灯的情况下,采集指纹识别区域内的指纹信息;根据指纹信息进行指纹验证;在指纹验证通过的情况下,根据电子设备当前所处状态控制电子设备执行指纹解锁功能对应的操作。
由上述可知,电子设备中可以包括显示模块和指纹模块,且显示模块可以点亮背光灯,因此,在点亮背光灯的情况下,显示模块可以向指纹模块发送指纹采集消息;指纹模块在接收到指纹采集消息的情况下,可以,采集指纹识别区域内的指纹信息;根据指纹信息进行指纹验证。
在一些实施例中,由于并不是所有类型的触控操作都可以进行指纹识别,因此,电子设备在点亮背光灯的情况下,采集指纹识别区域内的指纹信息之前,还可以识别触控操作的类型;在触控操作的类型为进行指纹识别的触控操作的情况下,执行步骤1204的操作。
需要说明的是,电子设备可以通过指纹模块识别触控操作类型是否为进行指纹识别的触控操作。
在一些实施例中,指纹模块可以在接收到触控完成消息的情况下,根据触控完成消息中携带的触控数据识别该触控操作是否为进行指纹识别的触控操作。
由于在进行指纹识别的过程中,要求用户手指在指纹识别区域内作用一定的时长,否则,可能会导致无法进行指纹识别,因此,该触控数据可以包括触控操作作用在指纹识别区域的触控时长。
需要说明的是,指纹模块根据触控数据识别触控操作的类型的方式可以参考上述步骤A5中描述的方式,本申请实施例对此不再进行一一赘述。
值得说明的是,通过确定触控操作是否为进行指纹识别的触控操作,从而避免了指纹识别的误操作,提高了指纹识别的可靠性。
在一些实施例中,电子设备在指纹验证通过的情况下,根据电子设备当前所处状态执行指纹解锁功能对应的操作的操作包括:在指纹验证通过的情况下,若电子设备当前处于屏幕待解锁状态,则解锁电子设备的屏幕;在指纹验证通过的情况下,若电子设备当前处于资源待支付状态,则进行资源的支付操作;在指纹验证通过的情况下,若电子设备当前处于账号待登录状态,则进行账号登录操作;在指纹验证通过的情况下,若电子设备当前处于应用锁待解锁状态,则解锁目标应用程序的应用锁,以显示目标应用程序的应用界面,该目标应用程序为电子设备安装的任意一个应用程序,该目标应用程序设置有应用锁且当前处于待启动状态,该应用锁用于对目标应用程序的启动进行加密。
由于指纹解锁功能可以应用于各种各样的场景中,在指纹验证通过的情况下,电子设备所处状态不同,通过电子设备执行的操作也不同,因此,电子设备在指纹验证通过的情况下,需要根据电子设备当前所处状态执行指纹解锁功能对应的操作。
值得说明的是,通过在电子设备处于不同的状态下,控制电子设备进行不同的操作,从而提高了指纹解锁的应用范围和应用丰富性。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向触摸屏控制器发送中断指令,使得触摸屏初始化操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
图13是本申请实施例提供的另一种电子设备的结构示意图。参见图13,该电子设备的结构中包括处理器1310和存储器1320,处理器1310的数量可以是一个或者多 个。存储器1310用于存储支持电子设备执行上述各个实施例提供的指纹解锁方法的程序,以及存储用于实现上述各个实施例所述的指纹解锁方法所涉及的数据。所述电子设备还可以包括通信总线1330,所述通信总线1330用于在所述处理器1310与所述存储器1320之间建立连接。所述处理器1310被配置为:
响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积;
响应于所述中断指令,控制所述触摸屏进行初始化操作;
在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯;
在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作。
作为本申请的一个示例,所述处理器1310还被配置为:
在所述触摸屏初始化完成且所述触控面积大于或等于所述面积阈值的情况下,点亮预设区域处的背光灯,所述预设区域为所述指纹识别区域和所述电子设备的边框区域中的至少一个区域。
作为本申请的一个示例,所述电子设备中包括触摸屏触控模块和触摸屏控制器;所述处理器1310还被配置为:
响应于对所述触摸屏中的所述指纹识别区域的触控操作,所述触摸屏触控模块产生所述中断指令并检测所述触控操作的触控面积;
所述触摸屏触控模块向所述触摸屏控制器发送所述中断指令。
作为本申请的一个示例,所述处理器1310还被配置为:
所述触摸屏控制器在接收到所述中断指令的情况下,响应于所述中断指令,对所述触摸屏进行初始化操作。
作为本申请的一个示例,所述处理器1310还被配置为:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作。
作为本申请的一个示例,所述电子设备中还包括指纹模块和显示模块;
所述处理器1310还被配置为:
在所述触摸屏初始化完成的情况下,所述触摸屏控制器向所述显示模块发送初始化完成消息;
在所述触控面积大于或等于面积阈值的情况下,所述触摸屏触控模块通过所述指纹模块向所述显示模块发送触控完成消息;
所述显示模块在接收到所述初始化完成消息和所述触控完成消息的情况下,点亮所述背光灯。
作为本申请的一个示例,所述处理器1310还被配置为:
在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器和所述指纹模块分别发送触控失败消息;
所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始 化操作未完成,则停止对所述触摸屏的初始化操作;
所述指纹模块在接收到所述触控失败消息的情况下,不进行任何响应。
作为本申请的一个示例,所述处理器1310还被配置为:
在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息;
根据所述指纹信息进行指纹验证;
在指纹验证通过的情况下,根据所述电子设备当前所处状态控制所述电子设备执行所述指纹解锁功能对应的操作。
作为本申请的一个示例,所述处理器1310还被配置为:
识别所述触控操作的类型;
在所述触控操作的类型为进行指纹识别的触控操作的情况下,执行所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息的操作。
作为本申请的一个示例,所述处理器1310还被配置为:
在指纹验证通过的情况下,若所述电子设备当前处于屏幕待解锁状态,则解锁所述电子设备的屏幕;
在指纹验证通过的情况下,若所述电子设备当前处于资源待支付状态,则进行资源的支付操作;
在指纹验证通过的情况下,若所述电子设备当前处于账号待登录状态,则进行账号登录操作;
在指纹验证通过的情况下,若所述电子设备当前处于应用锁待解锁状态,则解锁目标应用程序的应用锁,以显示所述目标应用程序的应用界面,所述目标应用程序为所述电子设备安装的任意一个应用程序,所述目标应用程序设置有所述应用锁且当前处于待启动状态,所述应用锁用于对所述目标应用程序的启动进行加密。
作为本申请的一个示例,所述处理器1310还被配置为:
检测所述触控操作在所述指纹识别区域所触控的触控传感器的数量;
在所述触控传感器的数量大于或等于个数阈值的情况下,确定所述触控操作的触控面积大于或等于所述面积阈值。
在本申请实施例中,在进行指纹解锁的过程中,由于可以在检测到触控操作的情况下,直接向触摸屏控制器发送中断指令,使得触摸屏初始化操作与检测触控面积的操作同时进行,从而缩短了指纹解锁时长,提高了指纹解锁效率。
需要说明的是:上述实施例提供的电子设备在进行指纹解锁时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
上述实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请实施例的保护范围。
上述实施例提供的电子设备与指纹解锁方法实施例属于同一构思,上述实施例中单元、模块的具体工作过程及带来的技术效果,可参见方法实施例部分,此处不再赘 述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,比如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(比如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(比如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质,或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(比如:软盘、硬盘、磁带)、光介质(比如:数字通用光盘(Digital Versatile Disc,DVD))或半导体介质(比如:固态硬盘(Solid State Disk,SSD))等。
以上所述为本申请提供的可选实施例,并不用以限制本申请,凡在本申请的揭露的技术范围之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (14)

  1. 一种指纹解锁方法,其特征在于,应用于电子设备中,所述方法包括:
    响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积;
    响应于所述中断指令,控制所述触摸屏进行初始化操作;
    在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯;
    在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作。
  2. 如权利要求1所述的方法,其特征在于,所述在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯,包括:
    在所述触摸屏初始化完成且所述触控面积大于或等于所述面积阈值的情况下,点亮预设区域处的背光灯,所述预设区域为所述指纹识别区域和所述电子设备的边框区域中的至少一个区域。
  3. 如权利要求1或2所述的方法,其特征在于,所述电子设备中包括触摸屏触控模块和触摸屏控制器;
    所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积,包括:
    响应于对所述触摸屏中的所述指纹识别区域的触控操作,所述触摸屏触控模块产生所述中断指令并检测所述触控操作的触控面积;
    所述触摸屏触控模块向所述触摸屏控制器发送所述中断指令。
  4. 如权利要求3所述的方法,其特征在于,所述响应于所述中断指令,控制所述触摸屏进行初始化操作,包括:
    所述触摸屏控制器在接收到所述中断指令的情况下,响应于所述中断指令,对所述触摸屏进行初始化操作。
  5. 如权利要求3所述的方法,其特征在于,所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积之后,还包括:
    在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器发送触控失败消息;
    所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作。
  6. 如权利要求3所述的方法,其特征在于,所述电子设备中还包括指纹模块和显示模块;
    所述在所述触摸屏初始化完成且所述触控面积大于或等于面积阈值的情况下,点亮所述电子设备的背光灯,包括:
    在所述触摸屏初始化完成的情况下,所述触摸屏控制器向所述显示模块发送初始化完成消息;
    在所述触控面积大于或等于面积阈值的情况下,所述触摸屏触控模块通过所述指 纹模块向所述显示模块发送触控完成消息;
    所述显示模块在接收到所述初始化完成消息和所述触控完成消息的情况下,点亮所述背光灯。
  7. 如权利要求6所述的方法,其特征在于,所述响应于对所述电子设备的触摸屏中的指纹识别区域的触控操作,产生中断指令并检测所述触控操作的触控面积之后,还包括:
    在所述触控面积小于所述面积阈值的情况下,所述触摸屏触控模块向所述触摸屏控制器和所述指纹模块分别发送触控失败消息;
    所述触摸屏控制器在接收到所述触控失败消息的情况下,若对所述触摸屏的初始化操作未完成,则停止对所述触摸屏的初始化操作;
    所述指纹模块在接收到所述触控失败消息的情况下,不进行任何响应。
  8. 如权利要求1-7中任一项所述的方法,其特征在于,所述在点亮所述背光灯的情况下,控制所述电子设备进行指纹解锁操作,包括:
    在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息;
    根据所述指纹信息进行指纹验证;
    在指纹验证通过的情况下,根据所述电子设备当前所处状态控制所述电子设备执行所述指纹解锁功能对应的操作。
  9. 如权利要求8所述的方法,其特征在于,所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息之前,还包括:
    识别所述触控操作的类型;
    在所述触控操作的类型为进行指纹识别的触控操作的情况下,执行所述在点亮所述背光灯的情况下,采集所述指纹识别区域内的指纹信息的操作。
  10. 如权利要求9所述的方法,其特征在于,所述在指纹验证通过的情况下,根据所述电子设备当前所处状态执行所述指纹解锁功能对应的操作,包括:
    在指纹验证通过的情况下,若所述电子设备当前处于屏幕待解锁状态,则解锁所述电子设备的屏幕;
    在指纹验证通过的情况下,若所述电子设备当前处于资源待支付状态,则进行资源的支付操作;
    在指纹验证通过的情况下,若所述电子设备当前处于账号待登录状态,则进行账号登录操作;
    在指纹验证通过的情况下,若所述电子设备当前处于应用锁待解锁状态,则解锁目标应用程序的应用锁,以显示所述目标应用程序的应用界面,所述目标应用程序为所述电子设备安装的任意一个应用程序,所述目标应用程序设置有所述应用锁且当前处于待启动状态,所述应用锁用于对所述目标应用程序的启动进行加密。
  11. 如权利要求1-10中任一项所述的方法,其特征在于,所述检测所述触控操作的触控面积,包括:
    检测所述触控操作在所述指纹识别区域所触控的触控传感器的数量;
    在所述触控传感器的数量大于或等于个数阈值的情况下,确定所述触控操作的触控面积大于或等于所述面积阈值。
  12. 一种电子设备,其特征在于,所述电子设备包括处理器,所述处理器用于调用存储器中的计算机程序,以执行如权利要求1-11中任一项所述的方法。
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的方法。
  14. 一种芯片,其特征在于,所述芯片包括处理器,所述处理器用于调用存储器中的计算机程序,以执行如权利要求1-11中任一项所述的方法。
PCT/CN2023/089316 2022-07-29 2023-04-19 指纹解锁方法、电子设备、可读存储介质及芯片 WO2024021696A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210908805.0 2022-07-29
CN202210908805.0A CN117519499A (zh) 2022-07-29 2022-07-29 指纹解锁方法、电子设备、可读存储介质及芯片

Publications (1)

Publication Number Publication Date
WO2024021696A1 true WO2024021696A1 (zh) 2024-02-01

Family

ID=89705186

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/089316 WO2024021696A1 (zh) 2022-07-29 2023-04-19 指纹解锁方法、电子设备、可读存储介质及芯片

Country Status (2)

Country Link
CN (1) CN117519499A (zh)
WO (1) WO2024021696A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126998A (zh) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 熄屏指纹解锁方法及终端
CN107015703A (zh) * 2017-04-28 2017-08-04 广东欧珀移动通信有限公司 解锁控制方法及相关产品
JP2017215842A (ja) * 2016-06-01 2017-12-07 キヤノン株式会社 電子機器
CN108810252A (zh) * 2018-05-18 2018-11-13 青岛海信移动通信技术股份有限公司 一种指纹解锁亮屏的方法和装置
CN110059464A (zh) * 2019-04-16 2019-07-26 努比亚技术有限公司 终端熄屏解锁方法、装置、移动终端及可读存储介质
CN113361305A (zh) * 2020-03-06 2021-09-07 北京小米移动软件有限公司 指纹采集方法、电子设备和计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017215842A (ja) * 2016-06-01 2017-12-07 キヤノン株式会社 電子機器
CN106126998A (zh) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 熄屏指纹解锁方法及终端
CN107015703A (zh) * 2017-04-28 2017-08-04 广东欧珀移动通信有限公司 解锁控制方法及相关产品
CN108810252A (zh) * 2018-05-18 2018-11-13 青岛海信移动通信技术股份有限公司 一种指纹解锁亮屏的方法和装置
CN110059464A (zh) * 2019-04-16 2019-07-26 努比亚技术有限公司 终端熄屏解锁方法、装置、移动终端及可读存储介质
CN113361305A (zh) * 2020-03-06 2021-09-07 北京小米移动软件有限公司 指纹采集方法、电子设备和计算机可读存储介质

Also Published As

Publication number Publication date
CN117519499A (zh) 2024-02-06

Similar Documents

Publication Publication Date Title
US10747353B2 (en) Electronic device and method of controlling the electronic device based on touch input
US11216097B2 (en) Fingerprint verification method and electronic device for performing the same
US10754938B2 (en) Method for activating function using fingerprint and electronic device including touch display supporting the same
US10402065B2 (en) Method and apparatus for operating a virtual keyboard
EP3869364B1 (en) Biological recognition interaction method, graphical interaction interface, and related apparatus
US9967100B2 (en) Method of controlling power supply for fingerprint sensor, fingerprint processing device, and electronic device performing the same
US20160092064A1 (en) Method and Apparatus for Displaying Application Interface, and Electronic Device
EP3223131A1 (en) Electronic device with fingerprint sensor and control method thereof
KR20220091446A (ko) 컨텐츠를 처리하는 방법 및 이를 위한 전자 장치 및 저장 매체
EP2869181A1 (en) Method for executing functions in response to touch input and electronic device implementing the same
US20150286328A1 (en) User interface method and apparatus of electronic device for receiving user input
CN107450839B (zh) 基于黑屏手势的控制方法、装置、存储介质及移动终端
US20150128068A1 (en) Method for operating message application and electronic device implementing the same
US20160109936A1 (en) Display control method and protective cover in electronic device
KR102250780B1 (ko) 보안을 제어하기 위한 방법 및 그 전자 장치
TWI675329B (zh) 資訊圖像顯示方法及裝置
US20150074798A1 (en) Electronic Device and Method for Unlocking Screen of Electronic Device
US20150177957A1 (en) Method and apparatus for processing object provided through display
WO2016131181A1 (zh) 一种指纹事件的处理方法、装置及终端
WO2024021696A1 (zh) 指纹解锁方法、电子设备、可读存储介质及芯片
US10592081B2 (en) Multi-language input method and multi-language input apparatus using the same
US11934503B2 (en) Electronic apparatus and control method thereof
EP4209943A1 (en) Method for performing biometric authentication when multiple application interfaces are simultaneously displayed
CN115328556A (zh) 一种终端卡死恢复方法及相关设备
CN117369675A (zh) 窗口的显示方法、电子设备和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23844912

Country of ref document: EP

Kind code of ref document: A1