An under-screen fingerprint screen-off unlocking method, device and computer readable storage medium

CN116382510BActive Publication Date: 2026-08-21NUBIA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211692599.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-08-21
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

[0003]但是,用户在进行屏下指纹解锁完成的瞬间,还未抬起的手指可能会触发开启其它应用,由此,给用户带来极大程度地的困扰和不便

Benefits of technology

[0015] The in-display fingerprint unlocking method, device, and computer-readable storage medium of the present invention, when a fingerprint is detected being pressed in the screen-off state, report a press event corresponding to the fingerprint; before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the in-display fingerprint; when the screen is woken up in response to the press event, the current fingerprint is recognized through the recognition area, and at the same time, the window area blocks signals of accidental touches, wherein the transparent window does not intercept the press event, but only intercepts triggerable events; when the screen is woken up by fingerprint unlocking, triggerable events exceeding the recognition area are intercepted; when a release event corresponding to the press event is reported, the transparent window is removed. This achieves a user-friendly in-display fingerprint unlocking solution, avoiding the problem of accidental touches when unlocking the screen from a standby state, and improving the user experience of the in-display fingerprint function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116382510B_ABST
    Figure CN116382510B_ABST
Patent Text Reader

Abstract

The application discloses a screen-off fingerprint screen-off unlocking method, equipment and a computer readable storage medium, wherein the method comprises the following steps: when a fingerprint is pressed in a screen-off state, a pressing event corresponding to the fingerprint is reported; before responding to the pressing event, a preset transparent window is added, wherein a window area of the transparent window contains an identification area of the fingerprint under the screen; when the screen is woken up in response to the pressing event, the current fingerprint is identified through the identification area, and at the same time, a false touch signal is shielded through the window area, wherein the transparent window does not intercept the pressing event, and the transparent window only intercepts a triggerable event; when a lifting event corresponding to the pressing event is reported, the transparent window is removed. A humanized screen-off fingerprint screen-off unlocking scheme is realized, false touch problems of the fingerprint under the screen during screen-off unlocking are avoided, and the use experience of a user for a fingerprint under the screen function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile communication technology, and in particular to an under-display fingerprint unlocking method, device, and computer-readable storage medium. Background Technology

[0002] In the current technology, with the continuous development of smart terminal devices, under-display fingerprint recognition technology has been widely used.

[0003] However, the moment a user completes the in-display fingerprint unlock, their finger, which has not yet been lifted, may trigger the opening of other applications, causing great annoyance and inconvenience to the user.

[0004] Therefore, how to avoid accidental triggering of under-display fingerprint unlocking has become a pressing technical problem that needs to be solved. Summary of the Invention

[0005] To address the aforementioned technical deficiencies in the prior art, this invention proposes an under-display fingerprint unlocking method, which includes: When a fingerprint is detected in the screen-off state, the press event corresponding to the fingerprint is reported; Before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor; When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area. At the same time, the signal of accidental touch is blocked through the window area. The transparent window does not intercept the press event, but only intercepts triggerable events. When the screen is woken up by fingerprint unlocking, the triggerable event that is outside the recognition area is blocked; When reporting the release event corresponding to the press event, remove the transparent window.

[0006] Optionally, when a fingerprint is detected being pressed in the screen-off state, reporting the press event corresponding to the fingerprint includes, prior to: Retrieve historical in-display fingerprint unlock data; Obtain the associated events corresponding to each press event or release event from the under-display fingerprint unlock data.

[0007] Optionally, when a fingerprint is detected being pressed in the screen-off state, reporting the press event corresponding to the fingerprint further includes: Detect the event type of the associated event and the time interval between it and the press event or the release event; When the event type is unrelated to unlocking and the time interval is less than a preset time, the associated event is determined to be a mis-touch event.

[0008] Optionally, when a fingerprint is detected being pressed in the screen-off state, reporting the press event corresponding to the fingerprint further includes: Obtain the accidental touch area corresponding to the accidental touch event from the under-display fingerprint unlock data; The window area of ​​the transparent window is set according to the range of the accidental touch area.

[0009] Optionally, before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, including: Add an interface and a removal interface for the transparent window in the same fingerprint interaction thread of the system's fingerprint interaction application; Configure variables for the transparent window, and use these variables to record the addition and removal states of the transparent window.

[0010] Optionally, before responding to the press event, adding a preset transparent window, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, further includes: Before adding the transparent window through the added interface, determine whether the screen is currently off. When the screen is off, determine whether the fingerprint interaction thread is launched by the system's fingerprint interaction. If so, add the transparent window through the add interface and update the variables.

[0011] Optionally, removing the transparent window when reporting the release event corresponding to the press event includes: The controller of the fingerprint interaction application monitors whether the fingerprint interaction application has entered a sleep state. When the fingerprint interaction application is determined to have entered the sleep state, the controller calls the removal interface to perform the removal operation of the transparent window again.

[0012] Optionally, the method further includes: When a fingerprint is detected in the screen-off state, the press event corresponding to the fingerprint is reported, and the pressure value of the press event is obtained; Before responding to the press event, if the pressure value exceeds a preset pressure value, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor. When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area, and at the same time, the signal of accidental touch is blocked through the window area; When reporting the release event corresponding to the press event, remove the transparent window.

[0013] The present invention also proposes an under-display fingerprint screen-off unlocking device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint screen-off unlocking method as described in any of the preceding claims.

[0014] The present invention also proposes a computer-readable storage medium storing an under-display fingerprint screen-off unlocking program, which, when executed by a processor, implements the steps of the under-display fingerprint screen-off unlocking method as described in any of the preceding claims.

[0015] The in-display fingerprint unlocking method, device, and computer-readable storage medium of the present invention, when a fingerprint is detected being pressed in the screen-off state, report a press event corresponding to the fingerprint; before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the in-display fingerprint; when the screen is woken up in response to the press event, the current fingerprint is recognized through the recognition area, and at the same time, the window area blocks signals of accidental touches, wherein the transparent window does not intercept the press event, but only intercepts triggerable events; when the screen is woken up by fingerprint unlocking, triggerable events exceeding the recognition area are intercepted; when a release event corresponding to the press event is reported, the transparent window is removed. This achieves a user-friendly in-display fingerprint unlocking solution, avoiding the problem of accidental touches when unlocking the screen from a standby state, and improving the user experience of the in-display fingerprint function. Attached Figure Description

[0016] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention; Figure 2 This is the first flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 3 This is the second flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 4 This is the third flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 5 This is the fourth flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 6 This is the fifth flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 7 This is the sixth flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 8This is the seventh flowchart of the under-display fingerprint screen-off unlocking method of the present invention; Figure 9 This is the eighth flowchart of the under-display fingerprint screen-off unlocking method of the present invention. Detailed Implementation

[0017] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0018] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0019] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0020] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.

[0021] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0022] The following is combined with Figure 1 A detailed introduction to each component of the mobile terminal: The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).

[0023] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.

[0024] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0025] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage media) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0026] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0027] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0028] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.

[0029] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.

[0030] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.

[0031] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 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, or other volatile solid-state storage device.

[0032] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.

[0033] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0034] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.

[0035] Based on the above-described mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.

[0036] Figure 2 This is a first flowchart of the under-display fingerprint screen-off unlocking method of the present invention. This embodiment proposes an under-display fingerprint screen-off unlocking method, which includes: S1. When a fingerprint is detected being pressed while the screen is off, report the press event corresponding to the fingerprint. S2. Before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor; S3. When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area. At the same time, the signal of accidental touch is blocked through the window area. The transparent window does not intercept the press event, but only intercepts triggerable events. S4. When the screen is woken up by fingerprint unlocking, the triggerable event that exceeds the recognition area is intercepted; S5. When reporting the release event corresponding to the press event, remove the transparent window.

[0037] This embodiment analyzes the issue of accidental touches caused by a user's finger not yet lifted when completing an in-display fingerprint unlock, potentially triggering the opening of other applications. Specifically, taking a mobile phone as an example, for phones with in-display fingerprint sensors, most manufacturers use the screen driver to monitor different press states of the fingerprint area and then upload the corresponding UEvent events. That is, when the screen is off, the screen driver monitors the state of the finger pressing and lifting in the fingerprint area, and then reports the fingerprint press and lift events through the UEvent mechanism; similarly, when the screen is on, the screen driver monitors the state of the finger pressing and lifting in the fingerprint area, and then reports the fingerprint press and lift events through the UEvent mechanism. It can be seen that these UEvent events are then given to the fingerprint UI application, which then processes the corresponding fingerprint business logic.

[0038] Based on this, this embodiment found that most users frequently use their thumb to press the fingerprint area for fingerprint unlocking. The thumb is relatively large and sometimes presses almost flat against the screen. Therefore, the contact area between the thumb and the screen significantly exceeds the fingerprint area. When unlocking with the screen off, the screen is awakened, becoming capable of triggering the onTouch event. Then, at the moment of successful fingerprint unlocking, the area of ​​the screen that extends beyond the fingerprint area is likely to preempt the onTouch down event. If there is an application's desktop icon or a clickable view in that area, the corresponding application or interface will open. In other words, after unlocking with the screen off, unexpected application interfaces may open randomly, providing a poor user experience. This embodiment also found that fingerprint unlocking with the screen on does not have the above problem because when the screen is on, the screen is always in a state where the onTouch event can be triggered. When the fingerprint area is pressed for fingerprint unlocking, the onTouch down event has already been consumed by the fingerprint view. Therefore, after successful unlocking, it will not be triggered by interfaces outside the fingerprint area.

[0039] Therefore, this embodiment proposes an optimized solution to prevent accidental screen touches after unlocking with an in-display fingerprint sensor. Specifically, firstly, when a fingerprint is detected being pressed in the screen-off state, a press event corresponding to the fingerprint is reported; then, before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the in-display fingerprint sensor; next, when the screen is woken up in response to the press event, the current fingerprint is recognized through the recognition area, and at the same time, the window area blocks the signal of accidental touches, wherein the transparent window does not intercept the press event, but only intercepts triggerable events; when the screen is woken up by unlocking with the fingerprint sensor, the triggerable events that exceed the recognition area are intercepted; finally, when a release event corresponding to the press event is reported, the transparent window is removed. In a specific example, in the screen-off fingerprint unlocking scenario, when the fingerprint is pressed, a transparent window is added to cover the area near the fingerprint area, with a length and width approximately three times the size of the fingerprint area, so as to cover the pressing area of ​​the thumb that exceeds the fingerprint range. It should be noted that this transparent window does not intercept KeyEvent events, but only intercepts onTouch events. Therefore, when the screen is unlocked by fingerprint, the onTouch event outside the fingerprint area is intercepted, preventing other applications from being triggered or other interfaces from opening after unlocking. When the fingerprint is lifted, the transparent window is removed to avoid its influence on interface touch events.

[0040] Please refer to Figure 3 In this embodiment, the step of reporting the press event corresponding to the fingerprint when a fingerprint is detected in the screen-off state includes the following: S01. Obtain historical in-display fingerprint unlock data; S02. Obtain the associated event corresponding to each press event or release event from the under-display fingerprint unlock data.

[0041] Please refer to Figure 4 In this embodiment, the step of reporting the press event corresponding to the fingerprint when a fingerprint is detected in the screen-off state further includes: S03. Detect the event type of the associated event and the time interval between it and the press event or the release event; S04. When the event type is unrelated to unlocking and the time interval is less than a preset time, the associated event is determined to be a mis-touch event.

[0042] Please refer to Figure 5 In this embodiment, the step of reporting the press event corresponding to the fingerprint when a fingerprint is detected in the screen-off state further includes: S05. Obtain the accidental touch area corresponding to the accidental touch event from the under-display fingerprint unlock data; S06. Set the window area of ​​the transparent window according to the range of the accidental touch area.

[0043] Optionally, statistical analysis can be performed on the accidental touch areas from multiple historical data to determine the smallest window area covering the possible accidental touch range.

[0044] Please refer to Figure 6 In this embodiment, before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, including: S21. Add an interface for adding and removing the transparent window in the same fingerprint interaction thread of the system's fingerprint interaction application; S22. Configure variables for the transparent window, and record the addition and removal states of the transparent window through the variables.

[0045] Please refer to Figure 7 In this embodiment, before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, and further includes: S23. Before adding the transparent window through the add interface, determine whether the screen is currently off. S24. When in the screen-off state, determine whether the fingerprint interaction thread is launched by the system's fingerprint interaction. If so, add the transparent window through the add interface and update the variables.

[0046] Please refer to Figure 8 In this embodiment, removing the transparent window when reporting the release event corresponding to the press event includes: S51. In the controller of the fingerprint interaction application, monitor whether the fingerprint interaction application has entered a sleep state; S52. When it is determined that the fingerprint interaction application has entered the sleep state, the controller calls the removal interface to perform the removal operation of the transparent window again.

[0047] In this embodiment, the WindowController of the fingerprint UI application adds an interface addAntiContactViewFromWindow() for adding an anti-accidental touch window and an interface removeAntiContactViewToWindow() for removing an anti-accidental touch window. The two interfaces are implemented and processed in the fingerprint UI thread to ensure that adding and removing windows are done in the same thread.

[0048] Optionally, in this embodiment, when implementing the addAntiContactViewFromWindow() interface, the mAntiContactAddedToWindow variable is configured. This variable records the addition status of the anti-accidental touch window. When adding the anti-accidental touch window, it first checks whether the screen is off and whether the fingerprint is brought up by SystemUI. Considering that the fingerprint is only brought up by SystemUI when the screen is locked, the above solution can ensure that it is used in scenarios where the screen is off and locked.

[0049] Optionally, in this embodiment, when configuring the window properties for preventing accidental touches, WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY can be configured so that the window can float on top of other applications.

[0050] Optionally, in this embodiment, when configuring WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE and WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL corresponding to the window for preventing accidental touches, the KeyEvent event is not intercepted.

[0051] Optionally, in this embodiment, when configuring PixelFormat.TRANSLUCENT, the window is made semi-transparent, and no background color is set, so it appears transparent.

[0052] Optionally, in this embodiment, when configuring Gravity.TOP and Gravity.GENTER_HORIZONTAL corresponding to the window, the window is made to be horizontally centered with the top as the reference.

[0053] Optionally, in this embodiment, when configuring lp.width = mDevice.getFingerWidth()*3, lp.height = mDevice.getFingerHeight()*3, and lp.y = mDevice.getFingerArea().top - mDevice.getFingerHeight() / 2 corresponding to the window, the window's width and height are three times that of the fingerprint area, and the y-axis coordinate is the top of the fingerprint area plus half the height of the fingerprint area above it. This allows coverage of the entire fingerprint area and the area requiring accidental touch prevention.

[0054] Optionally, in this embodiment, the anti-accidental touch window is added using mWindowManager.addView(mAntiContactView, lp), and mAntiContactAddedToWindow = true is set to record that the anti-accidental touch window has been added.

[0055] Optionally, in this embodiment, when implementing removeAntiContactViewToWindow(), it first determines whether mAntiContactAddedToWindow is true. If it is true, the window that prevents accidental touch is removed. The removal of the window is accomplished by mWindowManager.removeView(mAntiContactView), and mAntiContactAddedToWindow = false is set to record that the window has been removed.

[0056] Optionally, in this embodiment, in the ZteSystemUEvent of the fingerprint UI application, in the onUEvent method, when the event is FP_AOD_FINGER_DOWN or FP_FINGER_DOWN, that is, when the finger is pressed on the fingerprint area while the screen is off, the interface method mWindowController.addAntiContactViewToWindow() of WindowController is called to add an anti-mistouch window. Based on this, when the event is FP_FINGER_UP, that is, when the finger is pressed on the fingerprint area while the screen is off and then lifted, the interface method mWindowController.removeAntiContactViewFromWindow() of WindowController is called to remove the anti-mistouch window. Thus, the function of adding an anti-mistouch window when the finger is pressed while the screen is off and removing the anti-mistouch window when the finger is lifted is implemented.

[0057] Furthermore, in this embodiment, in the PowerController of the fingerprint UI application, the interface method mWindowController.removeAntiContactViewFromWindow() of WindowController is called in the onFinishedGoingToSleep() method to remove the anti-mistouch window. This ensures that the anti-mistouch window is removed only after the screen is off, avoiding the situation where the anti-mistouch window is not actually removed when the finger is lifted.

[0058] Please refer to Figure 9In this embodiment, the method further includes: S61. When the fingerprint is detected to be pressed in the screen-off state, the press event corresponding to the fingerprint is reported, and the pressure value of the press event is obtained; S62. Before responding to the press event, if the pressure value exceeds a preset pressure value, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor. S63. When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area, and at the same time, the signal of accidental touch is blocked through the window area; S64. When reporting the release event corresponding to the press event, remove the transparent window.

[0059] In another embodiment, when a fingerprint is detected in the screen-off state, a press event corresponding to the fingerprint is reported, and the touch center point of the press event is obtained; before responding to the press event, if the deviation between the touch center point and the center point of the recognition area exceeds a preset deviation value, a preset transparent window is added, wherein the window area of ​​the transparent window includes the under-display fingerprint recognition area; when the screen is woken up in response to the press event, the current fingerprint is recognized through the recognition area, and at the same time, the signal of accidental touch is blocked through the window area; when a release event corresponding to the press event is reported, the transparent window is removed.

[0060] The beneficial effects of this embodiment are as follows: When a fingerprint is detected being pressed in the screen-off state, a press event corresponding to the fingerprint is reported; before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint; when the screen is woken up in response to the press event, the current fingerprint is recognized through the recognition area, and at the same time, the window area blocks signals of accidental touches, wherein the transparent window does not intercept the press event, but only intercepts triggerable events; when the screen is woken up by fingerprint unlocking, triggerable events exceeding the recognition area are intercepted; when a release event corresponding to the press event is reported, the transparent window is removed. This achieves a user-friendly under-display fingerprint screen-off unlocking solution, avoiding the problem of accidental touches when unlocking the under-display fingerprint when the screen is off, and improving the user experience of the under-display fingerprint function.

[0061] Based on the above embodiments, the present invention also proposes an under-display fingerprint screen-off unlocking device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint screen-off unlocking method as described in any of the above embodiments.

[0062] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.

[0063] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing an under-display fingerprint screen-off unlocking program, which, when executed by a processor, implements the steps of the under-display fingerprint screen-off unlocking method as described in any of the above embodiments.

[0064] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.

[0065] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0066] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0067] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0068] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A method for unlocking a screen-off fingerprint sensor, characterized in that, The method includes: When a fingerprint is detected in the screen-off state, the press event corresponding to the fingerprint is reported; Before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor; When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area. At the same time, the signal of accidental touch is blocked through the window area. The transparent window does not intercept the press event, but only intercepts triggerable events. When the screen is woken up by fingerprint unlocking, the triggerable event that is outside the recognition area is blocked; When reporting the release event corresponding to the press event, remove the transparent window.

2. The under-display fingerprint unlocking method according to claim 1, characterized in that, When a fingerprint is detected being pressed while the screen is off, the process of reporting the press event corresponding to the fingerprint includes: Retrieve historical in-display fingerprint unlock data; Obtain the associated events corresponding to each press event or release event from the under-display fingerprint unlock data.

3. The under-display fingerprint unlocking method according to claim 2, characterized in that, The step of reporting the press event corresponding to the fingerprint when a fingerprint is detected in the screen-off state, prior to which includes: Detect the event type of the associated event and the time interval between it and the press event or the release event; When the event type is unrelated to unlocking and the time interval is less than a preset time, the associated event is determined to be a mis-touch event.

4. The under-display fingerprint unlocking method according to claim 3, characterized in that, The step of reporting the press event corresponding to the fingerprint when a fingerprint is detected in the screen-off state, prior to which includes: Obtain the accidental touch area corresponding to the accidental touch event from the under-display fingerprint unlock data; The window area of ​​the transparent window is set according to the range of the accidental touch area.

5. The under-display fingerprint unlocking method according to claim 4, characterized in that, Before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, including: Add an interface and a removal interface for the transparent window in the same fingerprint interaction thread of the system's fingerprint interaction application; Configure variables for the transparent window, and use these variables to record the addition and removal states of the transparent window.

6. The under-display fingerprint unlocking method according to claim 5, characterized in that, Before responding to the press event, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor, and further includes: Before adding the transparent window through the added interface, determine whether the screen is currently off. When the screen is off, determine whether the fingerprint interaction thread is launched by the system's fingerprint interaction. If so, add the transparent window through the add interface and update the variables.

7. The under-display fingerprint unlocking method according to claim 6, characterized in that, The step of removing the transparent window when reporting the release event corresponding to the press event includes: The controller of the fingerprint interaction application monitors whether the fingerprint interaction application has entered a sleep state. When the fingerprint interaction application is determined to have entered the sleep state, the controller calls the removal interface to perform the removal operation of the transparent window again.

8. The under-display fingerprint unlocking method according to claim 7, characterized in that, The method further includes: When a fingerprint is detected in the screen-off state, the press event corresponding to the fingerprint is reported, and the pressure value of the press event is obtained; Before responding to the press event, if the pressure value exceeds a preset pressure value, a preset transparent window is added, wherein the window area of ​​the transparent window includes the recognition area of ​​the under-display fingerprint sensor. When the screen is woken up in response to the press event, the current fingerprint is identified through the recognition area, and at the same time, the signal of accidental touch is blocked through the window area; When reporting the release event corresponding to the press event, remove the transparent window.

9. An under-display fingerprint unlocking device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the under-display fingerprint screen-off unlocking method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an under-display fingerprint screen-off unlocking program, which, when executed by a processor, implements the steps of the under-display fingerprint screen-off unlocking method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device of starting fingerprint recognition and intelligent terminal

    CN106980527A

  • Method for preventing screen from being turned off by mistake, terminal and computer readable storage medium

    CN110865762A