CN114995676A - Fingerprint false touch prevention method, graphical interface and electronic equipment - Google Patents

Fingerprint false touch prevention method, graphical interface and electronic equipment Download PDF

Info

Publication number
CN114995676A
CN114995676A CN202111644786.7A CN202111644786A CN114995676A CN 114995676 A CN114995676 A CN 114995676A CN 202111644786 A CN202111644786 A CN 202111644786A CN 114995676 A CN114995676 A CN 114995676A
Authority
CN
China
Prior art keywords
fingerprint
electronic device
sensor
state
proximity light
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111644786.7A
Other languages
Chinese (zh)
Inventor
左宗文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111644786.7A priority Critical patent/CN114995676A/en
Publication of CN114995676A publication Critical patent/CN114995676A/en
Pending legal-status Critical Current

Links

Images

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
    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a fingerprint false touch prevention method. In the method: when the electronic device is in the screen locking state and the user operation acting on the fingerprint sensor is detected by the electronic device, the electronic device can acquire that the proximity light sensor detects the proximity light state. And if the approaching light state indicates that the electronic equipment is not shielded, judging that the user operation is a non-error touch operation, and indicating a fingerprint sensor to acquire a fingerprint image to perform fingerprint authentication. And if the approaching light state indicates that the electronic equipment is blocked, judging that the user operation is a false touch operation, and indicating that the fingerprint sensor does not collect fingerprint images. The fingerprint anti-false touch function can be realized on the premise of improving the accuracy of fingerprint authentication.

Description

Fingerprint false touch prevention method, graphical interface and electronic equipment
Technical Field
The application relates to the field of terminals, in particular to a fingerprint false touch prevention method, a graphical interface and electronic equipment.
Background
At present, the fingerprint identification function has become the standard configuration of electronic equipment. In everyday life, users often inadvertently touch/press to the fingerprint sensor. For example, when a user places the electronic device in a pocket, a finger of the user may touch the fingerprint sensor by mistake, but the user does not want to unlock the electronic device through the fingerprint identification function, but the electronic device is triggered to unlock the electronic device through the fingerprint identification function, so that power consumption of the electronic device is increased.
How to realize the function of preventing the false touch of the fingerprint is a problem to be solved urgently.
Disclosure of Invention
The application provides a fingerprint false touch prevention method, which judges whether a fingerprint unlocking operation input by a user is false triggering or not according to data detected by a proximity light sensor, and if the fingerprint unlocking operation is false triggering, the fingerprint unlocking operation is not executed; otherwise, fingerprint unblock is carried out, and then the mistake of preventing touching the function in realization fingerprint.
In a first aspect, the present application provides a fingerprint false touch prevention method, which is applied to an electronic device, where the electronic device includes an entity button disposed on one side of the electronic device, and the entity button includes a fingerprint module; the electronic device further includes a proximity light sensor; the method comprises the following steps: determining that the electronic device is in a first state; the first state refers to a screen locking and screen extinguishing state; receiving a first operation of a user on the electronic equipment; when the electronic equipment determines that a preset approaching light threshold value is not met according to the approaching light sensor, the electronic equipment is in the first state or the second state; receiving a second operation of the user on the electronic equipment; when the electronic equipment determines that a preset approaching light threshold is met according to the approaching light sensor, the electronic equipment is in a third state; wherein the first operation is the same as or different from the second operation; the first state, the second state, and the third state are different.
After the method provided by the first aspect is implemented, when the electronic device is in the screen locking state, the electronic device may determine whether the fingerprint unlocking operation input by the user is false triggering according to the data of the proximity light detection, and if the fingerprint unlocking operation is false triggering, the fingerprint unlocking operation is not executed and the screen locking state is maintained; otherwise, fingerprint unlocking is executed, and then the function of preventing false touch of the fingerprint is realized.
With reference to the method provided by the first aspect, when the first operation is a touch operation applied to the physical key and the electronic device determines that a preset access light threshold is not met, the electronic device is in the first state.
Therefore, when the electronic equipment is in the screen locking and screen extinguishing state, the electronic equipment is arranged in a pocket or placed beside the ear of a user to answer a call, and if the user carelessly touches the entity key, the electronic equipment still keeps the screen locking and screen extinguishing state, a zero screen is not needed, and the power consumption can be reduced.
With reference to the method provided by the first aspect, when the first operation is a pressing operation on the physical key and the electronic device determines that a preset access light threshold is not met, the electronic device is in the second state; the second state indicates screen lock and displays a screen lock interface.
Thus, when the electronic device is in the locked screen and the screen is off, the electronic device is in a pocket or placed beside the ear of the user to answer a call, and if the user presses the physical key, the electronic device still keeps the locked screen but lights the screen.
With reference to the method provided by the first aspect, after the electronic device displays the screen locking interface, the method further includes: the electronic equipment does not receive user operation within preset time and is switched to the first state. Therefore, when the electronic equipment is arranged in a pocket or is arranged beside the ear of a user to answer a call, if the user presses the entity key, the electronic equipment only lights the screen within the preset time, and the screen is turned off after the preset time, so that the power consumption can be reduced.
With reference to the method provided by the first aspect, when the second operation is a touch/press operation on the physical key and the electronic device determines that a preset access light threshold is met, the third state indicates unlocking and displaying an unlocked interface.
Therefore, under the condition that the electronic equipment is not placed in a pocket or is placed beside an ear and the like and is shielded, when a user touches/presses the entity key, the electronic equipment can normally execute a fingerprint unlocking event, and the electronic equipment is unlocked after passing fingerprint authentication.
With reference to the method provided by the first aspect, the determining, by the electronic device according to the proximity light sensor, that the preset proximity light threshold is not met specifically includes: when the proximity light sensor detects that the value of the proximity light is 0 or more and less than 5, the electronic device determines that the preset proximity light threshold is not satisfied.
In this way, the electronic device can determine whether the electronic device is occluded according to the data detected by the proximity light sensor.
With reference to the method provided by the first aspect, the determining, by the electronic device, that the preset proximity light threshold is met according to the proximity light sensor specifically includes: when the proximity light sensor detects that the value of the proximity light is greater than or equal to 5, the electronic device determines that a preset proximity light threshold is met.
With reference to the method provided by the first aspect, the electronic device further comprises a fingerprint service, a Sensor HAL, a proximity light driver; the fingerprint service is located in an application framework layer of the electronic equipment; the fingerprint service and the Sensor service are positioned in an application program framework layer of the electronic equipment; the Sensor HAL is located at a hardware abstraction layer HAL of the electronic device; the proximity light driver is positioned on an inner core layer of the electronic equipment, and the proximity light sensor is positioned on a hardware layer of the electronic equipment; the electronic device determines that the preset proximity light threshold is not met according to the proximity light sensor, and specifically includes: the proximity light Sensor is driven by the proximity light, sent to the fingerprint service by the Sensor HAL and the Sensor service, and used for indicating that the proximity light does not meet the information of a preset proximity light threshold; the fingerprint service determines that a preset proximity light threshold is not met.
Like this, when electronic equipment is in the lock screen state, electronic equipment can be according to fingerprint service, Sensor service through in the application frame layer, Sensor HAL in the HAL, and the proximity light drive in the kernel layer controls the proximity optical Sensor and detects and close the optical transmission data to pass back to fingerprint service with the proximity optical transmission data that detect for fingerprint service judges whether electronic equipment is sheltered from.
In combination with the method provided by the first aspect, the electronic device includes a first chip; the proximity light driver operates in the first chip.
Thus, the proximity light data can be processed by the first chip, reducing the power consumption of the CPU.
In combination with the method provided by the first aspect, the electronic device further includes: fingerprint HAL, fingerprint drive; the fingerprint HAL is located at the HAL of the electronic device; the fingerprint driver is positioned on the inner core layer of the electronic equipment, and the fingerprint sensor is positioned on the hardware layer of the electronic equipment; receiving a first operation of a user on the electronic equipment; when the electronic device determines that the preset proximity light threshold is not met according to the proximity light sensor, the electronic device is in the first state or the second state, and specifically includes: the fingerprint sensor sends indication information of receiving the first operation to the fingerprint service through the fingerprint driver and the fingerprint HAL; the fingerprint service determining, from the proximity light sensor, that a preset proximity light threshold is not met; the fingerprint service sends an instruction not to acquire a fingerprint image to the fingerprint sensor through the fingerprint HAL and the fingerprint driver; the electronic device is in the first state or the second state.
Like this, when electronic equipment is in the lock screen state, electronic equipment can be according to the fingerprint clothes through in the application frame layer, fingerprint HAL in the HAL, whether fingerprint drive control fingerprint sensor in the kernel layer detects has fingerprint unblock operation to fingerprint operation passback to the fingerprint service that will detect, be used for triggering fingerprint service and judge whether electronic equipment is sheltered from, if sheltered from, then instruct fingerprint sensor to send and do not gather the fingerprint image, and then shield fingerprint unblock incident, electronic equipment can keep the lock screen state.
In combination with the method provided by the first aspect, the fingerprint driver operates in a CPU, which is different from the first chip.
Therefore, the fingerprint image is processed by the CPU, the computing capability of the CPU is stronger than that of the first chip, and the accuracy of the fingerprint authentication result can be improved.
In combination with the method provided by the first aspect, receiving a second operation of the electronic device by the user; when the electronic device determines that the preset proximity light threshold is met according to the proximity light sensor, the electronic device is in a third state, specifically including: the fingerprint sensor sends and receives the indication information of the second operation to the fingerprint service through the fingerprint driver and the fingerprint HAL; the fingerprint service determining that a preset proximity light threshold is met according to the proximity light sensor; the fingerprint service sends a command for collecting a fingerprint image to the fingerprint sensor through the fingerprint HAL and the fingerprint driver; the fingerprint HAL or the fingerprint driver performs fingerprint authentication based on the fingerprint image, and if the authentication is passed, the electronic device is in a third state.
Like this, when electronic equipment is in the lock screen state, electronic equipment can be according to the fingerprint clothes in passing through application frame layer, fingerprint HAL in the HAL, whether fingerprint drive control fingerprint sensor in the kernel layer detects has fingerprint unblock operation, and pass back the fingerprint operation that detects to fingerprint service, be used for triggering fingerprint service and judging whether electronic equipment is sheltered from, if do not sheltered from, then instruct fingerprint sensor to send and gather the fingerprint image, and then carry out fingerprint unblock incident, if fingerprint authentication passes, then electronic equipment can unblock.
In a second aspect, the present application provides an electronic device comprising: one or more processors, memory; the memory is coupled to the one or more processors, the memory for storing computer program code comprising computer instructions, the one or more processors for invoking the computer instructions to cause the electronic device to perform the method as described in any of the first aspects.
In a third aspect, the present application provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method as described in any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any of the first aspects.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another electronic device software architecture provided in an embodiment of the present application;
fig. 4 is an external view of another electronic device provided in the embodiments of the present application;
fig. 5 is a schematic interface diagram illustrating a set of fingerprint anti-false touch functions provided in the embodiment of the present application;
6A-6C are schematic diagrams of a set of fingerprint unlocking interfaces provided by an embodiment of the application;
7A-7E are schematic diagrams of another set of fingerprint unlocking interfaces provided by embodiments of the present application;
fig. 8 is a flowchart of a fingerprint false touch prevention method according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, and implements conversion between an internal form of information and a form acceptable to the user. The user interface is source code written by java, extensible markup language (XML) and other specific computer languages, and the interface source code is analyzed and rendered on the electronic device and finally presented as content which can be identified by the user. A commonly used presentation form of the user interface is a Graphical User Interface (GUI), which refers to a user interface related to computer operations and displayed in a graphical manner. It may be a visual interface element such as text, an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. displayed in the display of the electronic device.
The application provides a fingerprint false touch prevention method. In the method: when the electronic device is in the screen locking state and the user operation acting on the fingerprint sensor is detected by the electronic device, the electronic device can acquire the state of the proximity light detected by the proximity light sensor. And if the approaching light state indicates that the electronic equipment is not shielded, judging that the user operation is not mistaken touch operation, and indicating a fingerprint sensor to collect a fingerprint image to perform fingerprint authentication. And if the approaching light state indicates that the electronic equipment is blocked, judging that the user operation is a false touch operation, and indicating that the fingerprint sensor does not collect fingerprint images.
In some embodiments, the CPU of the electronic device may run a fingerprint driver, by which a user operation acting on the fingerprint sensor is detected. The electronic equipment can also operate the proximity light drive, and the proximity light state is obtained through the proximity light drive. If the approaching light state indicates that the electronic equipment is not shielded, the CPU judges that the user operation is non-error touch operation, and indicates the fingerprint sensor to collect a fingerprint image through fingerprint driving to carry out fingerprint authentication. And if the approaching light state indicates that the electronic equipment is shielded, judging that the user operation is mistaken touch operation, and indicating the fingerprint sensor not to collect a fingerprint image through fingerprint driving.
The following first explains the terms referred to in the present application:
the screen locking state means that a display screen of the electronic equipment is locked, and the display screen can only display a screen locking interface and a screen turning-off interface or is turned off and does not display any information. When the electronic device is in the lock screen state, the user can only access or use part of the applications, for example, the functions of using the SOS for emergency help, answering/hanging up a call, using the camera application for shooting, pausing/continuing to play music, adjusting volume and the like.
Fingerprint anti-false touch refers to avoiding the electronic device from performing any one or more of the following when a user inadvertently inputs a fingerprint: the method comprises the steps of collecting a fingerprint image, carrying out fingerprint authentication, or unlocking the electronic equipment after the authentication is passed so as to receive more mistaken touch operations. That is to say, the fingerprint anti-false touch mentioned in the embodiment of the present application does not prohibit the user from performing some operations, but prevents the electronic device from responding to the false touch operation of the user.
The false touch operation refers to an operation applied to the fingerprint sensor that is not subjectively and unconsciously input by the user, for example, when the user holds the electronic device and places the electronic device in a pocket, the user may inadvertently input the operation applied to the fingerprint sensor, but the user does not want to unlock the electronic device through the fingerprint recognition function.
The non-false touch operation refers to an operation that acts on the fingerprint sensor and is input by the user subjectively and consciously, for example, the user holds the electronic device in front of the user at a certain distance, the user actively inputs the operation that acts on the fingerprint sensor, and the user wants to unlock the electronic device through the fingerprint identification function at this time.
The user operation acting on the fingerprint sensor in the false touch operation specifically includes: touching/pressing to the area where the fingerprint sensor is located.
After the fingerprint anti-false touch method provided by the application is implemented, the following beneficial effects can be brought:
the beneficial effects are that: the electronic equipment adopting any kind of chips can realize the function of preventing the fingerprint from being touched by mistake, avoid bringing extra power consumption after the electronic equipment is unlocked by users unintentionally, also avoid the unlocking of the electronic equipment to receive more mistaken touch operations, and ensure the safety of the electronic equipment.
Beneficial effects 2: when the user inputs the false touch operation, the power consumption caused by collecting the fingerprint image by the electronic equipment is avoided. Therefore, the electronic equipment does not need to acquire the fingerprint image all the time, only needs to acquire the data on the basic touch/press fingerprint sensor, and does not acquire the fingerprint image if the operation is triggered by the user by mistake, so that the power consumption for acquiring the fingerprint image is reduced.
Beneficial effect 3: the fingerprint drive runs in the CPU or the AP in the CPU, and the CPU and the AP have strong operational capability, so that a fingerprint image processing function with higher precision can be provided for fingerprint authentication, and the accuracy of the fingerprint authentication is further improved.
For ease of understanding, the form and hardware and software architecture of the electronic device provided in the present application are described below.
The electronic equipment provided by the embodiment of the application can be mounted
Figure BDA0003443279330000051
Or other operating system terminal devices, such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, an Artificial Intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and/or a city device, and the specific type of the electronic device is not particularly limited by the embodiments of the present application.
Referring to fig. 1, fig. 1 illustrates a hardware architecture diagram of an electronic device 100.
As shown in fig. 1, the electronic device 100 may include: processor 110, sensor module 120, display 130, keys 140, internal memory 150, and external memory interface 160, among others. Wherein the sensor module 120 may include a fingerprint sensor 120A, a proximity light sensor 120B, an ambient light sensor 120C, a pressure sensor 120D, a touch sensor 120E, and the like. The above-described respective modules may be connected to the processor 110 through a bus.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
The AP can be a very large scale integrated circuit which expands audio and video functions and a special interface on the basis of a low-power-consumption CPU. The AP is a chip developed for an application processing platform, and the chip is mainly used for being mounted on electronic products in various product forms, and then forms a set of solutions. By adopting the modularized AP framework, the multimedia function application program which once occupies too much CPU resources of the electronic equipment can be executed on the AP, and the load of the CPU is reduced.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In the embodiment of the present application, when the display 130 locks the screen, the processor 110 may control the fingerprint sensor 120A to perform a listening event for a fingerprint touch/press, and may also control the proximity light sensor 120B to perform a listening event for a proximity light state. The listening event for performing a fingerprint touch/press specifically includes: it is detected whether there is an operation of touching/pressing the fingerprint sensor. The executing of the listening event in the proximity light state specifically includes: and detecting whether the state of the approach light changes, and if so, acquiring the changed state of the approach light.
In the embodiment of the present application, when the display screen 130 is locked, when the processor 110 detects that there is an operation of touching/pressing the fingerprint sensor 120A, it may be determined whether the operation is a user error touch, and if so, the display screen 130 is controlled to maintain a screen locking state, and the fingerprint sensor 120A is instructed not to collect a fingerprint image; otherwise, the processor 110 controls the fingerprint sensor 120A to collect a fingerprint image, and then the processor 110 starts fingerprint authentication, and controls the display screen 130 to unlock if the fingerprint image passes the authentication, and controls the display screen 130 to keep the screen locking state if the fingerprint image does not pass the authentication.
The keys 140 include an on-off key 151, a volume key 152, and the like. The keys 140 may be mechanical keys, touch keys, or push-and-touch integrated keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The fingerprint sensor 120A is used to capture a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to realize functions of unlocking the electronic device by using the fingerprint, unlocking the application lock, taking a picture by using the fingerprint, answering an incoming call by using the fingerprint, and the like.
In the present embodiment, the fingerprint sensor 120A may be a capacitive fingerprint sensor or an optical fingerprint sensor. The embodiment of the present application does not limit the specific type of the fingerprint sensor 120A.
The capacitive fingerprint sensor may be disposed in a physical key, such as an on-off key 151, where the on-off key 151 may be a push type mechanical key, a touch type key, or a press and touch integrated key. The capacitive fingerprint sensor may detect an electrical signal indicating a touch operation or a pressing operation of the user on the switch key 151.
The optical fingerprint sensor may be integrated on the display screen In an Under display (In display) structure or an In display (In display) structure, specifically, the optical fingerprint sensor may be an independent functional module and directly disposed below a display area of the display screen (e.g., an LCD display), or the optical fingerprint sensor may also be integrated on a portion of the display screen (e.g., self-emitting display pixels of the OLED display screen are used as a light source).
The working principle of the fingerprint sensor 120A is described below in conjunction with the fingerprint anti-false touch function provided by the present application:
(1) taking the fingerprint sensor 120A as an example of a capacitance type, the principle is to integrate a capacitor into a chip, when a conductive object (e.g. a finger) presses the surface of the chip, because the surface of the finger has rugged grains (i.e. a fingerprint), a capacitance sensor inside the sensor generates charge differences according to the peaks and valleys of the fingerprint, so that the sensor can draw the grains of the fingerprint, i.e. a fingerprint image, according to the different charge differences.
In the embodiment of the present application, the capacitive fingerprint sensor may be active or passive. Specifically, the active capacitive fingerprint sensor applies an external driving signal (e.g., a string of square wave signals) to the finger to enhance the charges on the surface of the finger, so that the capacitive sensor underneath receives the electric field signal and amplifies the signal, thereby generating a charge difference according to the rugged fingerprint. The passive capacitive fingerprint sensor reproduces fingerprints by utilizing the influence degree of the ratio of the wave crests and wave troughs of the fingerprints to the charge distribution of upper and lower electrodes of a capacitor in a chip when the fingerprints are pressed on the surface of the chip, and a driving signal does not need to be additionally added.
In combination with the fingerprint anti-false touch method provided by the application, if the capacitive fingerprint sensor 120A is disposed in the on-off key 151, when a finger of a user touches/presses the on-off key 151, the on-off key 151 may detect the fingerprint touch/press operation, and report the operation layer by layer to a fingerprint service of an application framework layer through a fingerprint driver of the kernel layer and a fingerprint HAL in the HAL, wait for the fingerprint service to determine whether the operation is false-triggered by the user, and send an instruction whether to acquire a fingerprint image to the capacitive fingerprint sensor 120A according to a determination result.
For detailed description of the fingerprint anti-false touch method provided in the present application, reference may be made to the following method embodiments, which are not repeated herein.
(2) Taking the fingerprint sensor 120A as an example of an optical type, the principle is to use the refraction and reflection principle of light, when a finger touches the area corresponding to the fingerprint sensor 120A in the display screen, the finger is irradiated by the built-in light source in the display screen, and light is reflected on the surface of the finger from the bottom through the refraction of the display screen, because the surface of the finger has rugged grains (namely, fingerprints), the light is reflected to the display screen from the fingerprint grains of different depths, and then the light signal intensities refracted to the fingerprint sensor 120A from the display screen are different. Accordingly, the fingerprint sensor 120A may further reflect the texture depth information of the fingerprint according to the light intensity signal, i.e., generate a fingerprint image having ridges and valleys. The ridge line is a line with a certain width and a certain trend in the fingerprint image and is usually black; the valley line refers to a depressed portion between lines in the fingerprint image, and is generally white.
In combination with the fingerprint false touch prevention method provided by the application, if the optical fingerprint sensor 120A is disposed in the display screen 130, when a fingerprint touches/presses a preset area in the display screen 130 (the preset area is an area corresponding to the fingerprint sensor 120A), the touch sensor in the preset area can detect a fingerprint touch operation of a user, and report the operation layer by layer to a fingerprint service of an application framework layer through a fingerprint driver in the kernel layer and a fingerprint HAL in the HAL, wait for the fingerprint service to determine whether the operation is false triggering of the user, and send an instruction whether to acquire a fingerprint image to the optical fingerprint sensor 120A according to a determination result.
For detailed description of the fingerprint false touch prevention method provided in the present application, reference may be made to the following method embodiments, and details are not repeated herein.
Particularly, in the embodiment of the present application, when the fingerprint authentication is performed by using the fingerprint image, the requirement on the processing capability of the chip is high, so that the accuracy of the fingerprint authentication is improved. The fingerprint Sensor 120A cannot be mounted on the Sensor hub. That is, the fingerprint data cannot be fused in the Sensor hub with data acquired by other sensors (e.g., the proximity light Sensor 120B).
The proximity light sensor 120B may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity sensor 120B to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen for power saving. The proximity light sensor 120B may also be used in a holster mode, a pocket mode that automatically unlocks and locks the screen.
In view of the fingerprint anti-false touch method provided in the present application, the proximity light sensor 120B can be used to detect the state of approaching light. When the proximity light sensor 120B detects that the value of the proximity light is between the values of [0.0f,5.0f), the proximity light sensor can output 0cm to indicate that the proximity light is in a proximity state, i.e. there is an object shielding in the vicinity of the electronic device. When the proximity light sensor 120B detects that the value of the proximity light > is 5.0f, the proximity light sensor may output 5cm to indicate that the state of the proximity light is a proximity state, that is, there is no object in the vicinity of the electronic device to block the proximity light. Where f indicates that the numerical type is floating point (float). Whenever the proximity light Sensor 120B detects a change in the proximity light state (the change includes switching from 0cm to 5cm, or switching from 5cm to 0cm), the proximity light Sensor 120B may transmit the proximity light state to the fingerprint service through the proximity light driver of the kernel layer, the Sensor HAL of the HAL, and the Sensor service of the application framework layer, and refresh the proximity light state in the fingerprint service in real time, that is, store the latest received proximity light state in the fingerprint service. After receiving the fingerprint touch/press operation, the fingerprint service judges whether the fingerprint touch/press operation is the false triggering operation of the user according to the latest received approaching light state.
For detailed description of the fingerprint anti-false touch method provided in the present application, reference may be made to the following method embodiments, which are not repeated herein.
In the embodiment of the present application, since the proximity light data belongs to the public environment information, the low beam Sensor 120B may be mounted not only in the CPU but also directly in the Sensor hub. That is, the proximity light data may be fused in the Sensor hub with data acquired by other sensors (e.g., the ambient light Sensor 120C, the pressure Sensor 120D, or the touch Sensor 120E).
The ambient light sensor 120C is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 130 based on the perceived ambient light level. The ambient light sensor 120C may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 120C may also cooperate with the proximity light sensor 120B to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
In the embodiment of the present application, since the ambient light brightness data belongs to the public environmental information, the ambient light Sensor 120C may also be mounted in the Sensor hub. That is, the ambient light level data may be fused in the Sensor hub with data acquired by other sensors (e.g., the proximity light Sensor 120B, the pressure Sensor 120D, or the touch Sensor 120E).
The pressure sensor 120D is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 120D may be disposed on the display screen 130. The pressure sensor 120D can be of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 120D, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 130, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 120D. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 120D. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The touch sensor 120E is also referred to as a "touch panel". The touch sensor 120E may be disposed on the display screen 130, and the touch sensor 120E and the display screen 130 form a touch screen, which is also called a "touch screen". The touch sensor 120E is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 130. In other embodiments, the touch sensor 120E may be disposed on the surface of the electronic device 100, different from the position of the display screen 130.
In the embodiment of the present application, the ambient light Sensor 120C, the pressure Sensor 120D, the touch Sensor 120E, or the like may also be mounted in the Sensor hub. That is, the Sensor hub may acquire the ambient light brightness data, the pressure data, the touch data, or the like, and fuse these data to realize a partial function.
The electronic device 100 implements display functions via the GPU, the display screen 130, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 130 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 130 is used to display images, videos, and the like. The display screen 130 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD). The display screen panel may also be made of organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniature, micro-leds, quantum dot light-emitting diodes (QLEDs), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 130, with N being a positive integer greater than 1.
In the embodiment of the present application, the display screen 130 includes an unlocked state and a screen-locked state (also referred to as a locked state).
First, a method of controlling the display screen 130 to be in the unlock state and the lock state is described:
specifically, the electronic device 100 may control the display 130 to be in an unlocked state or a locked state. For example, when the user does not set the screen locking password, if the electronic device 100 receives an operation of pressing the on/off key 151 by the user, the screen locking of the display screen may be controlled; if the electronic device 100 receives the operation of pressing the switch key 151 by the user again, the display screen may be controlled to be unlocked. For another example, after the user has set the fingerprint unlocking, when the display screen 130 is in the screen locking state, if the electronic device 100 receives an operation of inputting a fingerprint unlocking instruction by the user, it may be determined whether the operation is a false trigger of the user, and if yes, the electronic device 100 controls the display screen 130 to maintain the screen locking state; otherwise, continuously determining whether the fingerprint is correct, if so, the electronic device 100 may control the display screen 130 to unlock, otherwise, the electronic device 100 controls the display screen 130 to keep the screen locking state.
Then, contents respectively displayed when the display screen 130 is in the unlock state and the lock state are introduced:
specifically, when the display screen 130 is in the unlocked state, the display screen 130 may display a main interface or an interface provided by any application program. In addition, when the display screen 130 is in the unlocked state, the user can access and use all applications in the electronic device.
Specifically, when the display screen 130 is in the screen locking state, the display screen 130 may only display the screen locking interface (in a case of lighting the screen), the screen displaying interface (in a case of turning on the screen displaying function), and the screen being in the screen off state without displaying any information (which is equivalent to that the display screen is not operated when the power is off). Furthermore, when the display 130 is in the lock screen state, the user can normally access or use only a portion of the applications, such as functions of SOS SO.
For the above-mentioned specific description about the content displayed by the display screen 130 in the unlocked state, and the lock screen interface, the rest screen interface and the off screen interface (i.e. no content is displayed) displayed in the lock screen state, reference may be made to the following UI embodiment, and details are not repeated herein.
Next, a method of controlling the display screen 130 to switch between screen-off, screen-lock, and screen-unlock will be described:
when the proximity optical sensor detects that the electronic device 100 is in a shielding state and the display screen 130 of the electronic device 100 is in a screen-off state, when the electronic device 100 detects that the user uses the correct fingerprint/wrong fingerprint touch switch key 151 to operate, the display screen 130 of the electronic device does not light the screen, i.e., continues to maintain the screen-off state; when the electronic device 100 detects that the user presses the on/off key 151 with the correct/incorrect fingerprint, the display 130 of the electronic device turns on the screen and switches from the off-screen state to the lock screen interface.
When the proximity optical sensor detects that the electronic device 100 is in an unblocked state, the display screen 130 of the electronic device 100 is in a screen-off state, and the electronic device has a screen-saving display function started in advance, when the electronic device 100 detects that the correct fingerprint touch/press switch key 151 is adopted, the display screen 130 of the electronic device lights all screens, and switches from the screen-off state to an unlocked interface; when the electronic device 100 detects that the switch key 151 is touched by the wrong fingerprint, the display screen 130 of the electronic device lights a part of the screen and switches from the screen-off state to the screen-off interface; when the electronic device 100 detects that the on-off key 151 is pressed by a wrong fingerprint, the display 130 of the electronic device lights up all screens and switches from the screen-off state to the screen-unlocking interface.
Finally, a specific implementation manner is introduced that the display screen 130 lights part of the screen display information interfaces, and lights all the screen display lock interfaces or any interfaces after unlocking:
(1) when the display panel of the display screen 130 employs the OLED, since the OLED is capable of actively emitting light, a backlight plate is not required. Therefore, only individual pixels in the display panel need to be controlled to be lighted, so that the display panel can display information such as time and date in a breath screen state. Or all pixels in the display panel are controlled to be lightened, so that the display panel displays a screen locking interface when the screen is locked, or displays any interface after the screen is unlocked. When no current drives the OLED to light, the display screen 130 is turned off and does not display any information.
(2) When the display panel of the display screen 130 is an LCD, since the LCD itself is transparent and does not emit light, it needs to emit light by a backlight plate disposed behind the LCD to illuminate the display panel, so as to display color information. The backlight may be a Light Emitting Diode (LED).
Therefore, for the display screen 130 in which the display panel employs an LCD. The display screen 130 may be logically divided into a main screen and a sub-screen. The main screen is the whole display panel, and the auxiliary screen is a partial area in the display panel. Then, the sub-screen is provided with an independent backlight module in combination with a partition backlight mode, the independent backlight module does not need to enable the whole backlight plate to emit light, the backlight range is small, and the independent backlight module is only responsible for illuminating the sub-screen, so that the sub-screen can display information such as time, date and the like in a screen-saving state. The main screen is provided with another backlight module which can control the whole backlight plate to emit light to illuminate the whole display panel, so that the display panel displays a screen locking interface when the screen is locked or displays any interface after the screen is unlocked. When no current drives the backlight panel to emit light, the display screen 130 is turned off and does not display any information.
The internal memory 150 may include one or more Random Access Memories (RAMs) and one or more non-volatile memories (NVMs).
The random access memory may include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), such as fifth generation DDR SDRAM generally referred to as DDR5 SDRAM, and the like;
the nonvolatile memory may include a magnetic disk storage device, a flash memory (flash memory). The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operation principle, may include single-level cells (SLC), multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), etc. according to the level order of the memory cells, and may include universal FLASH memory (UFS), embedded multimedia memory cards (eMMC), etc. according to the storage specification.
The random access memory may be read directly by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other programs that are running, and may also be used to store data for user and application programs, etc.
The nonvolatile memory may also store executable programs, data of users and application programs, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
In an embodiment of the present application, the internal memory 150 may store one or more fingerprints (i.e., correct fingerprints) entered by the user. After the electronic device 100 starts the fingerprint unlocking function, after the processor 110 receives the fingerprint information collected by the fingerprint sensor, the processor 110 may match the collected user fingerprint with a pre-stored correct fingerprint, and if the matching is successful, the fingerprint authentication is passed.
In other embodiments of the present application, the internal memory 150 may also store status information indicating the most recent access light, including but not limited to: the near state and the far state.
The external memory interface 160 may be used to connect to an external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 160 to perform data storage functions. For example, files such as music, video, etc. are saved in an external nonvolatile memory.
Some embodiments of the present application further provide another fingerprint false touch prevention method, and specifically provide a fingerprint false touch prevention function by a Sensor hub (Sensor hub). Among them, the Sensor hub is used to realize centralized control of the sensors and reduce the load on a Central Processing Unit (CPU). The Sensor hub is equivalent to a Microprogrammed Control Unit (MCU), on which a program for driving a plurality of sensors to operate can be run, that is, the Sensor hub can support the capability of mounting a plurality of sensors. It can be used as an independent chip, placed between the CPU and various sensors (sensors), or integrated in the Application Processor (AP) in the CPU.
How to realize fingerprint anti-false touch by the Sensor hub is described in detail below.
The Sensor hub has two basic functions:
(1) the Sensor hub can support mounting of the fingerprint Sensor and the proximity light Sensor, that is, a driver for controlling the operation of the fingerprint Sensor and a driver for controlling the operation of the proximity light Sensor are both operated in the Sensor hub. Under the condition that the CPU is dormant, the Sensor hub can control the fingerprint Sensor to collect fingerprint images and can also control the near light Sensor to detect near light in real time.
(2) The Sensor hub can receive the fingerprint image reported by the fingerprint Sensor and the approaching light state reported by the approaching light Sensor, and fuse the two types of data, namely the fingerprint image and the approaching light state, so that whether the fingerprint image is acquired by the electronic equipment due to false triggering of a user can be judged, and the fingerprint image does not need to be reported to an Application Processor (AP) in a CPU to be judged by the CPU. When the Sensor hub indicates that the periphery of the electronic equipment is not shielded according to the state of the approaching light, judging that the acquired fingerprint image is obtained by non-error touch of the user, and continuing fingerprint authentication by the Sensor hub; when the approaching light state indicates that the periphery of the electronic equipment is shielded, the collected fingerprint image is judged to be obtained by the user by mistake, and the Sensor hub does not carry out fingerprint authentication. And further realize the function of preventing the false touch of the fingerprint.
The above fingerprint anti-false touch scheme is described with reference to the software architecture of an electronic device exemplarily shown in fig. 2.
As shown in fig. 2, the software architecture includes an application Layer, an application framework Layer, a Hardware Abstraction Layer (HAL), and a kernel Layer. Wherein the fingerprint drive and the proximity light drive in the core layer operate on a Sensor hub in the electronic device. The lock screen application in the application program, the fingerprint service and the Sensor service in the application program framework layer, and the fingerprint HAL and the Sensor HAL in the HAL run in the CPU in the electronic device.
The screen locking application can send a fingerprint monitoring command to the fingerprint driver through the fingerprint service and the fingerprint HAL, so that the fingerprint driver controls the fingerprint sensor to detect a fingerprint image. The screen locking application can also issue an approaching light monitoring command to the approaching light drive through the Sensor service and the Sensor HAL, so that the approaching light drive controls the approaching light Sensor to detect the approaching light state, and a judgment condition is provided for follow-up fingerprint false touch prevention. The method comprises the following specific steps:
when the fingerprint drive acquires a fingerprint image detected by the fingerprint sensor, the fingerprint drive can directly acquire an approaching light state from the approaching optical drive, and judges whether the acquired fingerprint image is acquired by false triggering of a user according to the approaching light state without reporting to a fingerprint HAL (half-life and fingerprint service). Here, the Sensor hub may directly acquire the fingerprint image and the proximity light state, and determine whether the fingerprint image and the proximity light state are false-triggered by the user according to the fingerprint image and the proximity light state, without reporting to the AP for determination.
However, at present, only the electronic device using a partial chip can provide the above fingerprint anti-false touch method, because the partial chip can support mounting of both the fingerprint Sensor and the proximity light Sensor in the Sensor hub, which is equivalent to direct interaction between the fingerprint drive and the proximity light drive. However, the Sensor hub has a limited computational capability, and cannot provide a high-precision image processing capability for fingerprint authentication, which may cause inaccurate fingerprint authentication.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application adopts a layered architecture
Figure BDA0003443279330000111
The system is an example illustrating a software structure of the electronic device 100.
Fig. 3 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the method will comprise
Figure BDA0003443279330000112
The system is divided into four layers, namely an application program layer, an application program framework layer, an Android runtime (Android runtime) and system library and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include a lock screen application, and applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc., which are not shown.
Wherein, the lock screen application can also be called System UI, and the System UI is
Figure BDA0003443279330000113
An Android package (apk) at a system level, wherein the apk comprises related operations such as a status bar, a navigation bar, a notification and a screen locking of the systemAnd (5) realizing.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 3, the application framework layer may include a fingerprint service, a Sensor service, and a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc., which are not shown.
The fingerprint service is used for providing fingerprint false touch prevention service for upper-layer application such as screen locking application, the Sensor service can perform data interaction with the fingerprint service, and the fingerprint service is used for providing fingerprint false touch prevention service for the upper-layer application such as screen locking application in cooperation with the fingerprint service. For a specific implementation method for providing the fingerprint anti-false touch service for the screen lock application by the fingerprint service and the Sensor service, reference may be made to the following method flows, which are not repeated herein.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The HAL is located between the kernel layer and the application framework layer and plays a role of starting and ending. Specifically, the HAL defines a set of standard interfaces including a fingerprint HAL, a Sensor HAL, and a Camera HAL, not shown, among others.
The fingerprint HAL defines a set of interfaces, which can be used for fingerprint service invocation and coordinate fingerprint driving to control hardware, i.e., the fingerprint sensor 120A, to work normally. The Sensor HAL also defines a set of interfaces that can be used for Sensor service calls and coordinate the proximity light driver to control the hardware, i.e., the proximity light Sensor 120B, to work properly.
The kernel layer is a layer between hardware and software. The kernel layer contains at least a fingerprint driver, a proximity light driver, and a not-shown display driver, a camera driver, an audio driver, a WiFi driver, and the like.
Wherein, the fingerprint driving device can be used to control the fingerprint sensor 120A to work normally according to the command of the fingerprint HAL. The proximity light driving may be used to control the proximity light Sensor 120B to normally operate according to the command of the Sensor HAL. In the embodiment of the application, data in the fingerprint drive cannot directly interact with data in the proximity optical drive.
Based on the above description of the software and hardware architecture of the electronic device 100, reference may be made to fig. 4 next, and fig. 4 exemplarily illustrates an appearance of the electronic device 100 provided in the present application.
As shown in fig. 4, the electronic apparatus 100 has a display 130, an on-off key 151, a volume key 152, and a proximity light sensor 120B.
In some embodiments of the present application, when the fingerprint sensor 120A is capacitive, the fingerprint sensor 120A may be disposed in the switch key 151, may be disposed at any position of a side frame of the display screen, or may be disposed at the back of the electronic device 100.
In other embodiments of the present application, when the fingerprint sensor 120A is optical, the fingerprint sensor 120A may be disposed in a predetermined area (not shown) of the display 130.
Next, the fingerprint anti-false touch method provided by the embodiment of the present application is described in conjunction with UI implementation.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a user interface of the electronic device 100 for turning on the fingerprint anti-false-touch function.
As shown in fig. 5, the user interface may include a switch control 51. The electronic device 100 may detect a user operation of turning on the fingerprint anti-false touch through the switch control 51, and in response to the user operation, the electronic device 100 may perform the steps in the method flows described below.
In the fingerprint anti-false-touch method provided in the embodiment of the present application, the step shown in fig. 5 for turning on the fingerprint anti-false-touch function is only an optional embodiment, and in other optional embodiments, the electronic device 100 may default to turn on the fingerprint anti-false-touch function, and does not need to be turned on by a user. The embodiments of the present application do not limit this.
Referring to fig. 6A, fig. 6A illustrates a scene diagram of the electronic device 100 in an occlusion state.
As shown in FIG. 6A, during the time period t0-t1, there is a blockage around the electronic device 100, such as when the user may be holding the electronic device 100 and inserting into a pocket, or when the user is holding the electronic device 100 and answering a call in close proximity to the face, etc. And during the time period t0-t1, the electronic device 100 is in a locked and off-screen state, i.e., no information is displayed in the display screen 130 of the electronic device 100.
In the scenario shown in fig. 6A, when the user holds the electronic device 100 in a pocket or at the ear, the user's skin is liable to inadvertently touch/press the on-off key 151. When the electronic device 100 detects an operation of the touch (also called a tap) switch key 151 input by the user, in response to the operation, the electronic device 100 maintains the lock state and does not light the screen (continues to be in the screen-off state); when the electronic apparatus 100 detects an operation of pressing the on-off key 151 input by the user, the electronic apparatus 100 lights up all screens and displays a screen lock interface in response to the operation. For a detailed description, reference is made to the description of fig. 6B-6C below.
Referring to fig. 6B, fig. 6B is a schematic diagram illustrating a user interface displayed by the electronic device 100 after detecting that the touch on the power-on key is detected in the shielded state.
As shown in fig. 6B, in the scenario shown in fig. 6A above during the time period t0-t1, the electronic device 100 may be in the screen-locking state and display a screen-off interface, where no information is displayed.
In the time period t0-t1, the user is likely to inadvertently touch the on-off key 151. When the electronic device 100 detects the operation of the touch switch key 151, in response to the operation, the electronic device 100 maintains the lock screen state and continues to display the screen-off interface for a time period t2-t3 after a time period t0-t 1. For the principle that the electronic device 100 is in the locked state and displays the screen-off interface, reference may be made to the above detailed description of the operation principle of the display screen 130, which is not repeated herein.
In the embodiment of the present application, in order to prevent the fingerprint from being touched by mistake, after the electronic device 100 receives the operation of the touch switch key 151, whether the touch operation is triggered by mistake is determined according to whether the electronic device 100 is in a shielding state. Since the electronic device 100 is in the shielded state during the time period t0-t1, the electronic device 100 determines that the pressing operation is a user false touch operation, and therefore the electronic device 100 will not perform fingerprint collection, fingerprint authentication, and the like. That is to say, when the electronic device is in the shielding state, no matter the user touches the on-off key 151 with the correct fingerprint or the incorrect fingerprint, the electronic device 100 does not unlock the fingerprint, and continues to display the screen-turning-off interface.
When the electronic device 100 is in the screen-off state shown in fig. 6B, if the electronic device 100 continuously receives a predetermined number of touch operations (for example, 3 times) within a predetermined time, the screen-off state of the electronic device 100 is switched to the screen-locking interface, so as to prompt the user to unlock the electronic device by using a method other than the fingerprint.
For a detailed method of the electronic device 100 determining whether the detected touch operation acting on the power-on key is a false trigger by the user according to whether the detected touch operation is in the shielding state, reference may be made to the following method flow, which is not described herein.
Referring to fig. 6C, fig. 6C is a schematic view illustrating a user interface displayed after the electronic device 100 detects that the power-on key is pressed in the shielded state.
As shown in fig. 6C, during the time period t0-t1, the electronic device 100 is in the scene shown in fig. 6A, and may be in the screen-locked state and display a screen-off interface, where no information is displayed.
In the time period t0-t1, the user is likely to inadvertently press the on/off switch 151. When the electronic device 100 detects an operation of pressing the on-off key 151, in response to the operation, the electronic device 100 maintains the lock screen state for a time period t2-t3 after a time period t0-t1, but lights up the screen, and switches from the screen-off interface to the screen-lock display interface. Information such as time, date, and shortcut application icons (e.g., camera) are displayed in the lock screen interface. For the principle that the electronic device 100 is in the locked state and displays the lock screen interface, reference may be made to the above detailed description of the working principle of the display screen 130, which is not repeated herein.
When the electronic device 100 displays the screen locking interface shown in fig. 6C, if the electronic device 100 does not receive other operations within a preset time (e.g., within 5 seconds), the electronic device 100 may automatically turn off the screen.
It should be noted that, in order to prevent the fingerprint from being pressed by mistake, after the electronic device 100 receives the operation of pressing the on-off switch 151, it is determined whether the pressing operation is triggered by mistake according to whether the electronic device 100 is in a shielding state. Since the electronic device 100 is in the shielded state during the time period t0-t1, the electronic device 100 determines that the pressing operation is a user false touch operation, and therefore the electronic device 100 will not perform fingerprint collection, fingerprint authentication, and the like. That is to say, when the electronic device is in the shielding state, no matter the user presses the on-off key 151 with a correct fingerprint or an incorrect fingerprint, the electronic device 100 will not unlock the fingerprint, but will respond to the operation of pressing the on-off key 151, light the screen, and display the screen locking interface.
For a detailed method of the electronic device 100 determining whether the detected pressing operation acting on the power-on key is triggered by the user by mistake according to whether the electronic device is in the shielding state, reference may be made to the following method flow, which is not described here.
In daily life, when a user wants to actively unlock the electronic device 100, the user usually places the electronic device 100 at a position away from the user and beyond a first value, so as to avoid the electronic device 100 being blocked, which may result in the user being unable to view and input an unlocking operation.
Referring to fig. 7A, fig. 7A illustrates a scene diagram of the electronic device 100 in an unobstructed state.
As shown in FIG. 7A, during the time period T0-T1, there is no obstruction around the electronic device 100, e.g., the user may be holding the electronic device 100 and keeping the distance between the electronic device 100 and the user beyond a first value. And during the time period T0-T1, the electronic device 100 is in a locked and off-screen state, that is, no information is displayed in the display screen 130 of the electronic device 100.
In the scenario illustrated in fig. 7A, the electronic device 100 may detect an operation of pressing/touching the on/off key 151 by a user input. Next, user interfaces respectively displayed by the electronic device in response to the operation of pressing/touching the on-off key 151 will be described with reference to fig. 7B to 7E.
Referring to fig. 7B, fig. 7B is a schematic view of a user interface displayed after the electronic device 100 detects that the start key is touched by the wrong fingerprint in the non-occluded state.
As shown in fig. 7B, during the time period T0-T1, the electronic device 100 is in the scene shown in fig. 7A, and is in the screen-locking state and displays a screen-off interface, where no information is displayed.
In the time period T0-T1, after the electronic device 100 detects the operation of touching the switch key 151, in response to the operation, the electronic device 100 may determine whether the user has input an incorrect fingerprint or a correct fingerprint when touching the switch key 151, and after the electronic device determines that the user has touched the switch key 151 with the incorrect fingerprint, the electronic device 100 may light up a portion of the screen in the time period T2-T3 after the time period T0-T1, and switch from the screen-off interface to the screen-on interface (on the premise that the screen-on display function is turned on in advance). The screen-turning interface displays information such as time, date, screen-turning animation C1 and the like. For the principle that the electronic device 100 is in the locked state and displays the information screen interface, reference may be made to the above detailed description of the operation principle of the display screen 130, which is not repeated herein.
In the embodiment of the present application, in order to prevent the fingerprint from being touched by mistake, after the electronic device 100 receives the operation of the touch switch key 151 in the time period from T0 to T1, whether the touch operation is triggered by mistake is determined according to whether the electronic device 100 is in the shielding state. Since the electronic device 100 is in the non-shielding state during the time period T0-T1, the electronic device 100 determines that the touch operation is not a user mistaken touch operation, and therefore the electronic device 100 will perform operations such as fingerprint image capture and fingerprint authentication. In the above, it takes a very short time for the electronic device 100 to determine whether the operation of the touch switch key 151 is a false touch, so that the skin of the user still touches the touch switch key 151 in the determination process, and the electronic device 100 can control the fingerprint sensor 120A disposed in the touch switch key 151 to collect the fingerprint image of the user.
When the electronic device 100 displays the above-mentioned touch screen interface shown in fig. 7B, if the electronic device 100 continuously receives the touch operations for a preset number of times (for example, 3 times) within a preset time, the electronic device 100 switches from the touch screen interface to the lock screen interface, so as to prompt the user to unlock the electronic device by using a method other than a fingerprint.
When the electronic device 100 displays the above-mentioned screen turning-off interface, if the electronic device 100 does not receive other operations within a preset time (e.g. within 5 seconds), the electronic device 100 automatically turns off the screen.
It is understood that the user interface displayed by the electronic device during the time period T2-T3 shown in fig. 7B is only an example, and in other embodiments of the present application, when the electronic device does not turn on the message screen display function in advance, the electronic device displays the lock screen interface instead of the message screen interface during the time period T2-T3 shown in fig. 7B.
For a detailed method of the electronic device 100 determining whether the detected touch operation acting on the power-on key is a false trigger by the user according to whether the electronic device is in the shielding state, and for the case of no false trigger, reference may be made to the following method flow, which is not described herein.
Referring to fig. 7C, fig. 7C is a schematic diagram illustrating a user interface displayed after the electronic device 100 detects that the start key is touched by a correct fingerprint in an unobstructed state.
As shown in fig. 7C, during the time period T0-T1, the electronic device 100 is in the scene shown in fig. 7A, and may be in the screen-locked state and display a screen-off interface, where no information is displayed.
In the time period T0-T1, after the electronic device 100 detects the operation of touching the on-off key 151, in response to the operation, the electronic device 100 may determine whether the user has input an incorrect fingerprint or a correct fingerprint when touching the on-off key 151, and after the electronic device determines that the user has touched the on-off key 151 with the correct fingerprint, the electronic device 100 may light up all the screens in the time period T2-T3 after the time period T0-T1, and switch from the screen-off interface to displaying the unlocked interface. The interface behind the lock screen may be, for example, a main interface displaying information such as time, date, weather, and common application icons. For a principle that the electronic device 100 is in the unlocked state and displays the unlocked interface, reference may be specifically made to the above detailed description of the working principle of the display screen 130, which is not repeated herein.
When the electronic device 100 displays the unlocked interface shown in fig. 7C, if the electronic device 100 does not receive other operations within a preset time (for example, within 5 seconds), the electronic device 100 may automatically turn off the screen or display a screen-turning-off interface.
Referring to fig. 7D, fig. 7D illustrates a schematic view of a user interface displayed after the electronic device 100 detects that the start key is pressed by using an incorrect fingerprint in an unobstructed state.
As shown in fig. 7D, during the time period T0-T1, the electronic device 100 is in the scene shown in fig. 7A, and may be in the screen-locked state and display a screen-off interface, where no information is displayed.
In the time period T0-T1, after the electronic device 100 detects the operation of pressing the on-off key 151, in response to the operation, the electronic device 100 may determine whether the user has input an incorrect fingerprint or a correct fingerprint when pressing the on-off key 151, and after the electronic device determines that the user has pressed the on-off key 151 with the incorrect fingerprint, the electronic device 100 may light up all screens in the time period T2-T3 after the time period T0-T1, and switch from the screen-off interface to the screen-locking interface. The content displayed on the lock screen interface may refer to the description in fig. 6C, and is not repeated herein.
In the embodiment of the present application, in order to prevent the fingerprint from being pressed by mistake, after the electronic device 100 receives the operation of pressing the on-off switch 151 in the time period from T0 to T1, it is determined whether the pressing operation is triggered by mistake by the user according to whether the electronic device 100 is in the shielding state. Since the electronic device 100 is in the non-occluded state during the time period T0-T1, the electronic device 100 determines that the pressing operation is not a user mis-touch operation, and therefore the electronic device 100 will perform operations such as fingerprint image capture, fingerprint authentication, and the like. Since it takes a very short time for the electronic device 100 to determine whether the operation of pressing the on/off switch 151 is a false touch, the skin of the user still presses the on/off switch 151 during the determination process, so that the electronic device 100 can control the fingerprint sensor 120A disposed in the on/off switch 151 to capture the fingerprint image of the user.
For a detailed method of the electronic device 100 determining whether the detected pressing operation acting on the power-on key is a false trigger by the user according to whether the electronic device is in the shielding state, and for the case of no false trigger, the following method flows may be referred to for performing operations such as fingerprint image collection and fingerprint authentication, which are not described herein.
When the electronic device 100 displays the screen locking interface shown in fig. 7D, if the electronic device 100 does not receive other operations within a preset time (e.g., within 5 seconds), the electronic device 100 may automatically turn off the screen or display a screen-turning-off interface.
Referring to fig. 7E, fig. 7E exemplarily shows a user interface schematic diagram displayed after the electronic device 100 detects that the power-on key is pressed by using a correct fingerprint in an unobstructed state.
As shown in fig. 7E, during the time period T0-T1, the electronic device 100 is in the scene shown in fig. 7A, and may be in the screen-locked state and display a screen-off interface, where no information is displayed.
After the electronic device 100 detects an operation of pressing the on-off key 151 in a period T0-T1, in response to the operation, the electronic device 100 may determine that the user has input an incorrect fingerprint or a correct fingerprint when pressing the on-off key 151, and after the electronic device determines that the user presses the on-off key 151 with the correct fingerprint, the electronic device 100 may light up all screens in a period T2-T3 after the period T0-T1, and switch from the screen-off interface to displaying the unlocked interface. The content displayed on the unlocked interface may refer to the description in fig. 7C, which is not repeated herein.
When the electronic device 100 displays the unlocked interface shown in fig. 7E, if the electronic device 100 does not receive other operations within a preset time (e.g., within 5 seconds), the electronic device 100 may automatically turn off the screen or display a screen-turning-off interface.
It is understood that the above UI embodiments are some illustrations given based on the case where the electronic device 100 turns on the touch (tap) fingerprint unlock and press fingerprint unlock functions in advance. When the touch fingerprint unlocking function is not previously turned on by the electronic device 100, no matter the electronic device 100 is in the shielding state or the shielding-free state, the fingerprint unlocking event is not executed based on the operation of the user touching the switch key 151. When the electronic device 100 does not have the fingerprint unlocking function turned on in advance, the electronic device 100 does not execute the fingerprint unlocking event based on the operation of the user pressing the switch key 151 no matter in the shielding state or the shielding-free state.
Based on the UI embodiment described above, the fingerprint anti-false touch method provided by the embodiment of the present application is described next with reference to the method flow shown in fig. 8.
As shown in fig. 8, the fingerprint false touch prevention method includes the following steps:
stage 1 (S801-S809): when the electronic device 100 detects that the electronic device 100 is in the lock screen state, the electronic device 100 executes a proximity light monitoring event. Specifically, executing the proximity light monitoring event means that the screen locking application of the electronic device 100 may issue indication information layer by layer through the application framework layer, the HAL, the kernel layer, and the like, indicate the proximity light sensor 120B to collect light information, determine whether the proximity light state changes, and report the changed proximity light state to the application framework layer if the proximity light state changes.
In the embodiment of the present application, after the electronic device 100 starts the fingerprint anti-false-touch function, at least one determination condition is required to determine whether the operation of inputting the fingerprint touch/press is false-touch, so as to implement the fingerprint anti-false-touch function.
In the embodiments of the present application, the "near light state" is used as the determination condition. Optionally, the determination condition in the embodiment of the present application may further adopt any one or more of a "proximity light state", an "ambient light state", a "user gesture", a "fingerprint input touch/pressing force", an "fingerprint input touch/pressing area", and the like, which is not limited in the embodiment of the present application.
The following method embodiment introduces the electronic device 100 to execute the proximity light listening event to acquire the condition for determining whether the fingerprint is mistouched by taking the "proximity light state" as the determination condition.
S801, the screen locking application of the electronic device 100 determines that the electronic device 100 is in the screen locking state.
Specifically, when the display screen 130 of the electronic device 100 displays a lock screen interface, a screen-off interface, or a screen-off display does not display any information, the lock screen application in the electronic device 100 determines that the electronic device 100 is in a lock screen state (also referred to as a lock state).
For the description that no information is displayed on the screen lock interface, the screen mute interface, or the screen off interface displayed on the display screen 130 when the electronic device 100 is in the screen lock state, reference may be made to the detailed description in the UI embodiment above, which is not repeated herein.
S802, the screen locking application of the electronic device 100 sends indication information for listening to the access light to the Sensor service.
Specifically, the screen locking application may register a proximity optical monitoring interface, and then send instruction information for opening a proximity optical monitoring event to the Sensor service through the proximity optical monitoring interface, so as to instruct the Sensor service to provide the proximity optical monitoring service for the screen locking application.
The proximity light monitoring service may specifically be configured to acquire a proximity light state, send the proximity light state after the state change to a fingerprint service, and provide a fingerprint false touch determination condition for the fingerprint service, specifically see steps S803-S808.
S803, the Sensor service of the electronic device 100 sends instruction information for listening for the access light to the Sensor HAL.
Specifically, the Sensor service may call an interface provided by the Sensor HAL, and send, to the Sensor HAL, indication information for monitoring access light, where the indication information is used to indicate that the Sensor HAL provides the Sensor service with the access light monitoring service.
The proximity light monitoring service may specifically be to acquire a proximity light state and upload the proximity light state after the state change to a Sensor service, specifically see steps S804 to S807.
S804, the Sensor HAL of the electronic device 100 transmits instruction information for listening to the proximity light driver.
Specifically, the Sensor HAL may call an interface provided by the proximity light driver, and send instruction information for monitoring the proximity light to the proximity light driver, the instruction information being used to instruct the proximity light driver to control a state where the proximity light Sensor 120B monitors the proximity light.
It is understood that the indication information for listening to the light in the above steps S802-S804 may be represented in different forms in each step. For example, in step S802, the indication information for listening for the proximity light is specifically used for registering information of a proximity light listening event in the Sensor service, so that the Sensor service can call the underlying modules to perform the proximity light listening event. In step S803, the indication information for monitoring the approaching light is specifically an instruction that the Sensor HAL can recognize, so that the Sensor HAL invokes the approaching light driver to execute the corresponding task of monitoring the approaching light according to the instruction. In step S804, the indication information for monitoring the approaching light is specifically an instruction that the approaching light driver can recognize, so that the approaching light is approached and the driver invokes the approaching light driver to perform the corresponding task of monitoring the approaching light according to the instruction.
S805, the proximity light drive of the electronic apparatus 100 acquires information indicating the proximity light state from the proximity light sensor 120B.
Specifically, when the proximity light sensor 120B detects a change in the state of the proximity light during the time when the proximity light drive control proximity light sensor 120B detects the state of the proximity light, the proximity light sensor 120B may return information indicating the state of the proximity light.
The information indicating the proximity light state may include, for example, "0 cm" and "5 cm", where "0 cm" is used to indicate that the current proximity light state is the proximity state, that is, there is a shelter around the electronic device 100; "5 cm" is used to indicate that the current proximity light state is the far state, i.e., there is no obstruction around the electronic device 100.
S806, the proximity light driver of the electronic device 100 sends information indicating the proximity light status to the Sensor HAL.
S807, the Sensor HAL of the electronic device 100 transmits information indicating the proximity light state to the Sensor service.
S808, the Sensor service of the electronic device 100 transmits information indicating the proximity light state to the fingerprint service.
It is understood that the information indicating the proximity light state described in the above steps S806 to S808 may be represented in a different form in each step.
S809, the fingerprint service of the electronic device 100 stores the newly received information indicating the proximity light status.
Here, the latest received information indicating the proximity light state is different from the last received information indicating the proximity light state, because the proximity light Sensor 120B reports the information indicating the proximity light state to the Sensor service of the upper layer instead of reporting the proximity light information in real time after detecting that the proximity light state changes, the power consumption of the proximity light can be reduced, but the purpose of detecting and detecting the proximity light state can also be achieved.
Stage 2 (S810-S815): when the electronic device 100 detects that the electronic device 100 is in the lock screen state, the electronic device 100 starts to execute a fingerprint listening event. Specifically, executing the fingerprint monitoring event means that the screen locking application of the electronic device 100 may issue indication information layer by layer through the application framework layer, the HAL, the kernel layer, and the like, indicate the fingerprint sensor to detect whether there is an operation of a user inputting/pressing the fingerprint sensor, and if so, report the operation to the application framework layer to determine whether the operation is a user false trigger.
In this embodiment of the application, after the electronic device 100 starts the fingerprint false touch prevention function, the electronic device 100 not only needs the determination condition described in the above stage 1, but also needs to trigger the operation to trigger the electronic device 100 to determine whether the fingerprint unlocking operation is mistakenly touched by the user. Therefore, the electronic apparatus 100 also needs to detect whether there is an operation of inputting a fingerprint in real time.
In the embodiment of the present application, the operation of inputting a fingerprint may specifically be an operation of touching/pressing the skin of the user to the fingerprint detection area, and the operation is referred to as a "fingerprint touch/pressing operation" for short, or may also be referred to as a "fingerprint unlocking operation", "operation acting on a fingerprint sensor", and the like. For the description of the fingerprint detection area, reference may be made to the above description of the fingerprint sensor 120B in the hardware architecture of the electronic device 100, and the fingerprint detection area may be the on-off key 151 or may also be an area corresponding to the fingerprint sensor 120B in the display 130, which is not described in detail herein for the sake of brevity.
In addition, when the electronic device 100 detects that the electronic device 100 is in the lock screen state, the above phase 1 and the following phase 2 are two operations that are executed independently, that is, the operations of the phase 1 and the phase 2 may be performed simultaneously and in no order.
A specific implementation of the method for the electronic device 100 to perform the fingerprint listening event will be described next.
S810, the screen locking application of the electronic device 100 sends indication information for listening to the fingerprint service.
Specifically, the screen lock application may register a fingerprint monitoring interface, and then send instruction information for starting a fingerprint monitoring event to the fingerprint service through the fingerprint monitoring interface, so as to instruct the fingerprint service to provide a fingerprint monitoring service for the screen lock application.
The fingerprint monitoring service may specifically detect whether there is a fingerprint touch/press operation, and if so, the fingerprint service determines whether the fingerprint touch/press operation is a user error touch according to the latest received information indicating that the light state is close. If yes, the event corresponding to the fingerprint touch/press operation is ended, otherwise, operations such as fingerprint collection, fingerprint authentication and the like are executed, specifically, see steps S811-S824.
S811, the fingerprint service of the electronic device 100 transmits indication information for listening to the fingerprint HAL.
Specifically, the fingerprint service may call an interface provided by the fingerprint HAL, and send instruction information for monitoring fingerprints to the fingerprint HAL, where the instruction information is used to instruct the fingerprint HAL to provide the fingerprint monitoring service for the fingerprint service. This service is the following steps S811-S824.
S812, the fingerprint HAL of the electronic device 100 sends instruction information for listening to the fingerprint driver.
Specifically, the fingerprint HAL may call an interface provided by the fingerprint driver, and send instruction information for monitoring the fingerprint to the fingerprint driver, where the instruction information is used to instruct the fingerprint driver to control the fingerprint sensor 120B to monitor whether the user inputs a fingerprint touch/press operation.
It is understood that the indication information for listening to the fingerprint described in the above steps S810-S812 may be represented in different forms in each step. For example, in step S810, the indication information for listening to a fingerprint is specifically used to register information of a fingerprint listening event in the fingerprint service, so that the fingerprint service can call the underlying modules to execute the fingerprint listening event. In step S811, the indication information for monitoring fingerprints is specifically an instruction that the fingerprint HAL can recognize, so that the fingerprint HAL invokes the fingerprint driver to perform the corresponding task of monitoring fingerprints according to the instruction. In step S812, the instruction information for monitoring the fingerprint is specifically an instruction that can be recognized by the fingerprint driver, so that the fingerprint driver invokes the fingerprint driver to execute the corresponding task of monitoring the fingerprint according to the instruction.
S813, the fingerprint driver of the electronic device 100 acquires information indicating that a fingerprint touch/press operation is received from the fingerprint sensor.
Specifically, when the fingerprint sensor 120A detects a user skin touch/press operation, the fingerprint sensor 120A may generate a fingerprint touch/press signal for indicating that the fingerprint touch/press operation is received and transmit information indicating that the fingerprint touch/press operation is received to the fingerprint driver. When the fingerprint sensor 120A is a capacitive sensor integrated in the on-off key 151, the fingerprint touch/press signal may be an electrical signal, for example, a pulse signal having a potential of 1. When the fingerprint sensor 120A is an optical sensor integrated in the display 130, the fingerprint touch/press signal may be an electrical signal touching the display 130.
S814, the fingerprint driver of the electronic device 100 transmits information indicating that the fingerprint touch/press operation is received to the fingerprint HAL.
S815, the fingerprint HAL of the electronic device 100 transmits information indicating that the fingerprint touch/press operation is received to the fingerprint service.
It is understood that the information indicating the reception of the fingerprint touch/press operation described in the above steps S813 to S815 may be represented in a different form in each step.
Stage 3 (S816-S825): after receiving the fingerprint touch/pressing operation, the electronic device 100, in combination with the proximity light state, determines whether the operation is a user error touch, if so, issues instruction information not to execute a fingerprint unlocking event to the fingerprint sensor 120A, and instructs to stop collecting a fingerprint image; otherwise, issuing instruction information for executing the fingerprint unlocking event to the fingerprint sensor 120A, instructing to acquire a fingerprint image and performing fingerprint authentication.
S816, the fingerprint service of the electronic device 100 determines whether to execute a fingerprint unlock event according to the latest received proximity light status.
Specifically, after receiving the information indicating that the fingerprint touch/press operation is received by the fingerprint service, the fingerprint service may read the proximity light state from the latest received proximity light state stored in step S809, determine whether the fingerprint touch/press operation is a user error touch operation according to the read proximity light state, and further determine whether to execute a fingerprint unlock event. When the approaching light state is the approaching state, determining to execute a fingerprint unlocking event; otherwise, the fingerprint unlocking event is not executed.
S817, the fingerprint service of the electronic device 100 sends indication information whether to execute a fingerprint unlock event to the fingerprint HAL.
Specifically, when the fingerprint service determines to execute the fingerprint unlocking event in step S816, the fingerprint service sends instruction information for executing the fingerprint unlocking event to the fingerprint HAL; when the fingerprint service determines not to perform the fingerprint unlocking event in step S816, the fingerprint service transmits indication information that the fingerprint unlocking event is not performed to the fingerprint HAL.
S818, the fingerprint HAL of the electronic device 100 sends the fingerprint driver an indication of whether to perform a fingerprint unlock event.
S819, the fingerprint driver of the electronic device 100 performs a corresponding operation according to the indication information.
Specifically, when the indication information indicates that the fingerprint unlocking event is not executed, the fingerprint driver does not drive the fingerprint sensor to acquire the fingerprint image, and does not execute the subsequent steps S820-S825, that is, stops executing the event corresponding to the fingerprint touch/press operation; when the indication information indicates that the fingerprint unlocking event is executed, the fingerprint driving control fingerprint sensor collects a fingerprint image, and the subsequent steps S820-S825 are continuously executed.
Taking the instruction of executing the fingerprint unlocking event as an example, a specific implementation method for subsequently acquiring a fingerprint image and performing fingerprint authentication is introduced.
The fingerprint driver of the electronic device 100 acquires the fingerprint image from the fingerprint sensor 120A S820.
Specifically, it takes a very short time for the electronic device 100 to determine whether the operation is a false touch by the user (execute steps S816-819), so that the skin of the user still presses/touches the fingerprint detection area during the determination process, and the fingerprint sensor can collect the fingerprint image of the user under the control of the fingerprint driver and transmit the fingerprint image of the user back to the fingerprint driver.
S821, the fingerprint driver of the electronic device 100 sends a fingerprint authentication request to the fingerprint HAL.
Specifically, the fingerprint authentication request sent by the fingerprint driver to the fingerprint HAL may carry a fingerprint image, and the fingerprint HAL is configured to match the acquired fingerprint image with a pre-stored correct fingerprint image to determine whether the fingerprint authentication passes.
S822, the fingerprint HAL of the electronic device 100 performs fingerprint authentication.
Specifically, the fingerprint HAL may determine whether the fingerprint authentication is passed by matching the received fingerprint image with a correct fingerprint image stored in advance. When the received fingerprint image is not matched with the pre-stored fingerprint image, the fingerprint authentication is not passed; when the received fingerprint image matches a pre-stored fingerprint image, the fingerprint authentication is passed.
Optionally, in other embodiments of the present application, the fingerprint driver of the electronic device 100 may perform fingerprint authentication by itself after receiving the fingerprint image, and only send the authentication result to the fingerprint HAL without sending the fingerprint image to the fingerprint HAL.
S823, the fingerprint HAL of the electronic device 100 sends the authentication result to the fingerprint service.
Specifically, the fingerprint authentication result includes: authentication pass and authentication fail.
S824, the fingerprint service of the electronic device 100 sends the authentication result to the screen locking application.
S825, the screen locking application of the electronic device 100 executes a corresponding operation according to the authentication result.
Specifically, when the authentication passes, the screen locking application controls the display screen 130 to unlock, and displays the unlocked interface; when the authentication is not passed, the screen lock application controls the display screen 130 to maintain the screen lock state.
Based on the detailed description of the flow of the fingerprint false touch prevention method provided by the application, it can be deduced that for electronic equipment adopting any type of chip, when the electronic equipment detects that a fingerprint touch/press operation exists, the electronic equipment can acquire the current approaching light state and judge whether the fingerprint touch/press operation is false touch of a user according to the approaching light state, and if so, the electronic equipment controls the fingerprint drive to not collect a fingerprint image; if not, controlling the fingerprint driver to collect a fingerprint image and carrying out fingerprint authentication.
Therefore, after the fingerprint anti-false-touch method is provided, the electronic equipment adopting any type of chip can provide a fingerprint anti-false-touch function for a user, the situation that the user unintentionally inputs fingerprint unlocking operation to unlock the electronic equipment is avoided, the power consumption of the electronic equipment is reduced, the situation that the user inputs more false-touch operations is further avoided, and the safety of the electronic equipment is ensured. In addition, when the user inputs the false touch operation, the power consumption caused by collecting the fingerprint image by the electronic equipment is avoided. Therefore, the electronic equipment does not need to acquire the fingerprint image all the time, only needs to acquire the data on the basic touch/press fingerprint sensor, and does not acquire the fingerprint image if the operation is triggered by the user by mistake, so that the power consumption for acquiring the fingerprint image is reduced. Moreover, the fingerprint driving is operated in the CPU or the CPU and the AP in the AP of the CPU have strong operational capability, so that a fingerprint image processing function with higher precision can be provided for fingerprint authentication, and the fingerprint authentication result based on the fingerprint image can be ensured to be more accurate.
The embodiments of the present application can be combined arbitrarily to achieve different technical effects.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). 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, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
In short, the above description is only an example of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements and the like made in accordance with the disclosure of the present invention are intended to be included within the scope of the present invention.

Claims (15)

1. A fingerprint false touch prevention method is characterized in that the method is applied to electronic equipment, the electronic equipment comprises an entity key arranged on one side of the electronic equipment, and the entity key comprises a fingerprint module; the electronic device further comprises a proximity light sensor; the method comprises the following steps:
determining that the electronic device is in a first state; the first state refers to a screen locking and screen extinguishing state;
receiving a first operation of a user on the electronic equipment;
when the electronic equipment determines that a preset approaching light threshold value is not met according to the approaching light sensor, the electronic equipment is in the first state or the second state;
receiving a second operation of the electronic equipment by the user;
when the electronic equipment determines that a preset approaching light threshold is met according to the approaching light sensor, the electronic equipment is in a third state;
wherein the first operation is the same as or different from the second operation; the first state, the second state, and the third state are each different.
2. The method of claim 1,
when the first operation is a touch operation acting on the entity key and the electronic device determines that the preset access light threshold is not met, the electronic device is in the first state.
3. The method according to claim 1 or 2,
when the first operation is a pressing operation acting on the entity key and the electronic equipment determines that the preset approaching light threshold value is not met, the electronic equipment is in the second state; the second state indicates screen locking and displays a screen locking interface.
4. The method of claim 3, wherein after the electronic device displays the lock screen interface, the method further comprises:
the electronic equipment does not receive user operation within preset time and is switched to the first state.
5. The method according to any one of claims 1 to 4,
and when the second operation is a touch/press operation acting on the entity key and the electronic equipment determines that the preset access light threshold is met, unlocking and displaying an unlocked interface in the third state.
6. The method according to any one of claims 1 to 5, wherein the electronic device determines from the proximity light sensor that a preset proximity light threshold is not met, in particular comprising:
when the proximity light sensor detects that the value of the proximity light is greater than or equal to 0 and less than 5, the electronic device determines that the preset proximity light threshold is not satisfied.
7. The method according to any one of claims 1 to 6, wherein the electronic device determines from the proximity light sensor that a preset proximity light threshold is met, in particular comprising:
when the proximity light sensor detects that the value of the proximity light is greater than or equal to 5, the electronic device determines that the preset proximity light threshold is met.
8. The method of any of claims 1-7, wherein the electronic device further comprises a fingerprint service, a Sensor HAL, a proximity light drive; the fingerprint service is located in an application framework layer of the electronic device; the fingerprint service and the Sensor service are positioned on an application program framework layer of the electronic equipment; the Sensor HAL is positioned at a hardware abstraction layer HAL of the electronic equipment; the proximity light driver is positioned on a kernel layer of the electronic device, and the proximity light sensor is positioned on a hardware layer of the electronic device;
the electronic device determines, according to the proximity light sensor, that a preset proximity light threshold is not satisfied, and specifically includes:
the proximity light Sensor is driven by the proximity light, transmits the Sensor HAL and the Sensor service to the fingerprint service, and is used for indicating that the proximity light does not meet the preset proximity light threshold;
the fingerprint service determines that the preset proximity light threshold is not satisfied.
9. The method of claim 8, the electronic device comprising a first chip; wherein the proximity light driver operates in the first chip.
10. The method of claim 8 or 9, wherein the electronic device further comprises: fingerprint HAL, fingerprint drive; said fingerprint HAL being located at said HAL of said electronic device; the fingerprint driver is located on the inner core layer of the electronic equipment, and the fingerprint sensor is located on the hardware layer of the electronic equipment;
receiving a first operation of a user on the electronic equipment; when the electronic device determines, according to the proximity light sensor, that the preset proximity light threshold is not met, the electronic device is in the first state or the second state, specifically including:
the fingerprint sensor sends indication information of receiving the first operation to the fingerprint service through the fingerprint driver and the fingerprint HAL;
the fingerprint service determines, according to the proximity light sensor, that the preset proximity light threshold is not met;
the fingerprint service sends an instruction not to acquire a fingerprint image to the fingerprint sensor through the fingerprint HAL and the fingerprint driver;
the electronic device is in the first state or the second state.
11. The method of claim 10, wherein the fingerprint driver operates in a CPU, the CPU being distinct from the first chip.
12. The method according to claim 10 or 11, wherein a second operation of the electronic device by a user is received;
when the electronic device determines, according to the proximity light sensor, that a preset proximity light threshold is met, the electronic device is in a third state, which specifically includes:
the fingerprint sensor sends indication information of receiving the second operation to the fingerprint service through the fingerprint driver and the fingerprint HAL;
the fingerprint service determines that the preset proximity light threshold is met according to the proximity light sensor;
the fingerprint service sends an instruction for collecting a fingerprint image to the fingerprint sensor through the fingerprint HAL and the fingerprint driver;
and the fingerprint HAL or the fingerprint driver performs fingerprint authentication based on the fingerprint image, and if the authentication is passed, the electronic equipment is in a third state.
13. An electronic device, characterized in that the electronic device comprises: one or more processors, memory; the memory coupled with the one or more processors, the memory to store computer program code, the computer program code comprising computer instructions, the one or more processors to invoke the computer instructions to cause the electronic device to perform the method of any of claims 1-12.
14. A computer program product comprising instructions for causing an electronic device to perform the method according to any of claims 1-12 when the computer program product is run on the electronic device.
15. A computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-12.
CN202111644786.7A 2021-12-29 2021-12-29 Fingerprint false touch prevention method, graphical interface and electronic equipment Pending CN114995676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111644786.7A CN114995676A (en) 2021-12-29 2021-12-29 Fingerprint false touch prevention method, graphical interface and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111644786.7A CN114995676A (en) 2021-12-29 2021-12-29 Fingerprint false touch prevention method, graphical interface and electronic equipment

Publications (1)

Publication Number Publication Date
CN114995676A true CN114995676A (en) 2022-09-02

Family

ID=83018612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111644786.7A Pending CN114995676A (en) 2021-12-29 2021-12-29 Fingerprint false touch prevention method, graphical interface and electronic equipment

Country Status (1)

Country Link
CN (1) CN114995676A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116704560A (en) * 2022-09-29 2023-09-05 荣耀终端有限公司 Fingerprint identification method and electronic equipment
CN117131491A (en) * 2023-10-27 2023-11-28 荣耀终端有限公司 Unlocking control method and related device

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
CN103401992A (en) * 2013-07-11 2013-11-20 广东欧珀移动通信有限公司 Method for handling misoperation during calling process of cellphone by combining touch screen
CN104468953A (en) * 2013-09-22 2015-03-25 联想(北京)有限公司 An information processing method and electronic device
CN105183360A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Method and device for lighting up screen and terminal
CN105373325A (en) * 2014-09-01 2016-03-02 深圳富泰宏精密工业有限公司 Touch screen unlocking method and system
CN106021010A (en) * 2016-05-25 2016-10-12 广东欧珀移动通信有限公司 Processing method and device for anomaly of proximity detector
CN106919824A (en) * 2017-02-28 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of unlocked by fingerprint, device and computer equipment
CN107291313A (en) * 2017-07-05 2017-10-24 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal that a kind of fingerprint wakes up
CN108009409A (en) * 2017-11-27 2018-05-08 青岛海信移动通信技术股份有限公司 Fingerprint identification method, device, terminal device and computer-readable storage medium
CN108710469A (en) * 2016-04-28 2018-10-26 广东欧珀移动通信有限公司 The startup method and mobile terminal and medium product of a kind of application program
CN108810252A (en) * 2018-05-18 2018-11-13 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of the bright screen of unlocked by fingerprint
CN108921134A (en) * 2018-05-31 2018-11-30 北京小米移动软件有限公司 fingerprint collecting method, device, electronic equipment and storage medium
CN109144227A (en) * 2018-07-17 2019-01-04 Oppo广东移动通信有限公司 Processing method, storage medium and the electronic equipment of finger print information
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
CN110166618A (en) * 2018-02-12 2019-08-23 北京小米移动软件有限公司 Screen control method and device
CN110989860A (en) * 2019-11-26 2020-04-10 华为技术有限公司 Electronic equipment and display screen control method thereof

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
CN103401992A (en) * 2013-07-11 2013-11-20 广东欧珀移动通信有限公司 Method for handling misoperation during calling process of cellphone by combining touch screen
CN104468953A (en) * 2013-09-22 2015-03-25 联想(北京)有限公司 An information processing method and electronic device
CN105373325A (en) * 2014-09-01 2016-03-02 深圳富泰宏精密工业有限公司 Touch screen unlocking method and system
CN105183360A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Method and device for lighting up screen and terminal
CN108710469A (en) * 2016-04-28 2018-10-26 广东欧珀移动通信有限公司 The startup method and mobile terminal and medium product of a kind of application program
CN106021010A (en) * 2016-05-25 2016-10-12 广东欧珀移动通信有限公司 Processing method and device for anomaly of proximity detector
CN106919824A (en) * 2017-02-28 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of unlocked by fingerprint, device and computer equipment
CN107291313A (en) * 2017-07-05 2017-10-24 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal that a kind of fingerprint wakes up
CN108009409A (en) * 2017-11-27 2018-05-08 青岛海信移动通信技术股份有限公司 Fingerprint identification method, device, terminal device and computer-readable storage medium
CN110166618A (en) * 2018-02-12 2019-08-23 北京小米移动软件有限公司 Screen control method and device
CN108810252A (en) * 2018-05-18 2018-11-13 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of the bright screen of unlocked by fingerprint
CN108921134A (en) * 2018-05-31 2018-11-30 北京小米移动软件有限公司 fingerprint collecting method, device, electronic equipment and storage medium
CN109144227A (en) * 2018-07-17 2019-01-04 Oppo广东移动通信有限公司 Processing method, storage medium and the electronic equipment of finger print information
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
CN110989860A (en) * 2019-11-26 2020-04-10 华为技术有限公司 Electronic equipment and display screen control method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116704560A (en) * 2022-09-29 2023-09-05 荣耀终端有限公司 Fingerprint identification method and electronic equipment
CN117131491A (en) * 2023-10-27 2023-11-28 荣耀终端有限公司 Unlocking control method and related device
CN117131491B (en) * 2023-10-27 2024-04-02 荣耀终端有限公司 Unlocking control method and related device

Similar Documents

Publication Publication Date Title
US11216097B2 (en) Fingerprint verification method and electronic device for performing the same
US10949637B2 (en) Electronic device comprising sensor and method for operating same
CN109313519B (en) Electronic device comprising a force sensor
US11521410B2 (en) Electronic device having a biometric sensor
CN108282558B (en) Electronic device and method for controlling electronic device
US10747353B2 (en) Electronic device and method of controlling the electronic device based on touch input
US10558835B2 (en) Electronic device and method for acquiring fingerprint information
KR102394718B1 (en) The Electronic Device and Method for Operating Applications
EP3279778B1 (en) Electronic device having fingerprint sensor
US10531580B2 (en) Electronic device including display equipped with force sensor
KR102330829B1 (en) Method and apparatus for providing augmented reality function in electornic device
US10809835B2 (en) Electronic device comprising pressure sensor
US20160139671A1 (en) Method for providing haptic effect in electronic device, machine-readable storage medium, and electronic device
US10739994B2 (en) Method and electronic device for recognizing touch
KR102481643B1 (en) Electric device and method for controlling display
US20210382570A1 (en) Electronic apparatus employing full front screen
CN110825301A (en) Interface switching method and electronic equipment
CN114995676A (en) Fingerprint false touch prevention method, graphical interface and electronic equipment
US20180039372A1 (en) Electronic apparatus with display
EP4130943A1 (en) Touch operation method and device
US20190004661A1 (en) Electronic device for providing service and operating method thereof
KR102328102B1 (en) Electronic apparatus and screen display method thereof
KR102536148B1 (en) Method and apparatus for operation of an electronic device
KR102544716B1 (en) Method for Outputting Screen and the Electronic Device supporting the same
CN115801943A (en) Display method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination