False touch prevention method, electronic equipment and storage medium

By detecting multiple conditions on electronic devices and entering anti-touch mode, the problem of high error touch frequency in non-lock screen and bright screen state is solved, and power saving and user experience improvement are achieved.

CN120045080APending Publication Date: 2025-05-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311533002.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

Electronic devices are prone to accidentally touching in non-locked and bright screens, resulting in increased power consumption and reduced user experience.

Method used

By detecting motion state, dark light environment, the top facing the gravity direction and touch events, if the preset anti-faulting conditions are met, the anti-faulting interface is displayed and the anti-faulting mode is entered to avoid the response of non-preset touch events.

Benefits of technology

It effectively reduces the probability of electronic devices accidentally touching in non-locked and bright screen states, saves power, reduces the impact of mist touching on applications, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045080A_ABST
    Figure CN120045080A_ABST
Patent Text Reader

Abstract

The invention provides a mistaken touch prevention method, electronic equipment and a storage medium, and relates to the technical field of terminals. The method comprises the steps that when the electronic equipment is in a screen-unlocked and bright state, the electronic equipment responds to a preset mistaken touch prevention condition and displays a mistaken touch prevention interface, and the mistaken touch prevention interface is used for indicating to enter a mistaken touch prevention mode. And the electronic equipment stops displaying the mistaken touch prevention interface in response to a preset exit condition. In this way, the electronic equipment can reduce the probability that the electronic equipment is touched by mistake in the non-screen-locking and screen-on state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and in particular, to an anti-misoperation method, an electronic device, and a storage medium. Background Art

[0002] To enhance the operability of an electronic device, the electronic device uses a touch screen (or simply referred to as a touch panel (TP)) to interact with the user. The user can perform touch operations on the screen of the electronic device with tools such as fingers or a stylus, and can control the electronic device to implement various functions.

[0003] However, while improving the operability, an electronic device with a touch screen is more likely to have misoperation situations. For example, when the electronic device is placed in the user's pocket, the user or the pocket may accidentally touch the screen, buttons, etc. of the electronic device, causing the electronic device to light up, and even causing misoperations of the applications in the electronic device. This not only increases the power consumption of the electronic device, but also greatly reduces the user experience. Summary of the Invention

[0004] This application provides an anti-misoperation method, an electronic device, and a storage medium, which can reduce the probability of misoperation of the electronic device in the non-locked and lit state and improve the user experience.

[0005] To achieve the above object, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, an anti-misoperation method is provided. The method includes: when the electronic device is in the non-locked and lit state, the electronic device displays an anti-misoperation interface in response to a preset anti-misoperation condition, and the anti-misoperation interface is used to indicate entering the anti-misoperation mode. The electronic device stops displaying the anti-misoperation interface in response to a preset exit condition.

[0007] In this way, the electronic device can prevent the occurrence of misoperation events, reduce the probability of misoperation of the electronic device in the non-locked and lit state, save the power of the electronic device, reduce the impact of misoperation on the applications in the electronic device, and enhance the user experience.

[0008] In a possible implementation manner of the first aspect, the preset anti-misoperation condition includes: detecting that the electronic device satisfies at least two of being in a motion state, a dark environment, the top facing the gravity direction, and a touch event. In this implementation manner, if the electronic device detects that it satisfies at least two of the conditions of being in a motion state, a dark environment, the top facing the gravity direction, and a touch event, then the electronic device satisfies the preset anti-misoperation condition. In this way, the electronic device can comprehensively judge whether the electronic device satisfies the preset anti-misoperation condition based on multiple conditions.

[0009] In another possible implementation of the first aspect, the electronic device collects acceleration data, and further inputs the acceleration data into a preset neural network model to obtain the output result of the preset neural network model. This output result is used to indicate whether the electronic device is in a moving state. If the output result indicates that the electronic device is in a moving state, the electronic device detects that it meets the condition of being in a moving state.

[0010] In another possible implementation of the first aspect, the electronic device obtains the ambient light intensity. If the ambient light intensity is less than a first preset light value, the electronic device detects that it meets the condition of a low-light environment.

[0011] In another possible implementation of the first aspect, the electronic device obtains attitude information. If it is detected according to the attitude information that the orientation of the top or head of the electronic device is consistent with the direction of gravity, the electronic device detects that it meets the condition that the top is oriented towards the direction of gravity.

[0012] In another possible implementation of the first aspect, the preset exit conditions include: detecting that the electronic device meets any one of the conditions of a non-low-light environment, the top being oriented in the opposite direction of the gravity direction, the screen-on duration reaching a preset screen-off duration, and a preset touch event. In this implementation, if the electronic device detects that it meets any one of the conditions of a non-low-light environment, the top being oriented in the opposite direction of the gravity direction, the screen-on duration reaching a preset screen-off duration, and a preset touch event, the electronic device meets the preset exit conditions.

[0013] In another possible implementation of the first aspect, if the ambient light intensity of the current environment is greater than or equal to a second preset light value, the electronic device detects that it meets the condition of a non-low-light environment.

[0014] In another possible implementation of the first aspect, the electronic device obtains attitude information. If it is detected according to the attitude information that the orientation of the top or head of the electronic device is consistent with the opposite direction of the gravity direction, the electronic device detects that it meets the condition that the top is oriented towards the opposite direction of the gravity direction.

[0015] In another possible implementation of the first aspect, the electronic device obtains the screen-on duration. If the screen-on duration reaches a preset screen-off duration, the electronic device detects that it meets the condition that the screen-on duration reaches a preset screen-off duration.

[0016] In another possible implementation of the first aspect, when the electronic device is in the anti-mis-touch mode, the refresh frequency is locked to a first refresh frequency. The first refresh frequency is a relatively low refresh frequency. The electronic device can have multiple different refresh frequencies, such as a relatively low refresh frequency (which can be referred to as the first refresh frequency, 60 Hz) and a relatively high refresh frequency (which can be referred to as the second refresh frequency, such as 120 Hz). In the anti-mis-touch mode, the electronic device locks the refresh frequency of the screen to the relatively low refresh frequency, which can minimize the power consumption in the anti-mis-touch mode and improve the battery life of the electronic device.

[0017] In another possible implementation of the first aspect, the touch event includes a large object event, and the large object event meets a preset large object condition. The preset large object condition includes: the touch area is greater than a preset touch area threshold; or, the first axis of the touch area is greater than a first preset length, and the first axis is greater than the second axis of the touch area. In this implementation, the above large object event is a touch event that meets the preset large object condition. The large object event has a relatively large touch area or a relatively long axis length of the touch area. The electronic device can use the large object event as a condition for entering the anti-mis-touch mode.

[0018] In another possible implementation of the first aspect, if the capacitance value corresponding to the touch event is greater than a preset capacitance value, then the large object event is a large object event in the hand-held scenario. The large object event in the hand-held scenario meets the preset large object condition in the hand-held scenario. In this implementation, the large object event in the hand-held scenario is usually triggered by the user's touch operation. The electronic device can identify the large object event in the hand-held scenario through the preset large object condition in the hand-held scenario.

[0019] In another possible implementation of the first aspect, if the capacitance value corresponding to the large object event is less than or equal to the preset capacitance value, then the large object event is a touch event in the non-hand-held scenario. The large object event in the non-hand-held scenario meets the preset large object condition in the non-hand-held scenario. In this implementation, the large object event in the non-hand-held scenario is usually triggered by the touch of objects such as a pocket or a backpack. The electronic device can identify the large object event in the non-hand-held scenario through the preset large object condition in the non-hand-held scenario. The trigger threshold corresponding to the preset large object condition in the non-hand-held scenario is less than the trigger threshold corresponding to the preset large object condition in the hand-held scenario.

[0020] In another possible implementation of the first aspect, a preset application is included in the electronic device. If the preset application is running, the anti-mis-touch function corresponding to the anti-mis-touch mode is turned off. Alternatively, if the preset application is running, the satisfaction threshold corresponding to the preset anti-mis-touch condition is increased. For example, the first preset light value corresponding to the satisfaction of the low-light environment is increased, and / or the preset touch area threshold or the first preset length corresponding to the satisfaction of the large object event is increased. In this way, when the user is using the electronic device in scenarios such as playing games, watching videos, or typing, the electronic device can increase the difficulty of entering the anti-mis-touch mode and reduce the impact of the accidental trigger of the anti-mis-touch mode on the user experience.

[0021] In a second aspect, the present application provides an electronic device, which includes: a screen, a memory, and one or more processors. The memory and the screen are respectively coupled to the processor. The screen is used to display an anti-mis-touch interface. Computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method described in the first aspect and any of its possible implementations above.

[0022] In a third aspect, the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions run on the electronic device, the electronic device executes the method described in the first aspect and any of its possible implementations above.

[0023] In a fourth aspect, the present application provides a computer program product containing program instructions. When the computer program product runs on a computer, the computer can execute the method described in the first aspect and any of its possible implementations above. For example, the computer may be the above-mentioned electronic device.

[0024] In a fifth aspect, the present application provides a chip system, which is applied to an electronic device. The chip system includes an interface circuit and a processor. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive signals from the memory and send signals to the processor. The signals include the computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device executes the method described in the first aspect and any of its possible implementations above. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 FIG. is a schematic diagram of an electronic device entering the anti-mis-touch mode in always-on display provided by an embodiment of the present application;

[0026] Figure 2 FIG. is a flowchart of an example of triggering the anti-mis-touch mode provided by an embodiment of the present application;

[0027] Figure 3It is a hardware structure block diagram of an example mobile phone 100 of an electronic device provided by an embodiment of the present application;

[0028] Figure 4 It is a software structure block diagram of an example mobile phone 100 of an electronic device provided by an embodiment of the present application;

[0029] Figure 5 It is a schematic diagram of a running scenario of a user holding an electronic device provided by an embodiment of the present application;

[0030] Figure 6 It is a schematic diagram of the output result of a preset neural network model provided by an embodiment of the present application;

[0031] Figure 7 It is a schematic diagram of a touch area provided by an embodiment of the present application;

[0032] Figure 8 It is a schematic diagram of a touch point on the screen provided by an embodiment of the present application;

[0033] Figure 9 It is a flowchart of an anti-mis-touch method provided by an embodiment of the present application;

[0034] Figure 10 It is a flowchart of Example 1 of an anti-mis-touch method provided by an embodiment of the present application;

[0035] Figure 11 It is a flowchart of Example 2 of an anti-mis-touch method provided by an embodiment of the present application;

[0036] Figure 12 It is a schematic diagram of an anti-mis-touch interface provided by an embodiment of the present application;

[0037] Figure 13 It is a schematic diagram of an anti-mis-touch function setting page provided by an embodiment of the present application;

[0038] Figure 14 It is a flowchart of exiting the anti-mis-touch mode provided by an embodiment of the present application. Detailed implementation manners

[0039] Electronic devices have advantages such as portability and are usually carried around by users. For example, users can carry electronic devices by holding them in their hands or placing them in pockets, backpacks, etc. Currently, the screens of electronic devices are usually touch screens (or called touch panels). Electronic devices receive touch operations from users through the touch screen and respond according to the users' operations to provide services to users. During the process of users carrying electronic devices, accidental touches may occur on the electronic devices. An accidental touch can be understood as the electronic device receiving a touch signal when the user has no intention of operating the electronic device. This touch signal may be generated by the user's touch operation or by other objects touching the screen of the electronic device.

[0040] For example, when the electronic device is placed in a pocket and the user's hand is also in the same pocket as the electronic device. The user's hand comes into contact with the screen of the electronic device, causing the electronic device to turn on the screen or unlock. Such accidental touch situations not only consume the power of the electronic device but may also result in accidental operations of the applications in the electronic device, seriously affecting the user experience.

[0041] To reduce the occurrence of accidental touches, some anti-accidental touch solutions for electronic devices are introduced below.

[0042] In some implementation manners, when the electronic device is in the locked screen state, the electronic device can determine whether to enter the anti-accidental touch mode based on the posture information of the electronic device, the ambient light of the environment where it is located, whether there is an object approaching, etc.

[0043] Among them, the locked screen state can refer to the state where the screen or interface of the electronic device is locked. In the locked screen state, the electronic device needs to receive a password or detect the user's face, fingerprint, etc. before it will respond to the user's operation. In the non-locked screen state, the electronic device can respond to the user's operation without receiving a password or detecting the user's face, fingerprint, etc. In the locked screen state, according to whether the screen is lit, it can also be divided into the locked screen and lit state and the locked screen and unlit state. The locked screen and lit state can refer to the state where the screen or interface of the electronic device is in the lit locked screen state. The locked screen and unlit state (also called the locked screen and off state) can refer to the state where the screen or interface of the electronic device is in the unlit locked screen state. In the non-locked screen state, according to whether the screen is lit, it can also be divided into the non-locked screen and lit state and the non-locked screen and unlit state.

[0044] Among them, the anti-accidental touch mode can refer to: a mode in which the electronic device does not respond to other touch events except for preset touch events.

[0045] Next, an anti-misoperation solution for an electronic device will be introduced through an example. In this example, the electronic device enables the Always On Display (AOD) function. When the electronic device enables the AOD function and is in the locked and screen-off state, it displays information such as time, battery level, and reminder messages in the lit area of the screen by locally lighting the screen, so that the user can intuitively see the required information. As Figure 1 shown, the electronic device displays time, date, and battery level in a partial area of the screen, and the other areas of the screen are in the off state. The electronic device can determine whether to enter the anti-misoperation mode according to the sensing data obtained by the sensor. For example, it determines whether there is an object approaching through the proximity sensor, such as judging whether there is an object approaching the electronic device (proximity light judgment) based on the reflection data (such as light reflection data) collected by the proximity sensor. If there is an object approaching the electronic device, the electronic device enters the anti-misoperation mode. In the case of entering the anti-misoperation mode, the electronic device controls the AOD to turn off, and all areas of the screen of the electronic device are in the off state.

[0046] In another example, as Figure 2 shown, when the electronic device is in the locked and screen-on state, it can judge whether the electronic device is in the head-down posture (head-down posture judgment) through the attitude information obtained by the acceleration sensor and the gyroscope sensor respectively, and judge whether the electronic device is in a low-light environment (ambient light judgment) through the ambient light data collected by the ambient light sensor. If the electronic device is in the head-down posture and the low-light environment, the electronic device enters the anti-misoperation mode and turns off the screen.

[0047] Based on the anti-misoperation solution in the above locked-screen state, the electronic device can reduce the misoperation situation of the electronic device to a certain extent. However, these anti-misoperation solutions all provide anti-misoperation functions when the electronic device is in the locked-screen state. The electronic device may experience misoperation when it is not locked, resulting in the screen of the electronic device being on for a long time, which not only consumes the power of the electronic device, affects the software programs running normally on the electronic device or triggers the startup of software programs that have not been started, but may also lead to information leakage, seriously affecting the user experience.

[0048] For example, when the electronic device is in the non-locked screen and lit screen state, the user forgets to lock the screen and puts the electronic device in the pocket of the clothes. Since the pocket is likely to come into contact with the screen of the electronic device, the electronic device in the pocket is prone to accidental touch, resulting in the deletion, movement, or opening of applications in the electronic device. For another example, when the user puts the electronic device into the pocket, due to accidental touch of the fingerprint unlocking area on the side of the electronic device, the electronic device is unlocked. The electronic device is placed in the pocket and is in the non-locked screen and lit screen state. Since the pocket comes into contact with the screen of the electronic device, accidental touch occurs in the pocket. The electronic device may make multiple outgoing calls without the user's awareness. Another example is that after the electronic device is accidentally unlocked by face recognition and is held and moved by the user. Since the user's hand is likely to touch the screen of the electronic device, the electronic device is prone to accidental touch. The electronic device may send messages to other users through the chat software.

[0049] It can be seen that the electronic device is also prone to accidental touch when it is in the non-locked screen and lit screen state. Moreover, there is no anti-accidental touch solution for the electronic device in the non-locked screen and lit screen state. In view of this, the method provided in the embodiments of the present application can perform anti-accidental touch detection on the electronic device by presetting anti-accidental touch conditions when the electronic device is in the non-locked screen and lit screen state. If it is detected that the electronic device meets the preset anti-accidental touch conditions, it indicates that the electronic device is likely to be in the non-locked screen and lit screen state because the user forgets to lock the screen or accidentally unlocks the electronic device. In this case, the electronic device enters the anti-accidental touch mode, displays an anti-accidental touch interface on the screen, and reminds the user that the electronic device has entered the anti-accidental touch mode through the anti-accidental touch interface. In the anti-accidental touch mode, the electronic device does not respond to other touch events except for the preset touch events. After the electronic device enters the anti-accidental touch mode, if it is detected that the preset exit conditions are met, such as detecting a preset touch event indicating that the user instructs to turn off the anti-accidental touch mode, the anti-accidental touch interface stops being displayed. In this way, the electronic device can prevent the occurrence of accidental touch events, reduce the probability of accidental touch of the electronic device in the non-locked screen and lit screen state, save the power of the electronic device, reduce the impact of accidental touch on the applications in the electronic device, and enhance the user experience.

[0050] Exemplarily, the electronic device described in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, a media player, a wearable device, and other devices. The embodiments of the present application do not impose special restrictions on the specific form of the electronic device.

[0051] In the embodiments of the present application, taking the electronic device as the mobile phone 100 as an example, the hardware structure of the electronic device is introduced through the mobile phone 100. As Figure 3 shown, the mobile phone 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, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0052] Among them, 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), a driver processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The processor 110 may be the nerve center and command center of the mobile phone 100. The processor 110 may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions.

[0053] A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0054] 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 mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.

[0055] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. For example, in the embodiments of the present application, the processor 110 can execute the instructions stored in the internal memory 121, and the internal memory 121 can include a storage program area and a storage data area.

[0056] The wireless communication function of the mobile phone 100 can be implemented by the antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor, etc. In some embodiments, the antenna 1 and the mobile communication module 150 of the mobile phone 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technologies.

[0057] The sensor module 180 can include sensors such as a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a Hall sensor, a touch sensor, an ambient light sensor, and a proximity sensor. The mobile phone 100 can collect various sensing data through the sensor module 180.

[0058] The gyroscope sensor can be used to determine the attitude information of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., the x, y, and z axes of the mobile phone coordinate system) can be determined by the gyroscope sensor. The gyroscope sensor can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shaking of the mobile phone 100 through reverse movement to achieve anti-shake. The gyroscope sensor can also be used for navigation and somatosensory game scenarios.

[0059] The acceleration sensor can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the attitude information of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0060] In some implementation manners, the gyroscope sensor and the acceleration sensor can be integrated into one sensor.

[0061] The mobile phone 100 can determine whether it is in a motion state (or called a motion state, which can include a walking state and a running state) through the three-axis acceleration detected by the acceleration sensor. For example, when the user carries the mobile phone 100, the mobile phone 100 can identify whether the user holding the mobile phone 100 is in a stationary state, a walking state or a running state through the three-axis acceleration obtained by the acceleration sensor. The frequency at which the mobile phone 100 collects acceleration data through the acceleration sensor can reach 100 Hz.

[0062] The mobile phone 100 can also identify the head-down attitude of the mobile phone 100 through the three-axis angular velocity obtained by the gyroscope sensor and the three-axis acceleration obtained by the acceleration sensor. For example, the mobile phone 100 can perform six-axis fusion on the three-axis angular velocity and the three-axis acceleration (such as using a six-axis fusion algorithm) to determine the attitude information of the mobile phone 100. The attitude information includes the pitch angle, roll angle and yaw angle. Further, the mobile phone 100 can determine whether the top of the mobile phone 100 is facing the direction of gravity according to the attitude information, that is, identify the head-down attitude of the mobile phone 100.

[0063] The proximity sensor can be an optical proximity sensor, such as including a light-emitting diode (LED) and a photodetector (such as a photodiode). The light-emitting diode can be an infrared light-emitting diode. The mobile phone 100 emits infrared light outward through the light-emitting diode. The mobile phone 100 uses the photodetector to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.

[0064] The proximity touch sensor can also be arranged in the receiver 170B (or called the earpiece) and the microphone 170C. For example, an ultrasonic transmitting device is arranged in the receiver 170B, and an ultrasonic receiving device is arranged in the microphone 170C. The mobile phone 100 emits ultrasonic pulses outward through the receiver 170B. The ultrasonic pulses are reflected after reaching the object. When the microphone 170C of the mobile phone 100 detects the reflected ultrasonic waves, it can be determined that there is an object near the mobile phone 100. When insufficient reflected ultrasonic waves are detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.

[0065] The mobile phone 100 can use a proximity sensor to detect when the user holds the mobile phone 100 close to the ear during a call, so as to automatically turn off the screen to achieve the purpose of power saving. The proximity sensor can also be used for automatic unlocking and locking in the leather case mode, pocket mode, etc., and can also be used to identify accidental touches.

[0066] The ambient light sensor is used to sense the ambient light brightness. The mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor can also be used to identify a low-light environment. For example, for the ambient light intensity obtained by the mobile phone through the ambient light sensor, if the ambient light intensity is less than the first preset light value, it can be considered that the mobile phone is in a low-light environment. The ambient light sensor can also cooperate with sensors such as the proximity sensor and the acceleration sensor to detect whether the mobile phone 100 is in the pocket to prevent accidental touches.

[0067] The touch sensor, also known as the "touch panel". The touch sensor can be set inside or on the surface of the display screen 194. The touch sensor and the display screen 194 form a touch screen, also known as the "touch screen", "touch-type screen", etc. The touch sensor is used to detect touch events acting on it or nearby. The touch sensor can transmit the detected touch events to the application processor to determine the type of touch event. The mobile phone 100 can provide a visual output related to the touch event through the display screen 194.

[0068] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

[0069] It can be understood that the interface connection relationships between the modules illustrated in this embodiment are only illustrative and do not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also include more or fewer modules than those provided in the above embodiments, and different interface connection methods or combinations of multiple interface connection methods may also be adopted between the various modules. The hardware structure of the electronic device provided in the embodiments of the present application may also refer to the hardware structure of the mobile phone 100 shown in the figure. The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure.

[0070] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, taking the Android system with a layered architecture and the electronic device being the mobile phone 100 as an example, the software structure of the electronic device is illustratively described.

[0071] Figure 4 It is the software structure block diagram of the mobile phone 100 in the embodiments of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, an Android runtime and system libraries, a hardware abstraction layer (HAL), and a kernel layer.

[0072] The application layer may include a series of application packages. For example, the application packages may include applications such as a camera, a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, music, and a video. The embodiments of the present application do not impose any restrictions on this.

[0073] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, and a sensor manager. The embodiments of the present application do not impose any restrictions on this.

[0074] The Android Runtime includes the core libraries and the virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system. The core libraries consist of two parts: one part is the functional functions that the Java language needs to call, and the other part is the core libraries of Android. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.

[0075] The system libraries can include multiple functional modules. For example: the surface manager, Media Libraries, 3D graphics processing libraries (such as OpenGLES), 2D graphics engines (such as SGL), etc.

[0076] The HAL layer is an encapsulation of the Linux kernel drivers, provides interfaces upward, and shields the implementation details of the underlying hardware. For example, the HAL layer can include modules such as the camera HAL module, Wi-Fi HAL module, sensor HAL module, touch HAL module, etc.

[0077] The kernel layer is the layer between the hardware and the software. The kernel layer is used to provide driver programs and system service programs. The driver programs at least include display drivers, camera drivers, audio drivers, sensor drivers, touch drivers, etc.

[0078] Taking the application processor of the mobile phone 100 having the above hierarchical architecture as an example, the working processes of the software and hardware of the mobile phone 100 are exemplarily described.

[0079] In the example, when the mobile phone 100 is in the non-locked screen and lit screen state, it collects sensing data in real time through sensors such as a gyroscope sensor, an acceleration sensor, and an ambient light sensor (such as acceleration data, angular velocity data, light intensity data, etc.). The mobile phone 100 may also include a sensor hub. The sensor hub is used to process the sensing data from sensors such as a gyroscope sensor, an acceleration sensor, and an ambient light sensor. The sensor hub detects an anti-mis-touch event based on the sensing data. The anti-mis-touch event is a trigger event for the anti-mis-touch mode. For example, the sensor hub detects an anti-mis-touch event corresponding to the mobile phone 100 being in a moving state based on the acceleration data. The sensor hub detects an anti-mis-touch event corresponding to the mobile phone 100 being in a head-down posture based on the acceleration data and the angular velocity data. The sensor hub detects an anti-mis-touch event corresponding to the mobile phone 100 being in a low-light environment based on the light intensity data. If the touch sensor hub detects any anti-mis-touch event, it reports the anti-mis-touch event to the application processor. The sensor driver in the kernel layer of the application processor reports the anti-mis-touch event to the sensor manager in the application framework layer through the sensor HAL module. The mobile phone 100 may also collect touch data through a touch sensor. If the touch sensor collects touch data, it reports the anti-mis-touch event corresponding to the touch data to the application processor of the mobile phone 100. The touch driver in the kernel layer of the application processor reports the anti-mis-touch event corresponding to the touch data to the sensor manager in the application framework layer through the touch HAL module. The sensor manager confirms that the mobile phone 100 meets the preset anti-mis-touch conditions based on the anti-mis-touch events reported by each sensor, and the sensor manager may instruct the notification manager to generate an anti-mis-touch interface.

[0080] It can be understood that the mobile phone 100 can also implement the reporting and response of anti-mis-touch events through other modes. For example, an anti-mis-touch module can be set in the application program architecture layer. The mobile phone 100 receives the anti-mis-touch events reported by each sensor through the anti-mis-touch module and determines whether to enter the anti-mis-touch mode based on the anti-mis-touch events reported by each sensor. The embodiments of the present application only exemplarily illustrate the reporting process of anti-mis-touch events.

[0081] In the embodiments of the present application, the electronic device can perform anti-mis-touch detection on the electronic device through preset anti-mis-touch conditions when it is in the non-locked screen and lit screen state to prevent the occurrence of mis-touch events. The preset anti-mis-touch conditions can be set according to the actual application scenario or requirements.

[0082] In some embodiments, the above-mentioned preset anti-mis-touch conditions include: detecting that the electronic device satisfies at least two of being in a moving state, a low-light environment, the top facing the direction of gravity, and a touch event. The electronic device can determine whether it satisfies at least two of the conditions of the moving state (the state where the electronic device moves synchronously with the user holding the electronic device), the low-light environment, the top facing the direction of gravity, and the touch event. If the electronic device satisfies at least two of these conditions, the electronic device satisfies the preset anti-mis-touch conditions.

[0083] In some implementation manners, the electronic device can separately determine whether it satisfies the moving state, the low-light environment, the top facing the direction of gravity, and the touch event. If the electronic device satisfies at least two of these conditions, the electronic device satisfies the preset anti-mis-touch conditions.

[0084] In other implementation manners, the electronic device only needs to determine at least two of the conditions included in the preset anti-mis-touch conditions. For example, if the preset anti-mis-touch conditions include the two conditions of the moving state and the touch event, the electronic device can only determine whether it satisfies the two conditions of the moving state and the touch event. If the electronic device satisfies these two conditions, the electronic device satisfies the preset anti-mis-touch conditions.

[0085] The above-mentioned moving state can be understood as a non-stationary state. If the electronic device is in a moving state, it indicates that the user carrying the electronic device is in a moving state. As Figure 5 shown, in the scenario where the user holds the electronic device and walks or runs, the electronic device moves with the movement of the user. When the user holding the electronic device is in a running state, the possibility of the user using the electronic device is relatively small. If the electronic device detects a touch event, it may be a touch event triggered by mis-touch. Therefore, the electronic device being in a moving state can be used as one of the preset anti-mis-touch conditions.

[0086] Exemplarily, the electronic device can determine whether it is in a moving state based on the acceleration data collected by the acceleration sensor. For example, the electronic device collects three-axis acceleration data in real time through the acceleration sensor. The three-axis acceleration data is the acceleration data on the x-axis, y-axis, and z-axis of the mobile phone coordinate system respectively. The mobile phone coordinate system can be the world coordinate system or a self-defined coordinate system. Further, the electronic device inputs the three-axis acceleration data into a trained preset neural network model to obtain the output result of the preset neural network model. The preset neural network model is used to determine whether the electronic device is in a moving state according to the acceleration data. The output result of the preset neural network model indicates whether the electronic device is in a moving state.

[0087] Optionally, the output result may include any one of two state values. If the output result is the first state value, such as "1", it indicates that the electronic device is in a moving state. If the output result is the second state value, such as "0", it indicates that the electronic device is in a stationary state. Alternatively, when the output result is the first state value, it indicates that the electronic device is in a stationary state, and when the output result is the second state value, it indicates that the electronic device is in a moving state, without limitation.

[0088] Optionally, the moving state can be divided into a walking state and a running state according to the moving speed. As long as the user holding the electronic device is in the walking state or the running state, it can be considered that the electronic device is in a moving state. At this time, as Figure 6 shown, the output result of the preset neural network model may include at least one of the walking state information and the running state information. The walking state information is used to indicate whether the user holding the electronic device is in the walking state. If the output result includes the walking state information, and the walking state information is the first state information, such as "1", it indicates that the user holding the electronic device is in the walking state. If the walking state information is the second state information, such as "0", it indicates that the user holding the electronic device is not in the walking state. The running state information is used to indicate whether the user holding the electronic device is in the running state. If the output result includes the running state information, and the running state information is the third state information, such as "1", it indicates that the user holding the electronic device is in the running state. If the running state information is the fourth state information, such as "0", it indicates that the user holding the electronic device is not in the running state. The preset neural network model has a powerful recognition function and a high recognition accuracy. For example, the accuracy of the preset neural network model in recognizing the running state can reach more than 95%, and the accuracy in recognizing the walking state can reach 100%.

[0089] It can be understood that the embodiments of the present application only exemplarily illustrate the process of the electronic device determining whether it is in a moving state. Of course, it is also possible to determine whether the electronic device is in a moving state by other means. For example, the electronic device can obtain the moving speed of the electronic device. If the moving speed is greater than a preset speed threshold, it is determined that the electronic device is in a moving state.

[0090] The above-mentioned low-light environment can be understood as an environment where the ambient light intensity is less than the first preset light value, that is, an environment with low light intensity. The first preset light value can be set according to the actual application scenario or requirements. For example, the first preset light value can be set to 30 lux. If the electronic device is in a low-light environment, the electronic device may be in a pocket or a backpack. In this case, the possibility of the user using the electronic device is small. If the electronic device detects a touch event, it may be a mis-touch. Therefore, the electronic device in a low-light environment can be used as one of the conditions for preset anti-mis-touch.

[0091] Exemplarily, the electronic device can determine whether the environment where the electronic device is located is a low-light environment based on the ambient light data collected by the ambient light sensor. For example, the electronic device determines the ambient light intensity through the ambient light data collected by the ambient light sensor in real time. Further, the electronic device compares the ambient light intensity with a first preset light value to determine whether the ambient light intensity is less than the first preset light value. If the ambient light intensity is less than the first preset light value, the electronic device confirms that the environment where it is located is a low-light environment. If the ambient light intensity is greater than or equal to a second preset light value, the electronic device confirms that the environment where it is located is not a low-light environment. The second preset light value can be set according to the actual application scenario or requirements. For example, the second preset light value can be set to 50 lux.

[0092] The above-mentioned top facing the direction of gravity can be understood as the posture where the top or head of the electronic device is facing downwards, or is called the head-down posture. When the user uses the electronic device in the vertical screen mode, the top or head orientation of the electronic device is opposite to the direction of gravity, or is called the head-up posture. If the top of the electronic device faces the direction of gravity, the possibility of the user using the electronic device is relatively small. If the electronic device detects a touch event, it may be a mis-touch. Therefore, the top of the electronic device facing the direction of gravity can be used as one of the conditions in the preset anti-mis-touch condition.

[0093] Exemplarily, the electronic device can determine the posture information of the electronic device based on the angular velocity data collected by the gyroscope sensor and the acceleration data collected by the acceleration sensor. The electronic device can judge whether the top or head orientation of the electronic device is consistent with the direction of gravity according to the posture information (that is, judge whether the electronic device is in the head-down posture). If the top or head orientation of the electronic device is consistent with the direction of gravity, it can be determined that the electronic device is in the head-down posture. If the top or head orientation of the electronic device is inconsistent with the direction of gravity, it can be determined that the electronic device is in a non-head-down posture.

[0094] It can be understood that the orientation of the top of the electronic device can be the direction from the geometric center of the screen of the electronic device to the top center of the screen. The orientation of the top being consistent with the direction of gravity can be that the included angle between the orientation of the top and the direction of gravity is less than a preset angle threshold. The preset angle threshold can be set according to the actual application scenario or requirements. For example, the preset angle threshold can be set to values such as 60° or 90°. If the included angle between the orientation of the top of the electronic device and the direction of gravity is less than the preset angle threshold, then the orientation of the top of the electronic device is consistent with the direction of gravity, or it can be considered that the top of the electronic device faces the direction of gravity. If the included angle between the orientation of the top of the electronic device and the direction of gravity is greater than or equal to the preset angle threshold, then the orientation of the top of the electronic device is inconsistent with the direction of gravity, or it can be considered that the top of the electronic device faces the opposite direction of the direction of gravity.

[0095] The above touch event can be understood as an event triggered by a touch operation or touch received by the electronic device on the touch screen. If the electronic device detects a touch event, it is possible that a mis-touch has occurred. The detection of a touch event by the electronic device can be used as one of the conditions in the preset anti-mis-touch condition.

[0096] In some implementation manners, the touch event is an event triggered by a large object touch, which can be called a large object event. A large object event is a touch event with a relatively large touch area. If the electronic device detects a large object event, it is possible that the electronic device is placed in a pocket, backpack, etc., and the touch event is triggered by touching the pocket, backpack, etc. In this case, the touch event detected by the electronic device is very likely a touch event caused by a mis-touch.

[0097] Optionally, the large object event can meet the preset large object condition. The preset large object condition can include at least one of a touch area being greater than a preset touch area threshold and a first axis of the touch area being greater than a first preset length.

[0098] The touch area corresponding to the touch event being greater than the preset touch area threshold indicates that the touch area of the touch event is relatively large. The preset touch area threshold can be set according to the actual application scenario or requirements. For example, the preset touch area threshold can be set to a value such as 400 square millimeters.

[0099] The first axis of the touch area is greater than the second axis of the touch area. For example, the first axis of the touch area can be the longest axis of the touch area, and the second axis of the touch area can be the shortest axis of the touch area. As Figure 7 shown, the touch control area of the touch operation received by the electronic device on the screen is an elliptical area. The first axis of this elliptical area is the long axis of the elliptical area. The second axis of this elliptical area is the short axis of the elliptical area. The first axis of the touch area being greater than the first preset length indicates that the axial length of the touch area is relatively long, that is, the touch area is relatively large. The first preset length can be set according to the actual application scenario or requirements. For example, the first preset length can be set to a value such as 30 millimeters.

[0100] Exemplarily, if the electronic device detects a touch event, it can compare the touch area of the touch area corresponding to the touch event with the preset touch area threshold. If the touch area corresponding to the touch event is greater than the preset touch area threshold, it can be considered that the touch event is a large object event. Or, the electronic device can compare the first axis of the touch area corresponding to the touch event with the first preset length. If the first axis of the touch area corresponding to the touch event is greater than the first preset length, it can be considered that the touch event is a large object event.

[0101] In some other examples, the above-mentioned preset large object condition may further include that the second axis of the touch area is greater than a second preset length. For example, if the electronic device detects a touch event, it may compare the first axis of the touch area corresponding to the touch event with the first preset length, and compare the second axis of the touch area with the second preset length. If the first axis of the touch area corresponding to the touch event is greater than the first preset length and the second axis is greater than the second preset length, then the touch event can be considered a large object event. The second preset length can be set according to the actual application scenario or requirements. For example, the second preset length can be set to a value such as 12 millimeters.

[0102] In some other implementation manners, the touch events detected by the electronic device can be touch events in a handheld scenario or touch events in a non-handheld scenario. A touch event in a handheld scenario is a touch event detected by the electronic device when the user is holding the electronic device. Usually, a touch event in a handheld scenario is triggered by the user's touch operation. A touch event in a non-handheld scenario is a touch event detected by the electronic device when it is not held by the user. For example, a touch event detected when the electronic device is placed in a pocket, a backpack, etc. Usually, a touch event in a non-handheld scenario is triggered by an object contacting the screen. Since there are differences in the touch capacitance, contact area size, etc. between the human body and objects such as pockets and backpacks on the screen, different trigger thresholds can be set for large object events in the handheld scenario and large object events in the non-handheld scenario. The trigger threshold is the preset touch area threshold set for the touch area in the preset large object condition satisfied by the large object event, or the first preset length set for the first axis of the touch area.

[0103] Exemplarily, after detecting a touch event, the electronic device can determine whether the capacitance value (such as the maximum capacitance value) corresponding to the touch event is greater than a preset capacitance value. If the capacitance value corresponding to the touch event is greater than the preset capacitance value, it is determined that the touch event is a touch event in a handheld scenario. Further, the electronic device determines whether the touch event meets the preset large object condition in the handheld scenario. If the touch event meets the preset large object condition in the handheld scenario, it indicates that the touch event is a large object event in the handheld scenario. If the capacitance value corresponding to the touch event is less than or equal to the preset capacitance value, it is determined that the touch event is a touch event in a non-handheld scenario. Further, the electronic device determines whether the touch event meets the preset large object condition in the non-handheld scenario. If the touch event meets the preset large object condition in the non-handheld scenario, it indicates that the touch event is a large object event in the non-handheld scenario.

[0104] Since the touch capacitance of the human body on the screen in the hand-held scenario is usually larger than that of materials such as a pocket on the screen, touch events in the hand-held scenario and touch events in the non-hand-held scenario can be distinguished by setting an appropriate preset capacitance value. For example, the preset capacitance value can be set to 2000. Correspondingly, the trigger threshold for the large object event in the hand-held scenario can also be greater than that in the non-hand-held scenario. For example, the preset large object condition in the hand-held scenario is that the touch area corresponding to the touch event is greater than 900 square millimeters (i.e., an example of the preset touch area threshold in the hand-held scenario), or the first axis of the touch area corresponding to the touch event is greater than 60 millimeters (i.e., an example of the first preset length in the hand-held scenario). The preset large object condition in the non-hand-held scenario is that the touch area corresponding to the touch event is greater than 400 square millimeters (i.e., an example of the preset touch area threshold in the non-hand-held scenario), or the first axis of the touch area corresponding to the touch event is greater than 30 millimeters (i.e., an example of the first preset length in the non-hand-held scenario).

[0105] In the embodiment of the present application, the screen of the electronic device is a capacitive touch screen. As Figure 8 shown, the screen of the electronic device may include a plurality of touch points evenly distributed. Each touch point may be a square grid with a side length of 4 millimeters. Each touch point has a corresponding capacitance value. When the screen is touched, the capacitance values of the touch points in the screen change. Specifically, the capacitance value of the touched touch point on the screen becomes larger. The electronic device can detect touch events based on the capacitance values of the respective touch points in the screen. Taking the above preset capacitance value of 2000 as an example. The maximum capacitance value among the capacitance values of the respective touch points in the figure is 2572, which is greater than the preset capacitance value, indicating that the touch event detected by the electronic device is a touch event in the hand-held scenario. Further, the electronic device determines the area formed by the continuous touch points with capacitance values greater than the preset capacitance value among the respective touch points, and this area is the touch area corresponding to the touch event. The electronic device can calculate the area of the touch area or the lengths of the major axis and minor axis of the touch area, etc., according to the side length of each touch point.

[0106] The above capacitance value can be a normalized capacitance value, which is a dimensionless (i.e., unitless) physical quantity. When the touch points of the screen are well grounded, the normalized capacitance value is 3000. The normalized capacitance value can reduce the influence of differences in the design of the touch sensor on the capacitance values obtained by the electronic device. Through normalization processing, the electronic device can normalize the capacitance values obtained at the touch points to a certain range, such as less than or equal to 3000.

[0107] It can be understood that in the embodiment of the present application, the recognition method of the large object event is introduced by taking the screen of the electronic device as a capacitive touch screen as an example, but the screen of the electronic device is not limited to a capacitive touch screen. The screen of the electronic device can also be a touch screen in other forms such as a resistive touch screen. The embodiment of the present application does not limit the form of the touch screen.

[0108] Any one of the above preset anti-mis-touch conditions corresponds to a situation where the electronic device may be mis-touched. Using multiple of the above preset anti-mis-touch conditions in combination can reduce the possibility of mis-touch and improve the accuracy of preventing mis-touch events. For example, when the electronic device is in a low-light environment and in a head-down posture, in this case, the electronic device is very likely to be in a scenario where mis-touch is likely to occur, such as in a pocket, backpack, etc. For another example, when the electronic device is in a moving state, a head-down posture, and a low-light environment, a touch event is detected. In this case, the electronic device is very likely to be in a scenario where mis-touch is likely to occur, such as in a pocket, backpack, etc., and the touch event detected by the electronic device is very likely to be a touch event corresponding to mis-touch.

[0109] In the following embodiments, the electronic device is taken as a mobile phone as an example to introduce the method provided by the embodiments of the present application. As Figure 9 shown, the method provided by the embodiments of the present application may include:

[0110] S901, the mobile phone is in a non-locked and lit state.

[0111] The mobile phone is provided with a lock screen function. When the lock screen function of the mobile phone is turned on, the mobile phone can be unlocked under the control of the user, such as unlocking by fingerprint recognition or face recognition. After the mobile phone is unlocked, it is in a non-locked and lit state. When the lock screen function of the mobile phone is not turned on, the mobile phone can be lit when receiving a user operation, and remain lit for a period of time after being lit without receiving a user operation.

[0112] S902, the mobile phone determines whether the preset anti-mis-touch conditions are met.

[0113] In the non-locked and lit state, the mobile phone collects sensing data in real time through multiple sensors set inside. Further, the mobile phone determines whether the preset anti-mis-touch conditions are met according to the collected sensing data. If the mobile phone detects that at least two of the motion state, low-light environment, top facing the gravity direction, and touch event are satisfied, the mobile phone meets the preset anti-mis-touch conditions.

[0114] If the mobile phone meets the preset anti-mis-touch conditions, then execute S903.

[0115] If the mobile phone does not meet the preset anti-mis-touch conditions, this step can be repeatedly executed. For example, the mobile phone can determine whether the preset anti-mis-touch conditions are met at a preset period (such as 2 seconds, 3 seconds, etc.).

[0116] In some implementations, the mobile phone can respectively determine whether any one of the conditions of the motion state, the low-light environment, the top facing the direction of gravity, and the touch event is met. If the mobile phone detects that at least two of the multiple conditions of being in the motion state, the low-light environment, the top facing the direction of gravity, and the touch event are met, the mobile phone meets the preset anti-mis-touch condition. If the mobile phone meets the preset anti-mis-touch condition, it can be understood that the mobile phone meets all the conditions in the preset anti-mis-touch condition. If the mobile phone does not meet the preset anti-mis-touch condition, it can be understood that the mobile phone does not meet one or more of the conditions in the preset anti-mis-touch condition.

[0117] The process of the mobile phone determining whether any one of the conditions is met can be referred to above and will not be elaborated here.

[0118] S903, the mobile phone displays an anti-mis-touch interface.

[0119] If the mobile phone meets the preset anti-mis-touch condition, the mobile phone enters the anti-mis-touch mode and displays an anti-mis-touch interface on the screen. The anti-mis-touch interface is used to indicate entering the anti-mis-touch mode. In the anti-mis-touch mode, the mobile phone does not respond to other touch events except the preset touch events. Even if the screen of the mobile phone receives a touch, the mobile phone will not make a response. In this way, the mobile phone can reduce the impact of mis-touch in the non-locked screen and lit screen scenario on the mobile phone and the user.

[0120] In one example, the touch event is any touch event that the mobile phone can sense. Such as a touch event with a touch area greater than zero and less than the smaller touch area of the above preset touch area threshold (which can be called an ordinary touch event). Such as Figure 10 As shown, when the mobile phone is in the non-locked screen and lit screen state, it can respectively determine whether the mobile phone is in the motion state, determine whether the mobile phone is in the low-light environment, determine whether the top of the mobile phone faces the direction of gravity (i.e., the head-down posture), and determine whether a touch event is detected. If the mobile phone detects that at least two of the multiple conditions of the motion state, the low-light environment, the head-down posture, and the touch event are simultaneously met, the mobile phone confirms that it meets the preset anti-mis-touch condition and enters the anti-mis-touch mode, and displays an anti-mis-touch interface on the screen.

[0121] In another example, as Figure 11 shown, when the mobile phone is in the non-locked screen and lit screen state, it can respectively determine whether the mobile phone is in the motion state, determine whether the mobile phone is in the low-light environment, determine whether the top of the mobile phone faces the direction of gravity (i.e., the head-down posture), and determine whether a large object event with a large touch area is detected. If the mobile phone meets at least two of the conditions of the motion state, the low-light environment, the head-down posture, and the large object event, the mobile phone confirms that it meets the preset anti-mis-touch condition and enters the anti-mis-touch mode, and displays an anti-mis-touch interface on the screen.

[0122] The preset touch event is used to indicate exiting the false touch prevention mode. The preset touch event may be triggered by a preset operation. For example, the preset operation may be a double-click operation, multiple sliding operations, or long pressing of a side button.

[0123] In some implementations, while displaying the anti-mistaken touch interface, the mobile phone can also issue prompts such as prompt sounds and vibrations to remind the user that a mistaken touch has occurred through prompt sounds, vibrations, etc. In some implementations, the anti-mistaken touch interface can be a transparent interface. For example, the transparency of the anti-mistaken touch interface can be 50%, 70%, etc. The anti-mistaken touch interface can be covered above the bright screen interface. The bright screen interface is the interface displayed on the mobile phone screen before the mobile phone enters the anti-mistaken touch mode when the mobile phone is not locked and the screen is bright. If the mobile phone meets the preset anti-mistaken touch conditions, the anti-mistaken touch interface pops up on the bright screen interface displayed on the screen.

[0124] For example, when the mobile phone detects that the mobile phone is in a dark environment, the mobile phone is in an upside-down posture, and a large object event is detected, the anti-mistouch interface displayed on the screen is as follows: Figure 12 As shown. In the example, the phone is in an upside-down posture, and the anti-mistouch interface of the phone screen is also in an inverted state with the upside-down posture of the phone. The anti-mistouch interface prompts the user to enter the anti-mistouch mode. In addition to prompting the user to enter the anti-mistouch mode, the anti-mistouch interface also includes the prompt information "Do not cover the top of the screen" and the prompt information "Slide twice to exit the anti-mistouch mode" to prompt the user how to exit the anti-mistouch mode. Among them, the operation of sliding twice is the preset operation that triggers the preset touch event.

[0125] In an embodiment of the present application, in a non-locked and bright-screen state, the premise for the mobile phone to enter the anti-mistouch mode is that the mobile phone has turned on the anti-mistouch function corresponding to the anti-mistouch mode under the control of the user. The options of the anti-mistouch function corresponding to the anti-mistouch mode can be set uniformly with other anti-mistouch functions. For example, the anti-mistouch function corresponding to the anti-mistouch mode can have the same options as the anti-mistouch function in the locked screen state. Alternatively, the anti-mistouch function corresponding to the anti-mistouch mode can be set with independent options. Of course, in some implementations, the anti-mistouch function corresponding to the anti-mistouch mode is solidified in the mobile phone and does not require user instructions to turn it on.

[0126] For example, Figure 13 As shown, the phone provides gesture control, scheduled power on and off, and non-lock screen anti-mistouch mode options in the auxiliary functions provided on the settings page. The phone can turn on the anti-mistouch function through the option corresponding to the non-lock screen anti-mistouch mode under the control of the user. After turning on the anti-mistouch function, when the screen is not locked and on, if the phone meets the preset anti-mistouch conditions, it enters the anti-mistouch mode.

[0127] In the embodiment of the present application, when the mobile phone enters the anti-mistaken touch mode, the refresh rate of the screen can also be locked to the first refresh rate. The first refresh rate can be the lowest refresh rate of the screen, such as 60 Hz. In this way, when the mobile phone enters the anti-mistaken touch mode, the refresh rate of the screen will not be too high due to the screen being accidentally touched. Under the premise of not affecting the screen display effect, the power consumption in the anti-mistaken touch mode is reduced as much as possible, such as the optimized power consumption of the mobile phone can be reduced to about 60 mAh to 70 mAh.

[0128] It is understandable that the refresh rate of the mobile phone screen may have multiple gears. For example, taking the mobile phone refresh rate having two gears (such as the first refresh rate and the second refresh rate) as an example, the refresh rate of the mobile phone may be the first refresh rate or the second refresh rate. The first refresh rate is less than the second refresh rate. The second refresh rate may be the highest refresh rate of the mobile phone screen, such as 120 Hz.

[0129] In some implementations, if the mobile phone is running a preset application, such as a game application, video application, or office software, the mobile phone can temporarily turn off the anti-mistouch function corresponding to the anti-mistouch mode. Alternatively, if the mobile phone is running a preset application, the mobile phone can increase the satisfaction threshold corresponding to at least one of the above preset anti-mistouch conditions. For example, the mobile phone can increase the first preset illumination value corresponding to the dark light environment, or increase the preset touch area threshold corresponding to the large object event. In this way, if the user is using mobile games, watching videos, typing, etc., the mobile phone can increase the difficulty of entering the anti-mistouch mode and reduce the impact of false triggering of the anti-mistouch mode on the user experience.

[0130] After the mobile phone enters the anti-accidental touch mode, if the mobile phone meets the preset exit conditions, the mobile phone will exit the anti-accidental touch mode and stop displaying the above anti-accidental touch interface. The preset exit conditions include: detecting that the mobile phone meets a non-dark light environment, the top is facing the opposite direction of gravity, the screen-on time reaches the preset screen-off time, and any one of the preset touch events. If the mobile phone detects that the environment is not dark, the top is facing the opposite direction of gravity, the screen-on time reaches the preset screen-off time, and any one of the preset touch events is met, the electronic device meets the preset exit conditions.

[0131] A non-dark light environment is an environment where the ambient light intensity is greater than or equal to the second preset light value, that is, an environment with strong light intensity. If the mobile phone is in a non-dark light environment, it can be considered that the mobile phone may be removed from a dark light environment such as a pocket or a backpack. In this case, the user is more likely to use the mobile phone. If the mobile phone detects that the environment changes from a dark light environment to a non-dark light environment, the mobile phone can exit the anti-false touch mode, such as canceling the display of the anti-false touch interface on the screen and restoring the display interface before entering the anti-false touch mode.

[0132] The top facing in the opposite direction of the gravity direction can be understood as the top or the head-up posture, or the head-up posture. When the user uses the mobile phone in the vertical screen mode, the top or the head of the mobile phone faces in the opposite direction of the gravity direction. If the top of the mobile phone faces the gravity direction, the possibility of the user using the mobile phone is relatively high. In this case, the mobile phone can exit the anti-mis-touch mode. For example, the mobile phone cancels the display of the anti-mis-touch interface on the screen and restores the display interface before entering the anti-mis-touch mode.

[0133] The screen-on duration can be understood as the duration when the mobile phone screen is on and no user operation is received. If the screen-on duration reaches the preset screen-off duration, such as 15 seconds, 30 seconds, etc., the mobile phone exits the anti-mis-touch mode and enters the screen-off state.

[0134] The preset touch event is used to indicate exiting the anti-mis-touch mode. For example, the trigger event triggered by the two sliding operations in the anti-mis-touch interface as described above. If the mobile phone detects the preset touch event, indicating that the user wants to exit the anti-mis-touch interface, the mobile phone cancels the display of the anti-mis-touch interface on the screen and restores the display interface before entering the anti-mis-touch mode.

[0135] Exemplarily, as Figure 14 shown, after the mobile phone pops up the anti-mis-touch interface in the display interface of the screen, the mobile phone respectively determines whether it is in a non-dark environment, whether the mobile phone is in the head-up posture, whether the screen-on duration reaches the preset screen-off duration, and whether the preset touch event is detected. If the mobile phone is in a non-dark environment, or in the head-up posture, or the screen-on duration reaches the preset screen-off duration, or the preset touch event is detected, the preset exit condition is met, and the mobile phone exits the anti-mis-touch mode and stops displaying the anti-mis-touch interface on the screen.

[0136] Through the preset exit condition, the mobile phone can exit the anti-mis-touch mode in a timely manner. After exiting the anti-mis-touch mode, the mobile phone can normally respond to user operations and provide services to the user.

[0137] "It should be noted that the personal information used in the technical solution of this application is limited to the information obtained with the individual consent of the individual, including but not limited to, before the user uses this function (such as enabling the anti-mis-touch function), notifying and reminding the user to read the relevant user agreement (notification), and signing the agreement (authorization) including authorizing the relevant user information."

[0138] In some other embodiments of the present application, an electronic device is further provided, including: a screen, a memory, and one or more processors. The screen and the memory are respectively coupled to the processor. The screen is used to display an anti-misoperation interface. Computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device can execute each function or step in the above method embodiments. Of course, the electronic device may further include other hardware structures. For example, the electronic device further includes hardware structures such as sensors and communication modules. The structure of the electronic device may refer to Figure 3 the structure of the electronic device shown.

[0139] An embodiment of the present application further provides a chip system, which is applied to an electronic device. The chip system includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. For example, the interface circuit can be used to receive signals from other devices (such as a memory). For another example, the interface circuit can be used to send signals to other devices (such as a processor). Exemplarily, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can execute each step in the above embodiments. Of course, the chip system may further include other discrete devices, and the embodiments of the present application do not make specific limitations thereto.

[0140] An embodiment of the present application further provides a computer-readable storage medium, which includes computer instructions. When the computer instructions run on the above electronic device, the electronic device is caused to execute each function or step in the above method embodiments.

[0141] An embodiment of the present application further provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute each function or step in the above method embodiments. For example, the computer may be the above electronic device.

[0142] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the above division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0143] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0144] The units described as separate components may or may not be physically separated. The components displayed as units may be one physical unit or multiple physical units, that is, they can be located in one place, or they can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0146] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks or optical discs and other various media that can store program codes.

[0147] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application.

Claims

1. A method for preventing accidental touch, characterized in that, applied to an electronic device, the method includes: When the electronic device is in a non-locked and lit screen state, the electronic device responds to a preset accidental touch prevention condition, and the electronic device displays an accidental touch prevention interface, and the accidental touch prevention interface is used to indicate that the electronic device enters the accidental touch prevention mode; The electronic device responds to a preset exit condition, and the electronic device stops displaying the accidental touch prevention interface.

2. The method according to claim 1, characterized in that, The preset accidental touch prevention condition includes: detecting that the electronic device satisfies at least two of being in a moving state, a low-light environment, the top facing the direction of gravity, and a touch event; wherein, the low-light environment is an environment where the ambient light intensity is less than a first preset light value.

3. The method according to claim 1 or 2, characterized in that, The preset exit condition includes: detecting that the electronic device satisfies any one of a non-low-light environment, the opposite direction of the top facing the direction of gravity, the lit screen duration reaching a preset screen-off duration, and a preset touch event; wherein, the non-low-light environment is an environment where the ambient light intensity is greater than or equal to a second preset light value.

4. The method according to any one of claims 1-3, characterized in that, The electronic device has a first refresh rate and a second refresh rate, and the first refresh rate is less than the second refresh rate; the method further includes: In the accidental touch prevention mode, the electronic device locks the refresh rate to the first refresh rate.

5. The method according to any one of claims 2-4, characterized in that, The touch event includes a large object event, and the large object event satisfies a preset large object condition; The preset large object condition includes: the touch area is greater than a preset touch area threshold; or, the first axis of the touch area is greater than a first preset length, and the first axis is greater than the second axis of the touch area.

6. The method according to claim 5, characterized in that, If the capacitance value corresponding to the large object event is greater than a preset capacitance value, then the large object event is a large object event in a hand-held scenario; the large object event in the hand-held scenario satisfies the preset large object condition in the hand-held scenario.

7. The method according to claim 5, characterized in that, If the capacitance value corresponding to the large object event is less than or equal to a preset capacitance value, then the large object event is a large object event in a non-hand-held scenario; the large object event in the non-hand-held scenario satisfies the preset large object condition in the non-hand-held scenario.

8. The method according to any one of claims 1-7, characterized in that, The electronic device includes a preset application; the method further includes: If the preset application is running, then turn off the accidental touch prevention function corresponding to the accidental touch prevention mode; or, If the preset application is running, then increase the satisfaction threshold corresponding to at least one condition in the preset accidental touch prevention condition.

9. An electronic device, characterized in that, including: A screen, a memory, and one or more processors; The memory and the screen are respectively coupled to the processor; The screen is used to display an accidental touch prevention interface; Wherein, a computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device is caused to execute the method according to any one of claims 1-8.

10. A computer storage medium, characterized in that it includes computer instructions. When the computer instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-8.