Screen-dominating exit method, screen-dominating exit device, electronic device, and storage medium
By interacting with the heartbeat packet and message server, a pop-up component is generated or a keypad password verification is performed, which solves the problem of needing to disassemble the device to exit the screen-dominating mode. This enables screen-dominating exit without disassembling the device, improving efficiency and security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN XINGUODU TECH
- Filing Date
- 2023-05-10
- Publication Date
- 2026-05-05
AI Technical Summary
Existing technology requires disassembling the device to exit the screen-dominating mode, which increases the difficulty and complexity.
By sending a heartbeat packet to the device management platform, obtaining server connection parameters, connecting to the message server and subscribing to the screen-domination exit command, generating a pop-up component and responding to clicks to exit the screen-domination mode, or exiting the screen-domination mode through button operation and password verification.
It enables remote exit from the screen-dominating mode without disassembling the device, reducing the difficulty of exiting and improving efficiency and security.
Smart Images

Figure CN116668497B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, device, electronic device, and storage medium for exiting a screen-dominating display. Background Technology
[0002] Screen occupancy, or dominating the screen, restricts a user's access to specific applications on the device. Unattended devices often use screen occupancy to control user behavior. When the device malfunctions and requires repair, screen occupancy must be exited. While some technologies involve pressing and holding a button to activate screen occupancy, these buttons are typically embedded in unattended devices, requiring disassembly to expose them, thus complicating exiting screen occupancy. Summary of the Invention
[0003] The main objective of this application is to propose a method, device, electronic device, and storage medium for exiting the screen-dominating mode, which aims to enable exiting the screen-dominating mode without disassembling the device, thereby reducing the difficulty of exiting the screen-dominating mode.
[0004] To achieve the above objectives, a first aspect of this application proposes a method for exiting a screen-dominating device, applied to a terminal device, the method comprising:
[0005] Send a heartbeat packet to the device management platform and receive heartbeat response information from the device management platform in response to the heartbeat packet; the heartbeat response information includes server connection parameters;
[0006] The system connects to the message server according to the server connection parameters and subscribes to the message topics of the message server; the message topics include a screen-domination exit command, which is sent by the device management platform to the message topics of the message server.
[0007] In response to the screen-domination exit command, the screen-domination status is obtained. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated.
[0008] In response to a click on the pop-up component, exit the screen-dominating mode.
[0009] In some embodiments, the heartbeat response information further includes a first screen-dominating unlock password, the terminal device is equipped with a button, and after receiving the heartbeat response information from the device management platform in response to the heartbeat packet, the screen-dominating exit method further includes:
[0010] The screen-dominating state is obtained by triggering the button press operation;
[0011] If the "screen-dominating state" indicates that the terminal device is in screen-dominating mode, then a password input box is generated;
[0012] Receive the second screen-wide unlock password entered in the password input box;
[0013] Exit screen-domination mode using the first and second screen-domination unlock passwords.
[0014] In some embodiments, the terminal device includes an application and firmware. In response to the screen-domination exit command, the screen-domination state is obtained. If the screen-domination state indicates that the terminal device is in screen-domination mode, a pop-up component is generated, including:
[0015] In response to the screen-domination exit command, the application is controlled to call the first preset interface to send a screen-domination status acquisition request to the firmware, so that the firmware responds to the screen-domination status acquisition request and obtains the screen-domination status;
[0016] If the "screen-dominating state" indicates that the terminal device is in screen-dominating mode, then the application is controlled to generate the pop-up component.
[0017] In some embodiments, exiting the screen-dominating mode in response to a click on the pop-up component includes:
[0018] In response to a click on the pop-up component, the application is controlled to call a second preset interface to send a screen-domination exit request to the firmware, so that the firmware responds to the screen-domination exit request and exits the screen-domination mode.
[0019] In some embodiments, after the firmware responds to the screen-domination exit request and exits the screen-domination mode, the screen-domination exit method further includes:
[0020] Obtain the screen-dominating exit result returned by the firmware;
[0021] If the screen-domination exit result indicates that the screen-domination exit was successful, then the application is controlled to call the first preset interface to obtain the screen-domination status;
[0022] The screen-dominating exit result is verified based on the screen-dominating status.
[0023] In some embodiments, after obtaining the screen-dominating exit result returned by the firmware, the screen-dominating exit method further includes:
[0024] If the screen-domination exit result indicates that the screen-domination exit failed, then the application is controlled to call the second preset interface to exit the screen-domination mode and obtain a new screen-domination exit result;
[0025] If the new exit result indicates that the exit failed, then obtain the consecutive number of exit failures.
[0026] If the number of consecutive failures is greater than or equal to a preset threshold, then the pop-up component is generated at a preset time.
[0027] In response to a click on the pop-up component, exit the screen-dominating mode.
[0028] In some embodiments, exiting the screen-dominating mode based on the first screen-dominating unlock password and the second screen-dominating unlock password includes:
[0029] Compare the first screen-domination unlock password with the second screen-domination unlock password;
[0030] If the first screen-domination unlock password and the second screen-domination unlock password are the same, then exit the screen-domination mode.
[0031] To achieve the above objectives, a second aspect of this application provides a screen-dominating exit device applied to a terminal device, the device comprising:
[0032] The sending and receiving module is used to send heartbeat packets to the device management platform and receive heartbeat response information from the device management platform in response to the heartbeat packets; the heartbeat response information includes server connection parameters.
[0033] The message subscription module is used to connect to the message server according to the server connection parameters and subscribe to the message topics of the message server; the message topics include a screen-domination exit command, which is sent by the device management platform to the message topics of the message server;
[0034] The screen-domination status acquisition module is used to acquire the screen-domination status. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated.
[0035] The screen-domination exit module is used to exit the screen-domination mode in response to a click on the pop-up component.
[0036] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the screen-dominating exit method described in the first aspect.
[0037] To achieve the above objectives, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the screen-dominating exit method described in the first aspect.
[0038] The screen-domination exit method, device, electronic device, and storage medium proposed in this application send heartbeat packets to a device management platform and receive heartbeat response information from the platform in response to the heartbeat packets. This data interaction allows the terminal device to obtain the server connection parameters of the message server. Based on the server connection parameters, the device connects to the message server and subscribes to message topics. This allows the terminal device to receive screen-domination exit commands pushed to the message topics by the device management platform and remotely exit the screen-domination mode using these commands. In response to the screen-domination exit command, the device obtains the screen-domination status. If the status indicates that the terminal device is in screen-domination mode, a pop-up component is generated. Clicking the pop-up component exits the screen-domination mode. This allows the terminal device to exit screen-domination mode simply by clicking its screen, eliminating the need to disassemble the device, thus reducing the difficulty and improving the efficiency of screen-domination exit. Attached Figure Description
[0039] Figure 1 This is a flowchart of the screen-dominating exit method provided in the embodiments of this application;
[0040] Figure 2 This is another flowchart of the screen-dominating exit method provided in the embodiments of this application;
[0041] Figure 3 yes Figure 2 The flowchart of step S240 in the text;
[0042] Figure 4 yes Figure 1 The flowchart of step S130 in the process;
[0043] Figure 5 This is another flowchart of the screen-dominating exit method provided in the embodiments of this application;
[0044] Figure 6 This is another flowchart of the screen-dominating exit method provided in the embodiments of this application;
[0045] Figure 7 This is a schematic diagram of the screen-dominating exit method provided in the embodiments of this application;
[0046] Figure 8 This is another schematic diagram of the screen-dominating exit method provided in the embodiments of this application;
[0047] Figure 9 This is a schematic diagram of the structure of the screen-dominating exit device provided in the embodiments of this application;
[0048] Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0050] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0052] Screen occupancy, or dominating the screen, restricts a user's access to specific applications on the device. Unattended devices often use screen occupancy to control user behavior. When the device malfunctions and requires repair, screen occupancy must be exited. While some technologies involve pressing and holding a button to activate screen occupancy, these buttons are typically embedded in unattended devices, requiring disassembly to expose them, thus complicating exiting screen occupancy.
[0053] Based on this, embodiments of this application provide a method, device, electronic device, and computer-readable storage medium for exiting screen-dominating mode, aiming to enable exiting screen-dominating mode without disassembling the device, thus reducing the difficulty of exiting screen-dominating mode.
[0054] The screen-dominating exit method, screen-dominating exit device, electronic device, and computer-readable storage medium provided in this application are specifically described through the following embodiments. First, the screen-dominating exit method in this application embodiment is described.
[0055] The screen-dominating exit method provided in this application relates to the field of communication technology. This method can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the screen-dominating exit method, but is not limited to the above forms.
[0056] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0057] Figure 1 This is an optional flowchart of the screen-dominating exit method provided in the embodiments of this application, applied to terminal devices. Figure 1 The method may include, but is not limited to, steps S110 to S140.
[0058] Step S110: Send a heartbeat packet to the device management platform and receive heartbeat response information from the device management platform in response to the heartbeat packet; the heartbeat response information includes server connection parameters;
[0059] Step S120: Connect to the message server according to the server connection parameters and subscribe to the message topics of the message server; the message topics include the screen-domination exit command, which is sent by the device management platform to the message topics of the message server.
[0060] Step S130: In response to the screen-domination exit command, obtain the screen-domination status. If the screen-domination status indicates that the terminal device is in screen-domination mode, then generate a pop-up component.
[0061] Step S140: In response to the click on the pop-up component, exit the screen-dominating mode.
[0062] Steps S110 to S140, as illustrated in this embodiment, involve data interaction via heartbeat packets, enabling the terminal device to obtain server connection parameters from the message server. Connecting to the message server based on these parameters allows the terminal device to receive the "screen-dominating exit" command from the message topic, enabling remote control exit from screen-dominating mode. In response to the screen-dominating exit command, the screen-dominating status is obtained. If the status indicates the terminal device is in screen-dominating mode, a pop-up component is generated. Clicking the pop-up component exits screen-dominating mode without disassembling the terminal device, reducing the difficulty and improving the efficiency of screen-dominating exit.
[0063] In step S110 of some embodiments, the terminal device is an unattended Android device, such as a vending machine. The device management platform is a platform for managing the terminal device. The terminal device periodically sends heartbeat requests (heartbeat packets) to the device management platform via Transmission Control Protocol (TCP) to interact with the device management platform. After receiving the heartbeat request, the device management platform responds to the heartbeat request and returns heartbeat response information to the terminal device. The heartbeat packet includes important information that the terminal device needs to upload to the device management platform, such as the terminal device's identity identifier, application, firmware version, device status, and current location. The identity identifier can be the terminal device's serial number, and the device status includes running status, shutdown status, etc. The heartbeat response information includes data that the device management platform needs to synchronize to the terminal device, such as the terminal device's identity identifier, server connection parameters, etc. The server connection parameters are the parameters required for the terminal device to connect to the message server, such as the message server's connection address, login password, etc. The connection address includes the message server's IP or domain name, server port, connection protocol, etc.
[0064] Please see Figure 2 In some embodiments, the heartbeat response information also includes a first screen-locking password. The terminal device is equipped with a button. After step S110, the screen-locking exit method may include, but is not limited to, steps S210 to S240:
[0065] Step S210 is triggered by pressing a button to obtain the screen-dominating state;
[0066] Step S220: If the screen-dominating state indicates that the terminal device is in screen-dominating mode, then a password input box is generated;
[0067] Step S230: Receive the second screen-unlocking password entered in the password input box;
[0068] Step S240: Exit the screen-domination mode using the first screen-domination unlock password and the second screen-domination unlock password.
[0069] In step S210 of some embodiments, when exiting the screen-dominating mode by pressing a button, the password for exiting the screen-dominating mode is usually fixed. Once the password is leaked, it becomes impossible to control the user's behavior on the terminal device, and the terminal device is at risk of being maliciously operated. This application embodiment interacts with the device management platform via a timed heartbeat to obtain a dynamic password from the heartbeat response information, eliminating the risk to the terminal device caused by a fixed password. When a specific button embedded in the terminal device is pressed and held (it can be one button or a combination of multiple buttons) or pressed a preset number of times, the terminal device is triggered to acquire a screen-dominating state, which includes screen-dominating mode and non-screen-dominating mode.
[0070] In step S220 of some embodiments, if the screen-dominating state indicates that the terminal device is in screen-dominating mode, a password input box is generated on the screen interface of the terminal device.
[0071] In step S230 of some embodiments, the user enters a password in the password input box. In response to clicking the "OK" button, the system receives the second unlock password entered by the user in the password input box. It should be noted that the user needs to enter the password within a preset time range. If the password input times out, an input timeout message is sent to the device management platform, so that the device management platform modifies and updates the first unlock password. The user then needs to re-enter the password in the password input box. Furthermore, the user can send a password retrieval request to the device management platform via a mobile terminal such as a mobile phone. The device management platform verifies the user's identity information and permission information carried in the password retrieval request. If the verification passes, the first unlock password is sent to the user's mobile terminal.
[0072] In step S240 of some embodiments, the first screen-domination unlock password is stored locally, the first screen-domination unlock password stored locally is updated using the first screen-domination unlock password obtained in real time, and the second screen-domination unlock password is verified according to the first screen-domination unlock password. If the first screen-domination unlock password and the second screen-domination unlock password are the same, the screen-domination mode is exited.
[0073] In steps S210 to S240 above, the password is dynamically generated by the device management platform, rather than being updated by the user of the terminal device. The password is verified to prevent the terminal device from being maliciously operated.
[0074] Please see Figure 3 In some embodiments, step S240 may include, but is not limited to, steps S310 to S320:
[0075] Step S310: Compare the first screen-dominating unlock password and the second screen-dominating unlock password;
[0076] Step S320: If the first screen-domination unlock password and the second screen-domination unlock password are the same, then exit the screen-domination mode.
[0077] In step S310 of some embodiments, the number of digits of the first screen-dominating unlock password and the second screen-dominating unlock password are compared. If the number of digits is the same, the first screen-dominating unlock password and the second screen-dominating unlock password are compared digit by digit. If any digit is different, it means that the first screen-dominating unlock password and the second screen-dominating unlock password are different, and the comparison stops. If every digit of the first screen-dominating unlock password and the second screen-dominating unlock password is the same, it means that the first screen-dominating unlock password and the second screen-dominating unlock password are the same.
[0078] In step S320 of some embodiments, if the first screen-dominating unlock password and the second screen-dominating unlock password are the same, then the screen-dominating mode is exited. If the first screen-dominating unlock password and the second screen-dominating unlock password are different, then the terminal device maintains the screen-dominating mode.
[0079] Steps S310 to S320 above ensure that the user has the right to exit the screen by verifying the password, thus preventing the terminal device from being maliciously operated.
[0080] In step S120 of some embodiments, the message server is a Message Queuing Telemetry Transport (MQTT) server, which sends messages via the MQTT protocol. The terminal device first sends a connection request to the message server, connects to the message server based on the connection request, connection address, and login password, and then sends a topic subscription request to the message server. Based on the topic subscription request and the terminal device's serial number, it obtains the message topic. The device management platform remotely sends a screen-dodging exit command to the message topic via the MQTT protocol. The message server also pushes all messages under that message topic, including the screen-dodging exit command, to the terminal device via the MQTT protocol. The topic name of the message topic has a fixed format, using a fixed prefix + serial number, which can be "the object name / project name / fixed prefix / serial number of the terminal device", for example, " / abx / project / machine / N1001". It is understood that since each terminal device has a different serial number, each terminal device subscribes to different message topics. When a screen-dodging exit command is pushed to the message topic, only the specified device can receive and respond to the screen-dodging exit command.
[0081] Please see Figure 4 In some embodiments, the terminal device includes an application and firmware, and step S130 may include, but is not limited to, steps S410 to S420:
[0082] Step S410: In response to the screen-domination exit command, the control application calls the first preset interface to send a screen-domination status acquisition request to the firmware, so that the firmware responds to the screen-domination status acquisition request and obtains the screen-domination status.
[0083] Step S420: If the screen-dominating state indicates that the terminal device is in screen-dominating mode, then control the application to generate a pop-up component.
[0084] In step S410 of some embodiments, the application is a background application existing on the terminal device, i.e., a background client of the Android device, which runs continuously. The first preset interface is an interface for obtaining the screen-dominating state, which is provided by the firmware. In response to the screen-dominating exit command, the control application calls the first preset interface to send a screen-dominating state acquisition request to the firmware, and the firmware responds to the screen-dominating state acquisition request and returns the screen-dominating state to the application.
[0085] In step S420 of some embodiments, if the screen-dominating state indicates that the terminal device is in screen-dominating mode, the control application automatically generates a pop-up component on the screen interface of the terminal device. The pop-up component is used to allow the user to choose whether to exit the screen-dominating mode.
[0086] In steps S410 to S420 above, by generating a pop-up component, users can choose to exit the screen-dominating mode on the pop-up component without disassembling the terminal device to exit the screen-dominating mode, thus improving the efficiency of exiting the screen-dominating mode.
[0087] In step S140 of some embodiments, the pop-up component includes a "Confirm Exit Screen Domination" button and a "Cancel Exit Screen Domination" button. In response to clicking the "Confirm Exit Screen Domination" button on the pop-up component, the control application calls a second preset interface to send a screen domination exit request to the firmware. The firmware responds to the screen domination exit request, causing the terminal device to exit the screen domination mode. The second preset interface is an interface for enabling and disabling the screen domination mode and is provided by the firmware. If the user clicks the "Cancel Exit Screen Domination" button, the screen domination mode is maintained.
[0088] Please see Figure 5 In some embodiments, after step S140, the screen-dominating exit method may include, but is not limited to, steps S510 to S530:
[0089] Step S510: Obtain the screen-dominating exit result returned by the firmware;
[0090] Step S520: If the screen-domination exit result indicates that the screen-domination exit was successful, then control the application to call the first preset interface to obtain the screen-domination status.
[0091] Step S530: Verify the exit result of the screen domination based on the screen domination status.
[0092] In step S510 of some embodiments, after the firmware responds to the screen-domination exit request and causes the terminal device to exit the screen-domination mode, it returns the screen-domination exit result to the application through the second preset interface. The screen-domination exit result includes two results: screen-domination exit successful and screen-domination exit failed.
[0093] In step S520 of some embodiments, if the screen-dominating exit result indicates successful screen-dominating exit, the application is controlled to call the first preset interface to re-acquire the screen-dominating state to perform a secondary confirmation of the screen-dominating exit result. The method for obtaining the screen-dominating state is the same as in step S410, and will not be repeated here.
[0094] In step S530 of some embodiments, if the re-acquired screen domination state is non-screen domination mode, it indicates that the screen domination exit result is correct, the terminal device has successfully exited the screen domination mode, and returned to the non-screen domination mode.
[0095] Through the above steps S510 to S530, the screen-domination exit result can be verified to ensure that the terminal device successfully exits the screen-domination mode.
[0096] Please see Figure 6 In some embodiments, after step S510, the screen-dominating exit method may include, but is not limited to, steps S610 to S640:
[0097] Step S610: If the screen-domination exit result indicates that the screen-domination exit failed, then control the application to call the second preset interface to exit the screen-domination mode and obtain a new screen-domination exit result.
[0098] Step S620: If the new screen-domination exit result indicates that the screen-domination exit failed, then obtain the consecutive number of screen-domination exit failures.
[0099] Step S630: If the number of consecutive failures is greater than or equal to a preset threshold, a pop-up component is generated at a preset time.
[0100] Step S640: In response to the click on the pop-up component, exit the screen-dominating mode.
[0101] In step S610 of some embodiments, if the screen-domination exit result indicates that the screen-domination exit has failed, the number of consecutive failures of the screen-domination exit is recorded as 1, and the application is controlled to call the second preset interface to exit the screen-domination mode, so that the firmware returns a new screen-domination exit result to the application.
[0102] In step S620 of some embodiments, if the new screen-domination exit result indicates that the screen-domination exit failed, the recorded number of consecutive failures is incremented by 1 to update the number of consecutive failures.
[0103] In step S630 of some embodiments, when the number of consecutive failures is greater than or equal to a preset threshold, a prompt pop-up is generated, and the pop-up component is regenerated after a preset time. The prompt pop-up is used to inform the user of the failure to exit the screen-dominating mode, and the pop-up component is used to allow the user to choose whether to exit the screen-dominating mode. The pop-up component can be generated based on the screen-dominating exit command already obtained by the terminal device, or it can be generated based on the resent screen-dominating exit command resent to the message topic. For example, if the preset threshold is 3, when the screen-dominating mode fails to exit 3 times consecutively, a pop-up prompts the user "Screen-dominating mode exit failed, please try again later," and the pop-up component is regenerated after 3 seconds.
[0104] In step S640 of some embodiments, in response to clicking the confirm exit screen-dominating button on the pop-up component, the terminal device exits the screen-dominating mode.
[0105] Through steps S610 to S640 above, after a failed attempt to exit the screen-domination mode, multiple attempts can be made to exit the screen-domination mode so that the terminal device can exit the screen-domination mode, thus improving the accuracy of the screen-domination exit.
[0106] like Figure 7 As shown, the screen-dominating exit method of this application embodiment includes:
[0107] In step S710, a background application exists in the terminal device. This background application runs continuously and periodically sends heartbeat requests to the management platform via TCP protocol to interact with the management platform. The background application sends heartbeat packets to the management platform, and the management platform responds to the heartbeat packets by returning MQTT connection parameters to the background application. The background application connects to the MQTT server according to the MQTT connection parameters and subscribes to MQTT topics.
[0108] In step S720, the management user of the management platform logs into the management platform and pushes a message to the MQTT topic of the specified device number. The message content is the exit command for dominating the screen.
[0109] In step S730, the MQTT server pushes the message to the terminal background application.
[0110] In step S740, the terminal background application sends a request to obtain the current screen domination status to the interface provided by the firmware. The interface responds to the screen domination status request and obtains the screen domination status of the terminal device.
[0111] In step S750, the firmware returns the screen-dominating state of the terminal device to the terminal background application.
[0112] In step S760, the terminal background application determines whether the screen-dominating state is in screen-dominating mode. If it is currently in screen-dominating mode, a pop-up window is provided for the user to choose whether to exit screen-dominating mode.
[0113] In step S770, after the user confirms the exit from the screen-dominating mode, the terminal background application sends an exit request to the exit screen-dominating mode interface provided by the firmware.
[0114] In step S780, the interface for exiting the screen-dominating mode responds to the exit screen-dominating request, causing the terminal device to exit the screen-dominating mode.
[0115] In step S790, the interface for exiting the screen-dominating mode returns the exit result to the terminal background application. The terminal background application determines whether the exit was successful based on the screen-dominating result. If the exit is successful, the terminal device reverts to non-screen-dominating mode. If the exit fails, the terminal background application will try calling the interface for exiting the screen-dominating mode again. If it fails three times in a row, a pop-up window will prompt the user "Exiting screen-dominating mode failed, please try again later".
[0116] When the terminal device's network is functioning normally, a command to exit the screen-domination mode can be remotely issued, allowing the device to exit without disassembling, thus improving maintenance efficiency. Since the exit command is issued proactively by the management user on the management platform, password verification is not required; a pop-up window is sufficient for the user to confirm the exit.
[0117] like Figure 8 As shown, the screen-dominating exit method of this application embodiment includes:
[0118] In step S810, the terminal background application periodically sends heartbeat requests to the management platform.
[0119] In step S820, the management user logs into the management platform and sets a screen-locking password. The management platform responds to the heartbeat request and sends the screen-locking password to the terminal device.
[0120] In step S830, after receiving the screen unlock password, the terminal device caches it locally. When a new screen unlock password is obtained next time, the local cache is updated.
[0121] In step S840, when a long press of a designated button triggers an exit screen-dominating command, the terminal background application listens for this event and calls the firmware interface to obtain the current screen-dominating state. A screen-dominating state request is sent to the interface provided by the firmware, and the interface responds to the screen-dominating state request, thus obtaining the screen-dominating state of the terminal device.
[0122] In step S850, the interface for obtaining the current screen-dominating state returns the screen-dominating state to the terminal background application.
[0123] In step S860, the terminal background application determines whether the screen-dominating state is in screen-dominating mode. If it is in screen-dominating mode, an input box pops up for the user to enter a password. The user's entered password is verified using the screen-dominating unlock password. If the screen-dominating unlock password matches the entered password, the password is verified as correct.
[0124] In step S870, after verifying the password, the terminal background application calls the interface to exit the screen-dominating mode and sends an exit screen-dominating request to the interface.
[0125] In step S880, the interface for exiting the screen-dominating mode responds to the exit screen-dominating request, causing the terminal device to exit the screen-dominating mode.
[0126] In step S890, the interface for exiting the screen-dominating mode returns the exit result to the terminal background application. If the exit is successful, the device returns to the non-screen-dominating state. If the exit fails, the terminal background application will try to call the interface for exiting the screen-dominating mode again. If it fails three times in a row, a pop-up window will prompt the user "Exiting screen-dominating mode failed, please try again later".
[0127] When exiting the screen-dominating mode using a button, an unlock password is required. The management platform allows modification of the screen-dominating unlock password, improving the security of the terminal device and preventing risks associated with a fixed password.
[0128] Please see Figure 9 This application also provides a screen-dominating exit device, applied to a terminal device, which can realize the above-mentioned screen-dominating exit method. The device includes:
[0129] The sending and receiving module 910 is used to send heartbeat packets to the device management platform and receive heartbeat response information from the device management platform in response to the heartbeat packets; the heartbeat response information includes server connection parameters.
[0130] The message subscription module 920 is used to connect to the message server according to the server connection parameters and subscribe to the message topics of the message server; the message topics include the screen-domination exit command, which is sent by the device management platform to the message topics of the message server;
[0131] The screen-domination status acquisition module 930 is used to acquire the screen-domination status. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated.
[0132] The "Exit from Domination Mode" module 940 is used to exit the domination mode in response to a click on the pop-up component.
[0133] The specific implementation of this screen-dominating exit device is basically the same as the specific implementation of the screen-dominating exit method described above, and will not be repeated here.
[0134] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described screen-dominating exit method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0135] Please see Figure 10 , Figure 10 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:
[0136] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0137] The memory 1020 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010 to execute the screen-dominating exit method of the embodiments of this application.
[0138] The input / output interface 1030 is used to implement information input and output;
[0139] The communication interface 1040 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0140] Bus 1050 transmits information between various components of the device (e.g., processor 1010, memory 1020, input / output interface 1030, and communication interface 1040);
[0141] The processor 1010, memory 1020, input / output interface 1030 and communication interface 1040 are connected to each other within the device via bus 1050.
[0142] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described screen-dominating exit method.
[0143] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0144] The screen-domination exit method, device, electronic device, and computer-readable storage medium provided in this application embodiment interact with the device through heartbeat packets, enabling the device management platform to obtain the server connection parameters of the message server. Based on the server connection parameters, the device connects to the message server, allowing it to receive the screen-domination exit command from the message topic on the message server, thus enabling remote control of exiting the screen-domination mode. In response to the screen-domination exit command, the screen-domination status is obtained. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated. Clicking the pop-up component exits the screen-domination mode without disassembling the terminal device, reducing the difficulty and improving the efficiency of screen-domination exit.
[0145] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0146] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0147] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0148] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0149] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0150] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0152] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0153] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0154] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this 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. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0155] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for exiting a screen-dominated environment, characterized in that: Applied to a terminal device, the method includes: The terminal device sends a heartbeat packet to the device management platform via the transmission control protocol and receives heartbeat response information from the device management platform in response to the heartbeat packet; the heartbeat packet includes important information that the terminal device needs to upload to the device management platform, and the heartbeat response information includes server connection parameters; The system connects to the message server according to the server connection parameters and sends a subscription topic request to the message server. The system obtains the message topic based on the subscription topic request and the device ID of the terminal device and subscribes to the message topic. The message topic includes a screen-domination exit instruction, which is sent by the device management platform to the message topic of the message server. In response to the screen-domination exit command, the screen-domination status is obtained. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated. In response to a click on the pop-up component, exit the screen-dominating mode; The heartbeat response information also includes a first screen-domination unlock password. The terminal device is equipped with a button. After receiving the heartbeat response information from the device management platform in response to the heartbeat packet, the screen-domination exit method further includes: Triggered by pressing the button, the screen-dominating state is obtained; if the screen-dominating state indicates that the terminal device is in screen-dominating mode, a password input box is generated; a second screen-dominating unlock password is received from the password input box; and the screen-dominating mode is exited according to the first screen-dominating unlock password and the second screen-dominating unlock password.
2. The method for exiting a screen-dominating display according to claim 1, characterized in that, The terminal device includes an application and firmware. In response to the screen-domination exit command, it obtains the screen-domination status. If the screen-domination status indicates that the terminal device is in screen-domination mode, it generates a pop-up component, including: In response to the screen-domination exit command, the application is controlled to call the first preset interface to send a screen-domination status acquisition request to the firmware, so that the firmware responds to the screen-domination status acquisition request and obtains the screen-domination status; If the "screen-dominating state" indicates that the terminal device is in screen-dominating mode, then the application is controlled to generate the pop-up component.
3. The method for exiting a screen-dominating display according to claim 2, characterized in that, The step of exiting the screen-dominating mode in response to a click on the pop-up component includes: In response to a click on the pop-up component, the application is controlled to call a second preset interface to send a screen-domination exit request to the firmware, so that the firmware responds to the screen-domination exit request and exits the screen-domination mode.
4. The method for exiting a screen-dominating display according to claim 3, characterized in that, After the firmware responds to the screen-domination exit request and exits the screen-domination mode, the screen-domination exit method further includes: Obtain the screen-dominating exit result returned by the firmware; If the screen-domination exit result indicates that the screen-domination exit was successful, then the application is controlled to call the first preset interface to obtain the screen-domination status; The screen-dominating exit result is verified based on the screen-dominating status.
5. The method for exiting a screen-dominating display according to claim 4, characterized in that, After obtaining the screen-dominating exit result returned by the firmware, the screen-dominating exit method further includes: If the screen-domination exit result indicates that the screen-domination exit failed, then the application is controlled to call the second preset interface to exit the screen-domination mode and obtain a new screen-domination exit result; If the new exit result indicates that the exit failed, then obtain the consecutive number of exit failures. If the number of consecutive failures is greater than or equal to a preset threshold, then the pop-up component is generated at a preset time. In response to a click on the pop-up component, exit the screen-dominating mode.
6. The method for exiting a screen-dominating display according to claim 1, characterized in that, The step of exiting the screen-dominating mode based on the first screen-dominating unlock password and the second screen-dominating unlock password includes: Compare the first screen-domination unlock password with the second screen-domination unlock password; If the first screen-domination unlock password and the second screen-domination unlock password are the same, then exit the screen-domination mode.
7. A screen-dominating exit device, characterized in that, Applied to a terminal device, the device includes: The sending and receiving module is used to send a heartbeat packet to the device management platform via the transmission control protocol, and to receive heartbeat response information from the device management platform in response to the heartbeat packet; the heartbeat packet includes important information that the terminal device needs to upload to the device management platform, and the heartbeat response information includes server connection parameters; The message subscription module is used to connect to the message server according to the server connection parameters, send a subscription topic request to the message server, obtain a message topic according to the subscription topic request and the device ID of the terminal device, and subscribe to the message topic; the message topic includes a screen-dominating exit instruction, which is sent by the device management platform to the message topic of the message server. The screen-domination status acquisition module is used to acquire the screen-domination status. If the screen-domination status indicates that the terminal device is in screen-domination mode, a pop-up component is generated. The "Exit from Domination Mode" module is used to exit the domination mode in response to a click on the pop-up component. The heartbeat response information also includes a first screen unlock password, the terminal device is equipped with a button, and the device is further used for: Triggered by pressing the button, the screen-dominating state is obtained; if the screen-dominating state indicates that the terminal device is in screen-dominating mode, a password input box is generated; a second screen-dominating unlock password is received from the password input box; and the screen-dominating mode is exited according to the first screen-dominating unlock password and the second screen-dominating unlock password.
8. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the screen-dominating exit method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the screen-dominating exit method according to any one of claims 1 to 6.
Citation Information
Patent Citations
File transfer method and equipment based on SSL (Secure Socket Layer) protocol authentication
CN106657135A
Large-screen control system, method and device and electronic equipment
CN111352600A