Equipment control method, electronic equipment and computer readable storage medium

By detecting the brightness of the ambient light, body posture and motion state, we can determine whether the electronic device is in a pocket scene, and display the first anti-fault touch interface when the first type of event is detected, which solves the problem of error response when the electronic device is accidentally touched in the pocket, and improves the user experience and anti-fault touch protection capabilities.

CN120075357AActive Publication Date: 2025-05-30HONOR DEVICE CO LTD

Patent Information

Application Number
CN202311584737.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2025-05-30
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

Electronic devices are prone to incorrect responses when they are accidentally touched in their pockets, resulting in out-of-control situations and affecting the user experience.

Method used

By detecting the brightness of the ambient light, body posture and motion state, it is determined whether the electronic device is in a pocket scene. If a first type of event is detected, the first anti-fault touch interface is displayed to limit the touch response.

Benefits of technology

It effectively avoids the error response caused by mistaken touch in the unlock mode of electronic devices, and improves the user experience and the equipment's anti-touch protection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075357A_ABST
    Figure CN120075357A_ABST
Patent Text Reader

Abstract

The invention provides an equipment control method, electronic equipment and a computer readable storage medium, and relates to the technical field of terminals. In order to solve the technical problem that an electronic device may be touched by mistake in an unlocking mode to cause a wrong response, a first type of events which may cause mistaken touch are detected, and mistaken touch prevention protection is started in time. After the electronic equipment is unlocked, a first interface such as an application interface or a main interface is displayed, and whether a first type event corresponding to a possible mistaken touch scene is detected or not is monitored, including that the ambient light brightness of the electronic equipment is smaller than or equal to a first preset brightness value, the body posture is an inverted posture, the body is in a moving state and the like. And if the first type of event is detected, displaying a first mistaken touch prevention interface on the first interface. And the electronic equipment displays first prompt information on the first mistaken touch prevention interface to indicate that the electronic equipment is in the first mistaken touch prevention mode. The electronic equipment enters the first mistaken touch prevention mode when detecting the possible mistaken touch scene, and mistaken touch can be effectively avoided in the unlocking mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of terminals, and in particular, to a device control method, an electronic device, and a computer-readable storage medium. Background Art

[0002] Electronic devices with large screens such as mobile phones have been very popular. During the use of electronic devices, users may casually put the electronic devices into their pockets. The pocket itself or other items in the pocket during movement or exercise are likely to touch the touch screen of the electronic device. If the electronic device in the pocket is in an unlocked state, it may respond to the touch operations of the pocket itself or other items in the pocket and perform incorrect response control.

[0003] It can be seen that there is a lack of a solution for preventing accidental touches in the pocket. Summary of the Invention

[0004] The embodiments of the present application provide a device control method, an electronic device, and a computer-readable storage medium, which are used to solve the technical problem that an electronic device is prone to incorrect responses when accidentally touched in a pocket.

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

[0006] In a first aspect, a device control method is provided. The provided device control method is applied to an electronic device. The electronic device includes a large touch screen, and the touch screen can receive touch operations of a user and give corresponding feedback. The electronic device includes a locked screen mode and an unlocked screen mode. The locked screen mode means that the screen is locked and the touch screen does not respond to touch operations of the user on the touch screen. In existing electronic devices, in the unlocked screen mode, the touch screen can receive touch operations on the touch screen. The received touch operations can include touch operations applied by the user's finger, or touch operations applied when other items touch the touch screen. If the user puts the electronic device in the unlocked screen mode into the pocket, the pocket body or the items in the pocket may also touch the touch screen of the electronic device, and the electronic device will incorrectly respond to these touch operations, resulting in out-of-control situations such as incorrect dialing and entering the shopping interface, affecting the user experience, and even causing trouble to the user.

[0007] When the electronic device is in the pocket scenario, it is a scenario that is more likely to cause accidental touches. When the electronic device is in the pocket scenario, since the pocket is a relatively enclosed environment, the environment where the electronic device is located is usually relatively dark, and the detected ambient light brightness value is relatively low. The electronic device pre-records a first preset brightness value as the reference brightness value for the pocket scenario. In addition, when the user normally uses the electronic device, the user holds the electronic device, and the body posture of the electronic device is an upright posture. When the user holds the electronic device and inserts it into the pocket downward, the body posture of the electronic device will change from the upright posture to the inverted posture. In addition, when the electronic device is in a moving state, it is more likely to come into contact and friction with the pocket body or the items in the pocket, resulting in accidental touches. That is to say, when the electronic device is in the pocket scenario, it usually has the characteristics that the ambient light brightness value is lower than the first preset brightness value, the body posture is the inverted posture, and the body is in a moving state. Then, in order to determine whether the electronic device is in a scenario that is likely to cause accidental touches, it can be judged by these characteristics. The multi-sensor data processing module in the electronic device can continuously monitor whether the brightness value collected by the ambient light sensor is lower than the first preset brightness value, and at the same time monitor whether the body posture data collected by the gyroscope sensor meets the inverted posture, and monitor whether the acceleration data collected by the acceleration sensor meets the acceleration data of the moving state. When these three types of data are all satisfied, it can be determined that the electronic device may be in the pocket scenario, and at this time, the first type of event is reported.

[0008] The device control method provided by the embodiments of the present application is a device control solution for the electronic device in the unlocked mode or the non-locked screen mode. After the electronic device is unlocked, the first interface is currently being displayed. The first interface may be the main interface of the electronic device or an application interface, such as the interface of a painting application, the interface of a video playback application, etc. It should be noted that it is not limited to a certain type of interface to be the first interface, but any interface displayed by the electronic device after unlocking can be used as the first interface.

[0009] If the electronic device determines that the first type of event is detected based on the ambient light brightness value, the body posture, and the motion state, it can be considered that the electronic device is in the pocket scenario in the unlocked mode and may cause accidental touches. At this time, the electronic device can directly display the first anti-accidental touch interface on the first interface, and the layer corresponding to the first anti-accidental touch interface is displayed on the upper layer of the layer corresponding to the first interface. That is to say, both the first interface and the first anti-accidental touch interface are in a visible state for the user, and the priority of the first anti-accidental touch interface is higher than the priority of the first interface.

[0010] When the electronic device displays the first anti - accidental touch interface, it also displays a first prompt message to indicate that the electronic device is currently in the first anti - accidental touch mode. In this first anti - accidental touch mode, the electronic device cannot respond to various touch operations like in a normal unlocking mode. Instead, it can only respond to a few predefined first - type input operations to achieve the anti - accidental touch effect through the first anti - accidental touch interface. Specifically, the first - type input operation can be an operation to exit the first anti - accidental touch mode, such as an operation to slide in a specified area to exit the first anti - accidental touch mode, or a tap operation to exit the first anti - accidental touch mode, or an operation to slide a custom graphic to exit the first anti - accidental touch mode, or a fingerprint verification operation to exit the first anti - accidental touch mode.

[0011] The device control method provided in the embodiments of the present application can also detect whether a first - type event occurs based on the ambient light luminance value, the body attitude, and the body motion state of the electronic device in the environment after the electronic device enters the unlocking mode. The electronic device determines whether it is in a scenario where accidental touch may be triggered through the first - type event. Then, the electronic device displays a first anti - accidental touch interface on top of the currently displayed first interface to prompt the user that the electronic device has entered the first anti - accidental touch mode for anti - accidental touch protection of the electronic device. Displaying the layer corresponding to the first anti - accidental touch interface above the layer corresponding to the first interface makes both the currently displayed first interface and the first anti - accidental touch interface for prompting visible to the user, which can not only ensure that the electronic device continues to display the original first interface but also achieve the effect of prompting the first anti - accidental touch mode. When the electronic device enters the first anti - accidental touch mode, even in the unlocking mode, it will not randomly respond to various touch operations, effectively avoiding accidental touch. In addition, displaying the first prompt message to prompt the user about the first - type input operations that can exit the first anti - accidental touch mode can ensure that the user can choose to exit the anti - accidental touch protection according to actual needs, further enhancing the user experience while improving the anti - accidental touch protection ability.

[0012] In a possible implementation manner of the first aspect, the implementation solution for the electronic device to detect the first - type event is further limited. Specifically, when the touch screen of the electronic device switches from the locked - screen mode to the unlocked mode, it will receive a screen unlocking event reported by the internal lock - screen management module. When the electronic device receives the screen unlocking event, it starts to listen for whether the first - type event is detected. Specifically, the electronic device can register a first listening event, which is used to listen to various sensor data, determine whether the first - type event is satisfied according to the various sensor data, and report the first - type event when the first - type event is satisfied. When the electronic device receives the reported first - type event, it controls the touch screen to enter the first anti - accidental touch mode and displays the first anti - accidental touch interface.

[0013] When the electronic device enters the unlocking mode, it starts to monitor whether the first type of event is detected, so as to quickly enter the first anti-mis-touch mode for anti-mis-touch protection when the first type of event is detected. The electronic device can obtain the sensor data collected by various sensors in real time, and monitor whether the first type of event is detected according to the existing sensor data, which will not cause excessive power consumption, and can provide comprehensive anti-mis-touch protection in the unlocking mode of the electronic device, improving the user experience.

[0014] In a possible implementation manner of the first aspect, the solution for the electronic device to display the first anti-mis-touch interface on the first interface is further defined. Specifically, for the solution of the electronic device to display the first anti-mis-touch interface on the first interface, the layer corresponding to the first anti-mis-touch interface is displayed on the upper layer of the layer corresponding to the first interface, and the transparency of the first anti-mis-touch interface is controlled within a preset range.

[0015] In this way, both the first interface and the first anti-mis-touch interface are in a visible state for the user, which is convenient for the user to view the currently displayed first interface and can play a prompting effect through the first anti-mis-touch interface. Controlling the transparency of the first anti-mis-touch interface within a preset range makes the first anti-mis-touch interface visible to the user and does not completely block the first interface. Generally, the transparency of the first interface is zero, and the transparency of the first anti-mis-touch interface is greater than zero but lower than the maximum transparency.

[0016] The display area of the first anti-mis-touch interface can completely cover the display area of the first interface. Of course, the display area of the first anti-mis-touch interface may not completely cover the display area of the first interface. For example, the first anti-mis-touch interface can be displayed on the upper layer of the first interface in the form of a small pop-up window, which is not limited.

[0017] In a possible implementation manner of the first aspect, another implementation solution for the electronic device to display the first anti-mis-touch interface is provided. Specifically, when the electronic device detects the first type of event, it determines that the electronic device is in the pocket scenario. At this time, the electronic device can first generate the first anti-mis-touch interface, but does not directly display it to the user. For example, the electronic device can first set the first anti-mis-touch interface to be invisible or the transparency to the maximum transparency. At the same time, the electronic device enters the first anti-mis-touch mode, and in this first anti-mis-touch mode, the electronic device does not respond to other touch operations except the first type of input.

[0018] The electronic device simultaneously starts to detect whether there is a large object occlusion event or a touch screen event. A large object occlusion event refers to an event where a palm, pocket, or other object occludes the touch screen, and a touch screen event refers to a touch event acting on the touch screen. Both of these events may be accidental touch operations in the pocket scenario. When the electronic device detects the second type of event, it confirms that an accidental touch operation has occurred. At this time, the electronic device will set the previously generated first anti-accidental touch interface to be visible. The electronic device can lower the previous transparency from the maximum transparency to within a preset range, making the first anti-accidental touch interface visible to the user to achieve a prompt effect.

[0019] For the device control method provided in this embodiment, when the first type of event corresponding to a possible accidental touch scenario is detected, the first anti-accidental touch interface is first generated but not directly set to be visible to the user, so that the first interface can be normally displayed. The first anti-accidental touch interface is set to be visible to the user only when the second type of event corresponding to the accidental touch operation is detected. While achieving anti-accidental touch protection, it ensures the normal operation of the electronic device as much as possible and improves the user experience.

[0020] In a possible implementation manner of the first aspect, when the electronic device receives a reported screen unlocking event, it also generates the first anti-accidental touch interface for standby, and sets the first anti-accidental touch interface to be visible to the user only when the first type of event or the second type of event is detected.

[0021] In a possible implementation manner of the first aspect, the implementation solution for the electronic device to detect the second type of event is further limited. Specifically, when the electronic device receives the first type of event, it enters the first anti-accidental touch mode and simultaneously starts to listen for whether the second type of event is detected. Specifically, the electronic device can register a second listening event, which is used to listen to the touch screen sensing data, and determine whether a second type of event such as a large object occlusion event or a touch screen event is satisfied according to various sensing data, and report the second type of event when the second type of event is satisfied. When the electronic device receives the reported second type of event, it controls the touch screen to display the first anti-accidental touch interface, prompting the user that the electronic device is currently in the first anti-accidental touch mode and does not respond to the current touch screen operation.

[0022] When the electronic device enters the first anti-accidental touch mode, it starts to listen for whether the second type of event is detected, so as to quickly display the first anti-accidental touch interface when the second type of event is detected, perform anti-accidental touch prompts, and improve the user experience.

[0023] In a possible implementation of the first aspect, the first anti-misoperation interface displayed by the electronic device is further defined. Specifically, when the electronic device displays the first anti-misoperation interface, it also displays second prompt information within the first anti-misoperation interface, and the second prompt information is used to indicate the operation method of the first type of input operation. The first type of input operation indicating the exit from the first anti-misoperation mode can be an operation method preset by the system or an operation method custom-defined or selected by the user in the settings application. For example, the first type of input operation can be a single or double sliding operation in the lower area of the screen, or a tapping operation in any area or a specified area of the screen, or a sliding operation of a specific pattern. Of course, it can also be a fingerprint verification operation or an iris verification operation, etc., which is not limited.

[0024] In a possible implementation of the first aspect, the device control method for the electronic device to switch from the unlocked mode to the locked screen mode is further defined. When the electronic device is in the unlocked mode, based on the first type of event and the second type of event, it displays the first anti-misoperation interface and enters the first anti-misoperation mode. At this time, if the electronic device enters the locked screen mode from the unlocked mode, the electronic device can directly end the anti-misoperation protection solution in the unlocked mode and cancel the display of the first anti-misoperation interface.

[0025] When the electronic device enters the locked screen mode and no longer needs to execute the device control method in the unlocked mode provided by the embodiments of the present application, the electronic device can directly cancel the previously displayed first anti-misoperation interface to avoid subsequent error prompts for the user.

[0026] In a possible implementation of the first aspect, after the electronic device switches from the unlocked mode to the locked screen mode, the electronic device can also directly exit the first anti-misoperation mode. When receiving the screen lock event, the working state of the first anti-misoperation mode may be different, and the operation to exit the first anti-misoperation mode may also be different.

[0027] In one case, in the first anti-misoperation mode, if the electronic device is listening and detecting the second type of event and the electronic device does not currently display the first anti-misoperation interface. To exit the first anti-misoperation mode, the electronic device needs to cancel the listening and detection of the second type of event. Without the trigger of the second type of event, the electronic device will not trigger the display of the first anti-misoperation interface.

[0028] In another case, in the first anti-misoperation mode, if the electronic device has listened and detected the second type of event and displays the first anti-misoperation interface. To exit the first anti-misoperation mode, the electronic device needs to cancel the display of the first anti-misoperation interface.

[0029] In other cases, when the electronic device receives a screen unlocking event and is listening but has not detected a first type of event, that is, has not entered the first anti-misoperation interface yet. Then, at this time, if a screen locking event is received, the electronic device can directly cancel listening for the first type of event and no longer continue the subsequent operations of listening for the second type of event and displaying the first anti-misoperation interface.

[0030] In a possible implementation manner of the first aspect, in combination with each functional layer within the software framework of the electronic device, the specific implementation process of the device control method provided in this embodiment is further limited. Specifically, the electronic device includes a framework layer and a hardware abstraction layer. The framework layer includes an input management module, a screen lock management module, and an interface service module. The hardware abstraction layer includes a multi-sensor data processing module and an anti-misoperation module. The specific process for the electronic device to execute the device control method may include:

[0031] The input management module registers a first listening event with the screen lock management module, so that the screen lock management module listens for whether the screen unlocking event occurs and notifies the input management module of the listened screen unlocking event.

[0032] When the input management module receives the screen unlocking event, it registers a second listening event with the multi-sensor data processing module, so that the multi-sensor data processing module listens for whether the first type of event is detected and notifies the input management module of the listened first type of event;

[0033] When the input management module receives the first type of event, it notifies the anti-misoperation module;

[0034] The anti-misoperation module notifies the interface service module to display the first anti-misoperation interface.

[0035] In a possible implementation manner of the first aspect, the method further includes:

[0036] When the screen lock management module listens for the occurrence of the screen locking event, it notifies the input management module of the listened screen locking event;

[0037] When the input management module receives the screen locking event, it notifies the anti-misoperation module;

[0038] The anti-misoperation module notifies the interface service module to cancel the display of the first anti-misoperation interface.

[0039] In a possible implementation of the first aspect, the case where the electronic device is a folding screen device is further defined. The electronic device is a folding screen device, and the device usage states of the folding screen device include an unfolded state and a folded state. When the folding screen device is in the unfolded state, its size is relatively large and it usually cannot be directly put into a pocket. Relatively speaking, the possibility of accidental touch in the pocket scenario is relatively small. When the folding screen device is in the folded state, its size is relatively small, and users usually put the folding screen device into the pocket in the folded state, so the possibility of accidental touch in the pocket scenario is relatively large. Performing different device control operations for different device usage states of the folding screen device can not only achieve anti-accidental touch protection but also reduce unnecessary operations and power consumption.

[0040] When the electronic device receives a reported screen unlocking event, it first determines the device usage state of the electronic device. If the device usage state of the electronic device is the folded state, it means that there is a relatively high possibility of accidental touch in the current pocket scenario. The electronic device can respond to the screen unlocking event and start listening for whether the first type of event is detected. When the first type of event is detected, it timely controls the electronic device to enter the first anti-accidental touch mode to achieve anti-accidental touch protection.

[0041] If the electronic device determines that the device usage state is the unfolded state, it does not need to perform the operation of listening for whether the first type of event is detected, so as to reduce operations and power consumption and improve the operating efficiency of the electronic device in the unfolded state.

[0042] In a possible implementation of the first aspect, the device control method executed by the electronic device in the locked screen mode is further defined. After the electronic device receives a reported screen locking event, it responds to the screen locking event and starts to execute the anti-accidental touch scheme corresponding to the locked screen mode. Specifically, the electronic device starts listening for whether the third type of event is detected. The third type of event listened for may include that the ambient light brightness of the electronic device is less than or equal to a second preset brightness value, the body posture is an inverted posture, and the screen is in a state of being blocked by a large object. If the electronic device detects the third type of event, it enters the second anti-accidental touch mode. Among them, in the second anti-accidental touch mode, the electronic device only responds to the predefined second type of input operation, and the second type of input operation is used to instruct the electronic device to exit the second anti-accidental touch mode.

[0043] In a second aspect, the present application provides an electronic device. The electronic device is externally connected with a accessory. The electronic device includes a touch screen, a memory, and a processor. The touch screen and the memory are both coupled to the processor;

[0044] The memory stores computer execution instructions;

[0045] The processor executes the computer-executable instructions stored in the memory, causing the electronic device to execute the device control method described in any one of the first aspects.

[0046] In a possible implementation manner of the second aspect, the electronic device is configured to:

[0047] Display a first interface; wherein, the first interface is an application interface or a main interface displayed after the electronic device is unlocked;

[0048] When a first type of event is detected, display a first anti-misoperation interface on the first interface; wherein, the first type of event includes that the ambient light brightness of the electronic device is less than or equal to a first preset brightness value, the body posture is an inverted posture, and the body is in a moving state;

[0049] Wherein, the first anti-misoperation interface includes first prompt information for indicating that the electronic device is in a first anti-misoperation mode; in the first anti-misoperation mode, the electronic device only responds to a predefined first type of input operation for triggering the electronic device to exit the first anti-misoperation mode.

[0050] In a possible implementation manner of the first aspect, the method further includes:

[0051] In response to a screen unlocking event, listen for whether the first type of event is detected.

[0052] In a possible implementation manner of the second aspect, the electronic device is configured to:

[0053] The layer corresponding to the first anti-misoperation interface is displayed on the upper layer of the layer corresponding to the first interface, and the transparency of the first anti-misoperation interface is within a preset range.

[0054] In a possible implementation manner of the second aspect, the electronic device is configured to:

[0055] When the first type of event is detected, generate the first anti-misoperation interface and set the first anti-misoperation interface to be invisible;

[0056] When a second type of event is detected, set the first anti-misoperation interface to be visible; wherein, the second type of event includes a large object occlusion event or a touch screen event.

[0057] In a possible implementation manner of the second aspect, the electronic device is configured to:

[0058] When the first type of event is detected, listen for whether the second type of event is detected.

[0059] In a possible implementation of the second aspect, the first anti-misoperation interface further includes second prompt information, and the second prompt information is used to indicate the operation method of the first type of input operation.

[0060] In a possible implementation of the second aspect, the electronic device is configured to:

[0061] When displaying the first anti-misoperation interface, in response to a screen locking event, cancel the display of the first anti-misoperation interface.

[0062] In a possible implementation of the second aspect, the electronic device is configured to:

[0063] In response to a screen locking event, exit the first anti-misoperation mode.

[0064] In a possible implementation of the second aspect, the electronic device includes a framework layer and a hardware abstraction layer. The framework layer includes an input management module, a screen locking management module, and an interface service module. The hardware abstraction layer includes a multi-sensor data processing module and an anti-misoperation module;

[0065] The input management module registers a first listening event with the screen locking management module, so that the screen locking management module listens for whether the screen unlocking event occurs, and notifies the input management module of the detected screen unlocking event;

[0066] When the input management module receives the screen unlocking event, it registers a second listening event with the multi-sensor data processing module, so that the multi-sensor data processing module listens for whether the first type of event is detected, and notifies the input management module of the detected first type of event;

[0067] When the input management module receives the first type of event, it notifies the anti-misoperation module;

[0068] The anti-misoperation module notifies the interface service module to display the first anti-misoperation interface.

[0069] In a possible implementation of the second aspect, the electronic device is configured to:

[0070] When the screen locking management module listens for the occurrence of the screen locking event, it notifies the input management module of the detected screen locking event;

[0071] When the input management module receives the screen locking event, it notifies the anti-misoperation module;

[0072] The anti-misoperation module notifies the interface service module to cancel the display of the first anti-misoperation interface.

[0073] In a possible implementation of the second aspect, the electronic device is a folding screen device, and the device usage states of the folding screen device include an unfolded state and a folded state;

[0074] The electronic device is configured to:

[0075] If the device usage state is the folded state, in response to a screen unlocking event, listen for whether the first type of event is detected;

[0076] If the device usage state is the unfolded state, do not perform the operation of listening for whether the first type of event is detected.

[0077] The electronic device is configured to:

[0078] In response to a screen locking event, listen for whether the third type of event is detected; wherein, the third type of event includes that the ambient light brightness of the electronic device is less than or equal to a second preset brightness value, the body posture is an inverted posture, and the screen is in a state of being blocked by a large object;

[0079] If the third type of event is detected, enter the second anti-misoperation mode; wherein, in the second anti-misoperation mode, the electronic device only responds to a predefined second type of input operation, and the second type of input operation is used to instruct the electronic device to exit the second anti-misoperation mode.

[0080] In a third aspect, an electronic device is provided, and the electronic device has a function of implementing the device control method described in the first aspect above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0081] In a fourth aspect, a first device is provided, including: a processor; the processor is configured to be coupled with a memory, and after reading instructions in the memory, execute the device control method described in any one of the first aspect above according to the instructions.

[0082] In a fifth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium. When it runs on a computer, it enables the computer to execute the device control method described in any one of the first aspect above.

[0083] In a sixth aspect, a computer program product including instructions is provided. When it runs on a computer, it enables the computer to execute the device control method described in any one of the first aspect above.

[0084] In a seventh aspect, a control device is provided (for example, the control device may be a chip system), and the device includes a processor for supporting the control device to implement the functions involved in the first aspect above.

[0085] In a possible design, the device further includes a memory for storing necessary program instructions and data of the control device. When the device is a chip system, it may be composed of chips or may include chips and other discrete devices.

[0086] Among them, for the technical effects brought by any one of the design manners in the second aspect to the seventh aspect, reference may be made to the technical effects brought by different design manners in the first aspect, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] Figure 1 One of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0088] Figure 2 Two of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0089] Figure 3 Three of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0090] Figure 4 One of the scenario schematic diagrams of the device control method provided by an embodiment of the present application;

[0091] Figure 5 Four of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0092] Figure 6 Five of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0093] Figure 7 One of the flow schematic diagrams of the device control method provided by an embodiment of the present application;

[0094] Figure 8 Two of the scenario schematic diagrams of the device control method provided by an embodiment of the present application;

[0095] Figure 9 Three of the scenario schematic diagrams of the device control method provided by an embodiment of the present application;

[0096] Figure 10 Six of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0097] Figure 11 Seven of the interface schematic diagrams of the device control method provided by an embodiment of the present application;

[0098] Figure 12 The eighth interface schematic diagram of the device control method provided by the embodiment of the present application;

[0099] Figure 13 The ninth interface schematic diagram of the device control method provided by the embodiment of the present application;

[0100] Figure 14 The tenth interface schematic diagram of the device control method provided by the embodiment of the present application;

[0101] Figure 15 The eleventh interface schematic diagram of the device control method provided by the embodiment of the present application;

[0102] Figure 16 The fourth scenario schematic diagram of the device control method provided by the embodiment of the present application;

[0103] Figure 17 The software framework schematic diagram of the electronic device provided by the embodiment of the present application;

[0104] Figure 18 The second process schematic diagram of the device control method provided by the embodiment of the present application;

[0105] Figure 19 The third process schematic diagram of the device control method provided by the embodiment of the present application;

[0106] Figure 20 The fourth process schematic diagram of the device control method provided by the embodiment of the present application;

[0107] Figure 21 The twelfth interface schematic diagram of the device control method provided by the embodiment of the present application;

[0108] Figure 22 The thirteenth interface schematic diagram of the device control method provided by the embodiment of the present application;

[0109] Figure 23 The hardware structure diagram of the electronic device provided by the embodiment of the present application. Detailed implementation manners

[0110] The following makes an explanation of the exemplary embodiments of the present application in conjunction with the accompanying drawings. Various details of the embodiments of the present application are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted below.

[0111] For ease of understanding, some technical common knowledge related to the embodiments of the present application is introduced first.

[0112] As shown Figure 1 in FIG. 1, it is one of the schematic diagrams of the interface of an electronic device. A touch screen (Touch Pad, TP) 110 is assembled on the surface of the electronic device 100. The touch screen 110 can receive touch operations acting on the surface of the touch screen 110, and collect operation parameters of the touch operations. The operation parameters include operation points, operation pressures, operation times, etc. The electronic device 100 makes corresponding response feedback according to the collected operation parameters of the touch operations. As shown Figure 1 in FIG. 2, the electronic device 100 receives a touch operation of a user and launches a painting application. The electronic device 100 displays the interface of the painting application. The user performs a painting operation corresponding to a painting trajectory on the touch screen 110, and the electronic device 100 displays an image corresponding to the painting trajectory in response to the painting operation of the user.

[0113] The touch screen of the electronic device has two working modes, namely a locked screen mode and an unlocked screen mode. The unlocked screen mode can also be referred to as a non-locked screen mode. The interface shown above Figure 1 can be the normal use interface after the electronic device enters the unlocked screen mode. As shown Figure 2 in FIG. 3 is the interface when the touch screen 110 of the electronic device 100 is switched to the unlocked screen mode. The electronic device 100 can display a mark prompt message for entering the unlocked screen mode (such as A shown in Figure 2 FIG. 3) and / or a text prompt message (such as B shown in Figure 2 FIG. 3) on the interface. After the electronic device enters the unlocked screen mode, the touch screen of the electronic device can respond to various types of touch operations acting on the touch screen, such as a point selection operation, a sliding operation, a tapping operation, etc. acting on the touch screen.

[0114] As shown Figure 3 in FIG. 4 is the interface when the touch screen 110 of the electronic device 100 is switched from the unlocked screen mode to the locked screen mode. The electronic device 100 can display a mark prompt message for the locked screen mode (such as A shown in Figure 3 FIG. 4) and / or a text prompt message (such as B shown in Figure 3 FIG. 4) on the interface. In the locked screen mode, the touch screen 110 of the electronic device 100 can only respond to a few predefined touch operations, such as a sliding unlock operation (such as C shown in Figure 3 FIG. 4), to indicate exiting the locked screen mode. In addition, in the locked screen mode, the electronic device can also respond to touch operations applied to a few applications, such as a touch operation applied to a camera application (such as D shown in Figure 3 FIG. 4), etc.

[0115] The touch operation responded by the touch screen of the electronic device may include not only the touch operation of the user's fingertips or other skin areas acting on the touch screen surface, but also the touch operation when cloth or other objects touch the touch screen. Then, even if the user's fingers are not in contact with the touch screen, other items such as the user's clothes, pocket cloth, or cosmetics in the pocket that touch the touch screen may cause the touch screen to be touched accidentally. When the electronic device is in unlock mode, the touch screen will respond to various touch operations. In unlock mode, the possibility of the touch screen being touched accidentally and the electronic device giving an erroneous response is greater.

[0116] like Figure 4 As shown in FIG. 1 , it is a schematic diagram of a scenario in which an electronic device is placed in a pocket and accidentally touched. Figure 4 As shown in (a) of FIG. 1 , when a user is using an electronic device, he or she directly puts the electronic device in unlocked mode into a pocket. At this time, the interface of the electronic device may be as shown in FIG. Figure 4 The pockets mentioned here may include storage bags such as clothing pockets, handbags, waist bags or backpacks.

[0117] like Figure 4 As shown in (c) in FIG. 1 , when the user is moving and the electronic device is in unlocked mode, the pocket body or items in the pocket body may accidentally touch the touch screen of the electronic device, causing an erroneous response of the electronic device. Figure 4 As shown in (d) in FIG. 1 , the electronic device may make a call based on an accidental touch of the storage bag body or an item in the storage bag. Figure 4 The interface (b) to Figure 4 As can be seen from the interface (d) in the figure, the electronic device is very easy to be accidentally touched and respond incorrectly in the unlock mode, resulting in abnormal device control, affecting the user experience, and even causing trouble to the user.

[0118] Based on this, the embodiment of the present application provides a device control method for realizing monitoring and response control of accidental touch scenarios of electronic devices in unlock mode (or non-lock screen mode), so as to avoid accidental touches of electronic devices in unlock mode as much as possible and improve user experience. In this embodiment, considering that the electronic device is more likely to be accidentally touched when it is in a pocket after entering the unlock mode, the pocket scene is used as an anti-accidental touch scene that needs to be monitored, and when the electronic device is detected to be in the pocket scene, the anti-accidental touch mode is entered to limit the touch response.

[0119] The device control method provided in this embodiment is applied to an electronic device, which may include an electronic device with a touch screen such as a personal computer (PC), a tablet computer, a laptop computer, a portable computer (such as a mobile phone), a wearable electronic device (such as a smart watch), an augmented reality (AR) / virtual reality (VR) device, an in-vehicle computer, etc. The following embodiments do not impose special restrictions on the specific form of the electronic device. In this embodiment, the electronic device may be a mobile phone, especially a touch screen mobile phone with a relatively small device size that can be put into a pocket.

[0120] The device control method provided in the embodiment of the present application is used to control an electronic device to implement an anti-misoperation function. This anti-misoperation function may be a system application pre-configured before the electronic device leaves the factory and is automatically turned on after the electronic device is powered on. Of course, this anti-misoperation function may also be a setting application selectively turned on by the user according to personal needs.

[0121] As Figure 5 shown, it is a schematic diagram of the interface of the electronic device, showing the way to turn on the anti-misoperation function in the setting application. As Figure 5 shown in (a) of Figure 5 , the electronic device displays the icon of the setting application on the desktop (as shown by A in Figure 5 ). When the icon of the setting application receives a click operation applied by the user, it enters the setting interface shown in (b) of Figure 5 . An input box for searching setting items is displayed on the setting interface so that the user can search for "anti-misoperation function" or "anti-misoperation mode" in the input box for searching setting items (as shown by B in

[0122] ). After the electronic device receives the text content input by the user in the input box for searching settings, it searches and displays in all setting options with the text content as the keyword. Figure 5 shown in (b) of Figure 5 , the electronic device can also click on the accessibility option (as shown by C in Figure 6 ) to enter the accessibility setting interface shown in (a) of

[0123] . It should be noted that there are other setting options in the setting application in addition to the accessibility option, and there are also quick start and gesture options or other setting options in the accessibility option in addition to the anti-misoperation mode, which are not limited. Figure 6 shown in A of Figure 6The interface shown in (b) therein. Under the accidental touch prevention mode option, the electronic device provides an accidental touch prevention function option for the unlocking mode (as shown by B in Figure 6 ), and an accidental touch prevention function option for the locked screen mode (as shown by C in Figure 6 ). If the electronic device receives a click operation on the accidental touch prevention function option for the unlocking mode, it activates and executes the accidental touch prevention protection scheme in the unlocking mode. If the electronic device receives a click operation on the accidental touch prevention function option for the locked screen mode, it activates and executes the accidental touch prevention protection scheme in the locked screen mode.

[0124] The user can, according to their own habits or needs, only select the accidental touch prevention function for the unlocking mode, or only select the accidental touch prevention function for the locked screen mode. Of course, the user can also select to activate both the accidental touch prevention function for the unlocking mode and the accidental touch prevention function for the locked screen mode to achieve all-round accidental touch prevention protection. In this embodiment, the electronic device will only activate and execute the provided device control method to perform accidental touch prevention protection in the unlocking mode when it receives a click operation on the accidental touch prevention function option for the unlocking mode.

[0125] In other embodiments, the electronic device can also add a quick control for activating the accidental touch prevention function for the unlocking mode in the control center of the system's top-down pull-down menu. When the quick control for activating the accidental touch prevention function for the unlocking mode receives a click operation from the user, it activates the accidental touch prevention protection scheme. Alternatively, the electronic device can also call the voice assistant to collect the user's voice commands and quickly activate the accidental touch prevention function based on the user's voice commands. The electronic device can also provide a scheme for activating the accidental touch prevention function in the unlocking mode, without limitation.

[0126] Refer to Figure 7 , which is one of the schematic flowcharts of a device control method provided by an embodiment of the present application. The provided device control method mainly includes the following steps:

[0127] Step S701: Display a first interface;

[0128] Step S702: Detect a first type of event and display a first accidental touch prevention interface on the first interface.

[0129] The touch screen of an electronic device has two working modes: a locked screen mode and an unlocked screen mode. There is a module in the electronic device for monitoring the screen lock state, such as a lock screen management module or a Keyguard Service module. The lock screen management module can monitor the screen lock state of the electronic device and report corresponding events to the controller of the electronic device when it detects a change in the lock screen state. For example, when the screen management module detects that the touch screen of the electronic device switches from the locked screen mode to the unlocked screen mode, it reports a screen unlock event to the controller. Or, when the screen management module detects that the touch screen switches from the unlocked screen mode to the locked screen mode, it reports a screen lock event. It should be noted that the monitoring actions mentioned in the embodiments of this application are all based on the reuse of the operation data collected by the inherent control modules in the electronic device, and the monitored data is all used for device control of the touch screen of the electronic device, without involving the acquisition of user personal information, let alone the leakage of user personal information.

[0130] When the electronic device receives the screen unlock event reported by the lock screen management module and determines that the touch screen enters the unlocked mode, it needs to start monitoring whether there is a false touch scenario. If a false touch scenario is detected, it is necessary to control the touch screen to enter the anti-false touch mode. For the sake of distinction, the anti-false touch mode in the unlocked mode is defined as the first anti-false touch mode.

[0131] The applicant collects a large amount of user experience feedback data and analyzes possible false touch scenarios. As shown in Table 1 below, some of the user experience feedback data shows that the pocket scenario is a more frequent false touch scenario. That is to say, after the electronic device is put into the pocket in the unlocked mode, the pocket body or the items in the pocket come into contact with the touch screen, causing a false touch. Here, the pocket may include a clothes pocket, a backpack, a handbag, a waist bag, etc.

[0132] Table 1

[0133]

[0134] When a user uses a mobile phone, they hold the mobile phone with the body upright and the head facing up, as shown in (a) of Figure 8 . Here, the head refers to the standard top of the mobile phone, usually the end where the camera of the mobile phone is located. The user usually holds the mobile phone and inserts it into the pocket downward, and the body posture of the mobile phone also changes from the upright posture with the head facing up to the inverted posture with the head facing down, as shown in (b) of Figure 8 . That is to say, a main feature of the mobile phone in the pocket is that the body posture is the inverted posture.

[0135] Since the pocket is usually a closed container with a certain thickness and opaque, when the mobile phone is in the pocket, the brightness value of the ambient light in the environment where the mobile phone is located is usually low. That is to say, another main feature of the mobile phone in the pocket is that the ambient light brightness value is low.

[0136] In addition, when the mobile phone is in a stationary state in the user's pocket, the touch screen does not move relative to the inner wall of the pocket or the items in the pocket, and it is not easy for the inner wall of the pocket or the items in the pocket to accidentally touch the touch screen. For example, Figure 9 as shown, when the user is in a running state (as shown in (a) of Figure 9 ), a playing state (as shown in (b) of Figure 9 ), or a walking state (as shown in (c) of Figure 9 ), the body of the mobile phone in the pocket is also in a moving state. When the body is in a moving state, it is easy for the touch screen to come into contact and friction with the inner wall of the pocket or the items in the pocket, resulting in accidental touch. That is to say, another main feature of the mobile phone in the pocket is that the body is in a moving state.

[0137] Based on the above analysis, it can be known that the scenario where the mobile phone is in the pocket usually satisfies three conditions: the brightness value of the ambient light is relatively low, the body is inverted, and the body is in a moving state. Then, in order to monitor whether it is in the pocket scenario, the electronic device can register a first monitoring event after entering the unlocking mode, and monitor whether the event that the electronic device is located in the pocket can be detected through parameters such as the brightness value of the ambient light, the body posture, and the body movement state. For the convenience of description, the event that the electronic device is located in the pocket is defined as the first type of event. The first type of event includes that the ambient light brightness of the electronic device is less than or equal to the first preset brightness value, the body posture is an inverted posture, and the body is in a moving state.

[0138] It should be noted that the first preset brightness value is the critical value of the pocket environment brightness set in advance. This critical value can be a fixed value pre-configured by the system of the electronic device before leaving the factory, or a fixed value or variable value set by the user according to usage habits. For example, Figure 10 as shown, it is a schematic diagram of the interface of the electronic device. The user can customize and set the critical value of the ambient light brightness of the anti-accidental touch mode in the settings application of the electronic device. The electronic device can provide options for setting the critical value of the ambient light brightness for a darker environment and a generally dark environment. For example, the option for enabling anti-accidental touch in a darker environment (≤10 lux) (as shown in A of Figure 10 ) and the option for enabling anti-accidental touch in a generally dark environment (≤30 lux) (as shown in B of Figure 10 ), and the user can directly select them. If the user's pocket color is usually dark, the user can choose to enable anti-accidental touch in a darker environment. If the user's pocket color is usually light, the user can choose to enable anti-accidental touch in a generally dark environment.

[0139] Of course, the electronic device can also provide a setting number axis for customizing the critical brightness value (lux) of the dark environment (as shown in C of Figure 10 ), and the user can customize and select any critical brightness value within the range of 0 lux - 50 lux as the first preset brightness value.

[0140] The electronic device is equipped with various sensors for collecting various sensor data of the electronic device. Based on these sensor data, it can be determined whether a first type of event is detected. For example, the electronic device is equipped with an ambient light sensor for collecting the brightness value of the ambient light, and based on this, it is determined whether the collected ambient light brightness value is less than or equal to a first preset brightness value. In addition, the electronic device is also equipped with a gyroscope sensor for collecting the body attitude data, and based on this, it is determined whether the body attitude is an inverted attitude. The electronic device is also provided with an acceleration sensor for collecting the body acceleration data to determine whether the body is in a moving state.

[0141] It should be noted that such sensors in the electronic device are inherent sensors, and the corresponding sensing parameters are data that the system would originally collect. The device control method provided in the embodiments of the present application does not require adding new sensors, but only needs to reuse the sensor data collected by the system.

[0142] The implementation solution for the electronic device to determine the motion state can be determined by the acceleration data corresponding to the three-axis acceleration sensor (Accelerometer, Acc-Sensor) configured in the electronic device. The three-axis acceleration sensor is used to measure the three-axis acceleration of the electronic device in three spatial directions (X, Y, and Z axes). Taking the motion state detection of the electronic device by the Z-axis data in the three-axis acceleration as an example, the Z-axis represents the axis perpendicular to the ground, that is, the axis opposite to the direction of gravity. For example: According to the value of the Z-axis data, it can be determined whether the electronic device is in a vertical screen or a horizontal screen, and according to the change in the value of the Z-axis data within a preset acquisition time period (such as: the average value of the Z-axis data within 0.5 s before the determination moment, where the determination moment can be the moment when the electronic device determines to trigger the screen-on / screen-off state or within 2 s after the moment when the electronic device determines to trigger the screen-on / screen-off state) and the comparison result with a preset acceleration threshold (such as: the change in the value of the Z-axis data is within the value range of the preset acceleration threshold), it is determined whether the electronic device is in a vertical screen vertical motion or a horizontal screen vertical motion, that is, whether the user carrying the electronic device is walking, running, cycling, etc.

[0143] The electronic device can be configured with an ambient light sensor, a proximity light sensor, a three-axis acceleration sensor, a three-axis gyroscope (Gyroscope, Gyro), etc. The input data can include: the three-axis acceleration (X, Y, and Z axes) of the electronic device collected by the three-axis acceleration sensor, and the three-axis angular velocity of the electronic device collected by the three-axis gyroscope.

[0144] The electronic device can combine the three-axis acceleration and three-axis angular velocity collected by the three-axis acceleration sensor and the three-axis gyroscope, and use a filtering algorithm (such as the Kalman filtering algorithm) to integrate the input data. By fusing the data of these two sensors, the defects of each other can be compensated, and the measurement accuracy and stability can be improved.

[0145] Exemplarily, the head-down here can mean that the electronic device is in a vertical head-down state. For the head-down judgment, the electronic device can compare the fused three-axis acceleration and three-axis angular velocity with the head-down threshold, and then determine whether the electronic device is in the head-down state. For example: the inverted threshold can be that the X-axis data and the Y-axis data are 0, and the Z-axis data is -9.8 m / s², indicating that the electronic device receives the gravitational acceleration of the earth upward.

[0146] Of course, for the specific implementation scheme of the electronic device to judge whether the body posture is an inverted posture by using the body posture data collected by the gyroscope sensor and to judge whether the body is in a moving state by using the acceleration data collected by the acceleration sensor, other conventional implementation schemes can also be referred to, which will not be elaborated here.

[0147] When the electronic device is in the unlocked mode, it displays the main interface or any application interface, and at the same time listens for whether the first type of event is detected. When the first type of event is detected, the interface displayed by the electronic device is defined as the first interface (as shown in (a) in Figure 7 . It should be noted that the displayed picture of the first interface here may be a static picture or a dynamic picture, which is not limited.

[0148] Based on the sensor data collected by various sensors, the electronic device judges whether the first type of event is detected, that is, whether it is detected that the electronic device enters the pocket scenario. If the first type of event is detected, it is considered that the electronic device is in the pocket scenario, and at this time, the anti-mis-touch protection needs to be enabled. The way for the electronic device to enable the anti-mis-touch protection can be to enter the first anti-mis-touch mode in the unlocked mode. In the first anti-mis-touch mode, the electronic device can only respond to the pre-defined operations to exit the anti-mis-touch mode, or the unlocking operation, etc., and will not respond to other input operations.

[0149] That is to say, when the electronic device is in the unlocked mode, if it does not enter the first anti-mis-touch mode, it can respond to various touch operations. If the electronic device enters the first anti-mis-touch mode in the unlocked mode, it cannot respond to various touch operations like in the normal unlocked mode, but only responds to a few pre-defined input operations. For the sake of description, the operations that can be responded to in the first anti-mis-touch mode are defined as the first type of input operations, and this type of first type of input operations is used to indicate the electronic device to exit the first anti-mis-touch mode.

[0150] The electronic device can directly enter the first anti-misoperation mode to avoid misoperations. On this basis, the electronic device can also display an anti-misoperation interface (as shown in (b) of Figure 7 ), and display a first prompt message in this anti-misoperation interface (as shown in A of Figure 7 ) to prompt the user that the electronic device is in the first anti-misoperation mode. For the convenience of distinction and description, the anti-misoperation interface in the unlocked mode is defined as the first anti-misoperation interface.

[0151] In a specific embodiment, the first anti-misoperation interface may further include a second prompt message, and the second prompt message is used to indicate the operation method of the first type of input operation. The second prompt message may be a text prompt message (as shown in B of Figure 7 ), or may be an operation path prompt message (as shown in C of Figure 7 ), which is not limited.

[0152] As shown in (a) of Figure 11 , the electronic device displays a first interface. Then, as shown in (b) of Figure 11 , the electronic device directly displays the first anti-misoperation interface on the first interface. In this way, the electronic device retains the first interface that was being displayed in the unlocked mode, so that the first anti-misoperation mode does not affect the operation of the electronic device's original display of the first interface. At the same time, the electronic device displays the first anti-misoperation interface to prompt the user that the electronic device is in the first anti-misoperation mode and enables anti-misoperation protection.

[0153] Specifically, as shown in (b) of Figure 11 , Figure 12 , Figure 13 and Figure 14 , the solution for the electronic device to display the first anti-misoperation interface on the first interface may be to display the layer corresponding to the first anti-misoperation interface above the layer corresponding to the first interface, and control the transparency of the first anti-misoperation interface within a preset range. In these cases, the display area of the first anti-misoperation interface can completely cover the display area of the first interface.

[0154] In this way, both the first interface and the first anti-misoperation interface are in a visible state for the user, which is convenient for the user to view the currently displayed first interface and has a prompt effect through the first anti-misoperation interface. Controlling the transparency of the first anti-misoperation interface within a preset range makes the first anti-misoperation interface visible to the user and does not completely block the first interface. Generally, the transparency of the first interface is zero, and the transparency of the first anti-misoperation interface is greater than zero but lower than the maximum transparency.

[0155] As shown in Figure 15 , the electronic device switches from displaying the first interface (as shown in (a) of Figure 15 ) to displaying a second interface (as shown in (a) of Figure 15The display area of the first anti-mis-touch interface (as shown in (b) therein) may not completely cover the display area of the first interface. For example, the first anti-mis-touch interface may be displayed on top of the first interface in the form of a small pop-up window, without limitation.

[0156] In addition, when the electronic device detects the first type of event, it determines that the electronic device is in the pocket scenario. At this time, the electronic device may first generate the first anti-mis-touch interface, but does not directly display it to the user. For example, the electronic device may first set the first anti-mis-touch interface to be invisible or have the maximum transparency. At the same time, the electronic device enters the first anti-mis-touch mode, and in this first anti-mis-touch mode, the electronic device does not respond to other touch operations other than the first type of input.

[0157] In a specific embodiment, if the first interface displayed by the electronic device is a dynamic picture, for example, the electronic device plays a video in a certain video playback application. Then, when the electronic device detects the first type of event, it can directly pause the screen switching of the first interface and display the first anti-mis-touch interface on the layer of the currently paused static picture. Of course, the electronic device can also not pause the screen switching of the first interface and directly display the first anti-mis-touch interface on the layer of the dynamic picture of the first interface.

[0158] In actual operation, there can be multiple types of first type of input operations to exit the first anti-mis-touch mode. The multiple types of first type of input operations can be operation types pre-configured by the system or operation types customized by the user. As Figure 11 and Figure 15 shown, it is a schematic diagram of the first anti-mis-touch interface of the electronic device, and the first type of input operation is to slide twice downward. As Figure 12 shown, it is a schematic diagram of the first anti-mis-touch interface of the electronic device, and the first type of input operation is to double-tap with the knuckle. As Figure 13 shown, it is another schematic diagram of the first anti-mis-touch interface of the electronic device. The first type of input operation is to slide a preset trajectory, and the preset trajectory can be "√", "W" or other types of patterns, without limitation. As Figure 14 shown, it is another schematic diagram of the first anti-mis-touch interface of the electronic device, and the first type of input operation is a fingerprint verification operation. Of course, in addition to Figures 11 to 15 the several situations shown, the electronic device can also set other types of first type of input operations, such as voice input operations, etc., to meet the needs of different users and enhance the interaction experience.

[0159] On the basis of the above embodiments, after the electronic device enters the first anti-mis-touch mode, it can also first listen for whether the second type of event is detected; among them, the second type of event includes a large object occlusion event or a touch screen event. When the second type of event is detected, the first anti-mis-touch interface is then displayed.

[0160] In this embodiment, when it is detected that the electronic device enters the pocket scenario, it enters the first anti-mis-touch mode, but it does not need to immediately display the first anti-mis-touch interface and can still normally display the original interface. Only when a second type of event that may cause mis-touch is received, the first anti-mis-touch interface is displayed to prompt the user that the electronic device is currently in the first anti-mis-touch interface.

[0161] The large object occlusion event mentioned in this embodiment refers to an event in which the touch screen of the electronic device in the pocket scenario is covered by the pocket body or the items in the pocket or the touch screen.

[0162] In some embodiments, for detecting the coverage event, it can be achieved by detecting and analyzing the touch events for the touch screen of the electronic device, including: dividing the screen of the electronic device into multiple adjacent sub-regions; when a touch event for the screen is detected, detecting whether there is a touch point on each sub-region, if so, calculating the values corresponding to the major and minor axes of the touch region (such as: elliptical region) forming the touch point, and calculating the area of the touch region according to the obtained values of the major and minor axes; further calculating the ratio of the area of the touch region to the area of the sub-region, and determining the sub-region as an effective touch sub-region when the ratio meets the ratio threshold. After detecting each sub-region corresponding to the screen, calculating the target number of effective touch sub-regions, and determining that there is a large object occlusion event for the touch screen of the electronic device when the target number meets the touch number threshold. For example: dividing the screen of the electronic device into 100 sub-regions, if it is detected that there are 30 effective touch sub-regions among them, it is determined that there is a large object occlusion event.

[0163] When the electronic device enters the first anti-mis-touch mode, it can not generate the first anti-mis-touch interface, still display the original interface, and at the same time start listening for whether there is a second type of event. When the electronic device detects the second type of event, it then generates and displays the first anti-mis-touch interface, and can display the first anti-mis-touch interface on top of the original interface.

[0164] Of course, in another embodiment, the electronic device can also set the first anti-mis-touch interface to be invisible when it enters the first anti-mis-touch mode. When the second type of event is detected, the first anti-mis-touch interface is set to be visible. When the electronic device displays the first anti-mis-touch interface, it can directly display the first anti-mis-touch interface on top of the original interface. In addition, the electronic device can also set the layer of the first anti-mis-touch interface to be higher than the layer of the original interface, and make the transparency of the first anti-mis-touch interface slightly lower than the transparency of the original interface, so that the first anti-mis-touch interface does not completely block the display of the original interface, so that the user can view the content of the original interface.

[0165] In some other embodiments, for example, when the electronic device is a folding screen mobile phone, different processing schemes need to be selected according to different device usage states. Such asFigure 16 As shown in (a) in Figure 16 , the folding screen mobile phone is in the unfolded state and has a large size. Users usually do not put the electronic device in the pocket in the unfolded state, so that the situation of accidental touch in the pocket can be avoided. As

[0166] shown in (b) in

[0167] , the folding screen mobile phone is in the folded state and has a small size. Users usually put the electronic device in the pocket in the folded state, and it is easy to have the situation of accidental touch when putting it in the pocket. Therefore, the device control method provided in this embodiment can distinguish different control schemes according to the usage state of the device for the case where the electronic device is a folding screen mobile phone.

[0168] In this way, the anti-accidental touch monitoring process when the electronic device is in the unfolded state is saved, and the device power consumption is further reduced.

[0169] On the basis of the above embodiments, this embodiment also adds a control scheme for the electronic device to switch from the unlock mode to the lock screen mode. Specifically, after the electronic device enters the first anti-accidental touch mode, if a screen lock event is detected, it can directly exit the first anti-accidental touch mode and cancel the display of the first anti-accidental touch interface. That is to say, for the device control method started after the electronic device detects the screen unlock event, whether it is before entering the first anti-accidental touch mode or after entering the first anti-accidental touch mode again, once a screen lock event is detected, the current process can be ended.

[0170] As Figure 17 shown, it is a schematic diagram of the software framework of the electronic device. The software system of the electronic device can adopt a layered architecture. The layered architecture divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate through software interfaces. In some embodiments, the software is divided into three layers, from top to bottom are the application layer (APPlication), the framework layer (FrameWorK), and the hardware abstraction layer (Hardware Abstraction Layer, HAL).

[0171] The application layer can include a series of application program packages, such as a settings application, a camera application, a painting application, etc. In this embodiment, the application for setting the anti-accidental touch function can be the settings application or a separate anti-accidental touch application, etc., which is not limited. This embodiment takes the settings application as an example.

[0172] The framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc. The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, incoming and outgoing calls, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures. The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on. The notification manager enables applications to display notification information in the status bar, can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.

[0173] In specific use, the window manager, the content provider, the view system, the notification manager, etc. cooperate to implement various services, such as the interface service module required by the embodiments of the present application, to implement the display of the first anti-misoperation interface and related prompt information on the interface, which is not limited.

[0174] In addition, the framework layer further includes an input management module (Input Manager Service, IMS) and a screen lock management module. The input management module can be a system-level service configured by the operating system, used to process user input events, such as touch, key presses, gestures, etc. The input management module can obtain user input events by calling other modules, such as obtaining touch events applied to the touch screen through the screen touch module, etc.

[0175] The framework layer may further include a screen lock management module. The screen lock management module can be implemented by a module specifically for managing the screen lock state, used to monitor whether the touch screen is locked or unlocked. The screen lock management module can be implemented by other functional modules, for example, implemented by a keyboard service module with the function of unlocking screen management, which is not limited.

[0176] The hardware abstraction layer can encapsulate the underlying hardware and provide an interface for the upper-layer framework layer to call, shielding the implementation details of the lower-layer hardware. Such as Figure 17As shown in the figure, the hardware layer may include sensors and the like. The hardware abstraction layer includes a multi-sensor data processing module, which is connected to the sensors and is used to obtain various types of sensor data.

[0177] The hardware abstraction layer further includes an anti-mis-touch module, which is used to control the electronic device to enter the anti-mis-touch module and can also instruct the interface service module to display a first anti-mis-touch interface.

[0178] As Figure 18 shown in the figure, it is a thread schematic diagram of the device control method provided in this embodiment. As Figure 17 and Figure 18 shown in the figure, the specific process of the software module in the electronic device to implement the device control method includes:

[0179] The input management module registers a first listening event with the lock screen management module so that the lock screen management module listens for whether a screen unlocking event occurs. If the user unlocks the screen of the electronic device, the lock screen management module will detect the screen unlocking event and notify the input management module of the detected screen unlocking event.

[0180] When the input management module receives the screen unlocking event, it registers a second listening event with the multi-sensor data processing module so that the multi-sensor data processing module listens for whether a first type of event is detected, that is, listens for whether the ambient light brightness is less than or equal to a first preset brightness value, whether the body posture is a reasonable posture, and whether the body is in a moving state. The integrated sensor information module notifies the input management module of the detected first type of event.

[0181] When the input management module receives the first type of event, it notifies the anti-mis-touch module to enter the first anti-mis-touch mode;

[0182] When the input management module receives a touch screen event or a large object occlusion event, it notifies the anti-mis-touch module, and the anti-mis-touch module notifies the interface service module to display a first anti-mis-touch interface.

[0183] When the lock screen management module detects a screen locking event, it notifies the input management module of the detected screen locking event;

[0184] When the input management module receives the screen locking event, it notifies the anti-mis-touch module to exit the first anti-mis-touch mode;

[0185] The anti-mis-touch module notifies the interface service module to cancel the display of the first anti-mis-touch interface.

[0186] As Figure 19As shown in the figure, it is another flowchart of the device control method provided by the embodiment of the present application. When the electronic device monitors that it is in the screen-on and unlocked scenario, it subscribes to the Unlock Headdown capability of the Multi-Sensor Data Platform (MSDP) from the internal functional module, and monitors whether it is in the Unlock Headdown state. Among them, the Unlock Headdown state refers to the head-down state without the screen locked. When it is monitored that it is in the Unlock Headdown state, it further monitors whether there is a large object occlusion event or a touch screen event. When a large object occlusion event or a touch screen event is detected, a first anti-mis-touch interface is displayed. If the electronic device is not in the Unlock Headdown state, the first anti-mis-touch interface is not displayed.

[0187] As Figure 20 shown, the embodiment of the present application also adds a device control solution in the locked screen scenario. Specifically, as Figure 20 shown, the device control method further includes:

[0188] Step S2001: In response to the screen locking event, monitor whether a third type of event is detected. Among them, the third type of event includes that the ambient light brightness of the electronic device is less than or equal to the second preset brightness value, the body posture is an inverted posture, and the screen is in a state of being blocked by a large object.

[0189] Step S2002: If a third type of event is detected, enter the second anti-mis-touch mode. Among them, in the second anti-mis-touch mode, the electronic device, in the second anti-mis-touch mode, the electronic device only responds to the predefined second type of input operation, and the second type of input operation is used to instruct the electronic device to exit the second anti-mis-touch mode.

[0190] In this embodiment, a device control solution in the locked screen scenario is added. After detecting the screen locking event, it will further monitor whether there is a second type of event, and when the second type of event is detected, enter the second anti-mis-touch mode. In this second anti-mis-touch mode, the electronic device does not respond to most of the touch operations on the touch screen, effectively avoiding mis-touch.

[0191] After the electronic device enters the second anti-mis-touch mode, it can also display an anti-mis-touch interface, and define the anti-mis-touch interface in the locked screen mode as the second anti-mis-touch interface. As Figure 21 shown, the electronic device can directly display the second anti-mis-touch interface on the locked screen interface, instead of displaying the interface before locking the screen. Or as Figure 22 shown, the electronic device can only display the second anti-mis-touch interface, instead of the locked screen interface or not displaying the interface before locking the screen.

[0192] In addition, the electronic device can also control the electronic device to turn off the screen to reduce mis-touch and the power consumption of the lit screen.

[0193] In addition, an embodiment of the present application further provides an electronic device, including a touch screen, a memory, and a processor, where the touch screen and the memory are both coupled to the processor;

[0194] The memory stores computer-executable instructions;

[0195] The processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the device control method provided in the foregoing embodiment. In addition to these main components, the electronic device further includes components for implementing basic functions, which will be specifically described below in conjunction with Figure 23 for specific illustration.

[0196] As Figure 23 shown is a schematic structural diagram of an electronic device 2300 provided by an embodiment of the present application. Among them, the electronic device 2300 may include a processor 2310, a memory 2320, an input / output interface 2330, a charging management module 2340, a power management module 2341, a battery chip 2342, a touch screen 2350, a communication module 2360, an audio module 2370, a sensor module 2380, etc. Among them, the sensor module 2380 may include a pressure sensor 2381, a gyroscope sensor 2382, an acceleration sensor 2383, a distance sensor 2384, a proximity light sensor 2385, a fingerprint sensor 2386, a touch sensor 2387, an ambient light sensor 2388, etc.

[0197] The structure schematically shown in the embodiment of the present invention does not limit the electronic device 2300. It may include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0198] The processor 2310 may include one or more processing units. For example, the processor 2310 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and / or a Neural-Network Processing Unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0199] The above-mentioned controller can be a decision-maker that commands various components of the electronic device 2300 to work in coordination according to instructions. It is the nerve center and command center of the electronic device 2300. The controller generates operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.

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

[0201] In some embodiments, the processor 2310 may include an input / output interface 2330. 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 SIM interface, and / or a USB interface, etc.

[0202] The interface connection relationship between the modules illustrated in the embodiments of the present invention is only for illustrative purposes and does not constitute a limitation on the structure of the electronic device 2300. The electronic device 2300 can adopt different interface connection methods in the embodiments of the present invention, or a combination of multiple interface connection methods.

[0203] The charging management module 2340 can be a rechargeable management module or a disposable charging management module. For a rechargeable management module, it can receive charging input through a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 2340 can receive the charging input of the wired charger through the USB interface 2330. In some embodiments of wireless charging, the charging management module 2340 can receive the wireless charging input through the wireless charging coil of the electronic device 2300. While charging the battery chip 2342, the charging management module 2340 can also supply power to the electronic device 2300 through the power management module 2341.

[0204] The power management module 2341 is used to connect to the battery chip 2342, the charging management module 2340 and the processor 2310. The power management module 2341 receives inputs from the battery chip 2342 and / or the charging management module 2340 and supplies power to the processor 2310, the memory 2321, the external memory interface 2320, the touch screen 2350, the camera 2393, the communication module 2360, etc. The power management module 2341 can also be used to monitor parameters such as the capacity of the charging management module, the number of charging cycles of the charging management module, and the health status (leakage, impedance) of the charging management module. In some embodiments, the power management module 2341 can also be disposed in the processor 2310. In some embodiments, the power management module 2341 and the battery chip 2342 can also be disposed in the same device.

[0205] The wireless communication function of the electronic device 2300 can be implemented through an antenna, a radio frequency module, the communication module 2360, a modem, and a baseband processor, etc.

[0206] The antenna is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 2300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: the cellular network antenna can be multiplexed as the wireless local area network diversity antenna. In some embodiments, the antenna can be used in combination with a tuning switch.

[0207] The radio frequency module can provide a communication processing module for wireless communication solutions including 2G / 3G / 4G / 5G, etc. applied to the electronic device 2300.

[0208] The communication module 2360 can provide a communication processing module for wireless communication solutions applied to the electronic device 2300, 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. The communication module 2360 can be one or more devices integrating at least one communication processing module. The communication module 2360 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 2310. The communication module 2360 can also receive the signals to be sent from the processor 2310, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna for radiation.

[0209] In some embodiments, the antenna of the electronic device 2300 is coupled to the communication module 2360, enabling the electronic device 2300 to communicate with the network and other devices via wireless communication technologies. The wireless communication technologies may include Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS may include satellite based Augmentation Systems (SBAS), GLObal NavigAtion Satellite System (GLONASS), BeiDou navigation Satellite system (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0210] The electronic device 2300 implements the display function through the GPU, the touch screen 2350, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the touch screen 2350 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 2310 may include one or more GPUs, which execute program instructions to generate or change the display information.

[0211] The touch screen 2350 is used to display images, videos, etc. The touch screen 2350 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

[0212] The electronic device 2300 may further include a memory 2320. The memory 2320 may include an internal memory or be connected to an external memory card through an external memory interface, such as a Micro SD card, to expand the storage capacity of the electronic device 2300. The external memory card communicates with the processor 2310 through the external memory interface to implement the data storage function. For example, files such as music and videos are saved in the external memory card.

[0213] The memory 2320 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 2310 executes various functional applications and data processing of the electronic device 2300 by running the instructions stored in the memory 2320. The memory 2320 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the electronic device 2300 (such as audio data, phone book, etc.). In addition, the memory 2321 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, other volatile solid-state storage devices, a universal flash storage (UFS), etc.

[0214] The electronic device 2300 can implement audio functions through an audio module 2370, a speaker, a receiver, a microphone, a headphone interface, and an application processor, etc. For example, music playback, recording, etc.

[0215] The audio module 2370 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 2370 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 2370 can be disposed in the processor 2310, or some functional modules of the audio module 2370 can be disposed in the processor 2310.

[0216] In addition, the electronic device 2300 may further include a sensor module 2380. Among them, the sensor module 2380 may include a pressure sensor 2381, a gyroscope sensor 2382, an acceleration sensor 2383, a distance sensor 2384, a proximity light sensor 2385, a fingerprint sensor 2386, a touch sensor 2387, an ambient light sensor 2388, etc. The pressure sensor 2381 can collect pressure data acting on the surface of the touch screen. The gyroscope sensor 2382 can collect the body attitude data of the electronic device. The acceleration sensor 2383 can collect the body acceleration data of the electronic device. The distance sensor 2384 can collect the distance from the surface of other objects. The proximity light sensor 2385 is usually disposed in the upper right corner area of the touch screen for collecting whether there is an object approaching the surface of the touch screen. The fingerprint sensor 2386 is disposed in the fixed area under the touch screen for collecting fingerprint data input by the user. The touch sensor 2387 is usually disposed in the entire effective touch area of the touch screen for collecting touch operations in the effective touch area of the touch screen. The ambient light sensor 2388 is usually disposed on the top surface of the electronic device for collecting parameters such as the brightness value of the ambient light in the environment where the electronic device is located.

[0217] Of course, in addition to the above main components, the electronic device may further include other components for implementing basic functions, which will not be elaborated here.

[0218] The device control methods in the foregoing embodiments can all be implemented in the terminal device 2300 having the above hardware structure.

[0219] Based on the above embodiments, an embodiment of the present application further provides a device control device, and the device control device includes a processor for executing the device control method provided in the above embodiments.

[0220] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when it runs on a computer, it causes the computer to execute the device control method provided in the above embodiments.

[0221] An embodiment of the present application further provides a computer program product including instructions, and when it runs on a computer, it causes the computer to be able to execute the device control method provided in the above embodiments.

[0222] For the specific implementation manners of the terminal device, computer-readable storage medium, and computer program product containing instructions provided in the embodiments of the present application, and the technical effects brought thereby, reference may be made to the specific implementation process and the technical effects brought by the device control method provided in the foregoing embodiments, which will not be elaborated herein.

[0223] In some embodiments, through the description of the above implementation manners, those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above division of each functional module is used as an example for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the systems, devices, and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be elaborated herein.

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

[0225] 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 such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk, or optical disc.

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

Claims

1. A device control method, characterized in that, applied to an electronic device, the device control method includes: displaying a first interface; wherein, the first interface is an application interface or a main interface displayed after the electronic device is unlocked; detecting a first type of event, and displaying a first anti-misoperation interface on the first interface; wherein, the first type of event includes that the ambient light brightness of the electronic device is less than or equal to a first preset brightness value, the body posture is an inverted posture, and the body is in a moving state; wherein, the first anti-misoperation interface includes a first prompt message, and the first prompt message is used to indicate that the electronic device is in the first anti-misoperation mode; in the first anti-misoperation mode, the electronic device only responds to a predefined first type of input operation, and the first type of input operation is used to trigger the electronic device to exit the first anti-misoperation mode.

2. The device control method according to claim 1, characterized in that, the method further includes: responding to a screen unlocking event, and listening for whether the first type of event is detected.

3. The device control method according to claim 1 or 2, characterized in that, the step of displaying the first anti-misoperation interface on the first interface includes: the layer corresponding to the first anti-misoperation interface is displayed on the upper layer of the layer corresponding to the first interface, and the transparency of the first anti-misoperation interface is within a preset range.

4. The device control method according to claim 2, characterized in that, for the step of detecting the first type of event and displaying the first anti-misoperation interface on the first interface, the method further includes: detecting the first type of event, generating the first anti-misoperation interface, and setting the first anti-misoperation interface to be invisible; detecting a second type of event, and setting the first anti-misoperation interface to be visible; wherein, the second type of event includes a large object occlusion event or a touch screen event.

5. The device control method according to claim 4, characterized in that, the method further includes: detecting the first type of event, and listening for whether the second type of event is detected.

6. The device control method according to any one of claims 1, 2, 4 or 5, characterized in that, the first anti-misoperation interface further includes a second prompt message, and the second prompt message is used to indicate the operation method of the first type of input operation.

7. The device control method according to any one of claims 1, 2, 4 or 5, characterized in that, the method further includes: when the first anti-misoperation interface is displayed, responding to a screen locking event, and canceling the display of the first anti-misoperation interface.

8. The device control method according to any one of claims 1, 2, 4 or 5, characterized in that, the method further includes: responding to a screen locking event, and exiting the first anti-misoperation mode.

9. The device control method according to claim 2, characterized in that, the electronic device includes a framework layer and a hardware abstraction layer, the framework layer includes an input management module, a screen locking management module and an interface service module, and the hardware abstraction layer includes a multi-sensor data processing module and an anti-misoperation module; the method includes: The input management module registers a first monitoring event with the lock screen management module, so that the lock screen management module monitors whether the screen unlocking event occurs and notifies the input management module of the monitored screen unlocking event; When the input management module receives the screen unlocking event, it registers a second monitoring event with the multi-sensor data processing module, so that the multi-sensor data processing module monitors whether the first type of event is detected and notifies the input management module of the monitored first type of event; When the input management module receives the first type of event, it notifies the anti-misoperation module; The anti-misoperation module notifies the interface service module to display the first anti-misoperation interface.

10. The device control method according to claim 9, wherein, the method further includes: When the lock screen management module monitors that the screen locking event occurs, it notifies the input management module of the monitored screen locking event; When the input management module receives the screen locking event, it notifies the anti-misoperation module; The anti-misoperation module notifies the interface service module to cancel the display of the first anti-misoperation interface.

11. The device control method according to any one of claims 1, 2, 4, 5, 9 or 10, wherein, the electronic device is a folding screen device, and the device usage states of the folding screen device include an unfolded state and a folded state; The step of, in response to the screen unlocking event, monitoring whether the first type of event is detected includes: If the device usage state is the folded state, in response to the screen unlocking event, monitoring whether the first type of event is detected; If the device usage state is the unfolded state, do not perform the operation of monitoring whether the first type of event is detected.

12. The device control method according to any one of claims 2, 9 or 10, wherein, the method further includes: In response to the screen locking event, monitoring whether a third type of event is detected; wherein, the third type of event includes that the ambient light brightness of the electronic device is less than or equal to a second preset brightness value, the body posture is an inverted posture, and the screen is in a state of being blocked by a large object; If the third type of event is detected, enter the second anti-misoperation mode; wherein, in the second anti-misoperation mode, the electronic device only responds to a predefined second type of input operation in the second anti-misoperation mode, and the second type of input operation is used to instruct the electronic device to exit the second anti-misoperation mode.

13. An electronic device, wherein, an accessory is externally connected to the electronic device, and the electronic device includes a touch screen, a memory and a processor, and the touch screen and the memory are both coupled to the processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the electronic device executes the device control method according to any one of claims 1 to 12.

14. A computer-readable storage medium, wherein, A computer program is stored in the computer-readable storage medium, and when it runs on a computer, it causes the computer to execute the device control method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Application control method and application control device

    CN104238912A

  • Terminal-mistaken-touch preventing method and device

    CN107786743A

  • Display control method and device, computer readable medium and wireless communication terminal

    CN111083283A

  • Method for shielding touch event and electronic device

    CN111542802A

  • Method and device for preventing mistaken touch

    CN116204075A

Cited By

  • Cosmetic function interaction method and system in cabin

    CN120335616A

  • Interactive method and system for in-cabin makeup function

    CN120335616B