Method and electronic device for protecting fingerprint information

By intercepting fingerprint pressing event when PIN verification fails in electronic devices, the problem of fingerprint information leakage after turning on PIN code protection is solved, and the security of the device and the effectiveness of PIN code protection are improved.

CN117715031BActive Publication Date: 2024-11-22HONOR DEVICE CO LTD
View PDF 25 Cites 0 Cited by

Patent Information

Application Number
CN202310621654.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2024-11-22
Estimated Expiration
2043-05-29

AI Technical Summary

Technical Problem

In the prior art, after the electronic device is turned on PIN code protection, the user can try fingerprint input unlimited times, which poses a risk of fingerprint information leakage, resulting in a reduction in device security.

Method used

When the PIN verification fails, intercept the processing of fingerprint pressing events to prevent electronic devices from feedbacking fingerprint pressing events, such as not providing feedback on light spots, vibrations, and bright screens, ensuring that users cannot distinguish between correct or incorrect fingerprints, and thus protect fingerprint information.

Benefits of technology

It effectively improves the security of electronic devices, prevents fingerprint information leakage, avoids unlimited attacks, and enhances the effectiveness of PIN code protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117715031B_ABST
    Figure CN117715031B_ABST
Patent Text Reader

Abstract

The present application provides a method and electronic device for protecting fingerprint information, which relates to the fields of terminal technology and information security technology. Among them, the method is applied to electronic equipment, including: performing personal identification password PIN verification, the PIN is used to protect the user identity module SIM card; when the PIN verification fails, intercepting the processing of the fingerprint pressing event. Using this method, when the PIN verification fails, the processing of the fingerprint pressing event is intercepted. At this time, after the user presses the fingerprint, the electronic device will not complete the processing of the fingerprint pressing event, so it will not provide corresponding feedback on the recognition result, so that the current user cannot distinguish the correct fingerprint or the wrong fingerprint from the feedback such as the light spot, the screen light time, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a method and electronic device for protecting fingerprint information. Background Art

[0002] At present, mobile phones and other electronic devices often use users' fingerprint information in scenarios such as unlocking, payment, and verification. Once the fingerprint information is hacked, there is a great security risk to the mobile phone.

[0003] The personal identification number (PIN) of the subscriber identity module (SIM) card is used to protect the SIM card. If the PIN protection is turned on, the SIM card must be unlocked before it can be used. In the current context, after an electronic device is inserted with a SIM card with a PIN code turned on, if the PIN code verification fails, fingerprint input can be tried unlimited times without being prohibited, which provides the possibility of fingerprint information leakage. A third party can attack fingerprint unlocking through unlimited attempts, and once the fingerprint information is compromised, the host phone will not be secure. Therefore, the current fingerprint unlocking solution after turning on the PIN code has security vulnerabilities. Summary of the invention

[0004] In order to solve the above problems, the present application provides a method and electronic device for protecting fingerprint information, which can protect fingerprint information when the electronic device turns on PIN code protection for the SIM card, thereby improving the security of the electronic device.

[0005] In a first aspect, the present application provides a method for protecting fingerprint information, which is applied to an electronic device, and the electronic device supports protecting a SIM card through a PIN. The method includes: performing personal identification password PIN verification, and the PIN is used to protect a user identity module SIM card; when the PIN verification fails, intercepting the processing of a fingerprint pressing event, and not responding to the fingerprint pressing event.

[0006] Using this method, when the PIN verification fails, the processing of the fingerprint pressing event is intercepted. At this time, after the user presses the fingerprint, the electronic device will not complete the processing of the fingerprint pressing event. Since the electronic device does not recognize the user's fingerprint at this time, it will not provide corresponding feedback on the recognition result, making it impossible for the current user to distinguish the correct fingerprint or the wrong fingerprint from feedback such as the light spot, the screen light time, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.

[0007] In a possible implementation, when the PIN verification fails, intercepting the processing of the fingerprint pressing event specifically includes:

[0008] When the PIN is not entered in the PIN unlocking interface, or an incorrect PIN is entered, it is determined that the PIN verification has failed at this time, and the processing of the fingerprint pressing event is intercepted.

[0009] In a possible implementation, performing personal identification code (PIN) verification specifically includes: parsing the broadcast message of the SIM card; when it is determined that the broadcast message indicates that PIN verification is required, popping up a PIN unlocking interface of the SIM card to perform the PIN verification.

[0010] In one possible implementation, when at least one SIM card with PIN protection enabled is inserted into the electronic device after it is turned on, or the electronic device already includes at least one SIM card with PIN protection enabled and is restarted, or the electronic device already includes at least one SIM card with PIN protection and is turned on, a broadcast message from the SIM card indicates that PIN verification is required.

[0011] In a possible implementation, intercepting the processing of the fingerprint pressing event specifically includes: when the fingerprint sensor of the electronic device detects the fingerprint pressing event, intercepting the processing of the detection result of the fingerprint sensor.

[0012] In a possible implementation, intercepting the processing of the detection result of the fingerprint sensor specifically includes:

[0013] When it is determined that the broadcast message indicates that PIN verification is required, an interception instruction is generated, where the interception instruction is used to intercept the processing of the detection result of the fingerprint sensor.

[0014] Specifically, the interception instruction is used to intercept the processing of the fingerprint pressing event by the fingerprint HAL module of the electronic device.

[0015] In a possible implementation, when the PIN verification is passed or the SIM card is pulled out, a cancel interception instruction is generated. The cancel interception instruction is used to cancel the interception instruction to resume processing the fingerprint pressing event. At this time, the electronic device can provide normal feedback to the fingerprint pressing event, such as feedback of fingerprint input errors through light spots, vibrations, etc.

[0016] In a possible implementation, intercepting the processing of the fingerprint pressing event specifically includes:

[0017] The fingerprint sensor of the electronic device is controlled to stop working so that the fingerprint sensor cannot obtain the detection result of the fingerprint pressing event.

[0018] In a possible implementation, the method further includes: when the PIN verification passes or the SIM card is pulled out, controlling the fingerprint sensor of the electronic device to resume operation and resume processing of the fingerprint pressing event.

[0019] In a second aspect, the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the method for protecting fingerprint information described in any of the above implementations. The electronic device also includes a screen and a fingerprint sensor. Among them, the fingerprint sensor is used to collect fingerprints so that the electronic device can use the collected fingerprint characteristics to achieve fingerprint unlocking. The fingerprint sensor can be an under-screen fingerprint sensor or a side case fingerprint sensor.

[0020] In a third aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by an electronic device, the method for protecting fingerprint information provided by any of the above implementations is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of an electronic device provided for this application;

[0022] Figure 2 A schematic diagram of the interface for opening the PIN code provided for this application;

[0023] Figure 3 Schematic diagram of the interface for unlocking the SIM card provided by this application;

[0024] Figure 4A Illustration of fingerprint unlocking provided for this application Figure 1 ;

[0025] Figure 4B Illustration of fingerprint unlocking provided for this application Figure 2 ;

[0026] Figure 5 This is a flow chart of the fingerprint unlocking method after turning on the SIM card protection function;

[0027] Figure 6 A flowchart of a method for protecting fingerprint information provided in an embodiment of the present application;

[0028] Figure 7 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0029] Figure 8 A flowchart of another method for protecting fingerprint information provided by an embodiment of the present application;

[0030] Fig. 9A system architecture diagram for implementing fingerprint information protection provided in an embodiment of the present application;

[0031] Fig.10 A flowchart of a method for generating an interception instruction provided in an embodiment of the present application;

[0032] Fig.11 A flowchart of another method for generating an interception instruction provided in an embodiment of the present application;

[0033] Fig.12 A flowchart of a method for restoring fingerprint unlocking provided in an embodiment of the present application;

[0034] Fig.13 A flowchart of another method for protecting fingerprint information provided in an embodiment of the present application;

[0035] Fig.14 A flowchart of another method for restoring fingerprint unlocking provided in an embodiment of the present application;

[0036] Fig.15 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to enable persons skilled in the art to more clearly understand the solution of the present application, the application scenario of the technical solution of the present application is first described below.

[0038] See also Figure 1 , which is a schematic diagram of the electronic device provided in this application.

[0039] The electronic device provided in the present application may be a mobile phone, a wearable electronic device (such as a smart watch) or a tablet computer, etc.

[0040] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0041] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0042] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0043] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0044] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0045] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0046] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0047] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0048] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0049] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0050] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0051] The sensor module 180 may include multiple types of sensors. For electronic devices that support fingerprint unlocking, a fingerprint sensor 180H is required. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0052] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0053] In the following description of the present application, a pluggable SIM card is used as an example for explanation, that is, after a user inserts a SIM card into the SIM card interface 195 of an electronic device, the electronic device is connected to the network to achieve mobile communication.

[0054] Current electronic devices can protect the SIM card of the electronic device by turning on the PIN code. When the user turns on the PIN code protection in the system of the electronic device, the user needs to perform an unlocking operation to use the SIM card. When the user enters the wrong PIN code continuously and the electronic device is locked, the electronic device will prompt to enter the PIN unlock (personal identification number unlock key, PUK) code. In a possible implementation, the PUK code can only be entered a certain number of times. If all the times are exhausted and the input is still wrong, the SIM card will be frozen.

[0055] For the convenience of explanation, the following description and embodiments take the electronic device as a mobile phone device as an example.

[0056] See also Figure 2 , which is a schematic diagram of the interface for enabling the PIN code provided in this application.

[0057] This interface is only for the convenience of explanation and does not constitute a limitation on the technical solution of this application.

[0058] After the electronic device enters the SIM card protection function in the system settings, when the SIM card protection is turned on, whenever the device is turned on, restarted, or the SIM card is inserted or removed, the correct PIN code must be entered to use the SIM card again.

[0059] The electronic device can support the insertion of one or two SIM cards. When two SIM cards are inserted into the electronic device, the user can set PIN codes for the two SIM cards respectively. The user can enable protection for the two SIM cards at the same time. At this time, when turning on, restarting, or inserting and removing the SIM cards, the user needs to enter the PIN codes corresponding to the two SIM cards respectively before using the two SIM cards.

[0060] It is understandable that for eSIM cards, since they cannot be plugged in or out, after the eSIM card is protected by PIN code, a PIN verification is required when the phone is turned on or restarted.

[0061] See also Figure 3 , Figure 4A and Figure 4B .in, Figure 3 Schematic diagram of the interface for unlocking the SIM card provided by this application; Figure 4A Illustration of fingerprint unlocking provided for this application Figure 1 ; Figure 4B Illustration of fingerprint unlocking provided for this application Figure 2 .

[0062] After the electronic device is powered on with a SIM card with PIN protection enabled, or after the electronic device is restarted with a SIM card with PIN protection enabled, or after the SIM card is reinserted, the user needs to Figure 3 Enter the PIN code on the SIM card unlocking interface to unlock the SIM card.

[0063] However, when the user has not completed the PIN verification, the user can press the power button of the electronic device to put the electronic device into the screen-off state, and press the fingerprint in the screen-off state.

[0064] Specifically, users can Figure 4A In the scenario shown, the fingerprint is pressed by means of the fingerprint unlocking under the screen to trigger the electronic device to process the fingerprint pressing event; or the user can Figure 4B In the scenario shown, the fingerprint is pressed by using the side border button fingerprint unlocking method to trigger the electronic device to process the fingerprint pressing event.

[0065] At this time, the electronic device will process the fingerprint pressing event and give responsive feedback, such as lighting up the screen, vibrating, etc. The user can judge whether the fingerprint being verified is correct based on the feedback. At this time, the user can try to input the fingerprint as many times as he wants without being prohibited, which makes it possible for fingerprint information to be leaked. A third party can attack the fingerprint unlocking through unlimited attempts

[0066] The following specifically describes the fingerprint unlocking solution after the SIM card protection function is enabled in the current technology.

[0067] See also Figure 5 ,This figure is a flow chart of the fingerprint unlocking method after turning on the SIM card protection function.

[0068] S11: The user performs one of the operations of turning on the device, restarting the device, or inserting or removing the SIM card.

[0069] The term "starting up" in this application refers to starting up an electronic device that has a SIM card inserted and PIN code protection turned on. The term "restarting" in this application refers to restarting an electronic device that has a SIM card inserted and PIN code protection turned on.

[0070] S12: The SIM card module broadcasts SIM card information.

[0071] The user triggers the SIM module of the mobile phone to read the SIM card information and broadcast the SIM card information by turning on, restarting or inserting and removing the SIM card. The SIM card information includes the SIM card PUK code and the SIM card PIN code.

[0072] S13: The broadcast receiving module receives and processes the SIM card information, and obtains the PUK code and the PIN code.

[0073] S14: The broadcast receiving module sends the PUK code and the PIN code to the lock screen module.

[0074] S15: The lock screen module opens the lock screen password interface of the PIN code.

[0075] The lock screen module opens the PIN code lock screen password interface (Bouncer), and the user can enter the correct PIN code on the PIN code Bouncer to unlock the SIM card.

[0076] S16: The lock screen module initiates fingerprint monitoring to the fingerprint module.

[0077] The lock screen module initiates fingerprint monitoring to the fingerprint module so that the fingerprint module registers fingerprint monitoring.

[0078] S17: The fingerprint module registers fingerprint monitoring with the fingerprint HAL module.

[0079] The hardware abstraction layer (HAL) of the electronic device includes a fingerprint HAL module.

[0080] HAL is a routine package of the software layer. It is an interface layer between the operating system kernel and the hardware circuit. It is used to simulate the details of a specific system platform so that the program can directly access the hardware resources. The fingerprint HAL module is used to enable the program to access the hardware resources of the fingerprint sensor, and then realize fingerprint unlocking based on the fingerprint information obtained by the fingerprint sensor.

[0081] After the fingerprint HAL module registers the fingerprint listener, the fingerprint HAL module can wait to process the fingerprint press event.

[0082] S18: The fingerprint HAL module waits for a fingerprint pressing event.

[0083] S19: The user presses the fingerprint.

[0084] The user presses the fingerprint on the fingerprint sensor, so that the fingerprint HAL module processes the fingerprint pressing event.

[0085] S20: The fingerprint HAL module obtains the processing result of the fingerprint pressing event.

[0086] The fingerprint HAL module processes the fingerprint press event and obtains the processing result of the fingerprint press event. Processing the fingerprint press event means verifying whether the currently acquired fingerprint information matches the fingerprint information stored during registration. If they match, the processing result of the fingerprint press event is successful, and the fingerprint unlocking can pass at this time; otherwise, the processing result of the fingerprint press event is failed, and the fingerprint unlocking cannot pass at this time.

[0087] S21: The fingerprint HAL module sends the processing result of the fingerprint pressing event to the fingerprint module.

[0088] S22: The lock screen module calls back the processing result of the fingerprint pressing event.

[0089] S23: The lock screen module performs corresponding processing actions according to the processing result of the fingerprint pressing event.

[0090] When the processing result of the fingerprint pressing event is passed, the electronic device can give corresponding feedback, such as lighting up the screen; when the processing result of the fingerprint pressing event is not passed, the electronic device can also give corresponding feedback, such as vibration, or local lighting up of the fingerprint pressing area of ​​the screen.

[0091] However, currently users can try fingerprint input an unlimited number of times without being prohibited, that is, the process S19-S23 can be repeated many times, which provides the possibility of fingerprint information leakage. Once the fingerprint information is hacked, the host phone will not be secure. Specifically, if the fingerprint information is hacked, after the SIM card of the electronic device is pulled out, the electronic device does not have a SIM card inserted, that is, there is no need to enter a PIN, then the fingerprint information can be used to directly unlock the phone, and then obtain relevant information about the phone. Therefore, the current fingerprint unlocking solution after turning on the PIN code has a security vulnerability.

[0092] In order to solve the above technical problems, the present application provides a method and an electronic device for protecting fingerprint information. When the electronic device turns on the PIN code to protect the SIM card, when the PIN verification of the SIM card fails, the fingerprint pressing event monitored by the electronic device can be actively intercepted, so that the current mobile phone no longer processes the fingerprint pressing event, and therefore will not provide feedback on the fingerprint pressing event, such as no light spot, vibration, screen lighting, etc. The user cannot judge whether the fingerprint at this time is correct based on the feedback, that is, the fingerprint information cannot be cracked by unlimited pressing attempts, thereby achieving protection of fingerprint information and improving the security of electronic devices.

[0093] In order to enable persons skilled in the art to more clearly understand the solution of the present application, the technical solution in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0094] The terms "first", "second", etc. in the description of this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.

[0095] The embodiment of the present application provides a method for protecting fingerprint information, which is described below in conjunction with a specific implementation method.

[0096] See also Figure 6 , which is a flow chart of a method for protecting fingerprint information provided in an embodiment of the present application.

[0097] The method comprises the following steps:

[0098] S31: Perform PIN verification.

[0099] The PIN is used to protect the SIM card. The SIM card in the embodiment of the present application may be a Nano SIM card, a Micro SIM card, a non-embedded SIM card such as a normal SIM card, or an eSIM card.

[0100] When the electronic device includes two SIM cards, for example, SIM card 1 and SIM card 2. If only SIM card 1 has PIN protection enabled, only PIN verification of SIM card 1 is required; if PIN protection of both SIM card 1 and SIM card 2 is enabled, PIN verification of SIM card 1 and SIM card 2 is required in turn.

[0101] S32: When the PIN verification fails, intercept the processing of the fingerprint pressing event.

[0102] PIN verification failure means that the user did not enter the correct PIN in the PIN unlock interface. Specifically, it may include: the user entered an incorrect PIN in the PIN unlock interface; the user did not enter the PIN in the PIN unlock interface, and pressed the power button of the electronic device to put the electronic device into the screen-off state; the user did not enter the PIN in the PIN unlock interface, and the electronic device was in the screen-on state at this time, etc.

[0103] If only SIM card 1 has PIN protection enabled, then when the PIN verification of SIM card 1 fails, the processing of the fingerprint pressing event is intercepted.

[0104] As described above, when SIM card 1 and SIM card 2 both have PIN protection enabled, the processing of the fingerprint pressing event is intercepted when one of the PIN verifications of SIM card 1 and SIM card 2 fails. The processing of the fingerprint pressing event is stopped only when the PIN verifications of both SIM cards pass.

[0105] After intercepting the processing of the fingerprint pressing event, the fingerprint recognition module of the electronic device cannot trigger fingerprint verification and comparison, and the lock screen module of the electronic device cannot call back the processing result of obtaining the fingerprint pressing event, so that the electronic device will not feedback the fingerprint recognition result.

[0106] After adopting the scheme of this application, Figure 4A In the scenario where the PIN verification fails, the user controls the electronic device to go black, and even if the finger presses the fingerprint unlocking area, the entire screen will not appear. Figure 4A The local lit area used to feedback whether the fingerprint matches will not vibrate or provide other feedback, but will always keep the screen in a black state.

[0107] After adopting the scheme of this application, Figure 4B In the scenario where the PIN verification fails, after the user controls the electronic device to a black screen, even if the finger presses the fingerprint unlock button on the side, the entire screen will not feedback whether the fingerprint matches, that is, there will be no local lighting area, vibration or other feedback, but the screen will always remain in a black state.

[0108] To summarize, by using the method provided by the implementation of the present application, when the PIN verification fails, the processing of the fingerprint pressing event is intercepted. At this time, after the user presses the fingerprint, the electronic device will not complete the processing of the fingerprint pressing event. Since the electronic device does not recognize the user's fingerprint at this time, it will not provide corresponding feedback on the recognition result, making it impossible for the current user to distinguish the correct fingerprint or the wrong fingerprint from feedback such as the light spot, the screen on time, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.

[0109] The following is an explanation in conjunction with a specific implementation method.

[0110] In order to facilitate those skilled in the art to more clearly understand the technical solution of the present application, the software system architecture of the electronic device to which the present method is applied is first described below.

[0111] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0112] See also Figure 7 , which is a software structure block diagram of the electronic device provided in an embodiment of the present application.

[0113] The layered architecture divides the software into several layers, and the layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into an application layer, an application framework layer, a system layer, an extension layer and a kernel layer from top to bottom.

[0114] The application layer may include a series of application packages. The application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications. In the embodiment of the present application, the system also provides a SIM card protection function.

[0115] The system user interface (system UI) of an electronic device is one of the core applications of the system, responsible for providing feedback on the system and application status and maintaining a large amount of interaction with the user. With system UI as the base class, subclasses of system UI implement different system interfaces. The main view structure of system UI includes lock screen wallpaper (wallpaper), status bar (Status Bar), lock screen interface (Keyguard), and lock screen password interface (Bouncer). The status bar (StatusBar) is used to display system status information. The lock screen (Keyguard) interface is used to handle functions such as locking the screen, unlocking, and displaying notifications under the lock screen. Bouncer includes the SIM card PIN code input interface.

[0116] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0117] For example, the window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build applications. The display interface can be composed of one or more views.

[0118] The predefined functions included in the application framework layer can be used in the lock screen or unlock process of the electronic device. When the SIM card protection is turned on, some functions can be used to unlock the SIM card.

[0119] The core of the lock screen process includes: lock screen view control center (Keyguard View Mediator), lock screen message distribution center (Keyguard Update Monitor) and lock screen password interface class (Keyguard Bouncer).

[0120] Among them, Keyguard View Mediator inherits system UI, is the core class of the lock screen, and is the transfer class for interaction. Other objects interact with each other through Keyguard View Mediator.

[0121] Keyguard Update Monitor is the status callback management class, responsible for dispatching lock screen messages.

[0122] Keyguard Bouncer is the communication and interaction class of the lock screen view, which is responsible for executing the lock screen operations, including loading and unlocking the lock screen UI.

[0123] In addition, other related classes include:

[0124] The Status Bar Keyguard View Manager is responsible for handling the lock screen operation, but it is also responsible for displaying the PIN code bouncer view.

[0125] The screen root layout control class (Keyguard Host View) is used to control the display of the main security protection screen interface, process the current fingerprint status, and update the current fingerprint status;

[0126] Fingerprint state control class (Finger View Helper) is used to control the current fingerprint state.

[0127] The Telephony Manager in the application framework layer can obtain network status information and SIM card broadcast information.

[0128] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0129] The system library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0130] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0131] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0132] The extension layer includes the Hardware Abstraction Layer (HAL), which is a routine package of the software layer and an interface layer between the operating system kernel and the hardware circuit. It is used to simulate the details of a specific system platform so that the program can directly access the hardware resources. The HAL layer may include but is not limited to: audio (Audio) HAL module, sensor (Sensor) HAL module, modem (Modem) HAL module, camera HAL module, virtual camera HAL module and fingerprint HAL module.

[0133] The kernel layer is the layer between hardware and software. The kernel layer may include display driver, camera driver, USB driver, CPU driver, audio driver, network driver (such as Wi-Fi driver), storage driver and sensor driver, etc. Among them, the sensor driver includes the fingerprint sensor driver.

[0134] See also Figure 8 , which is a flow chart of another method for protecting fingerprint information provided in an embodiment of the present application.

[0135] S41: The user performs one of the operations of turning on the device, restarting the device, or inserting or removing the SIM card.

[0136] The power-on in the embodiment of the present application refers to powering on an electronic device with a SIM card inserted and PIN code protection enabled.

[0137] The restart in the embodiment of the present application refers to restarting an electronic device that has a SIM card inserted and PIN code protection turned on.

[0138] Inserting and removing the SIM card in the embodiment of the present application refers to inserting the SIM card when the electronic device is powered on. At this time, the electronic device can be in a locked state or an unlocked state, which is not limited in the embodiment of the present application.

[0139] S42: The SIM card module broadcasts SIM card information.

[0140] The SIM card information includes the SIM card PUK code and the SIM card PIN code.

[0141] S43: The broadcast receiving module receives and processes the broadcast message of the SIM card.

[0142] The broadcast receiving module parses the broadcast message of the SIM card and obtains the PUK code and PIN code.

[0143] In a possible implementation, the broadcast receiving module is a component of the lock screen module, which is used to obtain an indication of whether PIN verification is required from the broadcast message and inform the lock screen module. When PIN verification is required, the PUK code and the PIN code can be parsed from the broadcast message.

[0144] S44: The broadcast receiving module sends the PUK code and the PIN code to the lock screen module.

[0145] S45: The lock screen module opens the PIN code unlocking interface.

[0146] When it is determined that the broadcast message indicates that PIN verification is required, the lock screen module pops up the SIM card PIN unlocking interface for PIM verification. The PIN unlocking interface is also the PIN code lock screen password interface (Bouncer), and the user can enter the correct PIN code on the PIN code Bouncer to unlock the SIM card.

[0147] S46a: The lock screen module initiates fingerprint monitoring to the fingerprint module.

[0148] The lock screen module initiates fingerprint monitoring to the fingerprint module so that the fingerprint module registers fingerprint monitoring.

[0149] S47a: The fingerprint module registers fingerprint monitoring with the fingerprint HAL module.

[0150] After the fingerprint HAL module registers the fingerprint listener, the fingerprint HAL module can wait to process the fingerprint press event.

[0151] The fingerprint HAL module is used to enable the program to access the hardware resources of the fingerprint sensor, and then implement fingerprint unlocking based on the fingerprint information obtained by the fingerprint sensor.

[0152] S46b: When the lock screen module determines that the broadcast message indicates that PIN verification is required, it sends an interception instruction to the fingerprint module.

[0153] S46a initiates fingerprint monitoring, and the lock screen module determines that PIN verification is required at this time according to the broadcast message, that is, when the PIN is not entered in the PIN unlocking interface at this time, or the wrong PIN is entered, it is necessary to intercept the processing of the fingerprint pressing event. The lock screen module generates an interception instruction, which is used to intercept the processing of the detection result of the fingerprint pressing event.

[0154] In some possible implementations, when at least one SIM card with PIN protection enabled is inserted into the electronic device after it is turned on, or the electronic device already includes at least one SIM card with PIN protection enabled and is restarted, or the electronic device already includes at least one SIM card with PIN protection and is turned on, a broadcast message from the SIM card indicates that PIN verification is required.

[0155] S47b: The fingerprint module transmits the interception instruction to the fingerprint HAL module.

[0156] Pass-through means that no matter what the business content is, it is only responsible for transmitting the content from the source address to the destination address without making any changes to the business data content.

[0157] S48b: After receiving the interception instruction, the fingerprint HAL module stops processing the fingerprint pressing event.

[0158] At this time, when the fingerprint sensor of the electronic device detects a fingerprint pressing event, a detection result of the fingerprint pressing event will be generated, but due to the existence of the interception instruction, the fingerprint HAL module will intercept the processing of the detection result of the fingerprint sensor.

[0159] See also Fig. 9 , which is a system architecture diagram for implementing fingerprint information protection provided in an embodiment of the present application.

[0160] After the SIM card module of the mobile phone reads the SIM card information and broadcasts the SIM card information, the SIM card information includes the PIN code, which is equivalent to broadcasting the PIN code. When the lock screen module receives the PIN code broadcast, it pulls up the PIN code lock screen password interface (Bouncer) and generates an interception instruction to intercept the fingerprint HAL module from processing the fingerprint press event. At this time, the fingerprint sensor's detection result of the fingerprint press cannot be processed by the fingerprint HAL module.

[0161] The following describes how the lock screen module of the system UI generates interception instructions.

[0162] See also Fig.10 , which is a flowchart of a method for generating an interception instruction provided in an embodiment of the present application.

[0163] S51: Keyguard View Mediator opens the pull-up PIN code Bouncer.

[0164] Lock screen view control center Keyguard View Mediator starts to pull up the PIN code Bouncer after receiving the PIM code broadcast from the SIM module.

[0165] S52: Status Bar Keyguard View Manager controls the view that displays the PIN code Bouncer.

[0166] The status bar view control class Status Bar Keyguard View Manager controls the view that displays the PIN code Bouncer after the Keyguard ViewMediator pulls up the PIN code Bouncer.

[0167] S53: Keyguard Bouncer prepares to display the PIN code Bouncer view.

[0168] S54: Keyguard Host View controls display of the main security protection screen interface and processes the current fingerprint status.

[0169] The fingerprint status includes normal processing of fingerprint pressing events or interception processing of fingerprint pressing events.

[0170] The screen root layout control class Keyguard Host View determines the current password lock type. If it is a PIN code Bouncer, it determines that the fingerprint pressing time of the fingerprint HAL module needs to be intercepted, and the fingerprint state of this event is switched to intercept and process the fingerprint pressing event. By intercepting the processing of the fingerprint pressing event, the displayed main security protection screen interface is always the main security protection screen interface corresponding to when no fingerprint pressing event is performed.

[0171] S55: Finger View Helper sends an interception instruction to the fingerprint module.

[0172] At this time, the fingerprint state control class Finger View Helper sends an interception instruction to the fingerprint module of the application framework layer (Framework), thereby controlling the fingerprint state. The interception instruction can intercept the detection result detected by the fingerprint sensor for further processing. The fingerprint sensor can be an under-screen fingerprint sensor or a side button fingerprint sensor.

[0173] The following describes how to generate interception instructions in the bright screen off scenario.

[0174] See also Fig.11 , which is a flowchart of another method for generating an interception instruction provided in an embodiment of the present application.

[0175] S61: Keyguard Update Monitor handles waking up the screen and updating the fingerprint status.

[0176] After the electronic device fails the PIN verification and the screen is turned on and off, the lock screen message distribution center KeyguardUpdate Monitor triggers the control of the fingerprint HAL module in the off-screen state, that is, the fingerprint status is updated to intercept and process the fingerprint press event.

[0177] S62: Keyguard Host View responds to update fingerprint status.

[0178] The screen root layout control class Keyguard Host View responds to Keyguard Update Monitor to update the fingerprint status.

[0179] S63: Finger View Helper sends an interception instruction to the fingerprint module.

[0180] At this time, the fingerprint state control class Finger View Helper sends an interception instruction to the fingerprint module of the application framework layer (Framework), thereby controlling the fingerprint state. The interception instruction can intercept the detection result detected by the fingerprint sensor for further processing. The fingerprint sensor can be an under-screen fingerprint sensor or a side button fingerprint sensor.

[0181] To summarize, by adopting the solution provided in the embodiment of the present application, when the PIN verification fails, the electronic device will not complete the processing of the fingerprint pressing event. Since the electronic device does not recognize the user's fingerprint at this time, it will not provide corresponding feedback on the recognition result, making it impossible for the current user to distinguish the correct fingerprint or the wrong fingerprint from feedback such as the light spot, the screen on time, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.

[0182] The above embodiment introduces an implementation method of intercepting the processing of the fingerprint pressing event when the PIN verification fails. The following describes an implementation method of releasing the interception instruction so that the electronic device can perform fingerprint unlocking normally.

[0183] See also Fig.12 , which is a flow chart of a method for restoring fingerprint unlocking provided in an embodiment of the present application.

[0184] S71: PIN verification is passed or the SIM card is removed.

[0185] Figure 8 In the corresponding description, when the PIN verification fails, the interception instruction will intercept the processing of the fingerprint pressing event. Therefore, when the PIN verification passes, that is, when the user enters the correct PIN in the PIN unlocking interface, the electronic device resumes normal fingerprint unlocking.

[0186] In addition, when the PIN verification fails, the user can pull out the SIM card with PIN verification turned on. At this time, after the SIM card module detects that the SIM card is pulled out, the SIM broadcast message indicates that PIN verification is not required at this time, and the SIM card unlocking interface will not pop up. At this time, normal fingerprint unlocking can be restored.

[0187] S72: The lock screen module sends a release instruction to the fingerprint module.

[0188] The lock screen module generates a cancel interception instruction, which is used to cancel the interception instruction to resume processing of fingerprint pressing events.

[0189] S73: The fingerprint module transmits the unblocking instruction to the fingerprint HAL module.

[0190] S74: After receiving the unblocking instruction, the fingerprint HAL module resumes processing the fingerprint pressing event.

[0191] At this time, the fingerprint HAL module is waiting for the fingerprint pressing event normally. The user can press the fingerprint on the fingerprint sensor to make the fingerprint HAL module process the fingerprint pressing event.

[0192] In the above embodiments, the interception instruction is used to intercept the processing of the fingerprint pressing event by the fingerprint HAL module. Other implementation methods are described below.

[0193] See also Fig.13 , which is a flow chart of another method for protecting fingerprint information provided in an embodiment of the present application.

[0194] S81: The user performs one of the operations of turning on the phone, restarting the phone, or inserting or removing the SIM card.

[0195] The power-on in the embodiment of the present application refers to powering on an electronic device with a SIM card inserted and PIN code protection enabled.

[0196] The restart in the embodiment of the present application refers to restarting an electronic device that has a SIM card inserted and PIN code protection turned on.

[0197] Inserting and removing the SIM card in the embodiment of the present application refers to inserting the SIM card when the electronic device is powered on. At this time, the electronic device can be in a locked state or an unlocked state, which is not limited in the embodiment of the present application.

[0198] S82: The SIM card module broadcasts SIM card information.

[0199] The SIM card information includes the SIM card PUK code and the SIM card PIN code.

[0200] S83: The broadcast receiving module receives and processes the broadcast message of the SIM card.

[0201] Parse the broadcast message of the SIM card and obtain the PUK code and PIN code.

[0202] S84: The broadcast receiving module sends the PUK code and the PIN code to the lock screen module.

[0203] S85: The lock screen module opens the PIN code unlocking interface.

[0204] When it is determined that the broadcast message indicates that PIN verification is required, a PIN unlocking interface of the SIM card is popped up to perform the PIN verification.

[0205] The lock screen module opens the PIN code lock screen password interface (Bouncer), and the user can enter the correct PIN code on the PIN code Bouncer to unlock the SIM card.

[0206] S86a: The lock screen module initiates fingerprint monitoring to the fingerprint module.

[0207] S87a: The fingerprint module registers fingerprint monitoring with the fingerprint HAL module.

[0208] After the fingerprint HAL module registers the fingerprint listener, the fingerprint HAL module can wait to process the fingerprint press event.

[0209] S86b: The lock screen module controls the fingerprint sensor to stop working.

[0210] When the PIN is not entered on the PIN unlocking interface, or an incorrect PIN is entered, it is determined that the PIN verification has failed at this time, and the processing of the fingerprint pressing event needs to be intercepted.

[0211] At this time, the lock screen module controls the fingerprint sensor to stop working, so that the fingerprint HAL module cannot obtain the detection result of the fingerprint pressing event, and thus cannot start processing the fingerprint pressing event. In a possible implementation, the lock screen module generates a shutdown instruction for the fingerprint sensor, and the processor of the electronic device controls the fingerprint sensor to shut down according to the shutdown instruction.

[0212] The above describes an implementation method of intercepting fingerprint processing events by controlling the fingerprint sensor to stop working. The following describes an implementation method of controlling the fingerprint sensor to resume working so that the electronic device can perform fingerprint unlocking normally.

[0213] See also Fig.14 , which is a flowchart of another method for restoring fingerprint unlocking provided in an embodiment of the present application.

[0214] S91: PIN verification is passed or the SIM card is removed.

[0215] When the PIN verification fails, the fingerprint sensor is in a stopped state, and the processing of the fingerprint press event is intercepted. When the PIN verification passes, that is, the user enters the correct PIN on the PIN unlocking interface, the electronic device resumes normal fingerprint unlocking.

[0216] In addition, when the PIN verification fails, the user can pull out the SIM card with PIN verification turned on. At this time, after the SIM card module detects that the SIM card is pulled out, the SIM broadcast message indicates that PIN verification is not required at this time, and the SIM card unlocking interface will not pop up. At this time, normal fingerprint unlocking can be restored.

[0217] S92: The lock screen module controls the fingerprint sensor to resume working.

[0218] In one possible implementation, the lock screen module generates an activation instruction for the fingerprint sensor, and the processor of the electronic device controls the fingerprint sensor to start according to the activation instruction.

[0219] S93: The fingerprint sensor waits for the user to press the fingerprint.

[0220] At this time, the fingerprint sensor starts working and can obtain the detection results of the fingerprint pressing event normally. The user can press the fingerprint on the fingerprint sensor to enable the fingerprint HAL module to process the detection results of the fingerprint pressing event, thereby realizing fingerprint unlocking, or giving corresponding feedback when the fingerprint unlocking fails.

[0221] To summarize, by adopting the solution provided in the embodiment of the present application, when the PIN verification fails, the fingerprint sensor of the electronic device is controlled to stop working. At this time, the electronic device will not complete the processing of the fingerprint pressing event. Since the electronic device does not recognize the user's fingerprint, it will not provide corresponding feedback on the recognition result, making it impossible for the current user to distinguish the correct fingerprint or the wrong fingerprint from the feedback such as the light spot, the screen light time, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.

[0222] The following describes this application in conjunction with specific application scenarios Figure 8 and Fig.13 The technical effect after the solution is applied to electronic equipment.

[0223] The electronic device may be in a covered state or an uncovered state. The covered state refers to the application on the electronic device being able to provide a unique lock screen interface or component that is integrated with the original lock screen interface of the electronic device. These applications may include music player software, video player software, etc. Taking the music player software as an example, when the music lock screen of the music player software is turned on, the electronic device is locked and the screen is turned on. At this time, the lock screen interface is the music lock screen interface, which can display one or more of the currently playing music, singers, lyrics or album information.

[0224] The non-covered state corresponds to the regular lock screen interface, and the lock screen interface of the application is not opened at this time.

[0225] When the electronic device turns on PIN code protection for the SIM card, the following scenarios may occur.

[0226] In one possible scenario, the lock screen interface is in a non-covered state, and two SIM cards with PIN code protection are inserted. After adopting the solution of this application, by intercepting the fingerprint pressing event, as long as there is a PIN code that is not unlocked, no matter in the screen-on state or the screen-off state, there is no response after pressing the fingerprint in the fingerprint detection area, that is, the electronic device has no vibration, local lighting, local light spots and other feedback. When both PIN codes are unlocked, or the SIM card that the PIN code is not unlocked is pulled out, the fingerprint unlocking returns to normal.

[0227] In another possible scenario, the lock screen interface is in a non-covered state, and a SIM card with PIN code protection is inserted. After adopting the solution of this application, by intercepting the fingerprint pressing event, when the PIN code is not unlocked, no matter in the screen-on state or the screen-off state, there is no response after pressing the fingerprint in the fingerprint detection area, that is, the electronic device has no vibration, local lighting, local light spots and other feedback. When the PIN code is unlocked, or the PIN code is not unlocked but the SIM card is pulled out, the fingerprint detection and unlocking are normal.

[0228] In another possible scenario, after the electronic PIN code is unlocked, the electronic device is restarted. At this time, the PIN code needs to be unlocked again, otherwise the fingerprint detection area will not respond after the fingerprint is pressed. When the PIN code is unlocked again, normal fingerprint pressing detection is resumed.

[0229] In another possible scenario, after the electronic PIN code is unlocked, the SIM card is pulled out and the fingerprint unlocking is normal. After the SIM card protected by the PIN code is inserted again, when the PIN code is not unlocked, the fingerprint detection area does not respond after the fingerprint is pressed. When the PIN code is unlocked again, the fingerprint unlocking returns to normal.

[0230] In another possible scenario, after the electronic PIN code is unlocked, the fingerprint unlocking returns to normal. However, multiple fingerprint unlocking failures, such as multiple uses of the wrong fingerprint or unclean fingers, lead to unlocking failures. At this time, the electronic device may be locked for 30 seconds, that is, the fingerprint pressing event will no longer be processed within 30 seconds, and it will be restored after 30 seconds. When multiple unlocking failures occur again after 30 seconds, the locking time will be extended, for example, it will be locked for 5 minutes, and so on. The locking time of the electronic device can be set, and the above is only for illustration. When a SIM card with PIN code protection is inserted during the locking time, when the PIN code is not unlocked, no matter whether the screen is on or off, and whether it is within the locking time or the locking time has ended, there is no response after pressing the fingerprint in the fingerprint detection area. After the PIN code is unlocked, if it is within the locking time at this time, the fingerprint unlocking is still locked. If the locking time ends at this time, the fingerprint unlocking returns to normal.

[0231] In another possible scenario, when the electronic device is in a covered state, for example, after sliding the widget from the lock interface to enter the calculator interface or turning on the music lock screen, inserting a SIM card with PIN code protection, the current interface returns to the PIN code unlock interface. Regardless of whether the screen is on or off, there is no response after pressing the fingerprint in the fingerprint detection area. After the PIN code is unlocked or the SIM card is pulled out, the fingerprint unlocking returns to normal. If the electronic device is inserted with a SIM card that does not have PIN code protection turned on, the PIN code unlocking interface will not be displayed, and the fingerprint unlocking will remain normal.

[0232] In another possible scenario, when the PIN code is unlocked or the SIM card with PIN code protection is pulled out, the electronic device's fingerprint information entry, fingerprint information deletion, privacy space login, application lock, safe, fingerprint payment and other functions will return to normal and will not be affected.

[0233] Based on the method for protecting fingerprint information provided in the above embodiments, the embodiment of the present application further provides an electronic device, which is described in detail below with reference to the accompanying drawings.

[0234] See also Fig.15 , which is a schematic diagram of an electronic device provided in an embodiment of the present application.

[0235] The electronic device 1500 may be a mobile phone, a wearable electronic device (such as a smart watch) or a tablet computer, etc. The electronic device may be inserted with a SIM card or may have an eSIM card integrated therein, and supports enabling PIN code protection for the SIM card.

[0236] The electronic device 1500 includes: at least one processor 1501, at least one memory 1502 connected to the processor 1501, and a bus 1503. The processor 1501 and the memory 1502 communicate with each other via the bus 1503.

[0237] The processor 1501 includes a kernel, which retrieves the corresponding program unit from the memory 1502. One or more kernels may be provided to call the program instructions in the memory 1502 to execute the above-mentioned method for protecting fingerprint information.

[0238] For specific implementations of the electronic device 1500, see Figure 1 The corresponding description will not be repeated in the embodiments of the present application.

[0239] To summarize, when the PIN verification fails, the electronic device provided in the embodiment of the present application intercepts the processing of the fingerprint pressing event. At this time, since the electronic device does not recognize the user's fingerprint, it will not provide corresponding feedback on the recognition result, so that the current user cannot distinguish the correct fingerprint or the wrong fingerprint from the feedback such as the light spot, the screen light duration, and the vibration, thereby protecting the fingerprint information and improving the security of the electronic device.

[0240] The present application also provides a storage medium on which a program is stored. When the program is executed by a processor, the method for protecting fingerprint information is implemented.

[0241] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the relevant steps of the above method for protecting fingerprint information.

[0242] The memory may include non-permanent memory in a computer-readable medium, random-access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0243] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically-erasable programmable read-only memory (EEPROM), flash memory, or other memory technologies.

[0244] It should be understood that in this application, "at least one (item)" means one or more, and "more than one" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist, where A and B can be singular or plural. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0245] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for protecting fingerprint information, It is characterized in that Applied to an electronic device, wherein at least one user identity module SIM card is inserted into the electronic device, the method comprises: Pop up the SIM card personal identification password PIN unlocking interface for PIN verification, the PIN is used to protect the user identity module SIM card; When the PIN verification fails and the electronic device enables fingerprint unlocking, intercepting the processing of the fingerprint pressing event so that the electronic device does not provide feedback on the fingerprint pressing event; The interception of the fingerprint pressing event specifically includes: When a fingerprint sensor of the electronic device detects a fingerprint pressing event, intercepting the processing of the detection result of the fingerprint sensor; Alternatively, the fingerprint sensor of the electronic device is controlled to stop working, so that the fingerprint sensor cannot obtain the detection result of the fingerprint pressing event.

2. The method according to claim 1, It is characterized in that When the PIN verification fails and the electronic device enables fingerprint unlocking, intercepting the processing of the fingerprint pressing event specifically includes: When the PIN is not entered in the PIN unlocking interface, or an incorrect PIN is entered, it is determined that the PIN verification has failed at this time, and the processing of the fingerprint pressing event is intercepted.

3. The method according to claim 1, It is characterized in that The pop-up SIM card personal identification password PIN unlocking interface is used to perform PIN verification, specifically including: Parsing the broadcast message of the SIM card; When it is determined that the broadcast message indicates that PIN verification is required, a PIN unlocking interface of the SIM card is popped up to perform the PIN verification.

4. The method according to claim 3, It is characterized in that When at least one SIM card with PIN protection enabled is inserted into the electronic device after it is turned on, or the electronic device already includes at least one SIM card with PIN protection enabled and is restarted, or the electronic device already includes at least one SIM card with PIN protection and is turned on, the broadcast message of the SIM card indicates that PIN verification is required.

5. The method according to claim 3, It is characterized in that The intercepting and processing of the detection result of the fingerprint sensor specifically includes: When it is determined that the broadcast message indicates that PIN verification is required, an interception instruction is generated, where the interception instruction is used to intercept the processing of the detection result of the fingerprint sensor.

6. The method according to claim 5, It is characterized in that The method further comprises: When the PIN verification is passed or the SIM card is pulled out, a cancel interception instruction is generated, and the cancel interception instruction is used to cancel the interception instruction to resume processing the fingerprint pressing event.

7. The method according to claim 1, It is characterized in that The method further comprises: When the PIN verification is passed or the SIM card is pulled out, the fingerprint sensor of the electronic device is controlled to resume working and resume processing the fingerprint pressing event.

8. The method according to claim 1, It is characterized in that The method according to claim 1 is characterized in that the SIM card is a non-embedded SIM card or an embedded eSIM card.

9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the method for protecting fingerprint information according to any one of claims 1 to 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by an electronic device, the method for protecting fingerprint information according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Terminal data protecting method, system as well as mobile communication terminal

    CN101252703A

  • Mobile terminal and starting-up method thereof

    CN102340578A

  • Method for implementing start-up protection on mobile terminal

    CN102883026A

  • Dynamic cipher generation method for electronic equipment for fingerprint and voice recognition

    CN104331652A

  • Anti-theft processing method and device for mobile terminal

    CN105930749A