Disclosure of Invention
The invention mainly aims to provide a terminal remote emergency processing method, a mobile terminal and a readable storage medium, aiming at solving the problem of data leakage caused by the fact that emergency instructions cannot be received due to the fact that the mobile terminal is not connected to the internet under special conditions such as loss and the like.
In order to achieve the purpose, the invention provides a terminal remote emergency processing method, which comprises the steps of detecting whether an emergency instruction exists in a terminal when the terminal is started and initialized;
if the emergency instruction exists, loading an embedded system of the terminal to execute the emergency instruction;
and if the emergency instruction does not exist, loading the operating system of the terminal to obtain the emergency instruction from the outside, and restarting the terminal after the emergency instruction is obtained.
Optionally, the step of loading the embedded system of the terminal to execute the emergency instruction includes:
loading the embedded system to start an emergency instruction processing script in the embedded system;
executing the script to read the emergency instruction stored in the register and judging the type of the emergency instruction;
executing corresponding emergency treatment operation according to the type of the emergency instruction, wherein the type of the emergency instruction comprises: the system comprises a hard disk data destruction instruction, a hard disk partition deleting instruction and a system locking instruction.
Optionally, the step of executing the corresponding emergency treatment operation according to the type of the emergency instruction includes:
if the type of the emergency instruction is a hard disk data destruction instruction, performing low-level formatting on the hard disk through an embedded system;
and if the type of the emergency instruction is a hard disk partition deleting instruction, deleting the data in the hard disk partition through the embedded system.
Optionally, the step of executing the corresponding emergency treatment operation according to the type of the emergency instruction further includes:
and if the type of the emergency instruction is a system locking instruction, locking the terminal through a BIOS of the terminal, and outputting a preset locking interface.
Optionally, the terminal remote emergency processing method includes:
when the emergency instruction does not exist in the terminal, the terminal communicates with a 4G module in the terminal through the operating system so as to inquire whether emergency instruction information sent by the outside is received;
and if the emergency instruction information is not received, normally operating an operating system, and triggering the operating system to communicate with the 4G module at intervals of preset duration.
Optionally, the step of communicating with the 4G module in the terminal through the operating system to inquire whether emergency instruction information sent from the outside is received includes:
if the emergency instruction information is received, checking whether the emergency instruction information is legal or not through a terminal identification code in the emergency instruction information;
and if the emergency instruction information is illegal, sending prompt information of instruction error to a specified external terminal through the 4G communication module.
Optionally, the step of checking whether the emergency instruction information is legal or not through the terminal identification code in the emergency instruction information includes:
and if the emergency instruction information is illegal, encoding the emergency instruction in the emergency instruction information and storing the encoded emergency instruction in a register.
Optionally, after performing emergency processing according to the emergency instruction, the method includes:
and when the emergency treatment is finished, outputting a prompt image corresponding to the completion of the emergency operation.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: a memory, a processor and a terminal remote emergency treatment program stored on the memory and operable on the processor, the terminal remote emergency treatment program when executed by the processor implementing the steps of the terminal remote emergency treatment method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a terminal remote emergency handling program, which when executed by a processor, implements the steps of the terminal remote emergency handling method as described above.
The invention realizes the short message communication with the remote control terminal through the 4G module in the mobile terminal and the short message function provided by the operator, thereby avoiding the situation that the emergency instruction can not be received under the condition of not accessing the Internet. And when an effective emergency instruction is received, the emergency instruction is transmitted to the corresponding system layer through the firmware BIOS and executed, so that the mobile terminal can receive the remotely sent emergency instruction under various conditions, and corresponding emergency operation is executed according to the emergency instruction, and the use safety and reliability of the mobile terminal are improved.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a police terminal, a smart phone, a tablet personal computer, a portable computer and other mobile terminal equipment with a display function.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a 4G module, and the like. Of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a terminal remote emergency processing program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the terminal remote emergency handling program stored in the memory 1005 and perform the following operations:
when a terminal is started and initialized, detecting whether an emergency instruction exists in the terminal;
if the emergency instruction exists, loading an embedded system of the terminal to execute the emergency instruction;
and if the emergency instruction does not exist, loading the operating system of the terminal to obtain the emergency instruction from the outside, and restarting the terminal after the emergency instruction is obtained.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
loading the embedded system to start an emergency instruction processing script in the embedded system;
executing the script to read the emergency instruction stored in the register and judging the type of the emergency instruction;
executing corresponding emergency treatment operation according to the type of the emergency instruction, wherein the type of the emergency instruction comprises: the system comprises a hard disk data destruction instruction, a hard disk partition deleting instruction and a system locking instruction.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
if the type of the emergency instruction is a hard disk data destruction instruction, performing low-level formatting on the hard disk through an embedded system;
and if the type of the emergency instruction is a hard disk partition deleting instruction, deleting the data in the hard disk partition through the embedded system.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
and if the type of the emergency instruction is a system locking instruction, locking the terminal through a BIOS of the terminal, and outputting a preset locking interface.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
when the emergency instruction does not exist in the terminal, the terminal communicates with a 4G module in the terminal through the operating system so as to inquire whether emergency instruction information sent by the outside is received;
and if the emergency instruction information is not received, normally operating an operating system, and triggering the operating system to communicate with the 4G module at intervals of preset duration.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
if the emergency instruction information is received, checking whether the emergency instruction information is legal or not through a terminal identification code in the emergency instruction information;
and if the emergency instruction information is illegal, sending prompt information of instruction error to a specified external terminal through the 4G communication module.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
and if the emergency instruction information is illegal, encoding the emergency instruction in the emergency instruction information and storing the encoded emergency instruction in a register.
Further, the processor 1001 may call a terminal remote emergency handling program stored in the memory 1005, and also perform the following operations:
and when the emergency treatment is finished, outputting a prompt image corresponding to the completion of the emergency operation.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for remote emergency processing of a terminal according to the present invention.
A first embodiment of the present invention provides a terminal remote emergency processing method, where the terminal remote emergency processing method includes:
step S10, when the terminal is started and initialized, detecting whether an emergency instruction exists in the terminal;
specifically, after the mobile terminal is powered on and powered on, the hardware is initialized through a Basic Input Output System (BIOS) to restore each part of hardware in the System to a preset starting state, and then whether the stored emergency instruction exists in the read emergency instruction configuration register is detected.
Step S20, if an emergency instruction exists, loading an embedded system of the terminal to execute the emergency instruction;
specifically, if it is detected that an emergency instruction already exists in the emergency instruction configuration register, the embedded system is loaded, and the embedded system is a module which is set by using a virtual disk technology and using an internal memory as a system carrier and is responsible for emergency instructions such as destruction, deletion and the like of a local hard disk and firmware. And executing emergency treatment corresponding to the emergency instruction, such as a hard disk data destruction instruction, a hard disk partition deletion instruction and the like, by the embedded system.
And step S30, if the emergency instruction does not exist, loading the operating system of the terminal to obtain the emergency instruction from the outside, and restarting the terminal after the emergency instruction is obtained.
Specifically, if it is detected that there is no emergency instruction in the emergency instruction configuration register, the operating system is loaded, and the operating system receives emergency instruction information sent remotely by communicating with a module responsible for external communication, and after receiving the emergency instruction information, the operating system controls the mobile terminal to restart.
The mobile terminal is indispensable terminal equipment in the fields at present, and in order to be able to complete work and realize related functions more conveniently, a large amount of data is often stored in the mobile terminal, and part of the data is very confidential, so in order to avoid the situations such as data leakage and the like of the mobile terminal under special situations such as loss, the mobile terminal is provided with an emergency processing method, and operations such as output deletion and the like can be carried out under special situations. However, in the current emergency processing method, an emergency instruction needs to be sent to the mobile terminal through the internet, so that the mobile terminal executes emergency operation, and thus, the emergency processing cannot be effectively performed under the condition that the internet is not accessed, and the risk of data leakage is greatly increased. In this embodiment, the mobile terminal performs remote communication with the control platform through the 4G module, and the communication mode is a short message function through an operator, so that normal communication can be performed without accessing the internet.
In order to ensure that the mobile terminal cannot be cracked in the whole emergency instruction processing flow, the framework of the mobile terminal of the terminal remote emergency processing method is divided into a system layer application, a firmware layer BIOS, an embedded system and terminal hardware. The system application layer is responsible for communicating with the 4G module under the operating system, and can realize the functions of inquiring the short message information, acquiring the emergency command in the short message, screening the legality, issuing the emergency command to the BIOS of the firmware layer, executing the system restarting action and the like. The firmware layer BIOS is responsible for initializing hardware when restarting and receiving an emergency instruction issued by the system layer application. The embedded system is responsible for executing functions of hard disk data erasing, rapid formatting and the like. The hardware device is used for storing data, receiving remote information and the like.
The mobile terminal can use the short message function of an operator to realize information reception with a far end through the 4G module, the control terminal can also send information containing emergency instructions to the mobile terminal, and the mobile terminal can perform emergency processing such as data deletion and the like under special conditions such as mobile terminal loss and the like through the emergency instructions in the received emergency instruction information. Therefore, through the 4G module, the mobile terminal can normally receive the emergency instruction information sent by the control terminal under the condition of no network. And the difficulty of a lawbreaker to crack the mobile terminal is greatly improved through the information transmission of the firmware BIOS and the system application layer, so that the use reliability and the safety of the mobile terminal are improved.
In the terminal remote emergency processing method, the mobile terminal and the control terminal can communicate through the 4G module and use the short message function provided by an operator. And the control terminal sends the short message containing the emergency instruction to the mobile terminal, so that the emergency instruction can be sent when the mobile terminal is not connected to the Internet. The step of communicating with the 4G is carried out in a system application layer of the mobile terminal, the system application layer does not provide a human-computer interaction interface when the system application layer carries out work such as inquiring or monitoring of design emergency instructions, and a self-protection technology is used in a correspondingly generated process, so that the safety of related operations is improved. When the emergency instruction is executed, the emergency instruction is executed through an embedded system, the embedded system is a system which adopts a virtual disk technology and takes a memory as a carrier, and the embedded system can also perform self-elimination after the emergency instruction operation is completed, so that a cracking path can not be left for lawbreakers, and the safety of the mobile terminal is improved.
By using the 4G for short message communication, the mobile terminal can receive the emergency instruction under the condition that the mobile terminal does not access the Internet, and when the emergency instruction is transmitted, a mode that the firmware BIOS is transmitted with a system application layer or other modules is used, so that the transmission of the emergency instruction in the mobile terminal is more reliable. Therefore, the mobile terminal can effectively receive the emergency command under special conditions, and ensure that the emergency command can be effectively transmitted and executed after being received, so that the safety performance of the mobile terminal is effectively improved.
Further, the step S20 of loading the embedded system of the terminal to execute the emergency instruction includes:
step S21, loading the embedded system to start an emergency instruction processing script in the embedded system;
step S22, executing the script to read the emergency instruction stored in the register and judging the type of the emergency instruction;
step S23, according to the type of the emergency instruction, executing corresponding emergency treatment operation, wherein the type of the emergency instruction comprises: the method comprises the following steps of (1) a hard disk data destruction instruction, a hard disk partition deleting instruction and a system locking instruction;
specifically, when the emergency instruction stored in the emergency instruction configuration register is detected, an embedded system integrated with the mobile terminal is loaded, codes of the emergency instruction are read in the embedded system through related scripts, and the type of the emergency instruction is judged according to the read emergency instruction. The types of emergency instructions are various, the emergency treatment operations corresponding to different types of emergency instructions are also different, and finally the corresponding emergency treatment operations are executed according to the obtained types of emergency instructions.
After the mobile terminal is started and hardware initialization is carried out, if the emergency instruction configuration register is detected to store the emergency instruction, the embedded system is loaded, and an operating system is not loaded. The system integrated by the embedded system mobile terminal is set by utilizing a virtual disk technology, and is a system which takes a memory as a carrier and is specially used for processing emergency instructions. Because the embedded system is arranged in the memory, the embedded system can be eliminated after the memory data of the mobile terminal is destroyed or locked, so that a cracking path can not be left. The embedded system is provided with an automatic starting script, and the emergency instruction in the emergency instruction configuration register can be read and analyzed through the script. And finally, performing emergency treatment of a corresponding mode on the mobile terminal according to the type of the emergency instruction, wherein the emergency instruction processing mode comprises the formatting of a hard disk, the deletion of a hard disk partition or system locking and the like.
Further, the step S23, according to the type of the emergency instruction, executing a corresponding emergency treatment operation includes:
step S231, if the type of the emergency instruction is a hard disk data destruction instruction, performing low-level formatting on the hard disk through an embedded system;
step S232, if the type of the emergency command is a hard disk partition deleting command, deleting data in the hard disk partition through the embedded system.
Specifically, when the emergency processing operation is performed according to the type of the emergency instruction, if the type of the emergency instruction is a hard disk data destruction instruction (Destroy instruction), the embedded system performs low-level formatting on the hard disk, and eliminates the hard disk data. If the type of the emergency instruction is a hard disk partition deleting instruction (Delete instruction), the embedded system deletes the hard disk partition, so that the hard disk data base is protected quickly.
Among emergency instructions, the most common types include a hard disk data destruction instruction (Destroy instruction) and a hard disk partition deletion instruction (Delete instruction), both of which process the hard disk, the hard disk data destruction instruction is low-level formatting for the hard disk, and data in the hard disk can be quickly eliminated through the low-level formatting, so that the situation of data leakage of the mobile terminal is prevented. The hard disk partition deleting instruction realizes the protection of the hard disk data in a mode of deleting the hard disk partition. The embedded system can rapidly complete emergency treatment by executing the emergency treatment operation corresponding to the emergency instruction, and data leakage of the mobile terminal is avoided.
Further, the step S22, according to the type of the emergency instruction, executing a corresponding emergency treatment operation further includes:
step S223, if the type of the emergency instruction is a system locking instruction, locking the terminal through the BIOS of the terminal, and outputting a preset locking interface.
Specifically, if the type of the emergency instruction is a system Lock instruction (Lock instruction), the mobile terminal needs to be locked by the BIOS in the firmware layer, the mobile terminal cannot be normally used after the locking is completed, and an output picture is locked as a preset Lock interface.
The emergency instructions which are used more frequently further comprise system locking instructions, and the system locking instructions cannot cause great damage to data in the system, so that the data in the mobile terminal can be acquired after the contact system is locked. The emergency command is generally used when the mobile terminal is lost, and if the mobile terminal is likely to be retrieved again, the system locking command can be used to lock the system of the mobile terminal and to protect the data in the system of the mobile terminal to a certain extent, so that the loss caused by the loss of the mobile terminal can be reduced to the minimum. The system locking is cracked, but data cannot be deleted, so that corresponding emergency instructions can be selected according to actual conditions for emergency treatment, and losses caused by the conditions that the mobile terminal is lost and the like are reduced to the maximum extent.
Referring to fig. 3, fig. 3 is a flowchart illustrating step S30 in the method for remote emergency handling of a terminal according to the present invention.
Further, the method for remote emergency handling of the terminal in step S30 includes:
step S31, when there is no emergency instruction in the terminal, communicating with the 4G module in the terminal through the operating system to inquire whether the emergency instruction information sent from the outside is received;
and step S32, if the emergency instruction information is not received, normally operating an operating system, and triggering the operating system to communicate with the 4G module at intervals of preset duration.
Specifically, after the operating system is loaded, the mobile terminal can perform remote communication with the control terminal through the 4G module, communication is performed by using a short message function of an operator, whether emergency instruction information is received or not can be detected through the 4G module, and the emergency instruction information includes an emergency instruction. If no emergency instruction information is received, a step of querying whether emergency instruction information is received is performed.
In this embodiment, after the mobile terminal loads the operating system, the system layer application may communicate with the 4G module, the 4G module may receive information using a short message function provided by an operator, and whether emergency instruction information remotely sent by the control terminal is received may be detected through communication with the 4G module. When the detection does not receive the remotely sent emergency instruction information, the detection step is executed again after the preset interval time, so that whether the emergency instruction information is received or not can be continuously detected under the normal condition. Can realize through the 4G module with receive the emergent instruction information of control terminal remote sending when not connecting the internet to when not receiving emergent instruction information, also can set up to continuously judge, thereby can be when receiving emergent instruction, the very first time carry out corresponding processing.
Further, referring to fig. 3, the step S31 is to communicate with the 4G module in the terminal through the operating system, so as to inquire whether emergency instruction information sent from the outside is received, and then includes:
step S33, if the emergency instruction information is received, checking whether the emergency instruction information is legal or not through a terminal identification code in the emergency instruction information;
and step S34, if the emergency instruction information is illegal, sending a prompt message of instruction error to a specified external terminal through the 4G communication module.
Specifically, when detecting that the emergency instruction information is received, it is first necessary to determine that the emergency instruction is legal according to the identification information and the instruction code in the emergency instruction information. And when the mobile terminal is judged to be illegal, the mobile terminal sends error prompt information to an administrator through the 4G module, and the communication number of the administrator can be prestored in the mobile terminal.
After receiving the emergency instruction information sent remotely, the mobile terminal can preferentially detect the legality of the emergency instruction information. The emergency instruction information contains codes of emergency instructions, identification information of the mobile terminal and other related information, and because the identification information and other related information are unique, whether the emergency instructions are legal or not can be obtained by judging whether the related information is correct or not, for example, when the identification information is judged, whether the identification information is consistent with the identification information of the current mobile terminal or not can be detected, and the legality of the identification information can be judged.
When the emergency instruction information is judged to be illegal, the mobile terminal sends error prompt information to remind an administrator that the currently received emergency instruction information is illegal. The sending of the error prompt message is also realized through the 4G module, and the sending target can be an administrator number prestored in the mobile terminal. By detecting the legality of the emergency instruction information, illegal emergency instruction information in the emergency instruction information can be effectively screened, and an administrator can know the event of sending wrong emergency instruction information at the first time by sending prompt information.
Further, referring to fig. 3, the step S33, after checking whether the emergency instruction information is legal by the terminal identification code in the emergency instruction information, includes:
step S35, if the emergency instruction information is illegal, encoding the emergency instruction in the emergency instruction information and storing the encoded emergency instruction in a register;
specifically, when the emergency instruction information is judged to be legal, the mobile terminal stores the emergency instruction in the emergency instruction information in the emergency instruction configuration register in a coded form, and restarts the mobile terminal after the emergency instruction information is stored, and the mobile terminal detects the emergency instruction in the emergency instruction configuration register after being restarted, so that the relevant step of executing the emergency instruction is performed.
If the mobile terminal detects that the emergency instruction information is legal, the mobile terminal acquires the emergency instruction in the emergency instruction information and stores the emergency instruction in a coded form. The related module for storing the emergency instruction is an emergency instruction configuration register which is specially used for storing the emergency instruction. And meanwhile, the mobile terminal is restarted after the emergency instruction is stored, and the emergency instruction is stored in the emergency instruction configuration register at the moment, so that the mobile terminal enters the step of executing the emergency instruction after being restarted, and the emergency instruction is executed in a related module.
Further, step S30 is followed by: and when the emergency treatment is finished, outputting a prompt image corresponding to the completion of the emergency operation.
Specifically, when the emergency treatment operation of the emergency instruction is completed, the corresponding picture is output for prompting the user that the emergency treatment is completed.
After the mobile terminal is subjected to emergency treatment operation, the mobile terminal may not be normally used due to reasons such as data deletion, and at the moment, the preset picture logo is output to remind a current user that the mobile terminal has completed relevant emergency treatment.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention has stored thereon a terminal remote emergency processing method program which, when executed by a processor, implements the steps of the terminal remote emergency processing method as described above.
The method implemented when the prompt information display program running on the processor is executed may refer to each embodiment of the terminal remote emergency processing method of the present invention, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.