WO2021000943A1 - 一种指纹开关的管理方法及装置 - Google Patents

一种指纹开关的管理方法及装置 Download PDF

Info

Publication number
WO2021000943A1
WO2021000943A1 PCT/CN2020/100167 CN2020100167W WO2021000943A1 WO 2021000943 A1 WO2021000943 A1 WO 2021000943A1 CN 2020100167 W CN2020100167 W CN 2020100167W WO 2021000943 A1 WO2021000943 A1 WO 2021000943A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
state
electronic device
scene
fingerprint switch
Prior art date
Application number
PCT/CN2020/100167
Other languages
English (en)
French (fr)
Inventor
钟锦红
郭玉华
钱华君
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021000943A1 publication Critical patent/WO2021000943A1/zh

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device

Definitions

  • This application relates to the field of terminal technology, and in particular to a method and device for managing fingerprint switches.
  • the fingerprint unlocking module can be removed from the buttons below the mobile phone display. Transfer to the mobile phone display can be called the screen fingerprint unlocking method.
  • the screen fingerprint unlocking mode in order to respond to the user’s fingerprint unlocking operation requirements in a timely manner, it is necessary to always open the touch panel (TP) and proximity light sensor of the smart terminal device so that the user can easily complete the unlocking through the mobile phone screen.
  • TP touch panel
  • proximity light sensor of the smart terminal device
  • the prior art solves the problem of power waste caused by the TP and proximity light sensor being normally turned on by manually establishing rules.
  • the user does not normally use the screen fingerprint to unlock, turn off the TP and the proximity light sensor; while the user uses the screen fingerprint
  • the unlocking frequency is high, turn on the TP and proximity light sensor, which can solve the problem of a large amount of power waste to a certain extent.
  • This application provides a fingerprint switch management method and device, which solves the problems of unreasonable settings and poor flexibility of screen fingerprint unlocking in the prior art.
  • a fingerprint switch management method which is applied to an electronic device.
  • the method includes: recording the frequency of a user unlocking the electronic device in different scenarios within a first preset time; and determining different scenarios according to the frequency and a preset threshold Under the status of the fingerprint switch, the status of the fingerprint switch includes the on state or the off state; the user model is obtained according to the state of the fingerprint switch in different scenarios.
  • the user model includes multiple scenes and the status indication of the fingerprint switch in each scene. The status indication is used for Indicates that the fingerprint switch is on or off; according to the user model and the scene the user is currently in, determine whether to turn on or off the fingerprint switch.
  • the frequency of the user unlocking the electronic device in different scenarios within a period of time can be considered as the user's usage habit data for unlocking the electronic device.
  • the electronic device can be intelligently based on the user's usage habit data for unlocking when using the electronic device
  • the user matches the fingerprint switch model. This model enables the electronic device to recognize the user's scene, and can turn on or off the fingerprint switch according to the state of the scene in the model, so that the state of the fingerprint switch is closer to the user's habits.
  • determining the status of the fingerprint switch in different scenarios according to the frequency and the preset threshold includes: when the frequency of the user unlocking the electronic device in the first scenario is greater than or equal to the preset within the first preset time Threshold, the state of the fingerprint switch in the first scene is determined to be on; when the frequency of the user unlocking the electronic device in the first scene is less than the preset threshold within the first preset time, the state of the fingerprint switch in the first scene is determined Is closed.
  • the electronic device can determine the fingerprint switch setting under the user’s usage habit according to the unlocking frequency under the user’s different usage habit and according to the comparison with the preset threshold value, so that the user model can be adjusted according to the user’s usage habit data. Matching can improve the flexibility and accuracy of fingerprint switch settings.
  • obtaining the user model according to the status of the fingerprint switch in different scenarios includes: according to the status of the fingerprint switch in different scenarios, selecting a user model that matches the user from multiple user models; the user model is : The scene and status of multiple user models indicate the user model with the highest degree of matching with the status of the fingerprint switch in different scenarios.
  • the electronic device matches the user model according to different user habits, and selects the user model with the highest degree of matching with the user's use scene as the user model, thereby improving the accuracy of the fingerprint switch setting to more closely match the user's use habits .
  • determining whether the fingerprint switch is turned on or off in the current scene of the user includes: when the user is currently in the scene and the second scene in the user model Match, the status indicator of the fingerprint switch in the second scene is used to indicate that the fingerprint switch is in the on state, then the fingerprint switch is turned on; when the current scene of the user matches the second scene in the first user model, the fingerprint switch in the second scene The status indication of is used to indicate that the fingerprint switch is in the off state, and the fingerprint switch is turned off.
  • the electronic device can determine that the current scene of the user is the same as the second scene in the multiple scenes according to multiple scenes in the user model, and can set the state of the fingerprint switch to the second scene In order to realize the intelligent setting of the fingerprint switch.
  • the electronic device can update the fingerprint switch settings according to the update of user habit data, thereby improving the flexibility and accuracy of fingerprint switch settings.
  • the method further includes: the scene includes at least one of an environment state, a user state, a device state, and a time interval when the user uses the electronic device.
  • the electronic device can perform matching settings according to various scenarios in which the user uses the screen fingerprint, thereby improving the flexibility and accuracy of the fingerprint switch setting.
  • the method further includes: when the state in the fourth scene in the user model is indicated as the off state, and the user presses the power button of the electronic device, triggering the fingerprint switch to be in the on state , Receive the user's fingerprint unlock operation on the electronic device.
  • the fingerprint switch state setting of the electronic device does not match the user's current use, the user can press the power-on key of the electronic device to unlock, thereby improving the flexibility of the fingerprint switch to unlock the electronic device.
  • an electronic device in a second aspect, includes: an electronic device, characterized in that the electronic device includes a processor, and a memory connected to the processor, the memory is used to store instructions, when the instructions are executed by the processor
  • the electronic device is used to execute: record the frequency of the user unlocking the electronic device in different scenarios within the first preset time; determine the state of the fingerprint switch in different scenarios according to the frequency and the preset threshold, and the state of the fingerprint switch includes the on state Or closed state; according to the state of the fingerprint switch in different scenes to obtain the user model, the user model includes multiple scenes and the status indication of the fingerprint switch in each scene, the status indication is used to indicate that the fingerprint switch is on or off; according to the user model And the scene the user is currently in, determine whether to turn on or turn off the fingerprint switch.
  • the electronic device is specifically configured to perform: when the frequency of the user unlocking the electronic device in the first scene is greater than or equal to the preset threshold within the first preset time, it is determined that the fingerprint switch in the first scene When the frequency of unlocking the electronic device in the first scene by the user in the first preset time is less than the preset threshold, it is determined that the state of the fingerprint switch in the first scene is the closed state.
  • the electronic device is specifically used for execution: according to the status of the fingerprint switch in different scenarios, select a user model that matches the user from multiple user models; the user model is: multiple user models The scene and status indicate the user model with the highest matching degree with the status of the fingerprint switch in different scenes.
  • the electronic device is specifically used to execute: when the user's current scene matches the second scene in the user model, the status indication of the fingerprint switch in the second scene is used to indicate that the fingerprint switch is in the on state , The fingerprint switch is turned on; when the current scene of the user matches the second scene in the user model, the status indicator of the fingerprint switch in the second scene is used to indicate that the fingerprint switch is in the off state, then the fingerprint switch is turned off.
  • the electronic device is also used to perform: when the frequency of the user unlocking the electronic device in the third scene is greater than or equal to the preset threshold within the second preset time, in the third scene in the user model If the status indicator of the user model is in the off state, the status indicator in the third scene in the user model is updated to the on state; when the frequency of the user unlocking the electronic device in the third scene is less than the preset threshold within the second preset time, the user The status indication in the third scene in the model is the on state, and the status indication in the third scene in the user model is updated to the off state.
  • the scene includes at least one of an environment state, a user state, a device state, and a time interval when the user uses the electronic device.
  • the state in the fourth scene in the user model indicates the off state
  • the user's pressing operation on the power-on button of the electronic device is received, and the fingerprint switch is triggered to be in the on state, and the user's response is received.
  • the fingerprint unlocking operation of the electronic device is received.
  • a chip system which is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by wires; the interface circuit is used to slave the electronic device
  • the memory receives the signal and sends the signal to the processor.
  • the signal includes the computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the first aspect and any of the possible design methods.
  • a readable storage medium which is characterized in that instructions are stored in the readable storage medium, and when the readable storage medium runs on an electronic device, the electronic device executes the first aspect and any of its possibilities Way of design.
  • a computer program product which is characterized in that, when the computer program product runs on a computer, the computer is caused to execute the first aspect and any of the possible design methods.
  • any electronic device, system, readable storage medium, and computer program product managed by the fingerprint switch provided above are all used to execute the corresponding method provided above, and therefore, the beneficial effects that can be achieved Reference may be made to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
  • FIG. 1A is a hardware structure diagram of an electronic device provided by an embodiment of the application.
  • FIG. 1B is a software structure diagram of an electronic device provided by an embodiment of the application.
  • FIG. 2 is a data processing structure diagram of a fingerprint switch management method provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of a fingerprint switch management method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of an interface for unlocking screen fingerprints according to an embodiment of the application.
  • FIG. 5 is a decision tree model for generating a user model for fingerprint switch management provided by an embodiment of the application
  • FIG. 6 is a schematic structural diagram of an electronic device for managing fingerprint switches according to an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • Unlock Unlock the device.
  • unlocking may refer to entering a locked screen state in order to prevent misoperation of the electronic device, and the electronic device can be operated only after the electronic device is successfully unlocked in a certain manner.
  • the possible unlocking methods of electronic devices include: password unlocking, face recognition unlocking, drawing pattern unlocking, fingerprint unlocking, etc.
  • Fingerprint unlocking It is an unlocking method that identifies users based on their fingerprint data. When used for the first time, the fingerprint unlocking program will sample and enter the user's fingerprint data. When it is required to unlock, it only needs to scan and compare the scanned fingerprint data with the recorded fingerprint data, and unlock the screen when the comparison is successful.
  • Screen fingerprint It is a hidden fingerprint unlocking design under the screen. When the user's finger touches the designated area of the screen, the screen of the electronic device can be unlocked, which is also called under-screen fingerprint.
  • Touch screen also known as “touch screen” or “touch panel”. It is an inductive liquid crystal display device that can receive input signals such as contacts. It includes a touch sensor. When the touch sensor receives a touch operation on the screen, The tactile feedback system of the touch screen can drive various connected devices according to pre-programmed programs, which can be used to replace mechanical button panels and create dynamic audio-visual effects through the LCD screen.
  • Proximity light sensor It is a device that uses infrared reflected light to sense the proximity of an object. It can include a light emitting diode (LED) and a light detector.
  • the light emitting diode can be an infrared light emitting diode
  • the light detector can be a photodiode
  • the electronic device emits infrared light through the light-emitting diode
  • the photodiode is used to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object nearby; otherwise, it can be determined that there is no object nearby.
  • the embodiment of the present application provides a method for managing a fingerprint switch, and the method can be applied to a fingerprint unlocking process of an electronic device.
  • this method solves the problems of unreasonable settings and poor flexibility of the screen fingerprint unlocking switch in the prior art, and can intelligently turn on the screen fingerprint unlocking module, that is, intelligently manage the opening and closing of the touch screen and the proximity light sensor , Thereby improving the problem of wasted power consumption.
  • the screen fingerprint unlocking module can also be called a fingerprint switch.
  • the electronic devices in the embodiments of the present application may be mobile phones, tablet computers, desktops, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, and cellular computers.
  • Telephones personal digital assistants (PDAs), wearable electronic devices, augmented reality (AR) ⁇ virtual reality (VR) devices, etc., including fingerprint-unlocked devices.
  • PDAs personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • fingerprint-unlocked devices including fingerprint-unlocked devices.
  • the specific form of the equipment is not subject to special restrictions.
  • FIG. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of this application.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the aforementioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K, Ambient light sensor 180L and bone conduction sensor 180M and other sensors.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store 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 directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in this embodiment is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charge management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • BT wireless fidelity
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diode AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193.
  • the camera 193 is used to capture still images or videos.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector.
  • the light detector may be 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 uses a photodiode to detect infrared reflected light from nearby objects. 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 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
  • the electronic device 100 may implement the function of unlocking the screen fingerprint by setting the fingerprint sensor 180H in a certain area on the display screen 194, and the user receives fingerprint information input by the user.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the electronic device 100 can detect the touch operation input by the user on the touch screen through the touch sensor 180K, and collect the touch position, touch area, touch direction, and touch time of the touch operation on the touch screen.
  • the electronic device 100 can also combine the touch sensor 180K and the pressure sensor 180A to determine the touch position of the touch operation on the touch screen.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG. 1B is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and system settings.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • 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.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure and software structure.
  • the above-mentioned electronic device 100 is a mobile phone as an example to describe the method of the embodiment of the present application.
  • the embodiment of the application provides a method for managing a fingerprint switch.
  • the electronic device matches the user model to the user according to the recorded data of the user unlocking the electronic device in different scenarios, so that the user can be matched with the user model according to the current scene and
  • the fingerprint switch setting in the user model determines whether to turn on or off the fingerprint switch.
  • the overall data processing structure can be as shown in Figure 2, including data recording and preprocessing, matching user models, and updating user models.
  • data recording and preprocessing include recording the user status, device status, environmental status, and time information when the user uses the electronic device over a period of time. These status and information can constitute the user unlocking state, which can be changed from The preset model matches the user model for the user.
  • the user state can be matched according to the various states the user is currently in, and the fingerprint switch of the electronic device can be set to turn on or off according to the unlock setting in the matched user state.
  • the electronic device continuously records the unlocking data of the user, and dynamically updates the user model according to the comparison between the unlocking frequency and the preset frequency threshold under the user's choice of different scenarios. So as to achieve the more accurate fingerprint unlocking settings.
  • the method may include 301-304:
  • the method can include 301-304:
  • the electronic device records the frequency of the user unlocking the electronic device in different scenarios within a first preset time; according to the frequency and a preset threshold, the state of the fingerprint switch in different scenarios is determined.
  • the first preset time is a period of time after the user starts to use the mobile phone after the fingerprint is registered, for example, three days or one week after the fingerprint is registered. It may also be a period of time after the user has entered the fingerprint and turned on the on-screen fingerprint switch function. After the on-screen fingerprint switch function is enabled, the electronic device can execute the method steps in this embodiment.
  • the mobile phone may record user habit data when the user uses the mobile phone within the first preset time.
  • the user habit data mainly includes the scene of the user unlocking the mobile phone using any unlocking method and the data record of the unlocking state in the scene.
  • the scene of unlocking the mobile phone may include, for example, the scene of the user using the screen fingerprint to unlock the mobile phone, such Figure 4 shows a schematic diagram of the screen fingerprint unlocking interface.
  • the scenario of unlocking the mobile phone may include at least one of information records such as environment status, user status, device status, and time interval (time information).
  • the environment status can include the user's location information, such as location information indicating that the user is at home, at the company, or outdoors; the user status can include sleep, walking, running, or other activity status; the device status can include the flat state, the user's hand The state of holding and the state of putting in the pocket, etc.; the time interval can be the time period when the user is in an environmental state, user state, and device state.
  • the state of the fingerprint switch may include an on state or an off state.
  • Each parameter in the above-mentioned user habit data can be expressed in binary form. For example, when the unlock state is "Yes”, it is recorded as 1, the unlock state is "No", and it is recorded as 0; when the environment state is home, it is recorded as 00, and the environment When the status is company, it is recorded as 01, and when the environment is outdoor, it is recorded as 10.
  • User status and device status can be expressed in a similar way.
  • the unlocking state may also be indicated by the unlocking frequency in the recording time interval.
  • the unlock frequency may be used to indicate the frequency at which the user unlocks the electronic device in a scenario.
  • a preset threshold of the unlocking frequency can be set in advance, and it is recorded whether the unlocking frequency is higher than the preset threshold. That is, the preset threshold may be set by the electronic device according to the frequency of unlocking in different scenarios of the user, and may be used to determine whether the unlocking frequency exceeds the threshold that needs to be set to the state where the fingerprint switch is turned on.
  • it can be set as follows: when the frequency of the user unlocking the electronic device in the first scene is greater than or equal to the preset threshold within the first preset time, it is determined that the state of the fingerprint switch in the first scene is the on state; Assuming that the frequency of the user unlocking the electronic device in the first scene is less than the preset threshold within the time, it is determined that the state of the fingerprint switch in the first scene is the off state.
  • the mobile phone when the user turns on the on-screen fingerprint switch function, the mobile phone starts to record the unlocked status of the user in each of the above scenarios for a period of time. That is, in the above various scenarios, the mobile phone can detect that the user is in a certain time interval. Whether the mobile phone is unlocked in different usage scenarios, and the unlocking frequency in different scenarios is recorded.
  • the unlocking frequency can be the number of times the mobile phone is unlocked with the screen fingerprint per hour (times/h).
  • the mobile phone detects and records the user fingerprint unlocking scene and unlocking state (the unlocking frequency and whether it is higher than the preset threshold) during a period of time, as shown in Table 1:
  • the mobile phone can obtain the environmental status, user status, and device status of the mobile phone according to various sensors in the sensor module 180 in FIG. 1A.
  • the environmental status of the mobile phone can be obtained through the GPS positioning of the mobile phone, or determined by the connected network status. For example, it can be determined based on GPS positioning that the environmental state of the user's mobile phone during the day is the user's company, and the environmental state of the mobile phone can be determined to be at the user's home based on the home WIFI that the mobile phone is frequently connected to.
  • the device status and user status can be detected by the acceleration sensor of the mobile phone.
  • the gravity of the mobile phone can be calculated And direction to determine whether the device state is flat or hand-held, and whether the device state has changed, and the acceleration sensor can also be used to determine whether the user's state is running or walking.
  • the ambient light sensor of the mobile phone can also be used to detect the environmental status, such as determining whether the user is indoors or outdoors based on the perceived brightness of the ambient light, or detecting whether the device status is based on the cooperation of the ambient light sensor and the proximity light sensor. In the pocket.
  • the mobile phone can determine whether the user status is active or sleeping according to the current time interval and device status. For example, when the mobile phone detects that the current time is 02:00, the acceleration sensor detects that the device status is flat. And when the ambient light sensor detects that the current ambient light brightness is lower than a certain threshold, it can determine that the current user state is the sleep state.
  • the user status can also include cycling, driving, taking high-speed rail, airplanes, etc.
  • the environmental status can also include gyms, tourist attractions, indoor or outdoor, etc., which are not specifically limited in this application.
  • the above method can instruct the system to instruct the screen fingerprint unlocking module of the application layer through commands, call the content provider of the application framework layer, and store the user habit data obtained by the hardware device.
  • the mobile phone can match the user with a suitable user model according to the user's usage habits.
  • the user model may be the model that is closest to the user's usage habits among the user models of multiple fingerprint switches preset in the mobile phone.
  • the electronic device can also generate a user model based on the user's usage habit data.
  • the user model is a model of mobile phone management fingerprint switch, including the rule setting of screen fingerprint turning on or off. Specifically, it may include multiple scenes and the status indication of the fingerprint switch in each scene. The status indication is used to indicate that the fingerprint switch is on or off. Disabled. That is, the mobile phone can set the screen fingerprint on and off according to the scene in the user model. For example, the user model includes that the fingerprint switch is turned off in the sleep state. When the mobile phone detects that the current time is 02:00 and the device status is flat, the mobile phone is set to turn off the fingerprint switch, and the fingerprint switch is turned off. When the user clicks on the fingerprint unlocking area of the screen, the phone does not respond.
  • the user model includes the fingerprint switch turned on when the user is holding the phone, and the mobile phone detects that the device status changes to the user holding the phone, and the fingerprint switch is set to the on state, and the user taps the fingerprint unlocking area on the screen to trigger The phone performs fingerprint unlock verification.
  • the generation of multiple preset user models can be obtained through big data statistics learning for mobile phones or cloud devices that provide cloud services. Specifically, by acquiring the record data of a large amount of users unlocking their mobile phones, using learning algorithms on the large amounts of data, clustering out various scenarios where users use screen fingerprints to unlock, and generating users whose fingerprint switches are turned on or off in various scenarios model.
  • the learning algorithm for generating the user model of the fingerprint switch may include a decision tree algorithm.
  • Decision tree algorithm is a method of approximating the value of a discrete function. It is a typical classification method. It needs to process data first, use induction algorithm to generate readable rules and decision tree, and then use decision to analyze new data.
  • the specific process of generating a user model according to the decision tree algorithm may include determining a plurality of judgment conditions arranged in order according to the induction algorithm, and each judgment condition has a corresponding judgment result; the judgment conditions include the above-mentioned user habits data, and the judgment result is Under user habit data, turn off or turn on the fingerprint switch.
  • the decision tree it is possible to process the data recorded by the user in various scenarios where the screen fingerprint is used to unlock, and use the induction algorithm to generate the decision tree rules, specifically the judgment conditions and corresponding
  • the decision tree rules specifically the judgment conditions and corresponding
  • Table 1 it can be summarized as the following rules: in sleep state, whether to unlock is no; in running state, whether to unlock is no; in walking and holding state, whether to unlock is yes, etc. .
  • the decision tree is generated based on the user habit data in Table 1 above, it can be as shown in Figure 5.
  • the decision tree is stored in the memory as a user model, and the mobile phone can judge the newly acquired user habit data according to the user model, that is, set the on and off states of the fingerprint switch according to the above judgment rules.
  • the learning algorithm for generating the user model of the fingerprint switch can also use Support Vector Machine (SVM) and deep learning algorithms. This application does not specifically limit this.
  • SVM Support Vector Machine
  • Support vector machine is a kind of generalized linear classifier that classifies data binary in a supervised learning manner, and its decision boundary is the maximum margin hyperplane for solving learning samples.
  • Deep learning algorithm is one of the technology and research fields of machine learning.
  • Artificial neural networks Artificial Neural Networks, ANNs
  • ANN Artificial Neural Networks
  • representation learning Representation learning
  • the mobile phone can select a user model matching the user from multiple user models according to the state of the fingerprint switch in different scenarios in the user habit data and the preset user model comparison.
  • the user model that matches the user according to the calculation of the user model with the highest degree of match between the scenes and status indications of the multiple user models and the status of the fingerprint switch in different scenes.
  • the matching degree is 1
  • the user habit data the user environment When the state is at home and the device state is flat, the fingerprint switch state is recorded as on, and in this state, the switch state in the user model is off, and the matching degree is 0.
  • the matching degree between all fingerprint unlocking scenes in the user model and the corresponding user habit data is calculated and summed.
  • the user model with the largest matching degree is selected as the matching user model.
  • there are other matching calculation methods and the specific calculation methods are not limited in the embodiments of the present application.
  • the user can also make independent selection settings according to the user model of the fingerprint switch preset in the mobile phone, or customize the settings.
  • the mobile phone can prompt the user to set the fingerprint switch, can display the setting rules of the preset user model, and the power consumption of the model; it can also support the user to customize the user model, that is, the user can customize which usage scenarios. Set to turn on screen fingerprint; for other usage scenarios, set to turn off screen fingerprint.
  • the above method can unlock the module through the screen fingerprint of the application layer, call the relevant calculation functions of the application framework layer and the system library, and transfer the acquired user habits data to the content provider
  • the fingerprint unlocking scene in the provided pre-stored user model is matched and calculated to obtain the user model.
  • the mobile phone can set the fingerprint switch on and off according to the user model and current usage status. Specifically, when the user's current scene matches the second scene in the user model, the status indicator of the fingerprint switch in the second scene is used to indicate that the fingerprint switch is on, then the fingerprint switch is turned on; when the user is currently The scene matches the second scene in the user model. The status indication of the fingerprint switch in the second scene is used to indicate that the fingerprint switch is in the off state, and the fingerprint switch is turned off.
  • the specific matching setting process can be: the mobile phone follows the sequence of the judgment conditions in the user model generated above, and the user habit data when the user uses the electronic device conforms to The first judgment condition, the electronic device executes the judgment result corresponding to the first judgment condition; when the user habit data during the use of the electronic device does not meet the first judgment condition, the electronic device continues to judge whether the user habit data meets the next judgment condition.
  • the currently matched user model is shown in Figure 5.
  • the mobile phone executes the above-mentioned first judgment condition to judge whether the user's state is a sleep state, if yes, turn off the fingerprint switch; if not, execute the second judgment condition to judge whether the user's state is In the running state, if yes, turn off the fingerprint switch; if not, execute the third judgment condition to judge whether the mobile phone is in the holding state; if yes, turn on the fingerprint switch.
  • the embodiment of the present application can be implemented by improving the system setting application at the application layer of the software structure in FIG. 1B, expanding the original screen fingerprint unlocking module, or adding a fingerprint unlocking judgment module.
  • Setting the on and off of the fingerprint switch can be specifically implemented by the system by sending a control command to the screen fingerprint unlocking module of the software application layer, and through the relevant driver of the driver layer, to realize the control of the opening and closing of related hardware devices.
  • the opening and closing of the fingerprint switch mainly includes the opening and closing of the touch sensor and the proximity light sensor.
  • the proximity light sensor can detect objects near the mobile phone, and the touch sensor can detect When the touch operation acts on it, the system triggers the fingerprint sensor to detect the input fingerprint data.
  • the touch sensor and the proximity light sensor are both turned off, the user's finger presses the fingerprint unlocking area of the screen, and the mobile phone does not detect the unlocking operation.
  • the on state of the fingerprint switch means that the user can directly touch the fingerprint unlocking area to perform fingerprint unlocking verification operations, where the fingerprint unlocking area can be clearly identified, or it can be a state where there is no identification in the fingerprint unlocking area of the screen. Fingers can touch any area of the screen to unlock.
  • Different electronic devices have different settings, which are not specifically limited in the embodiment of the present application.
  • the fingerprint switch management method provided by the embodiment of the present application can intelligently match different user models according to the usage habits of different users, thereby generating different fingerprint switch settings. For example, after the same mobile phone is used by different users for a certain period of time, the fingerprint switch settings will have different results in the same usage scenario. For example, user A uses mobile phone A in a certain scene, such as running and the device is in the holding state, and never uses the screen fingerprint to unlock, and the fingerprint switch state is off. User B uses mobile phone B to often use the screen fingerprint to unlock in this scenario. After a period of time, mobile phones A and B of the same model have different fingerprint switch states in this scenario.
  • the phone records every time the user unlocks the phone, including the scene where the user uses the screen fingerprint to unlock the phone successfully, the user uses the screen fingerprint to unlock the phone failed, and the user presses the power button to turn on the display, and then uses the screen fingerprint to unlock or other unlocking methods Open the usage scenario of the phone.
  • the mobile phone can be compared with the scene of multiple users unlocking the mobile phone in the user model according to the recorded scene of the user unlocking the mobile phone, and the user model of the fingerprint unlocking switch can be updated according to the change in the frequency of the user unlocking the mobile phone. , That is, update the settings of the fingerprint switch corresponding to the user usage scene in the user model.
  • it may be: when the frequency of the user unlocking the electronic device in the third scene is greater than or equal to the preset threshold within the second preset time, and the state in the third scene in the user model indicates the closed state, then the user model The status indication in the third scene is updated to the on state; when the frequency of the user unlocking the electronic device in the third scene is less than the preset threshold within the second preset time, the status indication in the third scene in the user model is the on state , The status indication in the third scene in the user model is updated to the closed state.
  • the second preset time may be the same as the first preset time or different, for example, less than the first preset time, for example, as long as the frequency changes from 0 to 1, the model is updated, or the frequency is greater than the preset threshold. Update the user model.
  • the embodiments of the present application do not specifically limit this.
  • the rules for the fingerprint switch of a user model of a mobile phone include: turning off the fingerprint switch when the user status is running and the device status is holding, then when the mobile phone records that the user is running and the device status is holding Next, try to unlock the screen fingerprint data, the mobile phone will update the fingerprint switch of the scene in the user model from the off state to the on state according to the record. Next time, when the user is running and the device is in the holding state, the screen fingerprint can be successfully used to unlock the phone.
  • the frequency of the preset threshold is once, of course, the user model can be updated only when the frequency reaches multiple times.
  • the update setting of the user model is performed according to the frequency of the user using the screen fingerprint to unlock the scene.
  • the mobile phone sets the user status in the user model as running, and the fingerprint switch is set to on when the device status is in the holding state. After a period of user habit data recording, it is found that the user uses the screen fingerprint to unlock the phone in this scenario. If it is very low and lower than a preset threshold, the mobile phone will update the setting of the scene to the off state.
  • the fingerprint switch management method can intelligently update the user model according to the change of the user's usage habits, thereby updating the settings of the fingerprint switch. For example, the user has never used the screen fingerprint to unlock the mobile phone when the mobile phone A is running and the device is in the holding state. One time, when the user uses the phone A, in the running state and the device state is in the holding state, press the power button to light up the phone screen, use fingerprint verification to unlock the phone, then observe the running state in the same usage scenario next time And the status of the fingerprint switch is updated to on when the device status is the holding status.
  • the embodiment of this application uses clustering and a certain learning algorithm to generate a user model for unlocking using screen fingerprints based on the use scene of the user using screen fingerprint unlocking, and can adaptively update the user model according to the usage habits of unused users, so that The mobile phone can intelligently set the on and off of the screen fingerprint unlocking according to the usage habits of different users through this user model, so as to realize the intelligent opening of the screen fingerprint unlocking, and can solve the problem of high power consumption and improve the user experience.
  • an electronic device which may include a memory and one or more processors, and the memory and the processor are coupled.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the processor executes the computer instructions, the electronic device can execute various functions or steps in the foregoing method embodiments.
  • the structure of the electronic device can refer to the structure of the electronic device 100 shown in FIG. 1A.
  • the chip system includes at least one processor 601 and at least one interface circuit 602.
  • the processor 601 and the interface circuit 602 may be interconnected by wires.
  • the interface circuit 602 may be used to receive signals from other devices (such as the memory of an electronic device).
  • the interface circuit 602 may be used to send signals to other devices (for example, the processor 601).
  • the interface circuit 602 can read an instruction stored in the memory, and send the instruction to the processor 601.
  • the electronic device can be made to execute various functions or steps executed by the electronic device in the foregoing embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in the embodiment of the present application.
  • the embodiments of the present application also provide a computer storage medium, the computer storage medium includes computer instructions, when the computer instructions run on the above-mentioned electronic device, the electronic device is caused to execute each function or step performed by the mobile phone in the above-mentioned method embodiment .
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute each function or step performed by the mobile phone in the above method embodiment.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium.
  • a device which may be a single-chip microcomputer, a chip, etc.
  • a processor processor
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种指纹开关的管理方法及装置,解决了现有技术中屏幕指纹解锁的设置不合理、灵活性较差的问题。该方法包括:电子设备记录第一预设时间内用户在不同场景下解锁电子设备的频率;根据频率和预设阈值,确定不同场景下指纹开关的状态,指纹开关的状态包括开启状态或关闭状态;根据不同场景下指纹开关的状态获取用户模型,用户模型包括多个场景以及每个场景下指纹开关的状态指示,状态指示用于指示指纹开关处于开启状态或关闭状态;根据用户模型以及用户当前所处的场景,确定开启或关闭指纹开关。本申请实施例根据不同用户的不同使用习惯,智能地设置指纹开关状态。

Description

一种指纹开关的管理方法及装置
本申请要求在2019年7月4日提交中国国家知识产权局、申请号为201910600053.X的中国专利申请的优先权,发明名称为“一种指纹开关的管理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种指纹开关的管理方法及装置。
背景技术
目前,指纹解锁在智能终端设备上的应用日益普及,随着智能终端设备的设计,尤其是手机的屏幕设计趋向全面屏或更窄的边框,可以将指纹解锁模块从手机显示屏下方的按键上转移到手机显示屏上,可称之为屏幕指纹解锁方式。在屏幕指纹解锁方式下,为了及时响应用户的指纹解锁的操作需求,需要常开智能终端设备的触摸屏(Touch Panel,TP)和接近光传感器,以便用户只需通过手机屏幕就能轻松完成解锁,但是,常开这两个器件会造成大量的电量浪费。
现有技术在解决TP和接近光传感器常开造成的电量浪费问题,是通过人工建立规则,在通常用户不会使用屏幕指纹解锁的场景下,关闭TP和接近光传感器;而在用户使用屏幕指纹解锁频率较高的场景下,开启TP和接近光传感器,从而能在一定程度上解决大量电量浪费的问题。
但是,上述技术方案通过人工建立规则存在一定的主观性和大概率性,且不够灵活,即不同用户在相同使用场景下可能有着不同的使用习惯。例如,晚上睡觉时间大部分的用户都不会使用手机,但有一部分用户晚上会有经常使用手机的习惯,如果统一将这类场景设置为关闭TP和接近光传感器,用户体验较差。
发明内容
本申请提供一种指纹开关的管理方法及装置,解决了现有技术中屏幕指纹解锁的设置不合理、灵活性较差的问题。
为达到上述目的,本申请采用如下技术方案:
第一方面,提供一种指纹开关的管理方法,应用于电子设备,该方法包括:记录第一预设时间内用户在不同场景下解锁电子设备的频率;根据频率和预设阈值,确定不同场景下指纹开关的状态,指纹开关的状态包括开启状态或关闭状态;根据不同场景下指纹开关的状态获取用户模型,用户模型包括多个场景以及每个场景下指纹开关的状态指示,状态指示用于指示指纹开关处于开启状态或关闭状态;根据用户模型以及用户当前所处的场景,确定开启或关闭指纹开关。
本申请实施例中,一段时间内用户在不同场景下解锁电子设备的频率可以认为是用户解锁电子设备的使用习惯数据,电子设备可以根据用户使用电子设备时进行解锁的使用习惯数据,智能地为用户匹配指纹开关的模型,该模型可以使得电子设备可以识别到用户的场景时,可以根据该模型中该场景下的状态指示开启或关闭指纹开关,使得指纹开关的状态更贴近用户的习惯,从而解决了现有技术的设置不合理、灵活性较差的问题,提升用户体验。
在一种可能的设计方式中,根据频率和预设阈值,确定不同场景下指纹开关的状态包括:当第一预设时间内,用户在第一场景下解锁电子设备的频率大于或等于预设阈值,则确定第一场景下指纹开关的状态为开启状态;当第一预设时间内,用户在第一场景下解锁电子设备的频率小于预设阈值,则确定第一场景下指纹开关的状态为关闭状态。上述可能的实现方式中,电子设备可以根据用户的不同使用习惯下的解锁频率,根据与预设阈值的比较,确定该使用习惯下的指纹开关设置,从而能够根据用户使用习惯数据进行用户模型的匹配,能够提高指纹开关设置的灵活性和准确性。
在一种可能的设计方式中,根据不同场景下指纹开关的状态获取用户模型包括:根据不同场景下指纹开关的状态,从多个用户模型中为用户选取与用户匹配的用户模型;用户模型为:多个用户模型中的场景和状态指示与不同场景下指纹开关的状态匹配度最高的用户模型。上述可能的实现方式中,电子设备根据不用的用户习惯匹配用户模型,选择用户模型中与用户使用场景匹配度最高的作为用户模型,从而能够提高指纹开关设置更贴合用户的使用习惯的准确性。
在一种可能的设计方式中,根据用户模型以及用户当前所处的场景,确定用户当前所处的场景下开启或关闭指纹开关包括:当用户当前所处的场景与用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于开启状态,则开启指纹开关;当用户当前所处的场景与第一用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于关闭状态,则关闭指纹开关。上述可能的实现方式中,电子设备可以根据用户模型中的多个场景,判断用户当前所处的场景与多个场景中的第二场景相同时,可以将指纹开关的状态设置为第二场景下的状态,从而实现智能化地设置指纹开关。
在一种可能的设计方式中,当在第二预设时间内,用户在第三场景下解锁电子设备的频率大于或等于预设阈值,用户模型中第三场景下的状态指示为关闭状态,则将用户模型中第三场景下的状态指示更新为开启状态;当在第二预设时间内,用户在第三场景下解锁电子设备的频率小于预设阈值,用户模型中第三场景下的状态指示为开启状态,则将用户模型中第三场景下的状态指示更新为关闭状态。上述可能的实现方式中,电子设备可以根据用户习惯数据的更新而更新指纹开关的设置,从而提高指纹开关设置的灵活性和准确性。
在一种可能的设计方式中,该方法还包括:场景包括用户使用电子设备时的环境状态、用户状态、设备状态以及时间区间中的至少一个。上述可能的实现方式中,电子设备可以根据用户使用屏幕指纹的各种不同场景来进行匹配设置,从而提高指纹开关设置的灵活性和准确性。
在一种可能的设计方式中,该方法还包括:当用户模型中的第四场景下的状态指示为关闭状态,且接收到用户对电子设备开机键的按压操作,则触发指纹开关处于开启状态,接收用户对电子设备的指纹解锁操作。上述可能的实现方式中,电子设备的指纹开关状态设置与用户的当前使用不符,则用户可以按压电子设备的开机键进行解锁,从而提高指纹开关解锁电子设备的灵活性。
第二方面,提供一种电子设备,该电子设备包括:一种电子设备,其特征在于,电子设备包括处理器,以及与处理器连接的存储器,存储器用于存储指令,当指令被处理器执行时,使得电子设备用于执行:记录第一预设时间内用户在不同场景下解锁电子设备的频率;根据频率和预设阈值,确定不同场景下指纹开关的状态,指纹开关的状态包括开启状态或关闭状态;根据不同场景下指纹开关的状态获取用户模型,用户模型包括多个场景以及每个场景下指纹开关的状态指示,状态指示用于指示指纹开关处于开启状 态或关闭状态;根据用户模型以及用户当前所处的场景,确定开启或关闭指纹开关。
在一种可能的设计方式中,电子设备具体用于执行:当第一预设时间内,用户在第一场景下解锁电子设备的频率大于或等于预设阈值,则确定第一场景下指纹开关的状态为开启状态;当第一预设时间内,用户在第一场景下解锁电子设备的频率小于预设阈值,则确定第一场景下指纹开关的状态为关闭状态。
在一种可能的设计方式中,电子设备具体用于执行:根据不同场景下指纹开关的状态,从多个用户模型中为用户选取与用户匹配的用户模型;用户模型为:多个用户模型中的场景和状态指示与不同场景下指纹开关的状态匹配度最高的用户模型。
在一种可能的设计方式中,电子设备具体用于执行:当用户当前所处的场景与用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于开启状态,则开启指纹开关;当用户当前所处的场景与用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于关闭状态,则关闭指纹开关。
在一种可能的设计方式中,电子设备还用于执行:当在第二预设时间内,用户在第三场景下解锁电子设备的频率大于或等于预设阈值,用户模型中第三场景下的状态指示为关闭状态,则将用户模型中第三场景下的状态指示更新为开启状态;当在第二预设时间内,用户在第三场景下解锁电子设备的频率小于预设阈值,用户模型中第三场景下的状态指示为开启状态,则将用户模型中第三场景下的状态指示更新为关闭状态。
在一种可能的设计方式中,场景包括用户使用电子设备时的环境状态、用户状态、设备状态以及时间区间中的至少一个。
在一种可能的设计方式中,当用户模型中的第四场景下的状态指示为关闭状态,则接收到用户对电子设备的开机键的按压操作,则触发指纹开关处于开启状态,接收用户对电子设备的指纹解锁操作。
第三方面,提供一种芯片系统,芯片系统应用于电子设备;芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从电子设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,电子设备执行第一方面及其任一种可能的设计方式的方法。
第四方面,提供一种可读存储介质,其特征在于,可读存储介质中存储有指令,当可读存储介质在电子设备上运行时,使得电子设备执行第一方面及其任一种可能的设计方式的方法。
第五方面,提供一种计算机程序产品,其特征在于,当计算机程序产品在计算机上运行时,使得计算机执行第一方面及其任一种可能的设计方式的方法。
可以理解地,上述提供的任一种指纹开关管理的电子设备、系统、可读存储介质和计算机程序产品,均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1A为本申请实施例提供的电子设备的硬件结构图;
图1B为本申请实施例提供的电子设备的软件结构图;
图2为本申请实施例提供的一种指纹开关的管理方法的数据处理结构图;
图3为本申请实施例提供的一种指纹开关的管理方法的流程示意图;
图4为本申请实施例提供的一种屏幕指纹解锁的界面示意图;
图5为本申请实施例提供的一种生成指纹开关管理的用户模型的决策树模型;
图6为本申请实施例提供的一种指纹开关的管理的电子设备结构示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在介绍本申请的实施例之前,首先对涉及到的技术做如下介绍:
解锁:解除设备的锁定状态。本申请的实施例中,解锁可以指为防止误操作电子设备,而进入锁屏状态,通过一定的方式对电子设备成功解锁后,才可以对电子设备进行操作。电子设备可能的解锁方式包括:密码解锁、人脸识别解锁、绘制图案解锁和指纹解锁等。
指纹解锁:是一种根据用户的指纹数据识别用户身份的解锁方式。首次使用,指纹解锁程序会对用户的指纹数据进行采样录入,需要解锁时,只需要根据扫描到的当前指纹数据与记录的指纹数据进行扫描比对,比对成功时解锁屏幕。
屏幕指纹:是一种屏幕下隐藏式指纹解锁的设计,用户的手指接触到屏幕指定区域时,可以实现对电子设备的屏幕解锁,也称为屏下指纹。
触摸屏:又称为“触控屏”、“触控面板”,是一种可接收触头等输入讯号的感应式液晶显示装置,包括触摸传感器,当触摸传感器接收到屏幕上的触摸操作时,触摸屏的触觉反馈系统可根据预先编程的程式驱动各种连结装置,可用以取代机械式的按钮面板,并借由液晶显示画面制造出生动的影音效果。
接近光传感器:是一种利用红外线反射光来感知物体接近能力的器件,可以包括发光二极管(Light Emitting Diode,LED)和光检测器,例如发光二极管可以是红外发光二极管,光检测器可以为光电二极管时,电子设备通过发光二极管向外发射红外光,使用光电二极管检测来自附近物体的红外反射光,当检测到充分的反射光时,可以确定附近有物体;否则可以确定附近没有物体。
本申请实施例提供一种指纹开关的管理方法,该方法可以应用于电子设备的指纹解锁使用过程中。其中,通过该方法,解决了现有技术中屏幕指纹解锁开关的设置不合理、灵活性较差的问题,能够智能地开启屏幕指纹解锁模块,即智能地管理触摸屏和接近光传感器的开启和关闭,由此改善造成的功耗浪费的问题。屏幕指纹解锁模块也可以称为指纹开关。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、穿戴型电子设备、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等包括指纹解锁的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
下面将结合附图对本申请实施例的实施方式进行详细描述。请参考图1A,为本申请实施例提供的一种电子设备100的结构示意图。如图1A所示,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D, 传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
其中,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L和骨传导传感器180M等传感器。
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充 电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。
移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。该显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。
摄像头193用于捕获静态图像或视频。
视频编解码器用于对数字视频压缩或解压缩。NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备 100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,内部存储器121可以包括存储程序区和存储数据区。
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光检测器可以为光电二极管,发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外 光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。在本申请实施例中,电子设备100可以通过将指纹传感器180H设置在显示屏194上的某一块区域,用户接收用户输入的指纹信息,实现屏幕指纹解锁的功能。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
本申请实施例中,电子设备100可以通过触摸传感器180K检测到用户在触摸屏输入的触摸操作,并采集该触摸操作在触摸屏上的触控位置,触控面积,触控方向,以及触控时间等中的一项或多项;电子设备100还可以通过触摸传感器180K和压力传感器180A结合起来,确定触摸操作在触摸屏的触控位置。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图1B是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图1B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息和系统设置等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图1B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
以下实施例中的方法均可以在具有上述硬件结构和软件结构的电子设备100中实现。以下实施例中以上述电子设备100是手机为例,对本申请实施例的方法进行说明。
本申请实施例提供一种指纹开关的管理方法,如图2所示,电子设备根据记录的用户在不同场景下解锁电子设备的数据为用户匹配用户模型,从而可以根据用户当前所处的场景和用户模型中的指纹开关设置,确定开启或关闭指纹开关。其整体的数据处理结构可以 为如图2所示,包括数据记录和预处理,匹配用户模型,更新用户模型这几个处理过程。其中,数据记录和预处理和包括记录用户在一段时间内的使用电子设备时的而用户状态、设备状态、环境状态和时间信息,这些状态和信息可以构成用户解锁状态,从而根据用户解锁状态从预置模型中为用户匹配用户模型。当匹配到用户模型后,可以根据用户当前所处的各种状态进行用户状态匹配,根据匹配到的用户状态下的解锁设置,对电子设备的指纹开关进行相应的开启或关闭的设置。在电子设备为用户进行指纹解锁设置的使用过程中,电子设备持续记录用户的解锁数据,根据用户在不同的场景选择下解锁频率与预设频率阈值的对比,根据需要进行动态地更新用户模型,从而实现越用越准确的指纹解锁设置。
如图3所示,该方法可以包括301-304:
该方法可以包括301-304:
301:电子设备记录第一预设时间内用户在不同场景下解锁电子设备的频率;根据该频率和预设阈值,确定不同场景下指纹开关的状态。
其中,第一预设时间为用户在录入指纹后开始使用手机的一段时间,例如可以录入指纹后的三天,或者一周。也可以是用户在录入指纹,并开启屏幕指纹开关功能后的一段时间,当屏幕指纹开关功能启用后,电子设备可以执行本实施例中的方法步骤。
具体地,手机可以记录第一预设时间内用户使用手机时的用户习惯数据。其中,用户习惯数据主要包括用户使用任一解锁的方式解锁手机的场景和场景下解锁状态的数据记录,本申请实施例中,解锁手机的场景例如可以包括用户使用屏幕指纹解锁手机的场景,如图4所示的屏幕指纹解锁的界面示意图。
其中,解锁手机的场景可以包括环境状态、用户状态、设备状态和时间区间(时间信息)等信息记录中的至少一个。例如,环境状态可以包括用户的位置信息,例如位置信息指示用户在家中、在公司或是在户外;用户状态可以包括睡眠、走路、跑步或者其他活动状态;设备状态可以包括平放状态、用户手握状态以及放在口袋的状态等;时间区间可以是用户处于一种环境状态、用户状态和设备状态下的时间段。上述指纹开关的状态可以包括开启状态或关闭状态。
上述用户习惯数据中的每个参数可以以二进制的方式表示,例如解锁状态为“是”,记为1,解锁状态为“否”,记为0;环境状态为家时,记为00,环境状态为公司时,记为01,环境状态为户外时,记为10。用户状态和设备状态可以采用类似的表示方式。
在一些可能的实施例中,还可以通过记录时间区间内的解锁频率表示解锁状态。该解锁频率可以用于表示一种场景下,用户解锁电子设备的频率。本申请实施例中,可以预先设置解锁频率的预设阈值,记录解锁频率是否高于该预设阈值。即预设阈值可以为电子设备根据用户不同场景下解锁的频率而设置的,可以用于判断解锁频率的高低是否超过需要设置为指纹开关开启的状态的阈值。
具体的可以设置为:当第一预设时间内,用户在第一场景下解锁电子设备的频率大于或等于预设阈值,则确定第一场景下指纹开关的状态为开启状态;当第一预设时间内,用户在所述第一场景下解锁电子设备的频率小于预设阈值,则确定第一场景下指纹开关的状态为关闭状态。
示例性的,当用户开启了屏幕指纹开关功能,手机开始记录一段时间内用户在上述的各个场景下的解锁状态,即在上述各种场景下,手机可以检测在一定的时间区间内,用户在不同的使用场景下是否有解锁手机,且记录不同场景下的解锁频率,该解锁频率 可以为每小时使用屏幕指纹解锁手机的次数(次/h)。例如,用户在手机的检测时间区间内,某一场景下没有使用屏幕指纹验证的方式解锁手机,将该场景的解锁频率记为0,低于预设阈值2次/h,则该场景下指纹开关的状态为关闭状态;当用户在某一场景下,手机检测时间区间12:00-13:00内,检测到手指按压屏幕指纹解锁区域1次,按压开机键以便点亮屏幕,进行屏幕指纹解锁1次,则手机记录该场景的解锁次数为2次/h,等于预设阈值2次/h,则该场景下指纹开关的状态为开启状态。例如,手机在一段时间内检测并记录的用户指纹解锁的场景和解锁状态(解锁频率和是否高于预设阈值)如表1所示:
表1
Figure PCTCN2020100167-appb-000001
进一步的,手机可以根据上述图1A中的传感器模块180中的各种传感器来获取手机的环境状态、用户状态和设备状态。
其中,按照一般用户每天的生活安排,用户需要上班、待在家和在户外。因此,手机所处的环境状态可以通过手机的GPS定位来获取,或者通过连接的网络状态来确定。例如,可以根据GPS定位确定用户手机白天长时间所处的环境状态为用户的公司,可以根据手机经常连接到的家庭WIFI确定手机的环境状态为在用户的家中等。
在一些实施例中,可以通过手机的加速度传感器来检测设备状态和用户状态,根据检测到的手机在各个方向(通常为三维空间的三个方向)上的加速度大小,可以计算出手机重力的大小和方向,以此确定出设备状态是平放状态还是手握,以及设备状态有没有改变,还可以利用加速度传感器确定出用户状态是跑步还是走路等。
在一些实施例中,还可以通过手机的环境光传感器来检测环境状态,如根据感知的环境光亮度确定用户处于室内还是室外,或者根据环境光传感器与接近光传感器的配合,检测设备状态是否为在口袋里。
在一些实施例中,手机可以根据当前时间区间和设备状态来判断用户状态是活动状态还是睡眠状态,例如,当手机检测到当前时间是02:00,加速度传感器检测到设备状态为平放状态,且环境光传感器检测到当前环境光亮度低于某一阈值时,可以判断当前用户状态为睡眠状态。
进一步的,用户状态还可以包括骑车、开车、乘坐高铁、飞机等,环境状态还可以包括健身房、旅游景点、室内或是室外等,本申请对此不做具体限定。
结合前述的电子设备的软件架构,上述方法可以为系统通过命令指示应用程序层的屏幕指纹解锁模块,调用应用程序框架层的内容提供器,对硬件设备获取到的用户习惯数据,进行存储。
302:根据不同场景下指纹开关的状态获取用户模型。
根据一段时间内记录的用户习惯数据,手机即可根据用户的使用习惯,为用户匹配适合的用户模型。其中,该用户模型可以为手机中预置的多个指纹开关的用户模型中,与用户使用习惯最接近的模型。电子设备也可以根据用户的使用习惯数据生成用户模型。
该用户模型为手机管理指纹开关的模型,包括屏幕指纹开启或者关闭的规则设置,具体可以包括多个场景以及每个场景下指纹开关的状态指示,该状态指示用于指示指纹开关处于开启状态或关闭状态。即手机可以根据该用户模型中的场景,设置屏幕指纹的开启和关闭。例如,该用户模型包括,睡眠状态关闭指纹开关,则当手机检测到当前时间是02:00,且设备状态为平放状态时,手机设置为将指纹开关关闭,则在该指纹开关关闭的状态下,用户点击屏幕指纹解锁区域,手机是没有响应的,用户解锁手机时需要先按下开机键以开启指纹开关,或者可以通过其他方式,例如输入验证密码解锁手机。再例如,该用户模型包括用户手握手机的状态下开启指纹开关,则手机检测到设备状态改变为用户手握手机时,将指纹开关设置为开启状态,则用户点击屏幕指纹解锁区域,可以触发手机进行指纹解锁的验证。
进一步的,预置的多个用户模型的生成可以为手机或者提供云服务的云端设备通过大数据统计学习得到的。具体可以为,通过获取海量的用户解锁手机的记录数据,对海量的数据利用学习算法,聚类出用户使用屏幕指纹解锁的各种场景,生成在各种场景下,指纹开关开启或者关闭的用户模型。其中,生成指纹开关的用户模型的学习算法可以包括决策树算法。
决策树算法是一种逼近离散函数值的方法,是一种典型的分类方法,需要首先对数据进行处理,利用归纳算法生成可读的规则和决策树,然后使用决策对新数据进行分析。
根据决策树算法生成用户模型的具体过程可以包括,根据归纳算法确定多个按顺序排列的判断条件,每一个判断条件有对应的判断结果;判断条件包括上述的用户习惯数据,判断结果为在该用户习惯数据下,关闭或开启指纹开关。
具体的,将决策树应用到本申请的实施例,就可以通过对用户在使用屏幕指纹解锁的各种场景下所记录的数据进行处理,利用归纳算法生成决策树规则,具体为判断条件和对应的判断结果,例如根据上述的表1中的数据,可以归纳为如下规则:睡眠状态下,是否解锁为否;跑步状态下,是否解锁为否;走路且手握状态下,是否解锁为是等。
如果根据上述表1中的用户习惯数据生成决策树,可以如图5所示。先判断用户状态是否为睡眠状态,如果是,则关闭指纹开关,如果否,则判断用户状态是否为跑步状态,如果是,则关闭指纹开关,如果否,则判断设备状态是否为手握状态,如果是,开启指纹开关,如果否,则关闭指纹开关等。
然后,将该决策树作为用户模型存储在存储器中,手机可以根据该用户模型对新获取的用户习惯数据进行判断,也就是根据上述判断规则,设置指纹开关的开启和关闭状态。
进一步的,生成指纹开关的用户模型的学习算法除了决策树算法,还可以利用支持向量机(Support Vector Machine,SVM)和深度学习算法等。本申请对此不作具体限定。
支持向量机是一类按监督学习方式对数据进行二元分类的广义线性分类器,其决策边界是对学习样本求解的最大边距超平面。
深度学习算法是机器学习的技术和研究领域之一,通过建立具有阶层结构的人工神经网络(Artifitial Neural Networks,ANNs),ANN能够对输入信息进行逐层提取和筛选, 因此深度学习具有表征学习(representation learning)能力,可以实现端到端的监督学习和非监督学习,从而在计算系统中实现人工智能。
在本申请的实施例中,手机可以根据用户习惯数据中不同场景下指纹开关的状态和预置的用户模型对比,从多个用户模型中为用户选取与用户匹配的用户模型。
具体可以根据计算多个用户模型中的场景和状态指示与不同场景下指纹开关的状态匹配度最高的用户模型,确定为用户匹配的用户模型。例如,用户习惯数据中,用户走路并手握的状态,指纹开关状态记录为开启,而该状态下,用户模型中的开关状态也为开启,则匹配度为1;用户习惯数据中,用户环境状态为在家,设备状态为平放时,指纹开关状态记录为开启,而该状态下,用户模型中的开关状态为关闭,则匹配度为0。计算出该用户模型中的所有指纹解锁场景与对应的用户习惯数据的匹配度并进行求和。选择匹配度的和最大的作为匹配的用户模型。除此之外,还有其他的匹配计算方式,本申请实施例对具体的计算方式不做限定。
在一些实施例中,用户也可以根据手机预置的指纹开关的用户模型进行自主选择设置,或者自定义设置。例如,手机可以提示用户进行指纹开关的设置,可以显示预置用户模型的设置规则,和该模型的耗电情况;也可以支持用户进行自定义设置用户模型,即用户自定义将哪些使用场景,设置为屏幕指纹开启;另一些使用场景,设置为屏幕指纹关闭等。
结合前述的电子设备的软件架构,上述方法可以为系统通过应用程序层的屏幕指纹解锁模块,调用应用程序框架层和系统库的相关的计算函数,将获取到的用户习惯数据与内容提供器中提供的预先存储的用户模型中的指纹解锁场景进行匹配计算,得到用户模型。
303:根据用户模型以及用户当前所处的场景,确定开启或关闭指纹开关。
手机可以根据用户模型和当前使用状态,设置指纹开关的开启和关闭。具体可以为,当用户当前所处的场景与用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于开启状态,则开启指纹开关;当用户当前所处的场景与用户模型中的第二场景匹配,第二场景下指纹开关的状态指示用于指示指纹开关处于关闭状态,则关闭指纹开关。
示例性的,如果用户模型是根据决策树算法生成的,具体匹配设置的过程可以为:手机按照上述生成的用户模型中的判断条件的排列顺序,当用户在使用电子设备时的用户习惯数据符合第一判断条件,则电子设备执行第一判断条件对应的判断结果;当用户在使用电子设备过程中的用户习惯数据不符合第一判断条件,则电子设备继续判断用户习惯数据是否符合下一判断条件。
例如,当前匹配到的用户模型如图5,手机执行上述的第一判断条件,判断用户状态是否为睡眠状态,如是,则关闭指纹开关;如否,则执行第二判断条件,判断用户状态是否为跑步状态,如是,则关闭指纹开关;如否,则执行第三判断条件,判断手机状态是否为手握状态,如是,则开启指纹开关。
需要说明的是,本申请实施例可以通过对上述图1B的软件结构应用程序层的系统设置应用程序进行改进,扩展原有的屏幕指纹解锁模块,或者增加一个指纹解锁的判断模块来实现。
设置指纹开关的开启和关闭,具体可以为系统通过向软件应用程序层的屏幕指纹解锁模块发送一个控制命令,通过驱动层的相关驱动,来实现相关的硬件装置的开启和关闭的控制。
具体的,指纹开关的开启和关闭,主要包括触摸传感器和接近光传感器的开启和关闭,当触摸传感器和接近光传感器都开启时,接近光传感器可以检测到手机附近有物体,而触摸传感器可以检测到作用于其上的触摸操作,从而系统触发指纹传感器检测输入的指纹数据。当触摸传感器和接近光传感器都关闭时,用户手指按压屏幕指纹解锁区域,手机并未检测到该解锁操作。
进一步的,指纹开关的开启状态是指用户可以直接触摸指纹解锁区域进行指纹解锁的验证操作,其中,指纹解锁区域可以有明显标识的状态,也可以是屏幕指纹解锁区域没有任何标识的状态,用户手指可以触摸屏幕任何区域进行解锁。不同电子设备的设置不同,本申请实施例对此不做具体限定。
本申请实施例提供的指纹开关的管理方法,可以根据不用用户的使用习惯,智能地匹配不同的用户模型,从而生成不同的指纹开关设置。例如,同样的手机给不同的用户使用一定时间之后,在同一个使用场景下,指纹开关设置有不同的结果。例如,用户A使用手机A在某一场景下,如跑步状态且设备状态为手握状态下,从不使用屏幕指纹解锁,其指纹开关状态为关闭。用户B使用手机B在该场景下经常使用屏幕指纹解锁,一段时间后,相同型号的手机A和B在该场景下,指纹开关的状态是不同的。
304:当检测到用户在某一场景下的解锁频率变化,则更新用户模型中该场景下的状态指示。
手机记录每一次用户解锁手机的场景,包括用户使用屏幕指纹解锁手机成功的场景,用户使用屏幕指纹解锁手机失败的场景,和用户按压电源键点亮显示屏后,使用屏幕指纹解锁或者其他解锁方式打开手机的使用场景。在一些实施例中,手机可以根据记录的用户解锁手机的场景,与用户模型中的多个用户解锁手机的场景进行对比,根据用户解锁手机场景的频率的变化,更新指纹解锁开关的该用户模型,也就是更新该用户模型中的用户使用场景对应的指纹开关的设置。
具体可以为:当在第二预设时间内,用户在第三场景下解锁电子设备的频率大于或等于预设阈值,用户模型中第三场景下的状态指示为关闭状态,则将用户模型中第三场景下的状态指示更新为开启状态;当在第二预设时间内,用户在第三场景下解锁电子设备的频率小于预设阈值,用户模型中第三场景下的状态指示为开启状态,则将用户模型中第三场景下的状态指示更新为关闭状态。
其中,第二预设时间可以与第一预设时间相同,也可以不同,例如小于第一预设时间,比如只要频率由0变为1,就更新模型,也可以是频率大于预设阈值再更新用户模型。本申请实施例对此不做具体限定。
示例性的,某手机的用户模型指纹开关的规则包括,用户状态为跑步状态且设备状态为手握状态下关闭指纹开关,则当手机记录到用户某一次在跑步状态且设备状态为手握状态下,尝试进行屏幕指纹解锁的数据,则手机根据该记录,将用户模型中的该场景的指纹开关由关闭状态更新为开启状态。下次当用户在跑步状态、设备状态为手握状态下,可以成功使用屏幕指纹解锁手机。这种情况下,预设阈值的频率为一次,当然也可以是频率达到多次时,才更新用户模型。
在一些实施例中,根据用户使用屏幕指纹解锁场景的频率高低,进行用户模型的更新设置。例如,手机将用户模型中的用户状态为跑步状态,且设备状态为手握状态下指纹开关设置为开启状态,经过一段时间的用户习惯数据记录,发现该场景下用户使用屏幕指纹解锁手机的频率很低,且低于一个预设的阈值,则手机将该场景的设置更新为关 闭状态。
本申请实施例提供的指纹开关的管理方法,可以根据用户使用习惯的改变,智能地更新用户模型,从而更新指纹开关的设置。例如,用户使用手机A在跑步状态且设备状态为手握状态下,从来未使用屏幕指纹进行手机解锁。某一次,该用户使用该手机A时,在跑步状态且设备状态为手握状态下,按电源键点亮手机屏幕,使用指纹验证解锁手机,则观察下一次在同样的使用场景下,跑步状态且设备状态为手握状态下指纹开关的状态更新为开启。
本申请实施例将用户使用屏幕指纹解锁的使用场景,经过聚类和一定的学习算法,生成使用屏幕指纹解锁的用户模型,并且能根据不用用户的使用习惯,自适应地更新该用户模型,使得手机可以通过该用户模型根据不同用户的使用习惯,智能地设置屏幕指纹解锁的开启和关闭,从而实现屏幕指纹解锁的智能开启,并且能解决耗电量大的问题,提升用户使用体验。
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:存储器和一个或多个处理器,该存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中的各个功能或者步骤。该电子设备的结构可以参考图1A所示的电子设备100的结构。
本申请实施例还提供一种芯片系统,如图6所示,该芯片系统包括至少一个处理器601和至少一个接口电路602。处理器601和接口电路602可通过线路互联。例如,接口电路602可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路602可用于向其它装置(例如处理器601)发送信号。示例性的,接口电路602可读取存储器中存储的指令,并将该指令发送给处理器601。当所述指令被处理器601执行时,可使得电子设备执行上述实施例中电子设备执行的各个功能或者步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案 的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (17)

  1. 一种指纹开关的管理方法,应用于电子设备,其特征在于,所述方法包括:
    记录第一预设时间内用户在不同场景下解锁所述电子设备的频率;
    根据所述频率和预设阈值,确定不同场景下所述指纹开关的状态,所述指纹开关的状态包括开启状态或关闭状态;
    根据所述不同场景下所述指纹开关的状态获取用户模型,用户模型包括多个场景以及每个场景下所述指纹开关的状态指示,所述状态指示用于指示所述指纹开关处于所述开启状态或所述关闭状态;
    根据所述用户模型以及用户当前所处的场景,确定开启或关闭所述指纹开关。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述频率和预设阈值,确定不同场景下所述指纹开关的状态包括:
    当所述第一预设时间内,所述用户在第一场景下解锁所述电子设备的频率大于或等于所述预设阈值,则确定所述第一场景下所述指纹开关的状态为所述开启状态;
    当所述第一预设时间内,所述用户在所述第一场景下解锁所述电子设备的频率小于所述预设阈值,则确定所述第一场景下所述指纹开关的状态为所述关闭状态。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述不同场景下所述指纹开关的状态获取用户模型包括:
    根据所述不同场景下所述指纹开关的状态,从多个用户模型中为所述用户选取与所述用户匹配的所述用户模型;
    所述用户模型为:所述多个用户模型中的场景和所述状态指示与所述不同场景下所述指纹开关的状态匹配度最高的用户模型。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述用户模型以及所述用户当前所处的场景,确定所述用户当前所处的场景下开启或关闭所述指纹开关包括:
    当所述用户当前所处的场景与所述用户模型中的第二场景匹配,所述第二场景下所述指纹开关的状态指示用于指示所述指纹开关处于所述开启状态,则开启所述指纹开关;
    当所述用户当前所处的场景与所述用户模型中的第二场景匹配,所述第二场景下所述指纹开关的状态指示用于指示所述指纹开关处于所述关闭状态,则关闭所述指纹开关。
  5. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    当在第二预设时间内,所述用户在第三场景下解锁所述电子设备的频率大于或等于所述预设阈值,所述用户模型中所述第三场景下的所述状态指示为关闭状态,则将所述用户模型中所述第三场景下的所述状态指示更新为所述开启状态;
    当在第二预设时间内,所述用户在第三场景下解锁所述电子设备的频率小于所述预设阈值,所述用户模型中所述第三场景下的所述状态指示为开启状态,则将所述用户模型中所述第三场景下的所述状态指示更新为所述关闭状态。
  6. 根据权利要求1所述的方法,其特征在于,所述场景包括所述用户使用所述电子设备时的环境状态、用户状态、设备状态以及时间区间中的至少一个。
  7. 根据权利要求1、2、5任一项所述的方法,其特征在于,当所述用户模型中的第四场景下的所述状态指示为所述关闭状态,且接收到所述用户对所述电子设备开机键的按压操作,则触发所述指纹开关处于所述开启状态,接收所述用户对所述电子设备的指纹解锁操作。
  8. 一种电子设备,其特征在于,所述电子设备包括处理器,以及与处理器连接的存储器,所述存储器用于存储指令,当所述指令被所述处理器执行时,使得所述电子设备用于执行:
    记录第一预设时间内用户在不同场景下解锁所述电子设备的频率;
    根据所述频率和预设阈值,确定不同场景下指纹开关的状态,所述指纹开关的状态包括开启状态或关闭状态;
    根据所述不同场景下所述指纹开关的状态获取用户模型,用户模型包括多个场景以及每个场景下所述指纹开关的状态指示,所述状态指示用于指示所述指纹开关处于所述开启状态或所述关闭状态;
    根据所述用户模型以及用户当前所处的场景,确定开启或关闭所述指纹开关。
  9. 根据权利要求8所述的电子设备,其特征在于,所述电子设备具体用于执行:
    当所述第一预设时间内,所述用户在第一场景下解锁所述电子设备的频率大于或等于所述预设阈值,则确定所述第一场景下所述指纹开关的状态为所述开启状态;
    当所述第一预设时间内,所述用户在所述第一场景下解锁所述电子设备的频率小于所述预设阈值,则确定所述第一场景下所述指纹开关的状态为所述关闭状态。
  10. 根据权利要求8或9所述的电子设备,其特征在于,所述电子设备具体用于执行:
    根据所述不同场景下所述指纹开关的状态,从多个用户模型中为所述用户选取与所述用户匹配的所述用户模型;
    所述用户模型为:所述多个用户模型中的场景和所述状态指示与所述不同场景下所述指纹开关的状态匹配度最高的用户模型。
  11. 根据权利要求8-10任一项所述的电子设备,其特征在于,所述电子设备具体用于执行:
    当所述用户当前所处的场景与所述用户模型中的第二场景匹配,所述第二场景下所述指纹开关的状态指示用于指示所述指纹开关处于所述开启状态,则开启所述指纹开关;
    当所述用户当前所处的场景与所述用户模型中的第二场景匹配,所述第二场景下所述指纹开关的状态指示用于指示所述指纹开关处于所述关闭状态,则关闭所述指纹开关。
  12. 根据权利要求9所述的电子设备,其特征在于,所述电子设备还用于执行:
    当在第二预设时间内,所述用户在第三场景下解锁所述电子设备的频率大于或等于所述预设阈值,所述用户模型中所述第三场景下的所述状态指示为关闭状态,则将所述用户模型中所述第三场景下的所述状态指示更新为所述开启状态;
    当在第二预设时间内,所述用户在第三场景下解锁所述电子设备的频率小于所述预设阈值,所述用户模型中所述第三场景下的所述状态指示为开启状态,则将所述用户模型中所述第三场景下的所述状态指示更新为所述关闭状态。
  13. 根据权利要求8所述的电子设备,其特征在于,所述场景包括所述用户使用所述电子设备时的环境状态、用户状态、设备状态以及时间区间中的至少一个。
  14. 根据权利要求8、9、12任一项所述的电子设备,其特征在于,当所述用户模型中的第四场景下的所述状态指示为所述关闭状态,则接收到所述用户对所述电子设备的开机键的按压操作,则触发所述指纹开关处于所述开启状态,接收所述用户对所述电子设备的指纹解锁操作。
  15. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包 括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-7中任一项所述的指纹开关的管理方法。
  16. 一种可读存储介质,其特征在于,所述可读存储介质中存储有指令,当所述可读存储介质在电子设备上运行时,使得所述电子设备执行权利要求1-7任一项所述的指纹开关的管理方法。
  17. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行权利要求1-7任一项所述的指纹开关的管理方法。
PCT/CN2020/100167 2019-07-04 2020-07-03 一种指纹开关的管理方法及装置 WO2021000943A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910600053.X 2019-07-04
CN201910600053.XA CN110493452A (zh) 2019-07-04 2019-07-04 一种指纹开关的管理方法及装置

Publications (1)

Publication Number Publication Date
WO2021000943A1 true WO2021000943A1 (zh) 2021-01-07

Family

ID=68546587

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100167 WO2021000943A1 (zh) 2019-07-04 2020-07-03 一种指纹开关的管理方法及装置

Country Status (2)

Country Link
CN (1) CN110493452A (zh)
WO (1) WO2021000943A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493452A (zh) * 2019-07-04 2019-11-22 华为技术有限公司 一种指纹开关的管理方法及装置
CN111800846A (zh) * 2020-06-22 2020-10-20 上海龙旗科技股份有限公司 通过识别不同场景省功耗的方法及系统
CN114610135B (zh) * 2020-12-03 2023-01-24 荣耀终端有限公司 指纹模块的电源管理方法、管理电路和电子设备
CN115442474B (zh) * 2021-06-02 2024-07-30 华为技术有限公司 信息保护方法、电子设备、计算机存储介质、计算机程序产品及芯片系统

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020782A (zh) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 一种指纹解锁控制方法、及移动终端
CN106022072A (zh) * 2016-06-03 2016-10-12 北京小米移动软件有限公司 实现指纹解锁的方法及装置、电子设备
CN106055953A (zh) * 2016-05-27 2016-10-26 广东欧珀移动通信有限公司 一种解锁控制方法及移动终端
CN106096356A (zh) * 2016-05-27 2016-11-09 广东欧珀移动通信有限公司 一种解锁控制方法及移动终端
CN108363915A (zh) * 2018-02-08 2018-08-03 广东欧珀移动通信有限公司 解锁方法、移动终端及计算机可读存储介质
CN108898046A (zh) * 2018-04-25 2018-11-27 努比亚技术有限公司 一种屏下指纹功耗控制方法、终端及计算机可读存储介质
CN109145735A (zh) * 2018-07-17 2019-01-04 努比亚技术有限公司 一种屏下指纹扫描方法、终端及计算机可读存储介质
CN110493452A (zh) * 2019-07-04 2019-11-22 华为技术有限公司 一种指纹开关的管理方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715178B (zh) * 2013-12-11 2020-04-03 深圳富泰宏精密工业有限公司 电子装置的解锁系统及方法
CN109523360B (zh) * 2018-11-15 2022-02-01 深圳和而泰数据资源与云技术有限公司 一种信息推荐方法及系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020782A (zh) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 一种指纹解锁控制方法、及移动终端
CN106055953A (zh) * 2016-05-27 2016-10-26 广东欧珀移动通信有限公司 一种解锁控制方法及移动终端
CN106096356A (zh) * 2016-05-27 2016-11-09 广东欧珀移动通信有限公司 一种解锁控制方法及移动终端
CN106022072A (zh) * 2016-06-03 2016-10-12 北京小米移动软件有限公司 实现指纹解锁的方法及装置、电子设备
CN108363915A (zh) * 2018-02-08 2018-08-03 广东欧珀移动通信有限公司 解锁方法、移动终端及计算机可读存储介质
CN108898046A (zh) * 2018-04-25 2018-11-27 努比亚技术有限公司 一种屏下指纹功耗控制方法、终端及计算机可读存储介质
CN109145735A (zh) * 2018-07-17 2019-01-04 努比亚技术有限公司 一种屏下指纹扫描方法、终端及计算机可读存储介质
CN110493452A (zh) * 2019-07-04 2019-11-22 华为技术有限公司 一种指纹开关的管理方法及装置

Also Published As

Publication number Publication date
CN110493452A (zh) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021000943A1 (zh) 一种指纹开关的管理方法及装置
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021082564A1 (zh) 一种操作提示的方法和电子设备
JP7397861B2 (ja) スタイラスペン検出方法、システムおよび関連装置
WO2021147396A1 (zh) 图标管理方法及智能终端
CN113994317A (zh) 一种用户界面布局方法及电子设备
EP4024839A1 (en) Operation method and electronic device
WO2021057571A1 (zh) 一种生物识别方法及电子设备
CN113805487B (zh) 控制指令的生成方法、装置、终端设备及可读存储介质
WO2021082815A1 (zh) 一种显示要素的显示方法和电子设备
CN112698756A (zh) 用户界面的显示方法及电子设备
WO2022194190A1 (zh) 调整触摸手势的识别参数的数值范围的方法和装置
CN113971271A (zh) 一种指纹解锁的方法、装置、终端以及存储介质
CN110058729B (zh) 调节触摸检测的灵敏度的方法和电子设备
CN111524528B (zh) 防录音检测的语音唤醒方法及装置
WO2024032124A1 (zh) 卷轴屏开合方法及相关产品
WO2023130931A1 (zh) 服务异常提醒方法、电子设备及存储介质
WO2023116411A1 (zh) 一种应用卡片的管理方法、电子设备和存储介质
WO2021129453A1 (zh) 一种截屏方法及相关设备
CN111475363B (zh) 卡死识别方法及电子设备
CN112712378A (zh) 一种服务社区模式的售后服务管理系统
WO2022143083A1 (zh) 应用程序搜索方法、设备及介质
EP4325356A1 (en) Desktop sharing method and electronic device
CN112770002B (zh) 一种心跳管控的方法和电子设备

Legal Events

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

Ref document number: 20834449

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20834449

Country of ref document: EP

Kind code of ref document: A1