Method for controlling unlocking, and electronic device
The gyroscope sensor is used to determine the posture of the smart device and turn on the anti-accidental touch mode, which solves the problem of accidentally touching and unlocking the device when it is not in use, and improves user experience and safety.
Patent Information
- Application Number
- PCT/CN2024/078269
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-02-23
- Publication Date
- 2024-10-03
AI Technical Summary
Existing technology is difficult to effectively prevent smart devices from being unlocked by accidental touch when not in use, causing unnecessary trouble for users.
The gyroscope sensor is used to determine the posture of the electronic device. When the device is in a non-use posture, the anti-accidental touch mode is turned on to limit or cancel the touch unlock function to avoid accidental touch unlocking.
It effectively avoids accidental unlocking of the device, improves the user experience, ensures that the device is not accidentally unlocked when not in use, and improves convenience and security.
Smart Images

Figure CN2024078269_03102024_PF_FP_ABST
Abstract
Description
Method and electronic device for controlling unlocking
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310370310.1 and application name “Method and electronic device for controlling unlocking”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] Embodiments of the present application relate to the field of unlocking a terminal device, and more specifically, to a method and electronic device for controlling unlocking. Background Art
[0003] As smart devices become increasingly popular, touch unlocking (e.g., fingerprint unlocking) has become an almost indispensable feature of smart devices to meet people's demand for convenience in using smart devices. However, while touch unlocking improves the convenience of users using the device, it is also prone to accidental unlocking, causing unnecessary trouble to users.
[0004] Summary of the Invention
[0005] The present application provides a method for controlling unlocking and an electronic device. Through this method, when the current posture of the electronic device is a non-use posture, the touch unlocking function of the electronic device is restricted. Even if the user accidentally touches the unlock key, the electronic device will not be accidentally unlocked, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user experience.
[0006] In a first aspect, a method for controlling unlocking is provided, the method comprising: determining whether a current posture of an electronic device is a first posture, the first posture being a non-use posture; and when determining that the current posture of the electronic device is the first posture, turning on an anti-mistouch mode of the electronic device.
[0007] Optionally, the non-use posture of the electronic device may be, for example: the electronic device is placed flat on the table with the screen facing down, the electronic device is placed in a bag or pocket by the user, the electronic device is held by the user with the head down, the electronic device is placed flat on the table with the screen facing up and no face is detected, the Y value of the gyroscope sensor of the electronic device is negative, or other non-use postures of the electronic device. The non-use posture may be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0008] The negative Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor faces downward.
[0009] Optionally, the posture determination of the electronic device may be performed based on one or more of the following sensors: an acceleration sensor, a gyroscope sensor, a light sensor, and the like.
[0010] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, the electronic device turns on the anti-mistouch mode. Even if the user accidentally touches the unlock button, it will not cause the user to accidentally touch the unlock button, thereby avoiding unnecessary trouble to the user due to accidental touch unlocking and improving the user's usage experience.
[0011] In combination with the first aspect, in one possible implementation, the electronic device is a foldable electronic device, a fingerprint unlocking button is provided on the side of the electronic device, and the first posture of the electronic device includes: the rotation axis of the gyroscope sensor of the electronic device is facing downward, and the angle between the rotation axis direction of the gyroscope sensor and the direction of gravity is less than a first threshold.
[0012] Among them, the angle between the rotation axis of the gyroscope sensor (the positive direction of the Y axis) and the direction of gravity refers to the angle between the straight line perpendicular to the rotation axis of the upside-down foldable electronic device and parallel to the screen direction of the electronic device and the direction of gravity.
[0013] That is, the first posture of the foldable electronic device can be: the rotation axis of the foldable electronic device is facing downward, and the angle between a line perpendicular to the rotation axis of the foldable electronic device and parallel to the screen of the electronic device and the direction of gravity is less than a first threshold. Alternatively, the first posture can be: the rotation axis of the foldable electronic device is facing downward, and the angle between a line perpendicular to the rotation axis of the foldable electronic device and extending from the upper frame of the electronic device in the direction of the rotation axis of the electronic device and the direction of gravity is less than a first threshold. The electronic device can be in a folded state.
[0014] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0015] In an embodiment of the present application, the current posture of the electronic device can be determined based on the gyroscope sensor of the electronic device, providing a basis for determining whether to turn on the anti-mistouch mode of the electronic device according to the current posture of the electronic device. This embodiment is applicable to electronic devices that are foldable up and down and have a side fingerprint key.
[0016] In combination with the first aspect, in one possible implementation, the electronic device is a non-folding electronic device, or the electronic device is a folding electronic device in an unfolded state, and the first posture of the electronic device includes: the upper frame of the electronic device is facing downward, and the angle between the first direction of the electronic device and the direction of gravity is less than a first threshold, wherein the first direction is perpendicular to the upper frame of the electronic device and extends from the lower frame of the electronic device toward the upper frame of the electronic device.
[0017] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0018] In an embodiment of the present application, the current posture of the electronic device can be determined based on the gyroscope sensor of the electronic device, providing a basis for determining whether to turn on the anti-mistouch mode of the electronic device based on the current posture of the electronic device, and this embodiment is applicable to non-foldable electronic devices.
[0019] In combination with the first aspect, in a possible implementation, determining whether the current posture of the electronic device is the first posture includes: when detecting that the screen of the electronic device is turned on, determining whether the current posture of the electronic device is the first posture.
[0020] In the embodiment of the present application, when the screen of the electronic device is on, the posture of the electronic device is determined, and then the anti-accidental touch mode is activated when the electronic device is further determined to be in a non-use posture. In other words, when the electronic device is in the off state, even if the current actual posture of the electronic device is not in use, the posture determination will not be made, and the anti-accidental touch mode will not be activated. In this way, the power consumption of the electronic device can be saved while preventing accidental unlocking.
[0021] In combination with the first aspect, in a possible implementation, the method further includes: when it is detected that the electronic device is successfully unlocked by touch, displaying an anti-mistouch interface on the display screen of the electronic device.
[0022] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, when the electronic device is touched to unlock, an anti-mistouch interface is displayed on the screen of the electronic device. In this way, it is equivalent to adding an unlocking barrier to the electronic device when the electronic device is in a non-use posture, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user experience.
[0023] In combination with the first aspect, in a possible implementation, the method further includes: when it is detected that the electronic device is successfully unlocked by face recognition, displaying an unlocking interface on the display screen of the electronic device.
[0024] It can also be described as: when it is detected that the electronic device is successfully unlocked by face recognition, the electronic device exits the anti-mistouch mode, and the anti-mistouch interface is not displayed on its display screen.
[0025] In an embodiment of the present application, when the current posture of the electronic device is in a non-use posture, the electronic device cannot be unlocked by touch, but can be unlocked normally by face recognition. This can avoid accidental touch unlocking of the electronic device while reserving other unlocking channels for the user, allowing the user to actively operate the electronic device in any posture of the electronic device, thereby further improving the user experience.
[0026] In combination with the first aspect, in a possible implementation, the method further includes: displaying an unlocking interface on the display screen of the electronic device in response to a first operation performed by the user on the anti-mistouch interface.
[0027] Optionally, the first operation can be any one or more of the following operations: sliding twice on the anti-mistouch interface, drawing a circle on the screen of the electronic device, and double-clicking on the screen of the electronic device; in addition, the first operation can also be any operation determined based on user input, or it can be an operation preset by the system, and this application does not limit this.
[0028] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, when the electronic device is touched to unlock, an anti-mistouch interface is displayed on the screen of the electronic device. When the user completes further actions according to the operating instructions on the anti-mistouch interface, the user can exit the anti-mistouch mode, so that the user can also actively operate the electronic device when the electronic device is in a non-use posture, thereby further improving the user experience.
[0029] In combination with the first aspect, in a possible implementation, the method further includes: when it is determined that the current posture of the electronic device is switched from the first posture to the second posture, exiting the anti-false touch mode, the second posture being the use posture.
[0030] The opposite of the non-usage posture of the electronic device is the usage posture of the electronic device. Optionally, the usage posture of the electronic device can be, for example: the electronic device is held by the user with the head facing upward, the electronic device is placed flat on the table with the screen facing upward, and can detect the face, the Y value of the gyroscope sensor of the electronic device is positive, or other usage postures of the electronic device. The usage posture can be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0031] The positive Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor faces upward.
[0032] In an embodiment of the present application, when the electronic device is switched from a non-use posture to a use posture, the electronic device automatically exits the anti-mistouch mode, and at the same time, the anti-mistouch interface is not displayed on the screen of the electronic device. In this way, the user can smoothly unlock the electronic device when he needs to use it, and prevent accidental unlocking when he does not need to use the electronic device, which is more in line with the actual needs of the user and enhances the user experience.
[0033] In combination with the first aspect, in one possible implementation, the electronic device is in an anti-mistouch mode, and the method further includes: determining that the electronic device is within a first time threshold, the rotation axis of the gyroscope sensor is facing downward, the angle between the rotation axis direction of the gyroscope sensor and the direction of gravity is less than the first threshold, and the acceleration value detected by the acceleration sensor of the electronic device has not changed; when it is detected that the screen of the electronic device is on, exiting the anti-mistouch mode.
[0034] In an embodiment of the present application, it is possible to determine based on the gyroscope sensor and acceleration sensor of the electronic device that the current posture of the electronic device may be a special usage posture (for example, a selfie posture, etc.), and in this case, when the electronic device turns on the screen, it exits the anti-mistouch mode so as not to affect the user's normal use, thereby further improving the user's usage experience.
[0035] In combination with the first aspect, in a possible implementation method, determining whether the current posture of the electronic device is the first posture also includes: when it is detected that the electronic device is in motion and the light brightness of the environment in which the electronic device is located is lower than a second threshold, determining that the current posture of the electronic device is the first posture.
[0036] In an embodiment of the present application, when the user currently holding the electronic device is in motion and the electronic device is in a dark environment, the current posture of the electronic device is determined to be a non-use posture, and then the anti-mistouch mode of the electronic device is turned on, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user's usage experience.
[0037] In combination with the first aspect, in a possible implementation, the first posture includes any one of the following postures: a posture of being placed flat with the screen facing downward; a posture of being placed flat with the screen facing upward when no face is detected.
[0038] In a second aspect, a method for controlling unlocking is provided, the method comprising: determining whether a current posture of an electronic device is a first posture, the first posture being a non-use posture; and when it is determined that the current posture of the electronic device is the first posture, limiting the touch unlocking function of the electronic device in hardware.
[0039] Optionally, the non-use posture of the electronic device may be, for example: the electronic device is placed flat on the table with the screen facing down, the electronic device is placed in a bag or pocket by the user, the electronic device is held by the user with the head down, the electronic device is placed flat on the table with the screen facing up and no face is detected, the Y value of the gyroscope sensor of the electronic device is negative, or other non-use postures of the electronic device. The non-use posture may be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0040] The negative Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor faces downward.
[0041] Optionally, the posture determination of the electronic device may be performed based on one or more of the following sensors: an acceleration sensor, a gyroscope sensor, a light sensor, and the like.
[0042] Optionally, limiting the touch unlock function of the electronic device may refer to canceling the touch unlock function of the electronic device.
[0043] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, the touch unlocking function of the electronic device is restricted. Even if the user accidentally touches the unlock key, it will not cause the user to accidentally touch the unlock key, thereby avoiding unnecessary trouble to the user due to accidental touch unlocking and improving the user's usage experience.
[0044] In combination with the second aspect, in one possible implementation, the electronic device is a foldable electronic device, a fingerprint unlocking button is provided on the side of the electronic device, and the first posture of the electronic device includes: the rotation axis of the gyroscope sensor of the electronic device is facing downward, and the angle between the rotation axis direction of the gyroscope sensor and the direction of gravity is less than a first threshold.
[0045] Among them, the angle between the rotation axis of the gyroscope sensor (the positive direction of the Y axis) and the direction of gravity refers to the angle between the straight line perpendicular to the rotation axis of the upside-down foldable electronic device and parallel to the screen direction of the electronic device and the direction of gravity.
[0046] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0047] That is, the first posture of the foldable electronic device may be: the rotation axis of the foldable electronic device is facing downward, and the angle between a line perpendicular to the rotation axis of the foldable electronic device and parallel to the screen direction of the electronic device and the direction of gravity is less than a first threshold. The electronic device may be in a folded state.
[0048] In an embodiment of the present application, the current posture of the electronic device can be determined based on the gyroscope sensor of the electronic device, providing a basis for determining whether to restrict the touch unlocking function of the electronic device in hardware (for example, temporarily disabling the touch unlocking function of the electronic device) based on the current posture of the electronic device. This embodiment is applicable to electronic devices that are foldable up and down and have a side fingerprint key.
[0049] In combination with the second aspect, in one possible implementation, the electronic device is a non-folding electronic device, or the electronic device is a folding electronic device in an unfolded state, and the first posture of the electronic device includes: the upper frame of the electronic device is facing downward, and the angle between the first direction of the electronic device and the direction of gravity is less than a first threshold, wherein the first direction is perpendicular to the upper frame of the electronic device and extends from the lower frame of the electronic device toward the upper frame of the electronic device.
[0050] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0051] In an embodiment of the present application, the current posture of the electronic device can be determined based on the gyroscope sensor of the electronic device, providing a basis for determining whether to restrict the touch unlocking function of the electronic device in hardware (for example, temporarily disabling the touch unlocking function of the electronic device) based on the current posture of the electronic device, and this embodiment is applicable to non-foldable electronic devices.
[0052] In combination with the second aspect, in a possible implementation, determining whether the current posture of the electronic device is the first posture includes: when detecting that the screen of the electronic device is turned on, determining whether the current posture of the electronic device is the first posture.
[0053] In the embodiment of the present application, when the screen of an electronic device is on, the posture of the electronic device is determined, and if the electronic device is further determined to be in a non-use posture, the touch unlock function of the electronic device is restricted. In other words, when the screen of the electronic device is off, even if the current actual posture of the electronic device is not in use, the posture determination will not be made, and the touch unlock function will not be restricted. This can avoid accidental unlocking while saving power consumption of the electronic device.
[0054] In combination with the second aspect, in a possible implementation, the method further includes: when it is detected that the electronic device is successfully unlocked by face recognition, displaying an unlocking interface on the display screen of the electronic device.
[0055] In an embodiment of the present application, when the current posture of the electronic device is in a non-use posture, the electronic device cannot be unlocked by touch, but can be unlocked normally by face recognition. This can avoid accidental touch unlocking of the electronic device while reserving other unlocking channels for the user, allowing the user to actively operate the electronic device in any posture of the electronic device, thereby further improving the user experience.
[0056] In combination with the second aspect, in a possible implementation, the method further includes: when it is determined that the current posture of the electronic device is switched from the first posture to the second posture, restoring the touch unlocking function of the electronic device, the second posture being the use posture.
[0057] The opposite of the non-usage posture of the electronic device is the usage posture of the electronic device. Optionally, the usage posture of the electronic device can be, for example: the electronic device is held by the user with the head facing upward, the electronic device is placed flat on the table with the screen facing upward, and can detect the face, the Y value of the gyroscope sensor of the electronic device is positive, or other usage postures of the electronic device. The usage posture can be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0058] The positive Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor faces upward.
[0059] In an embodiment of the present application, when the electronic device switches from a non-use posture to a use posture, the electronic device cancels the touch unlock restriction. In this way, the user can smoothly unlock the electronic device when the electronic device needs to be used, and prevent accidental unlocking when the electronic device does not need to be used, which is more in line with the user's actual needs and enhances the user's usage experience.
[0060] In combination with the second aspect, in a possible implementation method, determining whether the current posture of the electronic device is the first posture also includes: when it is detected that the electronic device is in motion and the light brightness of the environment in which the electronic device is located is lower than a second threshold, determining that the current posture of the electronic device is the first posture.
[0061] In an embodiment of the present application, when the user currently holding the electronic device is in motion and the electronic device is in a dark environment, the current posture of the electronic device is determined to be a non-use posture, and the unlocking function of the electronic device is restricted, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user's usage experience.
[0062] In combination with the second aspect, in a possible implementation, the first posture includes any one of the following postures: a posture of being placed flat with the screen facing downward; a posture of being placed flat with the screen facing upward when no face is detected.
[0063] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the above-mentioned first aspect or any possible implementation of the first aspect, or to implement the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0064] In a fourth aspect, a chip is provided, in which instructions are stored. When the chip is run on a device, the chip executes the method in the above-mentioned first aspect or any possible implementation of the first aspect, or executes the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0065] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program or instruction. When the computer program or instruction is executed, it implements the method in the above-mentioned first aspect or any possible implementation of the first aspect, or implements the method in the above-mentioned second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0067] FIG2 is a block diagram of the software structure of the electronic device provided in an embodiment of the present application;
[0068] FIG3 is a schematic diagram of various forms of a foldable electronic device provided in an embodiment of the present application;
[0069] FIG4 is a schematic flowchart of unlocking a conventional folding device provided in an embodiment of the present application;
[0070] FIG5 is a schematic flowchart of another conventional device unlocking method provided in an embodiment of the present application;
[0071] FIG6 is a schematic diagram corresponding to a method for controlling unlocking provided in an embodiment of the present application;
[0072] FIG7 is a schematic diagram corresponding to another method for controlling unlocking provided in an embodiment of the present application;
[0073] FIG8 is a schematic flowchart of another conventional device unlocking method provided in an embodiment of the present application;
[0074] FIG9 is a schematic flowchart of another conventional device unlocking method provided in an embodiment of the present application;
[0075] FIG10 is a schematic diagram of an anti-accidental touch mode interface provided in an embodiment of the present application;
[0076] FIG11 is a schematic flow chart of a method for controlling unlocking provided in an embodiment of the present application;
[0077] FIG12 is a schematic flow chart of another method for controlling unlocking provided in an embodiment of the present application;
[0078] FIG13 is a schematic flow chart of another method for controlling unlocking provided in an embodiment of the present application;
[0079] FIG14 is a schematic flow chart of another method for controlling unlocking provided in an embodiment of the present application;
[0080] FIG15 is a schematic flowchart of another method for controlling unlocking provided in an embodiment of the present application;
[0081] FIG16 is a schematic diagram of the coordinate orientation of a gyroscope sensor of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] The technical solutions of this application will be described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, rather than all the embodiments.
[0083] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" or "multiple" refers to two or more than two.
[0084] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0085] The method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and foldable electronic devices. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0086] 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The 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, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0087] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0088] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0089] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0090] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0091] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0092] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0093] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0094] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0095] 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 charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 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 count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0096] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0097] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in 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. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0098] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0099] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0100] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate 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, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0101] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0102] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0103] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0104] 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.
[0105] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0106] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0107] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0108] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0109] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0110] The external memory interface 120 can 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0111] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an App required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0112] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0113] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0114] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0115] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0116] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0117] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0118] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0119] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0120] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0121] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0122] It should be understood that the phone cards in the embodiments of the present application include but are not limited to SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), and the like.
[0123] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0124] Figure 2 is a software structure diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer, from top to bottom. The application layer can include a series of application packages.
[0125] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0126] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0127] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0128] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0129] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0130] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0131] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0132] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0133] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0134] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0135] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0136] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0137] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).
[0138] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0139] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0140] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0141] A 2D graphics engine is a drawing engine for 2D drawings.
[0142] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0143] It should be understood that the technical solutions in the embodiments of the present application can be used in Android, IOS, Hongmeng and other systems.
[0144] The technical solutions of the embodiments of the present application can be applied to electronic devices with screens. For example, they can be applied to electronic devices such as mobile phones, foldable screens, and tablets. The main application scenario can be the simultaneous display of multiple user interfaces.
[0145] The electronic device in the embodiment of the present application may be a television, a desktop computer, a laptop computer, or a portable electronic device such as a mobile phone, a tablet computer, a camera, a video camera, a video recorder, a foldable electronic device, or other electronic devices with a screen display function, an electronic device in a 5G network, or an electronic device in a future evolved public land mobile communication network (PLMN), etc. This application does not limit this.
[0146] Currently, with the increasing popularity of smart devices, in order to cater to people's demand for convenience in using smart devices, the touch unlocking function (for example, fingerprint unlocking) has almost become an indispensable function of smart devices. However, while touch unlocking improves the convenience of users using the device, it is also easy to accidentally unlock by touching it, which brings unnecessary trouble to users. For example, after accidentally unlocking, the electronic device may accidentally take photos, play music, or make calls.
[0147] One existing solution is to prevent accidental touches through a proximity light sensor. Specifically: a first angle is formed between the light emitted by the proximity light sensor and the touch screen of the terminal. The terminal first obtains data detected by the motion sensor, and obtains motion data of the terminal based on the data detected by the motion sensor. The terminal determines whether the motion data is less than a specific threshold. If the motion data is less than the specific threshold, the terminal determines that no external object is approaching and does not perform the anti-accidental touch action. If the motion data is greater than or equal to the specific threshold, the terminal determines whether an external object is approaching based on the data detected by the proximity light sensor, and determines whether to perform the anti-accidental touch action subsequently based on the judgment result.
[0148] Although this method can prevent accidental touches to a certain extent, it is difficult to set a proximity light sensor on the electronic device due to the hardware stacking constraints of the electronic device. Moreover, when the electronic device is a foldable electronic device, when it is in a folded state and held by the user, the range of accidental touch scenarios covered by the proximity light sensor is very small, and thus it cannot effectively prevent accidental touches.
[0149] Therefore, the existing solutions cannot truly prevent accidental touches of electronic devices.
[0150] In view of this, the present application provides a method for controlling unlocking and an electronic device. The method can identify the posture of an electronic device and, when the current posture of the electronic device is not in use, restrict or cancel the touch unlocking function of the electronic device, thereby better preventing accidental unlocking of the electronic device.
[0151] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of this application and the appended claims, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.
[0152] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "one embodiment," "some embodiments," "another embodiment," and "other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically stated. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically stated.
[0153] In order to more clearly understand the solution of the present application, the relevant terms involved in the embodiments of the present application are first introduced below.
[0154] 1. Gyroscope sensor
[0155] The gyroscope sensor is a simple, easy-to-use positioning control system based on free-space movement and gestures. Originally used in helicopter models, it is now widely used in mobile devices such as mobile phones. The principle of a gyroscope is that the direction of a rotating object's rotation axis remains unchanged when not affected by external forces.
[0156] 2. Accelerometer
[0157] An accelerometer is an electronic device that measures acceleration. Acceleration is the force exerted on an object during acceleration, similar to gravity. Acceleration can be a constant, such as g, or a variable.
[0158] There are two types of acceleration sensors: one is the angular acceleration sensor, which is an improvement of the gyroscope (angular velocity sensor), and the other is the linear acceleration sensor.
[0159] The present application solution is applicable to any electronic device with an unlocking function, such as non-foldable electronic devices, foldable electronic devices, etc.
[0160] Below, in order to more clearly understand the form of the foldable electronic device, illustratively, Figure 3 shows schematic diagrams of various forms of the foldable electronic device provided in an embodiment of the present application.
[0161] Among them, (a) in Figure 3 shows a schematic diagram of various inward folding forms of the foldable electronic device provided in an embodiment of the present application; (b) in Figure 3 shows a schematic diagram of various outward folding forms of the foldable electronic device provided in an embodiment of the present application.
[0162] Exemplarily, taking a foldable mobile phone as an example, FIG4 shows a schematic flowchart of an existing foldable device unlocking method.
[0163] As shown in (a) of Figure 4, the electronic device 400 is a folding screen device. A rotating shaft 401 is provided at the waist of the electronic device 400. The rotating shaft 401 is used to realize the folding of the electronic device 400. A fingerprint key 402 is provided on the side of the electronic device 400. The fingerprint key 402 is used to unlock the electronic device with a fingerprint. The electronic device 400 is currently in the lock screen interface. When the user folds the electronic device 400 up and down in the vertical screen direction, the front view of the electronic device 400 is shown in (b) of Figure 4. In this posture, the rotating shaft of the electronic device 400 is upward relative to the other end of the electronic device 400, and the electronic device 400 is A lock screen interface is displayed on the outer screen; when the posture of the electronic device 400 is switched to a non-use posture, for example, the rotation axis of the electronic device 400 is facing downward relative to the other end of the electronic device 400, as shown in (c) in Figure 4, in this posture, when the user's fingerprint matching the fingerprint key 402 accidentally touches the fingerprint key 402, the electronic device 400 will switch the state of the electronic device 400 to an unlocked state due to the recognition of the correct unlocking fingerprint. When the electronic device 400 is in the unlocked state, an unlocking interface is displayed on the outer screen. When the electronic device 400 is unfolded, the inner screen of the electronic device 400 will display the unlocking interface, as shown in (d) in Figure 4.
[0164] Optionally, the non-use posture of the electronic device may be, for example: the electronic device is placed flat on the table with the screen facing down, the electronic device is placed in a bag or pocket by the user, the electronic device is held by the user with the head down, the electronic device is placed flat on the table with the screen facing up and no face is detected, the Y value of the gyroscope sensor of the electronic device is negative, or other non-use postures of the electronic device. The non-use posture may be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0165] The negative Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor of the electronic device is facing downward, and the angle between the rotation axis direction of the gyroscope sensor (positive direction of the Y axis) and the direction of gravity is less than the first threshold.
[0166] In one example, a non-use posture of the electronic device may be: the display screen of the electronic device is in a screen-off / locked interface, and the Y value of the gyroscope sensor of the electronic device is negative.
[0167] In this example, the current posture of the electronic device can be determined based on the gyroscope sensor of the electronic device, providing a basis for determining whether to limit the unlocking function of the electronic device or whether to turn on the anti-mistouch mode of the electronic device based on the current posture of the electronic device.
[0168] In another example, a non-use posture of an electronic device may be: the display screen of the electronic device is in an off / locked screen interface, the user holding the electronic device is in motion, and the environment in which the electronic device is located is a dark environment.
[0169] Optionally, based on the data collected by the gyroscope sensor or acceleration sensor of the electronic device, it is determined whether the user currently holding the electronic device is in motion; based on the data collected by the light sensor of the electronic device, it is determined whether the user currently holding the electronic device is in a dark environment.
[0170] Optionally, the user being in motion may mean that the user is doing exercises such as running, walking, climbing stairs, swimming, etc.
[0171] Optionally, when the light sensor detects that the light brightness of the environment in which the electronic device is located is lower than a second threshold, it is determined that the environment in which the electronic device is located is a dark environment.
[0172] Optionally, in the non-use posture, the touch unlocking function of the electronic device is restricted in hardware, or the anti-accidental touch mode of the electronic device is turned on.
[0173] Optionally, in the non-use posture, when the electronic device is detected to have its screen on, a lock screen interface is displayed on the display screen of the electronic device, or an anti-mistouch interface is displayed on the display screen of the electronic device. In another example, a non-use posture of the electronic device may specifically be: the Y value of the gyroscope sensor of the electronic device is negative, that is, the rotation axis of the gyroscope sensor is facing downward, and the angle between the rotation axis direction (the positive direction of the Y axis) and the direction of gravity is less than a first threshold.
[0174] It can be understood that: the rotation axis of the gyroscope sensor refers to the Y-axis of the gyroscope sensor, the direction of the rotation axis refers to the positive direction of the Y-axis of the gyroscope sensor, and the rotation axis of the gyroscope sensor is downward and the angle between the rotation axis and the direction of gravity is less than the first threshold. It can be understood that the positive direction of the Y-axis of the gyroscope sensor is downward and the angle between the positive direction of the Y-axis and the direction of gravity is less than the first threshold.
[0175] The angle between the positive direction of the Y-axis of the gyroscope sensor and the direction of gravity refers to the angle between a straight line perpendicular to the rotation axis of the upside-down foldable electronic device and parallel to the screen direction of the electronic device and the direction of gravity.
[0176] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0177] Optionally, the gyro sensor may be a gyro sensor built into the electronic device, for example, the gyro sensor may be built into the hinge of a foldable electronic device.
[0178] Exemplarily, taking a non-foldable mobile phone (or an unfolded state of a foldable mobile phone) as an example, FIG5 shows a schematic flowchart of another existing device unlocking method.
[0179] As shown in (a) in Figure 5, the display screen of the electronic device 500 is currently in the lock screen interface, and a fingerprint key 501 is provided on the side of the electronic device 500, and the fingerprint key 501 is used to perform fingerprint unlocking on the electronic device; when the posture of the electronic device 500 is switched to a non-use posture, for example, the posture of the electronic device 500 is switched to a head-down posture, as shown in (b) in Figure 5, in this posture, when the user's finger matching the fingerprint key 501 accidentally touches the fingerprint key 501, the electronic device 500 will switch the state of the electronic device 500 to an unlocked state due to recognition of the correct unlocking fingerprint. When the electronic device 500 is in the unlocked state, an unlocking interface is displayed on its display screen, as shown in (c) in Figure 5.
[0180] Optionally, when fingerprint unlocking is set on the screen of the electronic device 500, when the electronic device 500 is in a non-use posture, if the user accidentally touches the unlocking fingerprint to the fingerprint unlocking area on the screen, the state of the electronic device 500 is switched to the unlocked state, and the unlocking interface is displayed on the display screen.
[0181] For a description of the non-use posture of an electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not repeat it here. It can be seen that in the existing technical solutions, when a user uses an electronic device with a touch unlock function, it is very easy to accidentally touch the unlock button when the electronic device is in a non-use posture, and then launch some applications without the user's knowledge, such as: camera application, information application, address book application, music application, etc.; thus causing some unnecessary troubles to the user and greatly affecting the user's usage experience.
[0182] In response to the above technical problems, the present application provides a method for controlling unlocking and an electronic device. When the method detects that the electronic device is in a non-use posture (or non-use state), it can limit the touch unlocking function of the electronic device or make the electronic device enter an anti-mistouch mode, thereby effectively avoiding accidental touch unlocking of the electronic device, thereby improving the user experience.
[0183] For example, taking the electronic device as a foldable mobile phone as an example, FIG6 shows a schematic diagram corresponding to a method for controlling unlocking provided in an embodiment of the present application.
[0184] As shown in (a) of Figure 6, the electronic device 600 is a foldable screen device. A rotating shaft 601 is provided at the waist of the electronic device 600. The rotating shaft 601 is used to realize the folding of the electronic device 600. A fingerprint key 602 is provided on the side of the electronic device 600. The fingerprint key 602 is used to unlock the electronic device with a fingerprint. The electronic device 600 is currently in the lock screen interface; when the user folds the electronic device 600 up and down in the vertical screen direction, the front view of the electronic device 600 is shown in (b) of Figure 6. In this posture, the rotating shaft of the electronic device 600 is upward relative to the other end of the electronic device 600, and the lock screen interface is displayed on the outer screen of the electronic device 600; when the posture of the electronic device 600 is switched to a non-use posture, for example, the electronic device 600 is in a non-use posture. The rotating shaft of the device 600 is downward relative to the other end of the electronic device 600, as shown in (c) in Figure 6. In this posture, the touch unlocking function of the electronic device 600 can be disabled. For example, when the user's fingerprint matching the fingerprint key 602 accidentally touches the fingerprint key 602, the electronic device 600 cannot be successfully unlocked because the fingerprint unlocking function of the fingerprint key 602 of the electronic device 600 is disabled. In this way, the state of the electronic device 600 will not switch to the unlocked state due to the user's fingerprint unlocking operation, but will remain in the locked screen state, and the lock screen interface will still be displayed on the outer screen of the electronic device 600; and, in this non-use posture, when the electronic device 600 is unfolded, the inner screen of the electronic device 600 will display the lock screen interface, as shown in (d) in Figure 6.
[0185] For a description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not repeat it here. Optionally, the restriction on touch unlocking in this embodiment can be understood as a restriction on the touch unlocking function of the electronic device at the hardware level.
[0186] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, the touch unlocking function of the electronic device is limited in hardware. Even if the user accidentally touches the unlock key, it will not cause the user to accidentally touch the unlock key, thereby avoiding unnecessary trouble to the user due to accidental touch unlocking and improving the user's usage experience.
[0187] For example, taking the electronic device as a foldable mobile phone as an example, FIG7 shows a schematic diagram corresponding to another method for controlling unlocking provided in an embodiment of the present application.
[0188] As shown in (a) of Figure 7, the electronic device 700 is a foldable screen device. A rotating shaft 701 is provided at the waist of the electronic device 700. The rotating shaft 701 is used to realize the folding of the electronic device 700. A fingerprint key 702 is provided on the side of the electronic device 700. The fingerprint key 702 is used to unlock the electronic device with a fingerprint. The electronic device 700 is currently in the lock screen interface. When the user folds the electronic device 700 up and down in the vertical screen direction, the front view of the electronic device 700 is shown in (b) of Figure 7. In this posture, the rotating shaft of the electronic device 700 is upward relative to the other end of the electronic device 700, and the electronic device 700 is in the lock screen interface. A lock screen interface is displayed on the outer screen of the device 700; when the posture of the electronic device 700 is switched to a non-use posture, for example, the rotation axis of the electronic device 700 is facing downward relative to the other end of the electronic device 700, as shown in (c) in Figure 7, in this posture, when the user's fingerprint matching the fingerprint key 702 accidentally touches the fingerprint key 702, for example, when the fingerprint sensor of the electronic device 700 recognizes the correct unlocking fingerprint, the electronic device 700 is successfully unlocked in hardware, but the state of the electronic device 700 may not be switched to the unlocked state, but enter the anti-false touch mode, and the anti-false touch interface is displayed in the display area of its outer screen. For example, the fingerprint sensor of the electronic device 700 can recognize the correct unlocking fingerprint, but the electronic device 700 can prohibit it from entering the unlocking interface, and then the electronic device 700 will not successfully unlock when the correct unlocking fingerprint is recognized. Moreover, in this non-use posture, when the electronic device 700 is unfolded, the inner screen of the electronic device 700 will display the anti-false touch interface, as shown in (d) in Figure 7.
[0189] For a description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not repeat it here. Optionally, the restrictions on touch unlocking in this embodiment are different from the restrictions on touch unlocking in the embodiment shown in Figure 6. The restrictions on touch unlocking in this embodiment can be understood as restrictions on the touch unlocking function of the electronic device at the software level, while at the hardware level, the touch unlocking function of the electronic device is not restricted.
[0190] It can be understood that the anti-mistouch mode of the electronic device is used to further avoid the impact caused by the user's accidental touch unlocking when the user successfully touches to unlock the electronic device when the electronic device is in a non-use posture. In other words, the anti-mistouch mode of the electronic device serves as a barrier to prevent the user from accidentally touching the unlocking. When the fingerprint sensor of the electronic device recognizes that the unlocking is successful, the anti-mistouch interface is displayed on the screen of the electronic device, making the unlocking invalid.
[0191] Optionally, the user can exit the accidental touch prevention mode by following the operation instructions displayed on the interface. The operation instructions may include, for example, swiping twice on the interface, performing other guiding gestures on the interface, issuing guiding voice, a combination of gesture guidance and voice guidance, or other operation instructions, which are not limited in this application.
[0192] It can be understood that the above-mentioned method of unlocking according to the operating instructions shown in the anti-mistouch interface is also applicable to the process of unlocking according to the operating instructions from the lock screen interface in the embodiment shown in Figure 6.
[0193] Among them, the anti-mistouch mode can be understood as: when the electronic device 700 is in a non-use posture, a mode is used to prevent the display screen of the electronic device 700 from displaying an unlocking interface due to the user accidentally touching the unlock button on the hardware. This mode takes effect when the fingerprint sensor of the electronic device 700 is successfully unlocked. For example, when the fingerprint sensor of the electronic device 700 is successfully unlocked, the anti-mistouch interface is displayed on the screen of the electronic device 700.
[0194] Optionally, when the electronic device 700 is in a non-use posture, the anti-accidental touch mode is turned on.
[0195] Optionally, when the posture of the electronic device 700 is a non-use posture and the fingerprint sensor of the electronic device 700 is unlocked successfully, the anti-mistouch mode is turned on.
[0196] Optionally, when the posture of the electronic device 700 is a non-use posture and it is detected that the screen of the electronic device 700 is on, the anti-mistouch mode is turned on.
[0197] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, when the electronic device is touched to unlock, an anti-mistouch interface is displayed on the screen of the electronic device. Only when the user completes further actions according to the operating instructions on the anti-mistouch interface can the anti-mistouch mode be exited. In this way, it is equivalent to adding an unlocking barrier to the electronic device when the electronic device is in a non-use posture, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user's usage experience.
[0198] Exemplarily, taking a non-foldable mobile phone (or an unfolded state of a foldable mobile phone) as an example, FIG8 shows a schematic flowchart of another existing device unlocking method.
[0199] As shown in (a) in Figure 8, the display screen of the electronic device 800 is currently in the lock screen interface, and a fingerprint key 801 is provided on the side of the electronic device 800, and the fingerprint key 801 is used to perform fingerprint unlocking on the electronic device; when the posture of the electronic device 800 is switched to a non-use posture, for example, the posture of the electronic device 800 is switched to a head-down posture, as shown in (b) in Figure 8, in this posture, the touch unlocking function of the electronic device 800 can be disabled. For example, when the user's fingerprint matching the fingerprint key 801 accidentally touches the fingerprint key 801, since the fingerprint unlocking function of the fingerprint key 801 of the electronic device 800 is disabled, the electronic device 800 cannot be successfully unlocked. In this way, the state of the electronic device 800 will not switch to the unlocked state due to the user's fingerprint unlocking operation, but will remain in the lock screen state, and the lock screen interface will still be displayed on the display screen of the electronic device 800, as shown in (c) in Figure 8.
[0200] Optionally, when fingerprint unlocking is set on the screen of the electronic device 800, the fingerprint unlocking function of the electronic device 800 can be disabled when the electronic device 800 is in a non-use posture. If the user accidentally touches the unlocking fingerprint to the fingerprint unlocking area on the screen, the electronic device 800 cannot be successfully unlocked because the fingerprint unlocking function of the electronic device 800 is disabled. In this way, the state of the electronic device 800 will not switch to the unlocked state due to the user's fingerprint unlocking operation, but will remain in the locked screen state, and the lock screen interface will still be displayed on the display screen of the electronic device 800.
[0201] For a description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not repeat it here. Optionally, the restriction on touch unlocking in this embodiment can be understood as a restriction on the touch unlocking function of the electronic device at the hardware level.
[0202] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, the touch unlocking function of the electronic device is limited in hardware. Even if the user accidentally touches the unlock key, it will not cause the user to accidentally touch the unlock key, thereby avoiding unnecessary trouble to the user due to accidental touch unlocking and improving the user's usage experience.
[0203] Exemplarily, taking a non-foldable mobile phone (or an unfolded state of a foldable mobile phone) as an example, FIG9 shows a schematic flowchart of another existing device unlocking method.
[0204] As shown in (a) of FIG9 , the display screen of the electronic device 900 is currently in the lock screen interface, and a fingerprint key 901 is provided on the side of the electronic device 900, which is used to perform fingerprint unlocking on the electronic device; when the posture of the electronic device 900 is switched to a non-use posture, for example, the posture of the electronic device 900 is switched to an upside-down posture, as shown in (b) of FIG9 , in this posture, when the user's fingerprint matching the fingerprint key 901 accidentally touches the fingerprint key 901, illustratively, when the fingerprint sensor of the electronic device 900 recognizes the correct unlocking fingerprint, the electronic device 900 is successfully unlocked in hardware, but the state of the electronic device 900 may not be switched to the unlocked state, but enters an anti-false touch mode, and displays an anti-false touch interface on the display screen of the electronic device 900. For example, the fingerprint sensor of the electronic device 900 can recognize the correct unlocking fingerprint, but the electronic device 900 can prohibit it from entering the unlocking interface, and then the electronic device 900 will not be successfully unlocked when the correct unlocking fingerprint is recognized, as shown in (c) of FIG9 .
[0205] Optionally, when fingerprint unlocking is set on the screen of the electronic device 900, when the electronic device 900 is in a non-use posture, if the user accidentally touches the unlocking fingerprint to the fingerprint unlocking area on the screen, the fingerprint sensor of the electronic device 900 recognizes the correct unlocking fingerprint, and then the electronic device 900 is successfully unlocked in hardware, but the state of the electronic device 900 may not be switched to the unlocked state, but it enters the anti-mistouch mode, and the anti-mistouch interface is displayed on the display screen of the electronic device 900.
[0206] For a description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not repeat it here. Optionally, the restrictions on touch unlocking in this embodiment are different from the restrictions on touch unlocking in the embodiment shown in Figure 8. The restrictions on touch unlocking in this embodiment can be understood as restrictions on the touch unlocking function of the electronic device at the software level, while at the hardware level, the touch unlocking function of the electronic device is not restricted.
[0207] It can be understood that the anti-mistouch mode of the electronic device is used to further avoid the impact caused by the user's accidental touch unlocking when the user successfully touches to unlock the electronic device when the electronic device is in a non-use posture. In other words, the anti-mistouch mode of the electronic device serves as a barrier to prevent the user from accidentally touching the unlocking. When the fingerprint sensor of the electronic device recognizes that the unlocking is successful, the anti-mistouch interface is displayed on the screen of the electronic device, making the unlocking invalid.
[0208] Optionally, the user can exit the accidental touch prevention mode by following the operation instructions displayed on the interface. The operation instructions may include, for example, swiping twice on the interface, performing other guiding gestures on the interface, issuing guiding voice, a combination of gesture guidance and voice guidance, or other operation instructions, which are not limited in this application.
[0209] It can be understood that the above-mentioned method of unlocking according to the operating instructions shown in the anti-mistouch interface is also applicable to the process of unlocking according to the operating instructions from the lock screen interface in the embodiment shown in Figure 8.
[0210] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, when the electronic device is touched to unlock, an anti-mistouch interface is displayed on the screen of the electronic device. Only when the user completes further actions according to the operating instructions on the anti-mistouch interface can the anti-mistouch mode be exited. In this way, it is equivalent to adding an unlocking barrier to the electronic device when the electronic device is in a non-use posture, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user's usage experience.
[0211] For example, in order to more clearly understand the anti-accidental touch mode of the electronic device, for example, FIG10 shows a schematic diagram of an anti-accidental touch mode interface provided in an embodiment of the present application.
[0212] As shown in Figure 10, the electronic device 1000 is in a folded state and is in a non-use posture. When the electronic device 1000 is successfully unlocked by the user by touching it, the external screen display of the electronic device 1000 is as shown in (a) in Figure 10, and an anti-mistouch interface is displayed in the external screen display area of the electronic device 1000; and, in this non-use posture, when the electronic device 1000 is unfolded, the internal screen of the electronic device 1000 will display an anti-mistouch interface, as shown in (b) in Figure 10.
[0213] Optionally, when the user slides twice on the outer screen of the electronic device 1000 according to the operating instructions, the anti-mistouch mode is exited, and the unlocked interface is displayed on the outer screen display area of the electronic device 1000. At this time, after the electronic device 1000 is unfolded, the unlocked interface is also displayed on the inner screen of the electronic device 1000.
[0214] Optionally, when the user slides twice on the outer screen of the electronic device 1000 according to the operating instructions, the anti-mistouch mode is exited, and the unlocked interface is displayed on the outer screen display area of the electronic device 1000. At this time, after the electronic device 1000 is unfolded, the anti-mistouch interface is still displayed on the inner screen of the electronic device 1000. When the user slides twice on the inner screen again according to the operating instructions, the anti-mistouch mode is exited again, and the unlocked interface is also displayed on the inner screen of the electronic device 1000.
[0215] In order to more clearly understand the method for controlling unlocking provided in the embodiment of the present application, the method for controlling unlocking provided in the embodiment of the present application is described in detail below, exemplarily, with reference to FIG. 11 to FIG. 15 .
[0216] For example, FIG11 shows a schematic flow chart of a method 1100 for controlling unlocking provided by an embodiment of the present application. As shown in FIG11 , the method 1100 includes:
[0217] S1101: Determine the posture of the electronic device.
[0218] Optionally, the posture of the electronic device is determined by a gyroscope sensor and an acceleration sensor of the electronic device.
[0219] Optionally, the posture of an electronic device is divided into a usage posture and a non-usage posture. The usage posture refers to the electronic device being in use by a user, for example, the user holding the electronic device and looking directly at the screen; or the user operating the electronic device. The non-usage posture refers to the electronic device being not in use by a user.
[0220] Optionally, the posture of the electronic device may be determined periodically (for example, at regular intervals), or may be determined when changes are detected in data collected by the gyroscope sensor and the acceleration sensor, which is not limited in this application.
[0221] S1102: Determine whether the electronic device is in a non-use posture. If so, execute step S1103; if not, execute step S1104.
[0222] For the description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not go into details here.
[0223] The opposite of the non-usage posture of the electronic device is the usage posture of the electronic device. Optionally, the usage posture of the electronic device can be, for example: the electronic device is held by the user with the head facing upward, the electronic device is placed flat on the table with the screen facing upward, and can detect the face, the Y value of the gyroscope sensor of the electronic device is positive, or other usage postures of the electronic device. The usage posture can be determined based on the user's historical habits or based on the user's input, and this application does not limit this.
[0224] The positive Y value of the gyroscope sensor of the electronic device may mean that the rotation axis of the gyroscope sensor faces upward.
[0225] S1103: When it is detected that the electronic device is successfully unlocked by touch, an anti-mistouch interface is displayed on the display screen of the electronic device.
[0226] It can be understood that when it is detected that the electronic device is successfully unlocked by touch, the electronic device turns on the anti-mistouch mode and displays the anti-mistouch interface on the display screen of the electronic device.
[0227] The anti-mistouch mode of the electronic device is used to invalidate the unlocking when the fingerprint sensor of the electronic device is successfully unlocked when the electronic device is in a non-use posture. In this way, the impact caused by the user accidentally touching the unlocking can be avoided. In other words, the anti-mistouch mode of the electronic device serves as a barrier to prevent the user from accidentally touching the unlocking. When the fingerprint sensor is successfully unlocked, the anti-mistouch interface is displayed on the screen of the electronic device, making the unlocking invalid.
[0228] Optionally, the user can exit the accidental touch prevention mode by following the instructions in the interface. The instructions may include, for example, swiping twice on the interface, performing other guiding gestures on the interface, issuing guiding voice messages, a combination of gesture guidance and voice guidance, or other instructions, which are not limited in this application.
[0229] It can be understood that the above-mentioned method of unlocking according to the operating instructions shown in the anti-mistouch interface is also applicable to the process of unlocking according to the operating instructions from the lock screen interface in the embodiment shown in Figure 12 below.
[0230] Optionally, step S1103 may also be described as: the electronic device turns on an anti-accidental touch mode.
[0231] S1104: When it is detected that the electronic device is successfully unlocked by touch, an unlocking interface is displayed on the display screen of the electronic device.
[0232] It should be understood that since the posture of the electronic device may change at any time, after executing the above step S1103 or S1104, the process returns to the above step S1101 to continue determining the current posture of the electronic device.
[0233] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, when the electronic device is touched to unlock, an anti-mistouch interface is displayed on the screen of the electronic device. Only when the user completes further actions according to the operating instructions on the anti-mistouch interface can the anti-mistouch mode be exited. In this way, it is equivalent to adding an unlocking barrier to the electronic device when the electronic device is in a non-use posture, thereby avoiding unnecessary trouble to the user due to accidental unlocking and improving the user's usage experience.
[0234] For example, FIG12 shows a schematic flow chart of another method 1200 for controlling unlocking provided by an embodiment of the present application. As shown in FIG12 , the method 1200 includes:
[0235] S1201: Determine the posture of the electronic device.
[0236] Optionally, the posture of the electronic device is determined by a gyroscope sensor and an acceleration sensor of the electronic device.
[0237] Optionally, the posture of the electronic device is divided into a use posture and a non-use posture. The use posture refers to the posture of the electronic device being used by the user, for example, the user holding the electronic device and looking directly at the screen of the electronic device; for example, the user is operating the electronic device; the non-use posture refers to the posture of the electronic device being not used by the user.
[0238] Optionally, the posture of the electronic device may be determined periodically (for example, at regular intervals), or may be determined when changes are detected in data collected by the gyroscope sensor and the acceleration sensor, which is not limited in this application.
[0239] S1202: Determine whether the electronic device is in a non-use posture. If so, execute step S1203; if not, execute step S1204.
[0240] For the description of the non-use posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 4, and this application will not go into details here.
[0241] For the description of the usage posture of the electronic device, please refer to the relevant description of the embodiment shown in Figure 11, and this application will not go into details here.
[0242] S1203: Restricting the touch unlocking function of the electronic device.
[0243] Optionally, limiting the touch unlock function of the electronic device may be temporarily disabling the touch unlock function of the electronic device. For example, the electronic device may temporarily disable the unlock function of the fingerprint sensor.
[0244] S1204: Maintain (restore) the touch unlock function of the electronic device.
[0245] It should be understood that since the posture of the electronic device may change at any time, after executing the above step S1203 or S1204, the process returns to the above step S1201 to continue determining the current posture of the electronic device.
[0246] In an embodiment of the present application, when the posture of the electronic device is switched to a non-use posture, the touch unlocking function of the electronic device is limited in hardware. Even if the user accidentally touches the unlock key, it will not cause the user to accidentally touch the unlock key, thereby avoiding unnecessary trouble to the user due to accidental touch unlocking and improving the user's usage experience.
[0247] For example, FIG13 shows a schematic flow chart of another method 1300 for controlling unlocking provided by an embodiment of the present application. As shown in FIG13 , in the method 1300 , the display screen of the current electronic device is in the off / lock screen interface, and the current posture of the electronic device is a non-use posture. The method 1300 includes:
[0248] S1301: When the user performs a touch unlock operation on the electronic device, a non-unlocking interface is displayed on the display screen of the electronic device.
[0249] For example, when the user performs a touch unlock operation on the electronic device, the non-unlocking interface displayed on the display screen of the electronic device may be the lock screen interface as described in the embodiment shown in FIG6 , or the anti-mistouch interface as described in the embodiment shown in FIG7 , or the screen may remain off, or other non-unlocking interfaces, which are not limited in this application.
[0250] S1302: When the current posture of the electronic device is switched from the non-use posture to the use posture, in response to the user performing a touch unlock operation on the electronic device, an unlocking interface is displayed on the display screen of the electronic device.
[0251] In one example, when the current posture of the electronic device is switched from a non-use posture to a use posture, the electronic device automatically exits the anti-mistouch mode (which can also be understood as canceling the software restriction on the touch unlocking function of the electronic device). At this time, the user can unlock the electronic device normally.
[0252] In another example, when the current posture of the electronic device is switched from a non-use posture to a use posture, the electronic device cancels the prohibition of the touch unlocking function in the hardware, and the user can then unlock the electronic device normally.
[0253] For example, FIG14 shows a schematic flow chart of another method 1400 for controlling unlocking provided by an embodiment of the present application. As shown in FIG14 , in the method 1400 , the display screen of the current electronic device is in the off / lock screen interface, and the current posture of the electronic device is a non-use posture. The method 1400 includes:
[0254] S1401: When the user performs a touch unlock operation on the electronic device, the display screen of the electronic device remains in the off-screen / lock screen interface, or a non-unlocking interface is displayed on the display screen of the electronic device.
[0255] The explanation of this step is the same as that of step S1301 in the embodiment shown in FIG13 , and will not be repeated here for the sake of brevity.
[0256] S1402: When successful face recognition of the user is detected, an unlocking interface is displayed on the display screen of the electronic device.
[0257] In an embodiment of the present application, when the current posture of the electronic device is in a non-use posture, the electronic device cannot be unlocked by touch, but can be unlocked normally by face recognition. This can avoid accidental touch unlocking of the electronic device while reserving other unlocking channels for the user, allowing the user to actively operate the electronic device in any posture of the electronic device, thereby further improving the user experience.
[0258] For example, FIG15 shows a schematic flow chart of another method 1500 for controlling unlocking provided by an embodiment of the present application. As shown in FIG15 , in the method 1500 , the display screen of the current electronic device is in an anti-mistouch mode, and the method 1500 includes:
[0259] S1501: Determine that within a first time threshold, the Y value detected by the gyroscope sensor of the electronic device is negative, and the acceleration value detected by the acceleration sensor does not change or hardly changes.
[0260] Among them, optionally, the first time threshold (for example, 5 minutes, 10 minutes, etc.) can be determined by the system based on the user's historical habits, or it can be the system default, or it can be determined based on the user's input, or it can be determined in other ways, and this application does not limit this.
[0261] Optionally, the Y value of the gyro sensor is negative, which may mean that the Y direction of the rotation axis of the gyro sensor is downward.
[0262] S1502: When it is detected that the screen of the electronic device is on, the electronic device exits the anti-accidental touch mode.
[0263] The explanation of this step is the same as that of step S1302 in the embodiment shown in FIG13 , and will not be repeated here for the sake of brevity.
[0264] In order to more clearly understand that the Y value of the gyroscope sensor described in the above embodiment is negative, hereinafter, for example, taking the electronic device as a mobile phone as an example, FIG16 shows a coordinate orientation diagram of a gyroscope sensor of an electronic device provided in an embodiment of the present application.
[0265] As shown in (a) of FIG16 , the electronic device 1600 is placed vertically and in the forward direction. The origin of the coordinate system of the gyroscope sensor can be regarded as the midpoint of the screen of the electronic device 1600. The X-axis of the gyroscope sensor is on the plane of the electronic device 1600, parallel to the upper and lower sides of the electronic device 1600, and the positive direction of the X-axis is to the right; the Y-axis of the gyroscope sensor is on the plane of the electronic device 1600, parallel to the left and right sides of the electronic device 1600, and the positive direction of the Y-axis is upward; the Z-axis of the gyroscope sensor is perpendicular to the plane of the electronic device 1600, and the positive direction of the Z-axis extends outward close to the screen side of the electronic device 1600. At this time, the Y value of the gyroscope is positive, and the rotation axis Y is upward; when the electronic device is turned When 1600 is folded up and down to the posture shown in (b) in Figure 16, the coordinate system of the gyroscope sensor is shown in (b) in Figure 16. At this time, the Y value of the gyroscope is positive and the rotation axis Y is facing upward; when the electronic device 1600 is adjusted from the posture shown in (b) in Figure 16 to the posture shown in (c) in Figure 16, the coordinate system of the gyroscope sensor is shown in (c) in Figure 16. At this time, the Y value of the gyroscope is negative and the rotation axis Y is facing downward; when the electronic device 1600 is further unfolded from the posture shown in (c) in Figure 16 to the posture shown in (d) in Figure 16, the coordinate system of the gyroscope sensor is shown in (d) in Figure 16. At this time, the Y value of the gyroscope is negative and the rotation axis Y is facing downward.
[0266] In one example, a non-use posture of an electronic device may specifically be: the Y value of the gyroscope sensor of the electronic device is negative, that is, the rotation axis of the gyroscope sensor is facing downward, and the angle between the rotation axis direction (positive direction of the Y axis) and the direction of gravity is less than a first threshold.
[0267] The angle between the positive direction of the gyroscope sensor's Y-axis and the direction of gravity refers to the angle between a line perpendicular to the rotation axis of the foldable electronic device and parallel to the screen of the electronic device and the direction of gravity. In other words, a non-use posture of the electronic device may be: the rotation axis of the electronic device is facing downward, and the angle between a line perpendicular to the rotation axis of the foldable electronic device and parallel to the screen of the electronic device and the direction of gravity is less than a first threshold.
[0268] Optionally, the first threshold may be any angle greater than or equal to 0 and less than 90°, for example, 30°, 45°, 60°, etc.
[0269] It should be understood that each of the embodiments shown in FIG. 6 to FIG. 15 can be implemented individually or in combination with multiple embodiments.
[0270] An embodiment of the present application also provides an electronic device, which includes: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to execute any one of the methods shown in the embodiments shown in Figures 11 to 15.
[0271] An embodiment of the present application further provides a computer-readable storage medium, in which a program or instruction is stored. When the program or instruction is executed, the method described in any one of the embodiments shown in Figures 11 to 15 is implemented.
[0272] One or more of the modules or units described herein can be implemented in software, hardware, or a combination of the two. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor may include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU), or an artificial intelligence processor, etc., a computing device that runs software, each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core for executing software instructions to perform operations or processing within the processor, it may further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit that implements dedicated logic operations.
[0273] When the modules or units described in this document are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0274] When the modules or units described herein are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0275] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0276] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0277] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0278] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0279] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0280] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0281] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for controlling unlocking, characterized in that: The method comprises: Determining whether the current posture of the electronic device is a first posture, the first posture being a non-use posture; When it is determined that the current posture of the electronic device is the first posture, the accidental touch prevention mode of the electronic device is turned on.
2. The method according to claim 1, characterized in that The electronic device is a foldable electronic device, the electronic device is in a folded state, a fingerprint unlocking key is provided on a side of the electronic device, and the first posture of the electronic device includes: The rotation axis of the electronic device faces downward, and an angle between a straight line perpendicular to the rotation axis of the electronic device and parallel to the screen direction of the electronic device and the direction of gravity is less than a first threshold.
3. The method according to claim 1, characterized in that The electronic device is a non-folding electronic device, or the electronic device is a folding electronic device in an unfolded state, and the first posture of the electronic device includes: The upper frame of the electronic device faces downward, and the angle between the first direction of the electronic device and the direction of gravity is less than a first threshold, wherein the first direction is perpendicular to the upper frame of the electronic device and extends from the lower frame of the electronic device to the upper frame of the electronic device.
4. The method according to claim 2 or 3, characterized in that: The first threshold is greater than or equal to 0, and the first threshold is less than 90°.
5. The method according to any one of claims 1 to 4, characterized in that The step of determining whether the current posture of the electronic device is the first posture includes: When it is detected that the screen of the electronic device is turned on, it is determined whether the current posture of the electronic device is the first posture.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When it is detected that the electronic device is successfully unlocked by touch, an anti-mistouch interface is displayed on the display screen of the electronic device.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When it is detected that the electronic device is successfully unlocked by face recognition, an unlocking interface is displayed on the display screen of the electronic device.
8. The method according to claim 6, characterized in that The method further comprises: In response to a first operation performed by a user on the anti-mistouch interface, an unlocking interface is displayed on a display screen of the electronic device.
9. The method according to claim 8, characterized in that The first operation includes sliding twice on the anti-mistouch interface.
10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: When it is determined that the current posture of the electronic device is switched from the first posture to the second posture, the false touch prevention mode is exited, and the second posture is a use posture.
11. The method according to any one of claims 1 to 4, characterized in that The electronic device is in an accidental touch prevention mode, and the method further includes: Determining that within a first time threshold, the rotation axis of the gyro sensor of the electronic device faces downward, the angle between the rotation axis direction of the gyro sensor and the gravity direction is less than a first threshold, and the acceleration value detected by the acceleration sensor of the electronic device does not change; When it is detected that the screen of the electronic device is on, the anti-mistouch mode is exited.
12. The method according to any one of claims 1 to 11, characterized in that The step of determining whether the current posture of the electronic device is the first posture further includes: When it is detected that the electronic device is in motion and the light brightness of the environment in which the electronic device is located is lower than a second threshold, it is determined that the current posture of the electronic device is the first posture.
13. The method according to any one of claims 1 to 10, characterized in that The first posture includes any one of the following postures: Lay flat with the screen facing down; When no face is detected, the device is placed flat with the screen facing upward.
14. A method for controlling unlocking, characterized in that: The method comprises: Determining whether the current posture of the electronic device is a first posture, the first posture being a non-use posture; When it is determined that the current posture of the electronic device is the first posture, the touch unlocking function of the electronic device is limited in hardware.
15. The method according to claim 14, characterized in that The electronic device is a foldable electronic device, the electronic device is in a folded state, a fingerprint unlocking key is provided on a side of the electronic device, and the first posture of the electronic device includes: The rotation axis of the electronic device faces downward, and an angle between a straight line perpendicular to the rotation axis of the electronic device and parallel to the screen direction of the electronic device and the direction of gravity is less than a first threshold.
16. The method according to claim 14, characterized in that The electronic device is a non-folding electronic device, or the electronic device is a folding electronic device in an unfolded state, and the first posture of the electronic device includes: The upper frame of the electronic device faces downward, and the angle between the first direction of the electronic device and the gravity direction is less than a first threshold, wherein the first direction is perpendicular to the upper frame of the electronic device and extends from the lower frame of the electronic device to the upper frame of the electronic device.
17. The method according to claim 15 or 16, characterized in that The first threshold is greater than or equal to 0, and the first threshold is less than 90°.
18. The method according to any one of claims 14 to 17, characterized in that The step of determining whether the current posture of the electronic device is the first posture includes: When it is detected that the screen of the electronic device is turned on, it is determined whether the current posture of the electronic device is the first posture.
19. The method according to any one of claims 14 to 18, characterized in that The method further comprises: When it is detected that the electronic device is successfully unlocked by face recognition, an unlocking interface is displayed on the display screen of the electronic device.
20. The method according to any one of claims 14 to 19, characterized in that The method further comprises: When it is determined that the current posture of the electronic device is switched from the first posture to the second posture, the touch unlocking function of the electronic device is restored, and the second posture is a use posture.
21. The method according to any one of claims 14 to 20, characterized in that The step of determining whether the current posture of the electronic device is the first posture further includes: When it is detected that the electronic device is in motion and the light brightness of the environment in which the electronic device is located is lower than a second threshold, it is determined that the current posture of the electronic device is the first posture.
22. The method according to any one of claims 14 to 21, characterized in that The first posture includes any one of the following postures: Lay flat with the screen facing down; When no face is detected, the device is placed flat with the screen facing upward.
23. An electronic device, characterized in that: include: one or more processors; one or more memories; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to perform the method as described in any one of claims 1 to 13, or perform the method as described in any one of claims 14 to 22.
24. A computer-readable storage medium, characterized in that: The storage medium stores a program or an instruction. When the program or the instruction is executed, the method according to any one of claims 1 to 13 or the method according to any one of claims 14 to 22 is implemented.
25. A chip, characterized in that: The chip stores instructions, and when the instructions are executed, they include: implementing the method according to any one of claims 1 to 13, or implementing the method according to any one of claims 14 to 22.
Citation Information
Patent Citations
Screen display mode switching method and device and electronic equipment
CN110851067A
Method for preventing mistaken touch and electronic equipment
CN114070928A
Electronic equipment operation mode control method, electronic equipment and readable storage medium
CN114125148A
Method for shielding touch event, and electronic device
WO2020056778A1
Cited By
Anti-accidental touch method, electronic device, and readable storage medium
WO2026144686A1
