Anti-accidental touch locking method, terminal device and computer-readable storage medium

By obtaining the lighting intensity during unlocking operation in the terminal device and judging the error touch operation based on the preset interval, the problem of accidentally touching activation of the lock function is solved, and the normal use of the device and user experience are improved.

CN114690924BActive Publication Date: 2025-04-04HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011613731.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2025-04-04
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

The terminal device is prone to activation of the locking function when it is touched by mistake, affecting the normal use of the device and user experience.

Method used

By obtaining the light intensity during N unlocking operations, and determining whether the unlocking operation is a false touch operation based on the preset light intensity range, it is thus determined whether to start the locking function.

Benefits of technology

It improves the accuracy of determining the error touch operation, reduces the long-term locking caused by error touch operation, ensures the normal use of terminal devices and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690924B_ABST
    Figure CN114690924B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of terminal technology, and in particular, to an anti-mistouch locking method, a terminal device, and a computer-readable storage medium. In the method, when the terminal device is not unlocked after N unlocking operations, the terminal device can obtain the light intensity of the environment in which the terminal device is located when the N unlocking operations are performed. When the light intensity is within a preset light intensity interval, the terminal device can determine that the N unlocking operations are mistouch operations. At this time, the terminal device may not start the locking function of the terminal device, so as to determine whether the current N unlocking operations are mistouch operations through the pre-constructed light intensity interval, which can effectively improve the accuracy of determining mistouch operations, reduce the long-term locking of the terminal device caused by mistouch operations, ensure the normal use of the terminal device, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and in particular, relates to an anti-accidental-touch locking method, a terminal device, and a computer-readable storage medium. Background Art

[0002] At present, all terminal devices are equipped with touch screens, and users can operate the terminal devices by touching the screens, which greatly facilitates user use. However, the sensitivity of the touch screens is prone to misoperation. For example, when the terminal device is in a pocket or a backpack, the pocket or backpack is close to the body, so that the human body touches the touch screen, thereby performing an unlocking operation on the terminal device. However, this unlocking operation is often not a correct unlocking operation, resulting in the terminal device being accidentally touched multiple times and activating the locking function, affecting the normal use of the terminal device and affecting the user experience. Summary of the invention

[0003] The embodiments of the present application provide a method for preventing accidental touch locking, a terminal device, and a computer-readable storage medium, which can effectively solve the problem of accidentally touching and activating the locking function of the terminal device and affecting the normal use of the terminal device.

[0004] In a first aspect, an embodiment of the present application provides an anti-accidental touch locking method, which is applied to a terminal device, and the method includes:

[0005] When the terminal device is not unlocked after N unlocking operations, obtaining the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, where N is an integer greater than or equal to 1;

[0006] When the light intensity is within a preset light intensity range, the N unlocking operations are determined to be false touch operations, and the locking function of the terminal device is not activated. The light intensity range is constructed based on the light intensity corresponding to the false touch operations before the N unlocking operations.

[0007] Optionally, the method further comprises:

[0008] When there is a light intensity that is not within the light intensity interval, it is determined that the N unlocking operations are not accidental touch operations, and the locking function of the terminal device is started.

[0009] Through the above-mentioned anti-accidental touch locking method, when the terminal device is not unlocked after N unlocking operations, the terminal device can obtain the light intensity of the environment where the terminal device is located when the N unlocking operations are performed. When the light intensity is within the preset light intensity range, the terminal device can determine that the N unlocking operations are accidental touch operations. At this time, the terminal device can not start the locking function of the terminal device, so as to determine whether the current N unlocking operations are accidental touch operations through the previously constructed light intensity range, which can effectively improve the accuracy of determining accidental touch operations, reduce the long-term locking of the terminal device caused by accidental touch operations, ensure the normal use of the terminal device, and improve the user experience.

[0010] In a possible implementation manner of the first aspect, when the light intensity is within a preset light intensity interval, determining that the N unlocking operations are mis-touch operations includes:

[0011] When the light intensity is within the light intensity interval, acquiring a touch area of ​​the touch point corresponding to the N unlocking operations in the display interface of the terminal device;

[0012] Determining the touch accuracy of the N unlocking operations according to the touch area;

[0013] When the touch accuracy is less than or equal to a preset threshold, it is determined that the N unlocking operations are mis-touch operations.

[0014] Optionally, after determining the touch accuracy rates of the N unlocking operations according to the touch area, the method further includes:

[0015] When the touch accuracy rate is greater than the preset threshold, it is determined that the N unlocking operations are not mistaken touch operations, and the locking function of the terminal device is started.

[0016] In the anti-mistouch locking method provided by the implementation, the determination of mistouch operation can be performed in combination with the touch area corresponding to the unlocking operation. That is, when the terminal device is not unlocked after N unlocking operations, the terminal device can obtain the light intensity of the environment in which the terminal device is located when the N unlocking operations are performed. When the light intensity is in the preset light intensity range, the terminal device can obtain the touch area of ​​the touch point corresponding to the N unlocking operations in the display interface, and can determine the touch accuracy of the N unlocking operations based on the touch area. When the touch accuracy is less than or equal to the preset threshold, the terminal device can determine that the N unlocking operations are mistouch operations. At this time, the terminal device can not start the locking function of the terminal device, and determine the determination of mistouch operation in combination with the light intensity range and the touch accuracy, which can effectively improve the accuracy of mistouch operation determination, reduce the long-term locking of the terminal device caused by mistouch operations, ensure the normal use of the terminal device, and improve the user experience.

[0017] Specifically, determining the touch accuracy of the N unlocking operations according to the touch area includes:

[0018] Acquire the number of first touch points where the touch area is located in a first preset area and the number of second touch points where the touch area is located in a second preset area, wherein the first preset area is an area where a character or fingerprint input box is located in the display interface, and the second preset area is an area in the display interface other than the first preset area;

[0019] The touch correctness rates of the N unlocking operations are determined according to the number of the first touch points and the number of the second touch points.

[0020] In a possible implementation manner of the first aspect, after obtaining the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, the method further includes:

[0021] When the N unlocking operations trigger the locking function of the terminal device for the first time within a preset time period, a confirmation message is displayed on the display interface of the terminal device, and the confirmation message is used for the user to confirm whether the N unlocking operations are accidental touch operations;

[0022] In response to a confirmation operation on the confirmation information, the illumination intensity interval is constructed according to the illumination intensity.

[0023] Exemplarily, displaying the confirmation information in the display interface of the terminal device includes:

[0024] Activating a locking function of the terminal device;

[0025] When the terminal device is unlocked, the confirmation information is displayed in the display interface of the terminal device.

[0026] It should be understood that the method further comprises:

[0027] When the N unlocking operations are not within the preset time period and the locking function of the terminal device is triggered for the first time, it is determined whether the light intensity is within the light intensity interval.

[0028] In the anti-mistouch locking method provided by this implementation, the preset light intensity interval can be constructed according to the light intensity corresponding to the mistouch operation during the unlocking process of the terminal device. That is, the light intensity interval can be constructed according to the light intensity corresponding to the mistouch operation determined by the user during the unlocking process to ensure the accuracy of the light intensity interval construction, thereby improving the accuracy of the mistouch operation determination. At the same time, the terminal device can also periodically update the light intensity interval to ensure that the constructed light intensity interval meets the real-time changing scene requirements and improve the accuracy of the mistouch operation determination.

[0029] In a second aspect, an embodiment of the present application provides an anti-accidental touch locking device, which is applied to a terminal device, and the device includes:

[0030] A light intensity acquisition module, used to acquire the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, when the terminal device is not unlocked after the N unlocking operations, where N is an integer greater than or equal to 1;

[0031] The anti-mistouch locking module is used to determine that the N unlocking operations are mistouch operations when the light intensity is within a preset light intensity range, and not activate the locking function of the terminal device. The light intensity range is constructed based on the light intensity corresponding to the mistouch operations before the N unlocking operations.

[0032] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the terminal device implements any of the methods described in the first aspect.

[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a computer, the computer implements any one of the methods described in the first aspect.

[0034] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.

[0035] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a schematic diagram of the structure of a terminal device to which the anti-mistouch locking method provided in an embodiment of the present application is applicable;

[0037] Figure 2 Schematic diagram of software architecture applicable to the anti-accidental touch locking method provided in one embodiment of the present application;

[0038] Figure 3 is a schematic diagram of an unlocking interface provided by an embodiment of the present application;

[0039] Figure 4 It is a flowchart of an anti-mistouch locking method provided by an embodiment of the present application;

[0040] Figure 5It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0041] Figure 6 is a flowchart of an anti-accidental-touch locking method provided by another embodiment of the present application;

[0042] Figure 7 It is a schematic diagram of the structure of the anti-mistouch locking device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0045] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0048] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0049] The steps involved in the anti-mistouch locking method provided in the embodiments of the present application are only examples. Not all steps are mandatory, or not all information or messages are mandatory. They can be increased or decreased as needed during use. The same step or steps or messages with the same function in different embodiments of the present application can be referenced to each other.

[0050] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art will appreciate that, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0051] At present, all terminal devices are equipped with touch screens, and users can operate the terminal devices by touching the screens, which greatly facilitates user use. However, the sensitivity of the touch screens is prone to misoperation. For example, when the terminal device is in a pocket or a backpack, the pocket or backpack is close to the body, so that the human body touches the touch screen, thereby performing an unlocking operation on the terminal device. However, this unlocking operation is often not a correct unlocking operation, which causes the terminal device to be accidentally touched multiple times and activate the locking function, affecting the normal use of the terminal device and affecting the user experience.

[0052] To solve the above problems, the embodiments of the present application provide an anti-mistouch locking method, a terminal device, and a computer-readable storage medium. In the method, when the terminal device is not unlocked after N unlocking operations, the terminal device can obtain the light intensity of the environment in which the terminal device is located when the N unlocking operations are performed. When the light intensity is in a preset light intensity interval, the light intensity interval is constructed according to the light intensity corresponding to the mistouch operation before the N unlocking operations. The terminal device can determine that the N unlocking operations are mistouch operations. At this time, the terminal device may not start the locking function of the terminal device to determine whether the current N unlocking operations are mistouch operations through the light intensity interval constructed by the previous mistouch operation. This can effectively improve the accuracy of the determination of mistouch operations, reduce the long-term locking of the terminal device caused by mistouch operations, ensure the normal use of the terminal device, improve the user experience, and have strong ease of use and practicality.

[0053] The terminal device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a wearable device, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), or other terminal device with a touch screen. The embodiments of the present application do not impose any restrictions on the specific type of the terminal device.

[0054] The following first introduces the terminal device involved in the embodiment of the present application. Figure 1 , Figure 1 A schematic structural diagram of a terminal device 100 is shown.

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

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

[0057] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0058] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

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

[0060] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.

[0061] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the terminal device 100.

[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0063] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0064] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0065] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.

[0066] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0067] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.

[0068] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0069] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.

[0070] 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 supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. 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.

[0071] The wireless communication function of the terminal 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.

[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0073] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal 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.

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

[0075] 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 terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0076] In some embodiments, the antenna 1 of the terminal 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 terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology 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).

[0077] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0078] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0079] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0080] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0081] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0082] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0083] Video codecs are used to compress or decompress digital videos. The terminal device 100 may support one or more video codecs. Thus, the terminal device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0084] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0085] 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 terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0086] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal 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. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0087] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0088] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the touch operation intensity according to the pressure sensor 180A. The terminal device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0089] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and pocket mode automatically unlocks and locks the screen.

[0090] The ambient light sensor 180L is used to sense the ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.

[0091] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0092] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the terminal device 100, which is different from the position of the display screen 194.

[0093] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.

[0094] 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.

[0095] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0096] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal 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 terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

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

[0098] Figure 2 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.

[0099] 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, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0100] The application layer can include a series of application packages.

[0101] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0102] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0103] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0104] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0105] 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.

[0106] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0107] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).

[0108] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0109] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

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

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

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

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

[0114] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0115] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0116] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0117] A 2D graphics engine is a drawing engine for 2D drawings.

[0118] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0119] The following is an illustrative description of the software and hardware workflow of the terminal device 100 in conjunction with the capture and photo shooting scene.

[0120] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.

[0121] The anti-mistouch locking method provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0122] The anti-mistouch locking method provided in the embodiment of the present application is applied to the scenario where the terminal device is in the locked screen state. The locked screen state can be the locked screen state when the screen is on or the locked screen state when the screen is off. For example, when the terminal device is in the locked screen state when the screen is on, the terminal device can enter the locked screen state when detecting a click or touch operation in the display interface. Figure 3 When the terminal device is in the locked screen state with the screen off, the terminal device can switch the display interface of the terminal device from the off screen to the bright screen when detecting the first click or touch operation in the display interface. Then, when detecting the second click or touch operation in the display interface, the terminal device can enter Figure 3 The unlocking interface is shown. Figure 3 As shown, the unlocking interface may display a password input box, and may also display characters such as numbers and symbols for the user to enter a password, and may display a fingerprint input box for the user to enter a fingerprint. The terminal device may trigger the terminal device to unlock according to the password or fingerprint entered by the user in the unlocking interface.

[0123] Current terminal devices generally have a locking function, which allows the terminal device to lock the terminal device when it detects N incorrect unlocking operations within a preset time, so that the user cannot operate the terminal device within a certain period of time, thereby ensuring the security of the terminal device. Among them, the preset time, N and the certain period of time can be determined separately according to actual conditions. For example, the preset time can be determined as 10 minutes, N can be determined as 5, and the certain period of time can be determined as 15 minutes. That is, when the terminal device detects 5 incorrect unlocking operations within 10 minutes, the terminal device can lock the terminal device for 15 minutes, so that the user cannot operate the terminal device within these 15 minutes. The N unlocking operations described below are all N unlocking operations within the preset time.

[0124] However, when the existing terminal device detects N wrong unlocking operations within a preset time, it directly activates the locking function of the terminal device. In actual operation, many wrong unlocking operations are often not actively input by humans, but caused by accidental touch operations. At this time, if the locking function of the terminal device is directly activated, it will greatly affect the normal use of the terminal device and the user experience. Therefore, the embodiment of the present application provides an anti-accidental touch locking method, which can reduce the long-term locking of the terminal device caused by accidental touch operations, ensure the normal use of the terminal device, and improve the user experience.

[0125] [Example 1]

[0126] See also Figure 4 , Figure 4 FIG. 1 shows a schematic flow chart of an anti-mistouch locking method provided in Embodiment 1 of the present application. The method can be applied to Figure 1 The terminal device shown in FIG. Figure 4 As shown, the anti-accidental-touch locking method may include:

[0127] S401. When the terminal device is not unlocked after N unlocking operations, obtain the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, where N is an integer greater than or equal to 1.

[0128] In this embodiment, when the terminal device detects N erroneous unlocking operations within a preset time, that is, when the terminal device is not unlocked by these N unlocking operations, the terminal device can obtain the light intensity corresponding to each unlocking operation to determine whether the terminal device is in a pocket or a backpack, etc. according to the light intensity, thereby determining whether these N unlocking operations are erroneous touch operations and whether the locking function of the terminal device needs to be activated. Among them, the light intensity corresponding to each unlocking operation refers to the light intensity of the environment where the terminal device is located when each unlocking operation is performed.

[0129] Specifically, each time an unlock operation is performed, the terminal device can obtain the light intensity of the environment in which the terminal device is located through the ambient light sensor in the terminal device, and can associate the obtained light intensity with the current unlock operation and save it in the terminal device. Subsequently, the terminal device can directly obtain the light intensity of the environment in which the terminal device is located when each unlock operation is performed from the stored light intensity.

[0130] S402. When the light intensity is within a preset light intensity range, determine that N unlocking operations are mis-touch operations, and do not activate the locking function of the terminal device. The light intensity range is constructed based on the light intensity corresponding to the mis-touch operations before the N unlocking operations.

[0131] In this embodiment, the preset illumination intensity interval can be constructed according to the illumination intensity corresponding to the accidental touch operation during the unlocking process of the terminal device. Figure 5 , Figure 5 The following is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 5 As shown in (a) of FIG. 1 , when a certain N unlocking operations trigger the locking function of the terminal device for the first time, that is, when the locking function of the terminal device is triggered for the first time, the terminal device may display a confirmation window 500 in the unlocking interface, and the confirmation window 500 may display a confirmation message of "whether these N unlocking operations are accidental touch operations", and may display a "yes" button 501 and a "no" button 502. When the user clicks or touches the "yes" button 501, the terminal device may determine that these N unlocking operations are accidental touch operations. At this time, the terminal device may not activate the locking function of the terminal device, for example, it may continue to display Figure 3 The unlocking interface shown is used for the user to input a password or fingerprint. At the same time, the terminal device can also construct a preset light intensity interval according to the light intensity corresponding to these N unlocking operations. Subsequently, when the terminal device detects N unlocking operations that trigger the locking function of the terminal device again, the terminal device can directly determine whether these N unlocking operations are accidental touch operations based on whether the light intensities corresponding to these N unlocking operations are within the light intensity interval, so as to determine whether it is necessary to activate the locking function of the terminal device. When the user clicks or touches the "No" button 502, it can be indicated that these N unlocking operations are human-initiated input operations rather than accidental touch operations. At this time, the terminal device can activate the locking function of the terminal device to enter the following example. Figure 5 The lock screen interface shown in (b) in the figure may display a prompt message stating “Wrong password input, please try again after 15 minutes”.

[0132] In one example, when a certain N unlocking operations trigger the locking function of the terminal device for the first time, the terminal device may first start the locking function of the terminal device to lock the terminal device for a certain period of time, prevent the terminal device from being repeatedly attempted to unlock, and ensure the security of the terminal device. Then, the terminal device may display a confirmation window 500 when the terminal device is successfully unlocked, that is, the confirmation window 500 may be displayed in the display interface (e.g., the main interface) after the terminal device is unlocked. The confirmation window 500 may display confirmation information of "whether these N unlocking operations are mis-touch operations", and may display a "yes" button 501 and a "no" button 502. When the user clicks or touches the "yes" button 501, the terminal device may construct a light intensity interval according to the light intensity corresponding to these N unlocking operations, so as to effectively increase the possibility of the confirmation information being viewed by the user by displaying the confirmation information in the terminal device after successful unlocking, and improve the effectiveness of the display of the confirmation information, so as to facilitate the accurate determination of the mis-touch operation, thereby facilitating the construction of an accurate and effective light intensity interval.

[0133] In another example, to ensure that the constructed illumination intensity interval meets the real-time changing scene requirements, the terminal device can periodically update the illumination intensity interval. That is, the terminal device can reconstruct the illumination intensity interval every preset time. Among them, the preset time can be determined according to the specific situation. For example, the preset time can be determined as any value such as 3 days, 5 days or 10 days. The following is an exemplary description using the preset time of 10 days as an example. Therefore, when the locking function of the terminal device is triggered for the first time within the first 10 days, the terminal device can display a confirmation window, which can display confirmation information of "whether these N unlocking operations are accidental touch operations", and can display "yes" button and "no" button. When the user clicks or touches the "yes" button, the terminal device can construct the illumination intensity interval according to the illumination intensities corresponding to the N unlocking operations, so that in the subsequent time of the first 10 days, the terminal device can directly judge the accidental touch operation according to the illumination intensity interval, so as to determine whether the locking function of the terminal device needs to be activated. When entering the second 10 days, the terminal device can reconstruct the light intensity interval, that is, it can re-acquire the N accidental touch operations that triggered the terminal device's lock function for the first time within the second 10 days, and can reconstruct the light intensity interval according to the light intensities corresponding to these N accidental touch operations, so that in the subsequent time of the second 10 days, the terminal device can directly judge the accidental touch operation according to the reconstructed light intensity interval, so as to determine whether the terminal device's lock function needs to be activated. The third 10 days, the fourth 10 days, the fifth 10 days, and so on, can refer to the above content to update the light intensity interval.

[0134] In this embodiment, the terminal device can calculate the mean μ and variance σ of the light intensity corresponding to the N unlocking operations, and can construct a preset light intensity interval based on μ and σ. Exemplarily, the terminal device can determine the light intensity interval as [μ-N*σ, μ+N*σ].

[0135] Therefore, after obtaining the light intensity corresponding to N unlocking operations, the terminal device can first determine whether these N unlocking operations trigger the locking function of the terminal device for the first time. When these N unlocking operations are not the first time to trigger the locking function of the terminal device, the terminal device can further determine whether the light intensities corresponding to these N unlocking operations are all within the preset light intensity interval. When the light intensities corresponding to these N unlocking operations are all within the light intensity interval, the terminal device can determine that when these N unlocking operations are performed, the terminal device is in a pocket or backpack, etc. At this time, the terminal device can determine that these N unlocking operations are mis-touch operations, that is, the locking function of the terminal device can be not activated, so that the user can still use the terminal device normally, improving the user experience. When these N unlocking operations trigger the locking function of the terminal device for the first time, the terminal device can process the terminal device and construct the light intensity interval according to the aforementioned method.

[0136] S403: When there is a light intensity that is not within the light intensity range, determine that the N unlocking operations are not accidental touch operations, and start the locking function of the terminal device.

[0137] It can be understood that when there is a light intensity that is not within the light intensity range among the light intensities corresponding to N unlocking operations, the terminal device may consider that the terminal device may not be in a pocket or backpack when the N unlocking operations are performed, that is, it can be considered that these N unlocking operations may not be accidental touch operations. Therefore, to ensure the security of the terminal device, the terminal device can directly determine that these N unlocking operations are not accidental touch operations, and activate the locking function of the terminal device to lock the terminal device for a certain period of time.

[0138] In this embodiment, when the terminal device is not unlocked after N unlocking operations, the terminal device may obtain the light intensity of the environment in which the terminal device is located when the N unlocking operations are performed. When the light intensity is within a preset light intensity range, the terminal device may determine that the N unlocking operations are accidental touch operations. At this time, the terminal device may not activate the locking function of the terminal device, so as to determine whether the current N unlocking operations are accidental touch operations through the previously constructed light intensity range, which can effectively improve the accuracy of determining accidental touch operations, reduce the long-term locking of the terminal device caused by accidental touch operations, ensure the normal use of the terminal device, and improve the user experience.

[0139] It should be noted that the anti-mistouch locking method provided in this embodiment can also be used in combination with the existing pocket mode to improve the accuracy of pocket mode determination. Specifically, when the terminal device is determined to be in a pocket or backpack according to the anti-mistouch locking method provided in this embodiment, that is, when N unlocking operations are determined to be mistouch operations, the terminal device can start the pocket mode of the terminal device. Alternatively, when the terminal device detects each unlocking operation, it can obtain the light intensity of the environment where the terminal device is located when the unlocking operation is performed, and can determine whether the unlocking operation is a mistouch operation based on whether the light intensity is within the light intensity range constructed in this embodiment, thereby determining whether the terminal device is currently in a pocket or backpack, etc., and thus determining whether the pocket mode of the terminal device needs to be started.

[0140] [Example 2]

[0141] See also Figure 6 , Figure 6 FIG. 1 is a schematic flow chart of a method for preventing accidental touch locking provided in Embodiment 2 of the present application. The method can be applied to Figure 1 The terminal device shown in FIG. Figure 6 As shown, the anti-accidental-touch locking method may include:

[0142] S601. When the terminal device is not unlocked after N unlocking operations, obtain the light intensity of the environment where the terminal device is located when the N unlocking operations are performed.

[0143] Among them, S601 is similar to S401 in the first embodiment, and has the same basic principle. The specific content can refer to S401 in the embodiment, and for the sake of brevity, it will not be repeated here.

[0144] S602: Determine whether the light intensity is within a preset light intensity range.

[0145] S603: When the light intensity is within the light intensity interval, obtain the touch area of ​​the touch points corresponding to N unlocking operations in the display interface of the terminal device.

[0146] S604: Determine the touch accuracy of N unlocking operations according to the touch area.

[0147] It is understandable that when a person actively enters a password or fingerprint to unlock a terminal device, it is usually done by directly clicking or touching Figure 3The area where the characters such as numbers or symbols shown are located, or the area where the fingerprint input box is located. Due to the uncertainty of false touches, the possibility of clicking or touching the area where the characters or fingerprints are located each time in the false touch operation is small, that is, the false touch operation often requires multiple clicks or touches in the display interface to accurately click or touch the area where the characters or fingerprint input box are located. Therefore, in this embodiment, a preset threshold can be set in advance, and the preset threshold can be the minimum correct rate of the user clicking or touching the characters or fingerprint input box in N correct unlocking operations, so that it can be determined whether these N unlocking operations are false touch operations based on the touch accuracy rate corresponding to the N unlocking operations and the preset threshold.

[0148] The preset threshold value may be specifically set by the terminal device according to actual conditions, or may be customized by the user. For example, the terminal device may set the preset threshold value to any value such as 0.7 or 0.8 according to the user's historical correct unlocking operations. For example, the user may also customize the preset threshold value to any value such as 0.6 or 0.75 according to actual conditions.

[0149] Specifically, during the execution of these N unlocking operations, the terminal device can obtain the touch areas of the touch points corresponding to these N unlocking operations in the display interface, and can determine the touch accuracy of these N unlocking operations based on the touch areas, so that the false touch operations can be determined based on the touch accuracy. Among them, the touch points corresponding to the unlocking operation may include a first touch point that clicks or touches a first preset area, and may also include a second touch point that clicks or touches a second preset area. The first preset area refers to the area where the characters or fingerprint input box are located in the display interface, and the second preset area refers to the area in the display interface other than the area where the characters or fingerprint input box are located, that is, the second preset area is a blank area in the display interface.

[0150] In this embodiment, the terminal device can count the touch points corresponding to each unlock operation respectively, and can obtain all the touch points corresponding to the N unlock operations according to the touch points corresponding to each unlock operation. Alternatively, in order to facilitate the statistics of touch points, in this embodiment, the terminal device can directly determine the statistical time of the touch points as the time from the first click or touch of the area where the character or fingerprint input box is located to the end of the recognition of the N unlock operations. That is, the terminal device can start to obtain the first touch point or the second touch point after detecting the first click or touch of the area where the character or fingerprint input box is located, until the recognition of the N unlock operations is completed, and obtain all the touch points corresponding to the N unlock operations.

[0151] Exemplarily, the terminal device may obtain the number of first touch points and the number of second touch points, and may determine the touch accuracy of the N unlocking operations according to the number of first touch points / (the number of first touch points+the number of second touch points).

[0152] For example, in N unlocking operations, when the terminal device obtains that the number of first touch points for clicking or touching the area where the characters or fingerprint input box are located is 21, and the number of second touch points for clicking or touching the blank area in the display interface is 29, the terminal device can determine that the touch accuracy of these N unlocking operations is 21 / (21+29)=0.42.

[0153] S605: Determine whether the touch accuracy is greater than a preset threshold.

[0154] S606: When the touch accuracy rate is less than or equal to a preset threshold, determine that the N unlocking operations are mis-touch operations, and do not start the locking function of the terminal device.

[0155] S607: When the touch accuracy is greater than a preset threshold, or when there is a light intensity that is not within the light intensity range, it is determined that the N unlocking operations are not accidental touch operations, and the locking function of the terminal device is started.

[0156] For the above S605 and S607, when the touch accuracy rate of these N unlocking operations is less than or equal to the preset threshold, the terminal device can determine that these N unlocking operations are not human-initiated input operations, that is, these N unlocking operations can be determined as mis-touch operations, so that the locking function of the terminal device is not activated, so as to facilitate the user to continue to operate the terminal device and improve the user experience. When the touch accuracy rate of these N unlocking operations is greater than the preset threshold, the terminal device can determine that these N unlocking operations may be human-initiated input operations. At this time, the terminal device can determine that these N unlocking operations are not mis-touch operations, and activate the locking function of the terminal device to lock the terminal device for a certain period of time, so that the user cannot operate the terminal device within the period of time.

[0157] It can be understood that when there is a light intensity that is not within the light intensity range among the light intensities corresponding to N unlocking operations, the terminal device can also consider that the terminal device may not be in a pocket or backpack when the N unlocking operations are performed, that is, it can be considered that these N unlocking operations may not be accidental touch operations. At this time, the terminal device can directly determine that these N unlocking operations are not accidental touch operations, and start the locking function of the terminal device.

[0158] In this embodiment, when the terminal device is not unlocked after N unlocking operations, the terminal device may obtain the light intensity of the environment in which the terminal device is located when the N unlocking operations are performed. When the light intensity is within a preset light intensity range, the terminal device may obtain the touch area of ​​the touch point corresponding to the N unlocking operations in the display interface, and determine the touch accuracy of the N unlocking operations based on the touch area. When the touch accuracy is less than or equal to the preset threshold, the terminal device may determine that the N unlocking operations are mis-touch operations. At this time, the terminal device may not start the locking function of the terminal device, and determine the determination of mis-touch operations by combining the light intensity range and the touch accuracy, which can effectively improve the accuracy of the determination of mis-touch operations, reduce the long-term locking of the terminal device caused by mis-touch operations, ensure the normal use of the terminal device, and improve the user experience.

[0159] It should be noted that the anti-mistouch locking method provided in this embodiment can also be used in combination with the existing pocket mode to improve the accuracy of pocket mode determination. Specifically, when the terminal device is determined to be in a pocket or backpack according to the anti-mistouch locking method provided in this embodiment, that is, when it is determined that N unlocking operations are mistouch operations, the terminal device can start the pocket mode of the terminal device. Alternatively, when the terminal device detects each unlocking operation, it can obtain the light intensity of the environment in which the terminal device is located when the unlocking operation is performed and the touch area of ​​the touch point corresponding to the unlocking operation in the display interface, and can determine the touch accuracy of the unlocking operation based on the touch area, so as to determine whether the unlocking operation is a mistouch operation based on whether the light intensity is in the light intensity interval constructed in this embodiment, and whether the touch accuracy is less than or equal to the preset threshold, so as to determine whether the terminal device is currently in a pocket or backpack, etc., so as to determine whether the pocket mode of the terminal device needs to be started.

[0160] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0161] Corresponding to the anti-accidental-touch locking method described in the above embodiment, Figure 7 The structure block diagram of the anti-accidental touch locking device provided by the embodiment of the present application is shown. For the convenience of description, only the part related to the embodiment of the present application is shown. The anti-accidental touch locking device can be applied to a terminal device.

[0162] Reference Figure 7 The anti-accidental-touch locking device may include:

[0163] The light intensity acquisition module 701 is used to acquire the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, when the terminal device is not unlocked after the N unlocking operations, where N is an integer greater than or equal to 1;

[0164] The anti-mistouch locking module 702 is used to determine that the N unlocking operations are mistouch operations when the light intensity is within a preset light intensity range, and not activate the locking function of the terminal device. The light intensity range is constructed based on the light intensity corresponding to the mistouch operations before the N unlocking operations.

[0165] Exemplarily, the anti-accidental-touch locking device may further include:

[0166] The locking module is used to determine that the N unlocking operations are not accidental touch operations when there is a light intensity that is not within the light intensity interval, and to start the locking function of the terminal device.

[0167] In a possible implementation, the anti-mistake-touch locking module 702 may include:

[0168] a touch area acquisition unit, configured to acquire, when the light intensity is within the light intensity interval, a touch area of ​​the touch point corresponding to the N unlocking operations in the display interface of the terminal device;

[0169] A touch accuracy determination unit, configured to determine the touch accuracy of the N unlocking operations according to the touch area;

[0170] The false touch operation determination unit is used to determine that the N unlocking operations are false touch operations when the touch accuracy rate is less than or equal to a preset threshold.

[0171] Exemplarily, the anti-mistake-touch locking module 702 may further include:

[0172] The locking unit is used to determine that the N unlocking operations are not accidental touch operations when the touch accuracy rate is greater than the preset threshold, and to start the locking function of the terminal device.

[0173] Specifically, the touch accuracy determination unit is specifically used to obtain the number of first touch points in the touch area located in a first preset area and the number of second touch points in the touch area located in a second preset position, the first preset area is the area where the characters or fingerprint input box are located in the display interface, and the second preset area is the area in the display interface other than the first preset area; determine the touch accuracy of the N unlocking operations based on the number of the first touch points and the number of the second touch points.

[0174] In a possible implementation, the anti-accidental-touch locking device may further include:

[0175] A confirmation information display module, used for displaying confirmation information in the display interface of the terminal device when the N unlocking operations trigger the locking function of the terminal device for the first time within a preset time period, wherein the confirmation information is used for the user to confirm whether the N unlocking operations are accidental touch operations;

[0176] The intensity interval construction module is used to construct the illumination intensity interval according to the illumination intensity in response to a confirmation operation on the confirmation information.

[0177] Optionally, the confirmation information display module is specifically used to start the locking function of the terminal device; when the terminal device is unlocked, the confirmation information is displayed in the display interface of the terminal device.

[0178] Exemplarily, the anti-accidental-touch locking device may further include:

[0179] The light intensity judgment module is used to determine whether the light intensity is within the light intensity interval when the locking function of the terminal device is triggered for the first time after the N unlocking operations are not within the preset time period.

[0180] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0181] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0182] The embodiment of the present application also provides a terminal device, the terminal device includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor, and when the processor executes the computer program, the terminal device implements the steps in any of the above-mentioned method embodiments. Exemplarily, the structure of the terminal device can be as follows: Figure 1 shown.

[0183] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer implements the steps in any of the above method embodiments.

[0184] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device implements the steps in any of the above method embodiments.

[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable storage medium cannot be an electric carrier signal and a telecommunication signal.

[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0187] Those of ordinary skill in the art will appreciate that the units and algorithm 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 to be beyond the scope of this application.

[0188] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, 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.

[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0190] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for preventing accidental touch locking, applied to a terminal device, characterized in that: The method comprises: When the terminal device is not unlocked after N unlocking operations, obtaining the light intensity of the environment where the terminal device is located when the N unlocking operations are performed, where N is an integer greater than or equal to 1; When the light intensity is within a preset light intensity range, the N unlocking operations are determined to be false touch operations, and the locking function of the terminal device is not activated. The light intensity range is constructed based on the light intensity corresponding to the false touch operations before the N unlocking operations.

2. The method according to claim 1, characterized in that The method further comprises: When there is a light intensity that is not within the light intensity interval, it is determined that the N unlocking operations are not accidental touch operations, and the locking function of the terminal device is started.

3. The method according to claim 1, characterized in that When the light intensity is within a preset light intensity range, determining that the N unlocking operations are mis-touch operations includes: When the light intensity is within the light intensity interval, acquiring a touch area of ​​the touch point corresponding to the N unlocking operations in the display interface of the terminal device; determining the touch accuracy of the N unlocking operations according to the touch area; the touch accuracy of the N unlocking operations refers to the ratio between the first touch point corresponding to the N unlocking operations and all touch points corresponding to the N unlocking operations, the first touch point being a touch point that clicks or touches the area where the character or fingerprint input box in the display interface is located; When the touch accuracy is less than or equal to a preset threshold, it is determined that the N unlocking operations are mis-touch operations.

4. The method according to claim 2, characterized in that: When the light intensity is within a preset light intensity range, determining that the N unlocking operations are mis-touch operations includes: When the light intensity is within the light intensity interval, acquiring a touch area of ​​the touch point corresponding to the N unlocking operations in the display interface of the terminal device; determining the touch accuracy of the N unlocking operations according to the touch area; the touch accuracy of the N unlocking operations refers to the ratio between the first touch point corresponding to the N unlocking operations and all touch points corresponding to the N unlocking operations, the first touch point being a touch point that clicks or touches the area where the character or fingerprint input box in the display interface is located; When the touch accuracy is less than or equal to a preset threshold, it is determined that the N unlocking operations are mis-touch operations.

5. The method according to claim 3, characterized in that: After determining the touch accuracy of the N unlocking operations according to the touch area, the method includes: When the touch accuracy rate is greater than the preset threshold, it is determined that the N unlocking operations are not mistaken touch operations, and the locking function of the terminal device is started.

6. The method according to claim 4, characterized in that After determining the touch accuracy of the N unlocking operations according to the touch area, the method includes: When the touch accuracy rate is greater than the preset threshold, it is determined that the N unlocking operations are not mistaken touch operations, and the locking function of the terminal device is started.

7. The method according to claim 3, characterized in that The determining the touch accuracy of the N unlocking operations according to the touch area includes: Acquire the number of first touch points where the touch area is located in a first preset area and the number of second touch points where the touch area is located in a second preset area, wherein the first preset area is an area where a character or fingerprint input box is located in the display interface, and the second preset area is an area in the display interface other than the first preset area; The touch correctness rates of the N unlocking operations are determined according to the number of the first touch points and the number of the second touch points.

8. The method according to claim 4, characterized in that The determining the touch accuracy of the N unlocking operations according to the touch area includes: Acquire the number of first touch points where the touch area is located in a first preset area and the number of second touch points where the touch area is located in a second preset area, wherein the first preset area is an area where a character or fingerprint input box is located in the display interface, and the second preset area is an area in the display interface other than the first preset area; The touch correctness rates of the N unlocking operations are determined according to the number of the first touch points and the number of the second touch points.

9. The method according to claim 5, characterized in that The determining the touch accuracy of the N unlocking operations according to the touch area includes: Acquire the number of first touch points where the touch area is located in a first preset area and the number of second touch points where the touch area is located in a second preset area, wherein the first preset area is an area where a character or fingerprint input box is located in the display interface, and the second preset area is an area in the display interface other than the first preset area; The touch correctness rates of the N unlocking operations are determined according to the number of the first touch points and the number of the second touch points.

10. The method according to claim 6, characterized in that The determining the touch accuracy of the N unlocking operations according to the touch area includes: Acquire the number of first touch points where the touch area is located in a first preset area and the number of second touch points where the touch area is located in a second preset area, wherein the first preset area is an area where a character or fingerprint input box is located in the display interface, and the second preset area is an area in the display interface other than the first preset area; The touch correctness rates of the N unlocking operations are determined according to the number of the first touch points and the number of the second touch points.

11. The method according to any one of claims 1 to 10, characterized in that The step of obtaining the light intensity of the environment where the terminal device is located when the N unlocking operations are performed includes: When the N unlocking operations trigger the locking function of the terminal device for the first time within a preset time period, a confirmation message is displayed on the display interface of the terminal device, and the confirmation message is used for the user to confirm whether the N unlocking operations are accidental touch operations; In response to a confirmation operation on the confirmation information, the illumination intensity interval is constructed according to the illumination intensity.

12. The method according to claim 11, characterized in that The displaying of confirmation information in the display interface of the terminal device comprises: Activating a locking function of the terminal device; When the terminal device is unlocked, the confirmation information is displayed in the display interface of the terminal device.

13. The method according to claim 11, characterized in that The method further comprises: When the N unlocking operations are not within the preset time period and the locking function of the terminal device is triggered for the first time, it is determined whether the light intensity is within the light intensity interval.

14. The method according to claim 12, characterized in that The method further comprises: When the N unlocking operations are not within the preset time period and the locking function of the terminal device is triggered for the first time, it is determined whether the light intensity is within the light intensity interval.

15. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the terminal device implements the method according to any one of claims 1 to 14.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a computer, the computer is caused to implement the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Method and mobile phone for solving misoperation during conversation of touch-screen mobile phone

    CN101800790A

  • Mistaken touching prevention method and device for terminal

    CN107465819A