WO2018094996A1 - 终端控制方法及装置 - Google Patents

终端控制方法及装置 Download PDF

Info

Publication number
WO2018094996A1
WO2018094996A1 PCT/CN2017/086375 CN2017086375W WO2018094996A1 WO 2018094996 A1 WO2018094996 A1 WO 2018094996A1 CN 2017086375 W CN2017086375 W CN 2017086375W WO 2018094996 A1 WO2018094996 A1 WO 2018094996A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
operating system
control information
identifier
control
Prior art date
Application number
PCT/CN2017/086375
Other languages
English (en)
French (fr)
Inventor
吴江铮
郑晓峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP17873021.4A priority Critical patent/EP3407195B1/en
Priority to EP22159409.6A priority patent/EP4095683A1/en
Publication of WO2018094996A1 publication Critical patent/WO2018094996A1/zh
Priority to US16/419,580 priority patent/US11468183B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45541Bare-metal, i.e. hypervisor runs directly on hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/24Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated network management hardware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a terminal control method and apparatus.
  • the embodiments of the present invention provide a terminal control method and apparatus.
  • a terminal control method includes:
  • the terminal receives the first control information sent by the server, where the first control information carries the first control instruction and the system identifier of the first operating system, where the first control instruction is used to indicate that the specified operation is performed on the terminal, where the An operating system is one of the at least two operating systems in the terminal, the first control information is used to indicate that the first operating system of the terminal is the first operating system according to the first Controlling instructions to control the terminal;
  • the terminal determines, according to the system identifier of the first operating system, that the foreground operating system of the terminal is not the first operating system, and the terminal stores the system identifier of the first operating system and the first Correspondence of control instructions;
  • the terminal After waiting for the foreground operating system of the terminal to be changed to the first operating system, the terminal according to the corresponding The first control command in the system controls the terminal.
  • the terminal may simultaneously receive multiple control information respectively sent by the management server, and the control commands carried in each control information are respectively used in the terminal.
  • the front-end operating system controls the terminal for different operating systems; that is, the terminal may receive at least two control commands at the same time, and the at least two control commands are respectively used for different operations in the foreground operating system of the terminal.
  • the system controls the control commands of the terminal. However, when the terminal receives at least two control commands, only one of the at least two operating systems in the terminal is the foreground operating system of the terminal, and the other operating systems are the background operating systems of the terminal. .
  • the terminal receives any control information sent by the management server, and the control command carried in the control information is used to control the terminal when the foreground operating system of the terminal is the target operating system; the target operating system is One of at least two operating systems in the terminal.
  • the terminal does not control the terminal according to the control instruction, and secondly, the terminal may store the corresponding relationship between the system identifier of the target operating system and the control instruction.
  • the terminal may further acquire the control command according to the corresponding relationship, and control the terminal according to the control instruction, so that the management personnel needs to be in the foreground system of the terminal.
  • the target operating system controls the purpose of the terminal, thereby implementing the purpose of accurately and differentially controlling the terminal under a plurality of different operating systems.
  • the method further includes:
  • the second control information carries a second control instruction and a system identifier of the second operating system, where the second control instruction is used to indicate that the specified operation is performed on the terminal
  • the second operating system is one of the at least two operating systems in the terminal, and the second control information is used to indicate that when the foreground operating system of the terminal is the second operating system,
  • the second control instruction controls the terminal;
  • the terminal determines, according to the system identifier of the second operating system, that the foreground operating system of the terminal is the second operating system, and the terminal controls the terminal according to the second control instruction.
  • the user of the terminal may change the foreground operating system of the terminal when using the terminal, for example, the terminal user uses the foreground operating system of the terminal by the personal operating system. Change to the office operating system, or change the foreground operating system of the terminal from the office operating system to the personal operating system.
  • the management personnel control the terminal differently, that is, the control commands corresponding to different foreground operating systems are different, and therefore, once the terminal is If the foreground operating system changes, it is necessary to change the control mode of the terminal control, that is, a control command is needed to control the terminal.
  • the terminal can control the terminal in time in the foreground operating system of the terminal.
  • the following optional design is also provided;
  • the method further includes:
  • the terminal stores a correspondence between a system identifier of the second operating system and the second control instruction
  • the terminal determines that the foreground operating system of the terminal changes. If the changed foreground operating system is the second operating system, the terminal identifies the system identifier and the second control command from the second operating system. Obtaining the second control instruction in a correspondence relationship;
  • the terminal controls the terminal according to the second control instruction.
  • the method further includes:
  • third control information that is sent by the server, where the third control information carries a third control instruction and does not carry a system identifier, where the third control instruction is used to indicate that a specified operation is performed on the terminal;
  • the third control information is used to indicate that the terminal is controlled according to the third control instruction when the foreground operating system of the terminal is a preset operating system, where the preset operating system is at least two operating systems in the terminal.
  • the terminal determines that the foreground operating system of the terminal is the preset operating system, and the terminal controls the terminal according to the third control instruction.
  • the control instruction is only added in the control information, and the system identifier of the operating system in the terminal is not added in the control information.
  • the operating system Since there is only one operating system in the terminal, the operating system is always the foreground operating system of the terminal, so when the terminal receives the control information, the terminal controls the control command according to the control information. terminal.
  • the system identifier needs to be added to the control information, so that the terminal can determine that the operating system corresponding to the system identifier should be based on the operating system of the terminal.
  • the control command carried by the control information controls the terminal. Otherwise, the terminal cannot determine which operating system the foreground operating system of the terminal should control.
  • the terminal controls the terminal according to the control information carried by the control information. Therefore, the terminal controls the terminal.
  • the operation of controlling the terminal according to the control command is not performed. In other words, when there are multiple operating systems in the terminal, the control information is not supported and only carries the system identifier.
  • the control information when there are multiple operating systems in the terminal, the control information only supports the control command without carrying the system identifier.
  • the terminal The control instruction may be determined as a control instruction for controlling the terminal when the foreground operating system of the terminal is a preset operating system; the preset operating system is one of at least two operating systems in the terminal.
  • the control information is also supported to carry the control command and the system identifier, so that the terminal determines the control command as a control command for controlling the terminal when the foreground operating system of the terminal is the operating system corresponding to the system identifier.
  • the method further includes: receiving, by the terminal, the first control information sent by the server, including:
  • the terminal detects whether a communication connection between the terminal and the server is normal
  • the terminal sends an acquisition request for acquiring the first control information to the server;
  • the terminal receives the first control information returned by the server according to the acquisition request.
  • the communication connection between the management server and the terminal may be abnormal, and the management server cannot send control information to the terminal when the communication connection is abnormal, that is, the terminal No control information is received. Therefore, for the terminal, in order to obtain control information from the management server as soon as possible, to achieve the purpose of the administrator as soon as possible, the terminal can detect whether the communication connection between the terminal and the management server is normal; when the terminal and management When the communication connection between the servers is normal, the terminal may also send an acquisition request for acquiring control information to the management server, where the acquisition request further carries the terminal identifier of the terminal; when the management server receives the acquisition request, the management server The terminal identifier may be extracted from the acquisition request, and then according to the terminal The identifier obtains the correspondence between the control information and the terminal identifier in the corresponding relationship, and obtains the control information in the correspondence, and then sends the control information to the terminal according to the terminal identifier; the terminal receives the management server. The control information returned according to the acquisition request.
  • the method further includes: the method further includes:
  • stop control information sent by the server, where the stop control information carries the first control instruction and a system identifier of the first operating system, where the stop control information is used to indicate stopping at the terminal Controlling, by the first control instruction, the terminal when the foreground operating system is the first operating system;
  • the terminal deletes a correspondence between the system identifier of the first operating system and the first control instruction stored in the terminal.
  • the administrator may no longer need to cause the terminal to control the terminal according to the control command when the foreground system of the terminal is the target operating system.
  • the administrator may input the terminal identifier of the terminal and the stop control information including the control instruction and the system identifier of the target operating system in the management server, and then submit the terminal identifier and the stop control information to the management server, the stop
  • the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system; and the management server sends the stop control information to the terminal according to the terminal identifier.
  • the method further includes:
  • the second operating system is a personal operating system, and the second control instruction is used to indicate that the use of the wifi device in the terminal is prohibited;
  • the terminal controls the terminal according to the second control instruction, including:
  • the terminal uses the driving information of the wifi device in the terminal to power off the wifi device.
  • the method further includes:
  • the second operating system is an office operating system, and the second control instruction is used to indicate that the wifi device in the terminal is allowed to be used, and only the preset access point can be connected when using the wifi device of the terminal;
  • the terminal controls the terminal according to the second control instruction, including:
  • the terminal uses the driving information of the wifi device in the terminal to power on the wifi device, and sets an wifi access point identifier list of the office operating system by using an API in a system service of the Container that carries the office operating system.
  • the wifi access point identifier list includes only the identifier of the preset access point.
  • a terminal control method includes:
  • the proxy server receives the control information and the terminal identifier sent by the management server that is in communication with the proxy server, where the control information carries a control command and a system identifier of the operating system, where the control command is used to indicate the terminal corresponding to the terminal identifier Performing a specified operation, the operating system is one of at least two operating systems in the terminal; the control information is used to indicate that the control is performed according to the foreground operating system of the terminal when the operating system is the operating system Commanding to control the terminal;
  • the proxy server determines that an abnormality occurs in a communication connection between the proxy server and the terminal, and the proxy server stores a correspondence between the control information and the terminal identifier;
  • the proxy server After waiting for the communication connection between the proxy server and the terminal to be normal, the proxy server sends the control information to the terminal according to the terminal identifier.
  • the management server does not need to establish a communication connection with each terminal, and the management server only needs to establish a communication connection with the proxy server, thereby reducing the number of communication connections that the management server needs to establish. This saves the communication resources of the management server.
  • the management server must establish a communication connection with each terminal.
  • the management server needs to send control information to a certain terminal, the management server needs to detect the communication connection between the management server and the terminal. Is it normal that the control information can be sent to the terminal when the communication connection between the management server and the terminal is normal; when the management server needs to separately send control information to the plurality of terminals, the management server needs to detect the management server and the plurality of Whether the communication connection between each terminal in the terminal is normal, thereby increasing the system pressure of the management server.
  • the management server does not need to establish a communication connection between each terminal, and the management server only needs to establish a communication connection with the proxy server, and the proxy server establishes a communication connection with each terminal, so
  • the management server needs to separately send control information to multiple terminals
  • the management server only needs to care whether the communication connection between the management server and the proxy server is normal, and the management server does not need to care about the proxy server and each of the multiple terminals. Whether the communication connection between the two is abnormal, so that it is not necessary to detect whether the communication connection between the proxy server and each of the plurality of terminals is normal, thereby avoiding increasing the system pressure of the management server.
  • each terminal supports a different communication protocol, and therefore, if there is no proxy server, the management server needs to support the communication protocol supported by each terminal at the same time, so that the management server can Communicate with each terminal, but this will increase the system complexity of the management server.
  • the management server only needs to communicate with the proxy server, and does not need to communicate with each terminal.
  • the management server only needs to support the communication protocol supported by the proxy server, and does not need to support each terminal.
  • the supported communication protocols reduce the system complexity of the management server.
  • the communication connection between the proxy server and the terminal may be abnormal, for example, the communication connection is temporarily disconnected, or the terminal temporarily has no right to use the communication connection or the like.
  • the proxy server cannot send the control information to the terminal.
  • the proxy server when the proxy server receives the control information sent by the management server and the terminal identifier, the proxy server needs to detect whether the communication connection between the proxy server and the terminal is abnormal; if the communication connection does not have an abnormality, the proxy server The control information may be sent to the terminal according to the terminal identifier. If the communication connection is abnormal, the proxy server cannot send the control information to the terminal according to the terminal identifier at this time. However, although the proxy server cannot send the control information to the terminal according to the terminal identifier at this time, the proxy server can locally store the control information in order to transmit the control information to the terminal according to the terminal identifier when the communication connection is normal.
  • the proxy server detects that the communication connection between the proxy server and the terminal is normal, the proxy server acquires the control information and the terminal identifier from the corresponding relationship, and according to the The terminal identifier sends control information to the terminal, thus improving the reliability of transmitting control information to the terminal.
  • the method further includes:
  • the proxy server receives the stop control information sent by the management server and the terminal identifier of the terminal, the stop control information carries the control instruction and a system identifier of the operating system, and the stop control information is used to indicate to stop Controlling the terminal according to the control instruction when the foreground operating system of the terminal is the operating system,
  • the proxy server sends the stop control information to the terminal according to the terminal identifier, so that the terminal deletes the correspondence between the system identifier of the operating system and the control command stored in the terminal.
  • the administrator may no longer need to make the terminal control the terminal according to the control instruction when the foreground system of the terminal is the target operating system.
  • the administrator can input the terminal identifier and the stop control information of the terminal in the management server, and the control is And the system identifier of the instruction and the target operating system is added in the stop control information, and then the terminal identifier and the stop control information are submitted to the management server, where the stop control information is used to indicate: stopping the foreground operation of the terminal by the control instruction
  • the terminal is controlled; the management server sends the terminal identifier to the proxy server for the stop control information; when the proxy server receives the terminal identifier and the stop control information sent by the management server, the terminal identifies the terminal according to the terminal identifier Sending to the stop control information; when the terminal receives the stop control information sent by the proxy server, extracting the system identifier of the target operating system and the control command from the stop control information, and locally searching for the system identifier of the target operating system and The control
  • the terminal cannot obtain the control instruction corresponding to the system identifier of the target operating system, and therefore, the terminal does not control according to the control instruction. terminal.
  • the sending, by the proxy server, the control information to the terminal according to the terminal identifier including:
  • the proxy server Determining, by the proxy server, that the information format of the control information is not an information format supported by the terminal, and the proxy server converting the information format of the control information into an information format supported by the terminal;
  • the proxy server sends the control information in the converted information format to the terminal according to the terminal identifier.
  • the information format of the control information sent to the proxy server in the management server may be inconsistent with the information format supported by the terminal, and the information format of the control information sent to the proxy server in the management server and the information supported by the terminal
  • the format is inconsistent, the terminal cannot identify the control information locally, that is, the control command and the system identifier in the control information cannot be identified, and thus the control command cannot be executed, and the foreground operating system in the terminal cannot be implemented. Controlling, by the target operating system, the purpose of the terminal according to the control instruction.
  • the proxy server when the proxy server receives the control information sent by the management server, it is required to detect whether the information format of the control information is an information format supported by the terminal; When the information format of the information is not the information format supported by the terminal, the proxy server converts the information format of the control information into the information format supported by the terminal;
  • the proxy server then sends control information converted to the information format to the terminal according to the terminal identifier, and the terminal can locally execute the control instruction in the control information converted by the information format, so that the foreground operating system of the terminal can be achieved.
  • the operating system controls the purpose of the terminal according to the control instruction.
  • a terminal is provided, and the terminal has a function of implementing terminal behavior in the method design of the foregoing first aspect, and the function may be implemented by hardware, or may be implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the structure of the terminal includes a receiving unit and a processing unit, where the receiving unit is configured to support communication between the terminal and the server, and receive information or instructions involved in the foregoing method of the first aspect, where the processing unit is The terminal is configured to execute a corresponding function in the above method, and the terminal may further include a memory for coupling with the processing unit, which includes necessary program instructions and data of the terminal.
  • a proxy server having a function of implementing a proxy server behavior in a method design of the second aspect, the function being implemented by hardware or by hardware Software implemented, the hardware or software comprising one or more modules corresponding to the functions described above.
  • the structure of the proxy server includes a receiving unit, a processing unit, and a sending unit, where the receiving unit is configured to support communication between the proxy server and the management server, and receive information or instructions involved in the foregoing method of the second aspect.
  • the sending unit is configured to support communication between the proxy server and the terminal, and send information or instructions involved in the foregoing method to the terminal, where the processing unit is configured to execute a proxy server to perform a corresponding function in the foregoing method,
  • the proxy server can also include a memory for coupling with the processing unit, which includes program instructions and data necessary for the proxy server.
  • FIG. 1 is a schematic diagram of a terminal control system according to an exemplary embodiment
  • FIG. 2 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 3 is a schematic diagram of a terminal control system according to an exemplary embodiment
  • FIG. 4 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 5 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 6 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 7 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 8 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 9 is a schematic structural diagram of a terminal according to an exemplary embodiment.
  • FIG. 10 is a schematic structural diagram of a proxy server according to an exemplary embodiment
  • FIG. 11 is a schematic structural diagram of a terminal according to an exemplary embodiment
  • FIG. 12 is a schematic structural diagram of a proxy server according to an exemplary embodiment.
  • the system includes a management server 1 and at least one terminal 2.
  • the management server is respectively connected to each terminal 2, for example, through 4G. (the 4th Generation mobile communication) is connected or connected via wifi (wireless-fidelity).
  • the terminal 2 can be a personal computer, such as a mobile phone, a tablet, a laptop or a desktop computer, or other computing device with computing power. Management service Data interaction can also be implemented between any of the terminals and any of the terminals 2.
  • FIG. 2 is a flowchart of a terminal control method according to an exemplary embodiment. As shown in FIG. 2, the method is applied to the terminal control system shown in FIG. 1, and the method includes the following steps.
  • step S101 the management server sends control information to the terminal;
  • the control information carries a control instruction and a system identifier of the target operating system;
  • the control instruction is used to indicate that the specified operation is performed on the terminal, and the target operating system is at least two operations in the terminal.
  • An operating system in the system the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system.
  • the terminal in the embodiment of the present invention is any one of the terminals 2 shown in FIG. 1.
  • At least two operating systems are installed in the terminal, and each operating system has a system identifier, and the system identifiers of each operating system are different.
  • one operating system is the foreground operating system
  • the other operating systems are the background operating systems.
  • Both the foreground operating system and the background operating system occupy the computing resources and storage resources of the terminal and can run multiple services.
  • the foreground operating system and the background operating system have different display resource occupations, and the foreground operating system can output the content of the display card to the memory to the screen of the terminal and display it to the user; and the background operating system cannot output the content to the on the screen.
  • the foreground operating system of the terminal refers to an operating system that currently occupies the display resource of the terminal. It can also be said that the foreground operating system is the operating system corresponding to the operation interface currently displayed on the screen of the terminal. From the perspective of the end user, the terminal user can interact with the foreground operating system through the screen of the terminal, and the operation interface of the background operating system is invisible to the terminal user. The terminal user can switch the foreground operating system through special buttons on the terminal or by sliding the special track on the screen. The hardware of the terminal switches to the foreground operating system when receiving the event triggered by the above operation.
  • the foreground operating system is the only operating system in the terminal.
  • the terminal has two operating systems, which are an office operating system and a personal operating system.
  • the office operating system can be set as the foreground operating system of the terminal, and the terminal screen.
  • the operation interface of the office operating system is displayed, and the user of the terminal can work on the office operating system, and the personal operating system is the background operating system.
  • the personal operating system may be set as the foreground operating system of the terminal, and the operation interface of the personal operating system is displayed on the screen of the terminal.
  • the user can handle the private business that is not related to the office on the personal operating system, and the office operating system is the background operating system.
  • the management personnel can send control information to the terminal through the management server; when the terminal receives the control information, the terminal can extract the control instruction and the system identifier of the target operating system from the control information, and When the foreground operating system is the target operating system, the terminal is controlled according to the control instruction, so that the purpose of the management personnel is realized.
  • the administrator may input control information including the control instruction and the system identifier of the target operating system in the management server.
  • control information is control information acting on the terminal
  • management personnel input the control information in the management server, and also input the terminal identifier of the terminal in the management server, and submit the control information together with the terminal identifier.
  • the management server then sends the control information to the terminal according to the terminal identifier.
  • the terminal identifiers of different terminals are different, and the terminal identifier may be an IMSI (International Mobile Subscriber Identification Number) or an IMEI (International) of the terminal.
  • IMSI International Mobile Subscriber Identification Number
  • IMEI International
  • the mobile device identity, the international mobile device identity code, and the like are not limited in this embodiment of the present invention.
  • control command may be a message for controlling the wifi device in the terminal to be powered off, or: controlling the wifi device in the terminal to be powered on and when the terminal is connected to the access point, Connect a message to a preset access point.
  • the management server and the terminal can perform data interaction through a TCP/IP protocol (Transmission Control Protocol/Internet Protocol). Therefore, in this step, the management server can pass TCP/IP.
  • the protocol sends the control information to the terminal. Specifically, after the terminal accesses the network, the TCP long connection request is initiated to the management server according to the IP address and port of the pre-stored management server, and the management server establishes a TCP connection with the terminal after receiving the TCP long connection request, and establishes a TCP connection.
  • the control information is sent to the terminal.
  • the communication connection between the management server and the terminal may be abnormal, for example, the communication connection is temporarily disconnected, or the terminal temporarily has no right to use the communication connection or the like.
  • the management server cannot send the control information to the terminal.
  • the management server when the management server receives the control information submitted by the administrator and the terminal identifier, the management server needs to detect whether the communication connection between the management server and the terminal is abnormal; if the communication connection does not have an abnormality, the management server at this time The control information may be sent to the terminal according to the terminal identifier. If the communication connection is abnormal, the management server cannot send control information to the terminal according to the terminal identifier at this time. However, although the management server cannot send the control information to the terminal according to the terminal identifier at this time, the management server can locally store the control information in order to transmit the control information to the terminal according to the terminal identifier when the communication connection is normal.
  • the management server may obtain the control information and the terminal identifier in the corresponding relationship, and Sending the control information to the terminal according to the terminal identifier, thereby improving the reliability of transmitting control information to the terminal.
  • the management server may locally delete the correspondence between the control information and the terminal identifier.
  • step S102 the terminal receives the control information sent by the management server.
  • the communication connection between the management server and the terminal may be abnormal, and the management server cannot send control information to the terminal when the communication connection is abnormal, that is, the terminal No control information is received. Therefore, for the terminal, in order to obtain control information from the management server as soon as possible, to achieve the purpose of the administrator as soon as possible, the terminal can detect whether the communication connection between the terminal and the management server is normal; when the terminal and management When the communication connection between the servers is normal, the terminal may also send an acquisition request for acquiring control information to the management server, where the acquisition request further carries the terminal identifier of the terminal; when the management server receives the acquisition request, the management server The terminal identifier may be extracted from the acquisition request, and the correspondence between the control information and the terminal identifier is obtained according to the corresponding relationship stored in the local identifier, and the pair is obtained. The control information in the relationship is then sent to the terminal according to the terminal identifier; the terminal receives the control information returned by the management server according to the acquisition request.
  • step S103 the terminal detects whether the foreground operating system of the terminal is the target operating system according to the system identifier of the target operating system.
  • the terminal may extract the system identifier of the target operating system from the control information, and then obtain the system identifier of the foreground operating system of the terminal, and compare the system identifier of the foreground operating system of the terminal with If the system identifier of the target operating system is the same as the system identifier of the target operating system, the foreground operating system of the terminal is determined to be the target operating system, and then step S104 is performed; When the system identifier of the foreground operating system is different from the system identifier of the target operating system, it is determined that the foreground operating system of the terminal is not the target operating system, and then step S105 is performed.
  • the terminal may allocate a foreground operating system identifier field in the local cache, and a system identifier of the foreground operating system used to store the terminal in the foreground operating system identifier field; when the terminal displays one on the screen
  • the terminal stores the system identifier of the operating system in the foreground operating system identification field.
  • the operation interface displayed on the screen is changed from the operating interface of the operating system to another.
  • the terminal deletes the system identifier of the operating system from the foreground operating system identifier field, and stores the system identifier of the other operating system in the foreground operating system identifier field. That is, in the embodiment of the present invention, the operating system corresponding to the system identifier stored in the foreground operating system identifier field is the foreground operating system of the terminal at any time.
  • the terminal may obtain the system identifier stored in the foreground operating system identifier field in the local cache, and serve as the system identifier of the foreground operating system of the terminal.
  • step S104 if the terminal determines that the foreground operating system of the terminal is not the target operating system, the terminal stores the correspondence between the system identifier of the target operating system and the control command, and waits for the foreground operating system of the terminal to be changed to the target operation. After the system, the terminal controls the terminal according to the control instruction in the correspondence.
  • control information is used to indicate that the terminal is controlled according to the control command when the foreground operating system of the terminal is the target operating system; therefore, when the foreground operating system of the terminal is not the target operating system, the terminal cannot The terminal is controlled according to the control command.
  • the user of the terminal may change the foreground operating system of the terminal to the target operating system in the process of using the terminal, and the terminal can control according to the control instruction in time when the operating system of the terminal is changed to the target operating system.
  • the terminal may store the correspondence between the system identifier of the target operating system and the control command, and thus, the terminal
  • the terminal can acquire the control instruction in the corresponding relationship, and control the terminal according to the control instruction, thereby achieving the purpose of the management personnel.
  • step S105 if the terminal determines that the foreground operating system of the terminal is the target operating system, the terminal controls the terminal according to the control instruction, and stores the correspondence between the system identifier of the target operating system and the control instruction.
  • control information is used to indicate that the terminal is controlled according to the control command when the foreground operating system of the terminal is the target operating system; therefore, when the foreground operating system of the terminal is the target operating system, the terminal may The terminal is controlled according to the control command, thus achieving the purpose of the manager.
  • control instruction includes a plurality of instructions, such as an instruction for updating an operating state of a hardware device in the terminal, an instruction for updating a system policy of the target operating system, and updating the target operating system.
  • the instructions of the data etc.
  • the hardware device in the terminal includes a terminal audio, a Bluetooth device, a wifi device, a microphone, and the like.
  • the terminal has installed driving information of each hardware device in the terminal, and the driving information is used to control the working state of the hardware device. For example, the hardware device is prohibited from working or the hardware device is allowed to work.
  • the terminal can be based on the Linux namespace (namespace) mechanism in advance, creating multiple Containers in the Linux kernel, and assigning a separate Namespace to each Container.
  • namespace namespace
  • one Container is a Root Container
  • the Root Container includes at least MDMController (Mobile Device Management Controller) and system services.
  • MDMController Mobile Device Management Controller
  • Containers are Containers that carry the operating system. Each Container that hosts the operating system can run an operating system.
  • the Container namespace provides the necessary kernel support for the operating system running on the Container.
  • At least one MDM Proxy Mobile Device Management Agent
  • API Application Development Interface
  • the MDMController in the Root Container is configured to receive control information sent by the management server to the terminal.
  • the control instruction and the system identifier of the target operating system are then extracted from the control information.
  • the MDMController may use the API to call the driving information of the hardware device in the kernel.
  • This API is an API in the system service in the Root Container. Then, the driving information of the hardware device is modified according to the control instruction to implement updating the working state of the device of the hardware device.
  • the driving information of the hardware device includes an adaptation layer, where the adaptation layer includes a check field, and the check field is used to store the name of the Container.
  • the Container corresponding to the name of the Container stored in the check field can modify the driving information of the hardware device, and the Container corresponding to the name of the Container that is not stored in the check field cannot modify the driving information of the hardware device. This avoids conflicts between the Root Container and other Containers operating on the drivers of the hardware devices at the same time.
  • the MDMController sends the control instruction to the MDM Proxy in the Container carrying the target operating system, and the MDM Proxy receives the control instruction and uses the API to modify the target operating system.
  • the API is the API in the system service in the Container hosting the target operating system.
  • the MDMController sends the control instruction to the MDM Proxy in the Container carrying the target operating system, and the MDM Proxy receives the control instruction and uses the API to modify the target operating system.
  • the API is an API in the system service in the Container hosting the target operating system.
  • the operating system in the terminal includes an office operating system and a personal operating system.
  • the target operating system is a personal operating system
  • the control instruction is used to indicate that the wifi device in the terminal is prohibited from being used; at this time, the control instruction is used to indicate that the hardware device in the terminal is updated. State instructions.
  • the terminal can use the driving information of the wifi device in the terminal to power off the wifi device.
  • the MDMController in the Root Container calls the API in the wifi service in the Root Container to call the driver information of the wifi device in the kernel, and then modifies the wifi device according to the control instruction. The information is sent to power off the wifi device. After the wifi device is powered off, the user of the terminal cannot use the wifi device in the terminal.
  • the target operating system is an office operating system
  • the control instruction is used to indicate that the wifi device in the terminal is allowed to be used, and only the preset access point can be connected when using the wifi device of the terminal;
  • the control instruction includes two sub-instructions, respectively a first sub-instruction and a second sub-instruction, the first sub-instruction being an instruction for instructing updating an operating state of the hardware device in the terminal, and the second sub-instruction is An instruction to update a system policy of the target operating system.
  • the terminal uses the driving information of the wifi device in the terminal to power on the wifi device, and uses an API to set a wifi access point identifier list of the office operating system.
  • the API is an API in a system service in a Container carrying an office operating system, and the wifi access point identifier list includes only an identifier of a preset access point.
  • the MDMController in the Root Container uses the API to call the driver information of the wifi device in the kernel, the API is an API in the wifi service in the Root Container, and then the driver information of the wifi device is modified according to the first sub-instruction, so that The wifi device is powered off. After the wifi device is powered off, the user of the terminal cannot use the wifi device in the terminal.
  • the MDM Controller sends a second sub-instruction to the MDM Proxy in the Container carrying the office operating system, and the MDM Proxy receives the second sub-instruction, and calls the API to set a wifi access point identifier list, where the API is a system in the Container carrying the office operating system. API in the service.
  • the terminal when the front operating system of the terminal is an office operating system, when the user of the terminal uses the wifi device to connect to the access point, the terminal only displays the wifi access point identification list, so that the terminal can only connect to the preset by using the wifi device. Access Point.
  • the user of the terminal may change the foreground operating system of the terminal when using the terminal, for example, the terminal user will use the foreground operating system of the terminal.
  • the personal operating system is changed to the office operating system, or the foreground operating system of the terminal is changed from the office operating system to the personal operating system.
  • the management personnel need to control the terminal differently, that is, the control commands corresponding to different foreground operating systems are different. Therefore, once the foreground operating system of the terminal changes, It is necessary to change the control mode of the terminal control, that is, the control terminal needs to be replaced with another control command.
  • the terminal operating system of the terminal can control the terminal again according to the control command when changing from the other operating system to the target operating system.
  • the terminal further It is also necessary to store the correspondence between the system identifier of the target operating system and the control command.
  • the terminal can acquire the control instruction in the corresponding relationship according to the system identifier of the target operating system, and control the terminal again according to the control instruction. To achieve the purpose of management.
  • the terminal may simultaneously receive multiple control information respectively sent by the management server, and the control commands carried in each control information are respectively used in the terminal.
  • the front-end operating system controls the terminal for different operating systems; that is, the terminal may receive at least two control commands at the same time, and the at least two control commands are respectively used for different operations in the foreground operating system of the terminal.
  • the system controls the control commands of the terminal.
  • the terminal receives at least two control commands, at the terminal Among the at least two operating systems, only one operating system is the foreground operating system of the terminal, and the other operating systems are the background operating systems of the terminal.
  • the terminal receives any control information sent by the management server, and assumes that the control command carried in the control information is a control instruction for controlling the terminal when the foreground operating system of the terminal is the target operating system; the target operating system For one of the at least two operating systems in the terminal, when the foreground operating system of the terminal is not the target operating system, the terminal does not control the terminal according to the control instruction, and secondly, the terminal can store the target operation.
  • the terminal may further acquire the control command according to the corresponding relationship, and control the terminal according to the control instruction, so that the management personnel needs to be in the foreground system of the terminal.
  • the target operating system controls the purpose of the terminal, thereby implementing the purpose of accurately and differentially controlling the terminal under a plurality of different operating systems.
  • the user of the terminal may change the foreground operating system of the terminal when using the terminal, for example, the terminal user uses the foreground operating system of the terminal by the personal operating system. Change to the office operating system, or change the foreground operating system of the terminal from the office operating system to the personal operating system.
  • the management personnel control the terminal differently, that is, the control commands corresponding to different foreground operating systems are different, and therefore, once the terminal operates in the foreground If the system changes, it is necessary to change the control mode of the terminal control, that is, a control command is needed to control the terminal.
  • the terminal can control the terminal according to the control instruction corresponding to the system identifier of the changed foreground operating system.
  • step S106 the terminal monitors whether the foreground operating system of the terminal changes.
  • the foreground operating system change interface may be a button.
  • the operating system interface of the operating system displays the system identifiers of all operating systems in at least two operating systems in the terminal, and the user can A system identifier is selected in the system identifiers of all displayed operating systems, and then the terminal changes the operating system corresponding to the system identifier to the foreground operating system of the terminal.
  • the terminal may further replace the system identifier stored in the foreground operating system identifier field in the local cache with the system identifier selected by the user. For example, the terminal deletes the system identifier currently stored in the foreground operating system identifier field in the local cache, and stores the system identifier selected by the user in the foreground operating system identifier field. The same is true for every other operating system in the terminal.
  • the terminal may detect whether a replacement event occurs in the foreground operating system identifier field in the cache of the terminal, and the replacement event includes an event of deleting the system identifier and an event of the storage system identifier, and the current operating system identifier.
  • the replacement event occurs in the field, it is determined that the foreground operating system of the terminal changes.
  • no replacement event occurs in the current operating system identifier field, it is determined that the foreground operating system of the terminal has not changed.
  • step S107 the terminal searches for the corresponding relationship of the system identifier including the changed foreground operating system from the stored correspondence between the operating system identifiers and the control commands, and further Get the control instructions in the found correspondence.
  • the terminal may obtain the system identifier of the changed foreground operating system, for example, obtain the current storage system of the foreground operating system identifier field in the local cache.
  • the system identifier is used as the system identifier of the changed foreground operating system of the terminal, and then the terminal searches for the corresponding relationship of the system identifier including the changed foreground operating system from the corresponding relationship between the stored operating system identifiers and the control commands. And further obtaining the control instruction in the found correspondence.
  • step S108 the terminal controls the terminal according to the acquired control instruction.
  • the administrator may no longer need to cause the terminal to control the terminal according to the control instruction when the foreground system of the terminal is the target operating system.
  • the administrator may input the terminal identifier of the terminal and the stop control information including the control instruction and the system identifier of the target operating system in the management server, and then submit the terminal identifier and the stop control information to the management server, the stop The control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system; and the management server sends the stop control information to the terminal according to the terminal identifier.
  • the terminal receives the stop control information sent by the management server, extracts the system identifier of the target operating system and the control command from the stop control information, and deletes the correspondence between the system identifier of the target operating system stored in the terminal and the control command.
  • the terminal cannot obtain the control command according to the corresponding relationship. Therefore, the terminal does not use the foreground operating system of the terminal as the target operating system.
  • the terminal is controlled according to the control command.
  • FIG. 3 is a schematic diagram of a terminal control system according to an exemplary embodiment.
  • the system includes a management server 1, a proxy server 2, and at least one terminal 3.
  • the management server 1 is in communication connection with the proxy server 2, and the proxy
  • the server 2 is in communication with each terminal 3, for example, by 4G (the 4th Generation mobile communication) connection or by wifi (wireless-fidelity) connection or the like.
  • the terminal 3 can be a personal computer, such as a mobile phone, a tablet, a laptop or a desktop computer, or other computing device with computing power.
  • Data interaction can be implemented between the management server 1 and the proxy server 2, and data interaction can also be implemented between the proxy server 2 and any one of the terminals 3.
  • FIG. 4 is a flowchart of a terminal control method according to an exemplary embodiment. As shown in FIG. 4, the method is applied to the terminal control system shown in FIG. 3, and the method includes the following steps.
  • step S201 the management server sends the control information and the terminal identifier to the proxy server; the control information carries the control instruction and the system identifier of the target operating system; the control instruction is used to indicate that the specified operation is performed on the terminal, and the target operating system is in the terminal.
  • An operating system of at least two operating systems, the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system.
  • the terminal in the embodiment of the present invention is any one of the terminals 3 shown in FIG. 3.
  • At least two operating systems are installed in the terminal, and each operating system has a system identifier, and the system identifiers of each operating system are different.
  • one operating system is the foreground operating system
  • the other operating systems are the background operating systems.
  • Both the foreground operating system and the background operating system occupy the computing resources and storage resources of the terminal and can run multiple services.
  • the foreground operating system and the background operating system have different display resource occupations, and the foreground operating system can output the content of the display card to the memory to the screen of the terminal and display it to the user; and the background operating system cannot output the content to the on the screen.
  • the terminal in the case where the terminal is installed with at least two operating systems, the terminal is at any time. Only one operating system interface is displayed on the screen, instead of displaying the operating interface of multiple operating systems at the same time. Therefore, in the embodiment of the present invention, at any time, the foreground operating system of the terminal refers to an operating system that currently occupies the display resource of the terminal. It can also be said that the foreground operating system is the operating system corresponding to the operation interface currently displayed on the screen of the terminal. From the perspective of the end user, the terminal user can interact with the foreground operating system through the screen of the terminal, and the operation interface of the background operating system is invisible to the terminal user. The terminal user can switch the foreground operating system through special buttons on the terminal or by sliding the special track on the screen. When the hardware of the terminal receives the event triggered by the above operation, it switches the foreground operating system.
  • the foreground operating system is the only operating system in the terminal.
  • the terminal has two operating systems, which are an office operating system and a personal operating system.
  • the office operating system can be set as the foreground operating system of the terminal, and the terminal screen.
  • the operation interface of the office operating system is displayed, and the user of the terminal can work on the office operating system, and the personal operating system is the background operating system.
  • the personal operating system may be set as the foreground operating system of the terminal, and the operation interface of the personal operating system is displayed on the screen of the terminal.
  • the user can handle the private business that is not related to the office on the personal operating system, and the office operating system is the background operating system.
  • the management personnel can send control information to the terminal through the management server and the proxy server; when the terminal receives the control information, the terminal can extract the control instruction and the system identifier of the target operating system from the control information, and When the foreground operating system of the terminal is the target operating system, the terminal is controlled according to the control instruction, thereby achieving the purpose of the management personnel.
  • the administrator may input control information including the control instruction and the system identifier of the target operating system in the management server.
  • the administrator needs to input the control information at the management server and also needs to be in the management server. Entering the terminal identifier of the terminal, and submitting the control information and the terminal identifier to the management server; the management server then sends the control information and the terminal identifier to the proxy server, so that the proxy server can The terminal sends the control information.
  • the terminal identifiers of different terminals are different, and the terminal identifier may be an IMSI (International Mobile Subscriber Identification Number) or an IMEI (International) of the terminal.
  • IMSI International Mobile Subscriber Identification Number
  • IMEI International
  • the mobile device identity, the international mobile device identity code, and the like are not limited in this embodiment of the present invention.
  • control command may be a message for controlling the wifi device in the terminal to be powered off, or: controlling the wifi device in the terminal to be powered on and when the terminal is connected to the access point, Connect a message to a preset access point.
  • a Restful interface based on the Https (Hyper Text Transfer Protocol over Secure Socket Layer) protocol is set in the management server, and a Restful interface based on the Https protocol is also set in the proxy server. Therefore, the management server and the proxy server are The data exchange can be performed through the https protocol. In this step, the management server can send the control information and the terminal identifier to the proxy server through the https protocol.
  • Https Hyper Text Transfer Protocol over Secure Socket Layer
  • the management server may generate a message including a terminal identifier field, a system identifier field, an instruction type field, a control object field, and a control status field.
  • the management server can add the terminal identity to the terminal identity field of the message. Add the system ID of the target system to the system ID field in the message.
  • the instruction type of the control instruction is added in an instruction type field in the message, the control instruction includes three types of instructions: an instruction for instructing updating an operating state of a hardware device in the terminal, for indicating an update target operation An instruction of the system policy of the system and an instruction to indicate update of data in the target operating system.
  • the object that acts on the control instruction is added to the control object field in the message. And add the target state that the object needs to reach to the control status field in the message. After that, the message is sent to the proxy server.
  • step S202 the proxy server receives the control information and the terminal identifier sent by the management server.
  • step S203 the proxy server sends the control information to the terminal according to the terminal identifier.
  • the communication connection between the proxy server and the terminal may be abnormal, for example, the communication connection is temporarily disconnected, or the terminal temporarily has no right to use the communication connection or the like.
  • the proxy server cannot send the control information to the terminal.
  • the proxy server when the proxy server receives the control information sent by the management server and the terminal identifier, the proxy server needs to detect whether the communication connection between the proxy server and the terminal is abnormal; if the communication connection does not have an abnormality, the proxy server The control information may be sent to the terminal according to the terminal identifier. If the communication connection is abnormal, the proxy server cannot send the control information to the terminal according to the terminal identifier at this time. However, although the proxy server cannot send the control information to the terminal according to the terminal identifier at this time, the proxy server can locally store the control information in order to transmit the control information to the terminal according to the terminal identifier when the communication connection is normal.
  • the proxy server detects that the communication connection between the proxy server and the terminal is normal, the proxy server acquires the control information and the terminal identifier from the corresponding relationship, and according to the The terminal identifier sends control information to the terminal, thus improving the reliability of transmitting control information to the terminal.
  • the proxy server may locally delete the correspondence between the control information and the terminal identifier.
  • the data exchange between the proxy server and the terminal can be performed through the TCP/IP protocol (Transmission Control Protocol/Internet Protocol). Therefore, in this step, the proxy server can pass TCP/ The IP protocol sends the control information to the terminal. Specifically, after the terminal accesses the network, the TCP long connection request is initiated to the proxy server according to the IP address and port of the pre-stored proxy server, and the proxy server establishes a TCP connection with the terminal after receiving the TCP long connection request, and establishes a TCP connection. The control information is sent to the terminal.
  • TCP/IP protocol Transmission Control Protocol/Internet Protocol
  • the management server does not need to establish a communication connection with each terminal, and the management server only needs to establish a communication connection with the proxy server, thereby reducing the number of communication connections that the management server needs to establish. This saves the communication resources of the management server.
  • the management server must establish a communication connection with each terminal.
  • the management server needs to send control information to a certain terminal, the management server needs to detect the communication connection between the management server and the terminal. Is it normal that the control information can be sent to the terminal when the communication connection between the management server and the terminal is normal; when the management server needs to separately send control information to the plurality of terminals, the management server needs to detect the management server and the plurality of Whether the communication connection between each terminal in the terminal is normal, which will increase management The system pressure of the server.
  • the management server does not need to establish a communication connection between each terminal, and the management server only needs to establish a communication connection with the proxy server, and the proxy server establishes a communication connection with each terminal, so
  • the management server needs to separately send control information to multiple terminals
  • the management server only needs to care whether the communication connection between the management server and the proxy server is normal, and the management server does not need to care about the proxy server and each of the multiple terminals. Whether the communication connection between the two is abnormal, so that it is not necessary to detect whether the communication connection between the proxy server and each of the plurality of terminals is normal, thereby avoiding increasing the system pressure of the management server.
  • each terminal supports a different communication protocol, and therefore, if there is no proxy server, the management server needs to support the communication protocol supported by each terminal at the same time, so that the management server can Communicate with each terminal, but this will increase the system complexity of the management server.
  • the management server only needs to communicate with the proxy server, and does not need to communicate with each terminal.
  • the management server only needs to support the communication protocol supported by the proxy server, and does not need to support each terminal.
  • the supported communication protocols reduce the system complexity of the management server.
  • step S204 the terminal receives the control information sent by the proxy server.
  • the process of controlling the terminal according to the control information may refer to the embodiment shown in FIG. 2, and details are not described herein.
  • FIG. 5 is a flowchart of a terminal control method according to an exemplary embodiment. As shown in FIG. 5, the method is applied to the terminal shown in FIG. 1 or FIG. 3, and the method includes the following steps.
  • step S301 the terminal receives the control information sent by the server; the control information carries a control instruction and a system identifier of the target operating system; the control instruction is used to indicate that the specified operation is performed on the terminal, and the target operating system is at least two of the terminals.
  • An operating system in the operating system the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system.
  • step S302 the terminal detects whether the foreground operating system of the terminal is the target operating system according to the system identifier of the target operating system.
  • step S303 if the terminal determines that the foreground operating system of the terminal is not the target operating system, the terminal stores the correspondence between the system identifier of the target operating system and the control command, and waits for the foreground operating system of the terminal to be changed to the target operation. After the system, the terminal controls the terminal according to the control instruction in the correspondence.
  • step S304 if the terminal determines that the foreground operating system of the terminal is the target operating system, the terminal controls the terminal according to the control instruction, and stores the correspondence between the system identifier of the target operating system and the control instruction.
  • steps S301 to S304 in the embodiment of the present invention reference may be made to the embodiment shown in FIG. 2, which is not described in detail herein.
  • the terminal may simultaneously receive multiple control information respectively sent by the management server, and the control commands carried in each control information are respectively used in the terminal.
  • the front-end operating system controls the terminal for different operating systems; that is, the terminal may receive at least two control commands at the same time, and the at least two control commands are respectively used for different operations in the foreground operating system of the terminal.
  • the system controls the control commands of the terminal. However, when the terminal receives at least two control commands, only one of the at least two operating systems in the terminal is the foreground operating system of the terminal, and the other operating systems are the background operating systems of the terminal. .
  • the terminal receives any control information sent by the management server, and assumes that the control command carried in the control information is a control instruction for controlling the terminal when the foreground operating system of the terminal is the target operating system; the target operating system For one of the at least two operating systems in the terminal, when the foreground operating system of the terminal is not the target operating system, the terminal does not control the terminal according to the control instruction, and secondly, the terminal can store the target operation.
  • the terminal may further acquire the control command according to the corresponding relationship, and control the terminal according to the control instruction, so that the management personnel needs to be in the foreground system of the terminal.
  • the target operating system controls the purpose of the terminal, thereby implementing the purpose of accurately and differentially controlling the terminal under a plurality of different operating systems.
  • the user of the terminal may change the foreground operating system of the terminal when using the terminal.
  • the terminal user operates the front operating system of the terminal by an individual.
  • the system is changed to the office operating system, or the foreground operating system of the terminal is changed from the office operating system to the personal operating system.
  • the management personnel control the terminal differently, that is, the control commands corresponding to different foreground operating systems are different, and therefore, once the terminal is If the foreground operating system changes, it is necessary to change the control mode of the terminal control, that is, a control command is needed to control the terminal.
  • step S401 the terminal monitors whether the foreground operating system of the terminal changes.
  • step S402 the terminal searches for the corresponding relationship of the system identifier including the changed foreground operating system from the stored correspondence between the operating system identifiers and the control commands, and further Get the control instructions in the found correspondence.
  • step S403 the terminal controls the terminal according to the acquired control instruction.
  • steps S401 to S403 in the embodiment of the present invention reference may be made to the embodiment shown in FIG. 2, which is not described in detail herein.
  • the administrator may no longer need to cause the terminal to control the terminal according to the control instruction when the foreground system of the terminal is the target operating system.
  • the administrator may input the terminal identifier and the stop control information of the terminal in the server, and the control instruction And the system identifier of the target operating system is added to the stop control information, and then the terminal identifier and the stop control information are submitted to the server, where the stop control information is used to indicate that stopping the foreground operating system at the terminal by the control instruction is Controlling the terminal when the target operating system is; the server sends the stop control information to the terminal according to the terminal identifier; and when the terminal receives the stop control information sent by the server, extracting the system identifier of the target operating system from the stop control information And the control instruction, searching for a correspondence between the system identifier of the target operating system and the control instruction from the plurality of corresponding correspondences stored previously, and deleting the correspondence.
  • the terminal cannot obtain the control command corresponding to the target operating system, and therefore, the terminal does not control the terminal according to the control command.
  • FIG. 7 is a flowchart of a terminal control method according to an exemplary embodiment. As shown in FIG. 7, the method is applied to the proxy server shown in FIG. 3, and the method includes the following steps.
  • the proxy server receives the control information and the terminal identifier sent by the management server that is in communication with the proxy server.
  • the control information carries a control instruction and a system identifier of the target operating system; the control instruction is used to indicate that the specified operation is performed on the terminal, and the target operating system is one of at least two operating systems in the terminal, and the control information is used to indicate The terminal is controlled according to the control command when the foreground operating system of the terminal is the target operating system.
  • step S502 the proxy server sends the control information to the terminal according to the terminal identifier.
  • steps S501 and S502 in the embodiment of the present invention reference may be made to the embodiment shown in FIG. 4, which is not described in detail herein.
  • the management server does not need to establish a communication connection with each terminal, and the management server only needs to establish a communication connection with the proxy server, thereby reducing the number of communication connections that the management server needs to establish. This saves the communication resources of the management server.
  • the management server must establish a communication connection with each terminal.
  • the management server needs to send control information to a certain terminal, the management server needs to detect the communication connection between the management server and the terminal. Is it normal that the control information can be sent to the terminal when the communication connection between the management server and the terminal is normal; when the management server needs to separately send control information to the plurality of terminals, the management server needs to detect the management server and the plurality of Whether the communication connection between each terminal in the terminal is normal, thereby increasing the system pressure of the management server.
  • the management server does not need to establish a communication connection between each terminal, and the management server only needs to establish a communication connection with the proxy server, and the proxy server establishes a communication connection with each terminal, so
  • the management server needs to separately send control information to multiple terminals
  • the management server only needs to care whether the communication connection between the management server and the proxy server is normal, and the management server does not need to care about the proxy server and each of the multiple terminals. Whether the communication connection between the two is abnormal, so that it is not necessary to detect whether the communication connection between the proxy server and each of the plurality of terminals is normal, thereby avoiding increasing the system pressure of the management server.
  • each terminal supports a different communication protocol, and therefore, if there is no proxy server, the management server needs to support the communication protocol supported by each terminal at the same time, so that the management server can Communicate with each terminal, but this will increase the system complexity of the management server.
  • the management server only needs to communicate with the proxy server, and does not need to communicate with each terminal.
  • the management server only needs to support the communication protocol supported by the proxy server, and does not need to support each terminal.
  • the supported communication protocols reduce the system complexity of the management server.
  • the information format of the control information sent by the management server to the proxy server may be inconsistent with the information format supported by the terminal, and the information format of the control information sent by the management server to the proxy server is
  • the information format supported by the terminal is inconsistent, the terminal cannot identify the control information locally, that is, the control command and the system identifier in the control information cannot be identified, and thus the control command cannot be executed, and the terminal cannot be implemented.
  • the foreground operating system is the target operating system controlling the terminal according to the control instruction.
  • the proxy server when the proxy server receives the control information sent by the management server, it is required to detect whether the information format of the control information is The information format supported by the terminal; when the information format of the control information is not the information format supported by the terminal, the proxy server converts the information format of the control information into the information format supported by the terminal.
  • the proxy server then sends control information converted to the information format to the terminal according to the terminal identifier, and the terminal can locally execute the control instruction in the control information converted by the information format, so that the foreground operating system of the terminal can be achieved.
  • the operating system controls the purpose of the terminal according to the control instruction.
  • the information format of the control information includes: a keyword for indicating a system identifier, a keyword for indicating an instruction type of the control instruction, a keyword for indicating a target control state of the control instruction, and the like.
  • the technical staff stores the information format of the control information supported by each terminal in the proxy server in advance. Therefore, the proxy server can obtain the information format supported by the terminal from the local terminal according to the terminal identifier.
  • the user of the terminal is prohibited from using the wifi device in the terminal.
  • the control instruction is for controlling the wifi device
  • "disable” is a keyword for indicating the target control state of the control instruction.
  • the keyword for indicating the target control state of the control command is "enable”, that is, in this example, the keyword for indicating the target control state of the control command is "enable” or "disable”.
  • the keyword used to indicate the instruction type of the control instruction, the first parenthesis "()” is used to fill in the system identifier, and the second parenthesis "()” is used to fill in the keyword of the target control state of the control instruction.
  • the keyword for indicating the target control state of the control command is "1" or "0", wherein the keyword "1" is equivalent to the keyword “enable”, and the keyword "0” is equivalent to The keyword “disable”.
  • the wifi device in the terminal is powered off, it is impossible for the administrator to prohibit the user of the terminal from using the wifi device in the terminal when the foreground operating system of the terminal is a personal operating system.
  • the format conversion relationship table corresponding to the terminal may be stored in the proxy server in advance.
  • the format conversion relationship table corresponding to the terminal may be as shown in Table 1 below.
  • the terminal can be powered off when the front operating system of the terminal is a personal operating system, so that the administrator needs to prohibit the user of the terminal from using the front operating system of the terminal as a personal operating system.
  • the purpose of the wifi device in the terminal is a personal operating system.
  • the management server sends control information to any terminal.
  • the information format of the sent control information must be the information format supported by the terminal.
  • the management server needs to support.
  • the format of the information is very large, which increases the system complexity of the management server.
  • the proxy server can convert the information format of the control information sent by the management server into the information format supported by each terminal. Therefore, the management server does not need to support the information format supported by each terminal, thereby reducing the management server. System complexity.
  • FIG. 8 is a flowchart of a terminal control method according to an exemplary embodiment. As shown in FIG. 8, the method is applied to the terminal shown in FIG. 1 or FIG. 3, and the method includes the following steps.
  • step S601 the terminal receives the control information sent by the server.
  • step S602 the terminal determines that the control information is used to indicate that the terminal is controlled according to the control command when the foreground operating system of the terminal is the default operating system, the preset operating system. Is one of at least two operating systems in the terminal.
  • the control instruction when the administrator inputs the control information in the server, the control instruction needs to be added to the control information, but the system identifier may not be added to the system identification field in the control information.
  • the terminal determines that the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is a preset operating system.
  • the terminal When the foreground operating system of the terminal is not the default operating system, the terminal stores the corresponding relationship between the system identifier of the preset operating system and the control command, so that when the foreground operating system of the terminal is the default operating system, The terminal obtains the control instruction from the corresponding relationship, and then controls the terminal according to the control instruction; and when the foreground operating system of the terminal is a preset operating system, the terminal acquires the control instruction from the corresponding relationship and according to the The control command controls the terminal.
  • step S603 the terminal determines that the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is a preset operating system.
  • the control information includes a system identification field, and when the management personnel inputs the control information in the server, the control instruction needs to be added to the control information, and the target operation may be added in the system identification field in the control information.
  • the system identifier of the system the terminal determines the control command as a control command for controlling the terminal when the foreground operating system of the terminal is the target operating system.
  • the terminal stores a correspondence between the system identifier of the target operating system and the control command, so that when the foreground operating system of the terminal is the target operating system, the terminal Obtaining the control instruction from the correspondence, and then controlling the terminal according to the control instruction; and when the foreground operating system of the terminal is the target operating system, the terminal corresponds to the The control instruction is obtained in the relationship and the terminal is controlled according to the control instruction. .
  • the control instruction is only added in the control information, and the system identifier of the operating system in the terminal is not added in the control information.
  • the operating system Since there is only one operating system in the terminal, the operating system is always the foreground operating system of the terminal, so when the terminal receives the control information, the terminal controls the control command according to the control information. terminal.
  • the system identifier needs to be added to the control information, so that the terminal can determine that the operating system corresponding to the system identifier should be based on the operating system of the terminal.
  • the control command carried by the control information controls the terminal. Otherwise, the terminal cannot determine which operating system the foreground operating system of the terminal should control.
  • the terminal controls the terminal according to the control information carried by the control information. Therefore, the terminal controls the terminal.
  • the operation of controlling the terminal according to the control command is not performed. In other words, when there are multiple operating systems in the terminal, the control information is not supported and only carries the system identifier.
  • the control information when there are multiple operating systems in the terminal, the control information only supports the control command without carrying the system identifier.
  • the terminal The control instruction may be determined as a control instruction for controlling the terminal when the foreground operating system of the terminal is a preset operating system; the preset operating system is one of at least two operating systems in the terminal.
  • the control information is also supported to carry the control command and the system identifier, so that the terminal determines the control command as a control command for controlling the terminal when the foreground operating system of the terminal is the operating system corresponding to the system identifier.
  • FIG. 9 is a schematic structural diagram of a terminal according to an exemplary embodiment.
  • the terminal includes: a receiving unit 11 and a processing unit 12;
  • the receiving unit 22 is configured to receive first control information sent by the server, where the first control information carries a first control instruction and a system identifier of the first operating system, where the first control instruction is used to indicate to the terminal Performing the specified operation, the first operating system is one of the at least two operating systems in the terminal, and the first control information is used to indicate that the foreground operating system at the terminal is the first operation Controlling, by the system, the terminal according to the first control instruction;
  • the processing unit 12 is configured to determine, according to the system identifier of the first operating system, that the foreground operating system of the terminal is not the first operating system, and store the system identifier of the first operating system and the Corresponding relationship of the first control command; and waiting for the foreground operating system of the terminal to be changed to the first operating system, controlling the terminal according to the first control instruction in the correspondence relationship.
  • the terminal may simultaneously receive multiple control information respectively sent by the management server, and the control commands carried in each control information are respectively used in the terminal.
  • the front-end operating system controls the terminal for different operating systems; that is, the terminal may receive at least two control commands at the same time, and the at least two control commands are respectively used for different operations in the foreground operating system of the terminal.
  • the system controls the control commands of the terminal. However, when the terminal receives at least two control commands, only one of the at least two operating systems in the terminal is the foreground operating system of the terminal, and the other operating systems are the background operating systems of the terminal. .
  • the terminal receives any one of the control information sent by the management server, it is assumed that the control command carried in the control information is a control instruction for controlling the terminal when the foreground operating system of the terminal is the target operating system;
  • the target operating system is one of at least two operating systems in the terminal.
  • the terminal does not control the terminal according to the control instruction, and secondly, the terminal may The correspondence between the system identifier of the target operating system and the control command is stored.
  • the terminal may further acquire the control command according to the corresponding relationship, and control the terminal according to the control instruction, so that the management personnel needs to be in the foreground system of the terminal.
  • the target operating system controls the purpose of the terminal, thereby implementing the purpose of accurately and differentially controlling the terminal under a plurality of different operating systems.
  • the receiving unit 22 is further configured to receive second control information sent by the server, where the second control information carries a second control instruction and a system identifier of the second operating system, where the second control instruction is used Instructing to perform a specified operation on the terminal, the second operating system is one of at least two operating systems in the terminal, and the second control information is used to indicate a foreground operating system at the terminal Controlling the terminal according to the second control instruction when the second operating system is in the second operating system;
  • the processing unit 12 is further configured to determine, according to the system identifier of the second operating system, that the foreground operating system of the terminal is the second operating system, and control the terminal according to the second control instruction.
  • the user of the terminal may change the foreground operating system of the terminal when using the terminal, for example, the terminal user uses the foreground operating system of the terminal by the personal operating system. Change to the office operating system, or change the foreground operating system of the terminal from the office operating system to the personal operating system.
  • the management personnel control the terminal differently, that is, the control commands corresponding to different foreground operating systems are different, and therefore, once the terminal is If the foreground operating system changes, it is necessary to change the control mode of the terminal control, that is, a control command is needed to control the terminal.
  • the terminal can control the terminal according to the control instruction corresponding to the system identifier of the changed foreground operating system in time.
  • processing unit 12 is further configured to store a correspondence between the system identifier of the second operating system and the second control instruction; determine that the foreground operating system of the terminal changes, and if the changed foreground operation
  • the system is the second operating system
  • the second control instruction is obtained from a correspondence between the system identifier of the second operating system and the second control instruction; and the terminal is controlled according to the second control instruction .
  • the receiving unit 22 is further configured to receive third control information sent by the server, where the third control information carries a third control instruction and does not carry a system identifier, where the third control instruction is used to indicate a pair
  • the terminal performs a specified operation; the third control information is used to indicate that the terminal is controlled according to the third control instruction when the foreground operating system of the terminal is a preset operating system, where the preset operating system is One of at least two operating systems in the terminal;
  • the processing unit 12 is further configured to determine that the foreground operating system of the terminal is the preset operating system, and control the terminal according to the third control instruction.
  • the control instruction is only added in the control information, and the system identifier of the operating system in the terminal is not added in the control information.
  • the operating system Since there is only one operating system in the terminal, the operating system is always the foreground operating system of the terminal, so when the terminal receives the control information, the terminal controls the control command according to the control information. terminal.
  • the system identifier needs to be added to the control information, so that the terminal can determine that the operating system corresponding to the system identifier should be based on the operating system of the terminal.
  • the control command carried by the control information controls the terminal. Otherwise, the terminal cannot determine which operating system the foreground operating system of the terminal should control.
  • the terminal controls the terminal according to the control information carried by the control information. Therefore, the terminal controls the terminal.
  • the operation of controlling the terminal according to the control command is not performed. In other words, when there are multiple operating systems in the terminal, the control information is not supported and only carries the system identifier.
  • the control information when there are multiple operating systems in the terminal, the control information only supports the control command without carrying the system identifier.
  • the terminal The control instruction may be determined as a control instruction for controlling the terminal when the foreground operating system of the terminal is a preset operating system; the preset operating system is one of at least two operating systems in the terminal.
  • the control information is also supported to carry the control command and the system identifier, so that the terminal determines the control command as a control command for controlling the terminal when the foreground operating system of the terminal is the operating system corresponding to the system identifier.
  • the receiving unit 22 is further configured to detect whether a communication connection between the terminal and the server is normal; if the communication connection between the terminal and the server is normal, send the server to the server for sending Acquiring the acquisition request of the first control information; receiving the first control information returned by the server according to the acquisition request.
  • the communication connection between the management server and the terminal may be abnormal, and the management server cannot send control information to the terminal when the communication connection is abnormal, that is, the terminal No control information is received. Therefore, for the terminal, in order to obtain control information from the management server as soon as possible, to achieve the purpose of the administrator as soon as possible, the terminal can detect whether the communication connection between the terminal and the management server is normal; when the terminal and management When the communication connection between the servers is normal, the terminal may also send an acquisition request for acquiring control information to the management server, where the acquisition request further carries the terminal identifier of the terminal; when the management server receives the acquisition request, the management server The terminal identifier may be extracted from the acquiring request, and the corresponding relationship between the control information and the terminal identifier is obtained according to the locally stored correspondence relationship of the terminal identifier, and the control information in the corresponding relationship is obtained, and then And transmitting, by the terminal identifier, the control information to the terminal; the terminal receiving the control information returned by the management server according to the
  • the receiving unit 22 is further configured to receive stop control information sent by the server, where the stop control information carries the first control instruction and a system identifier of the first operating system, and the stop control information Used to indicate that the terminal is controlled according to the first control instruction when the foreground operating system of the terminal is the first operating system;
  • the processing unit 12 is further configured to delete, according to the stop control information received by the receiving unit, a correspondence between a system identifier of the first operating system and the first control command stored in the terminal.
  • the administrator may no longer need to cause the terminal to control the terminal according to the control command when the foreground system of the terminal is the target operating system.
  • the administrator may input the terminal identifier of the terminal and the stop control information including the control instruction and the system identifier of the target operating system in the management server, and then submit the terminal identifier and the stop control information to the management server, the stop
  • the control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the target operating system; and the management server sends the stop control information to the terminal according to the terminal identifier.
  • the second operating system is a personal operating system, and the second control instruction is used to indicate that the use of the wifi device in the terminal is prohibited;
  • the processing unit 12 is further configured to use the driving information of the wifi device in the terminal to set the wifi Be prepared to power off.
  • the second operating system is an office operating system, and the second control instruction is used to indicate that the wifi device in the terminal is allowed to be used, and only the preset access point can be connected when the wifi device of the terminal is used;
  • the processing unit 12 is further configured to use the driving information of the wifi device in the terminal to power on the wifi device, and set an wifi of the office operating system by using an API in a system service of a Container carrying an office operating system.
  • An access point identifier list where the wifi access point identifier list includes only the identifier of the preset access point.
  • FIG. 10 is a schematic structural diagram of a proxy server according to an exemplary embodiment.
  • the proxy server includes a receiving unit 21, a processing unit 22, and a transmitting unit 23.
  • the receiving unit 21 is configured to receive control information and a terminal identifier that are sent by a management server that is in communication with the proxy server, where the control information carries a control instruction and a system identifier of an operating system, where the control command is used to indicate a location
  • the terminal corresponding to the terminal identifier performs a specified operation, where the operating system is one of at least two operating systems in the terminal; the control information is used to indicate that the foreground operating system at the terminal is the operation Controlling, by the system, the terminal according to the control instruction;
  • the processing unit 22 is configured to determine that an abnormality occurs in a communication connection between the proxy server and the terminal, and store a correspondence between the control information and the terminal identifier.
  • the sending unit 23 is configured to: after waiting for the communication connection between the proxy server and the terminal to be normal, send the control information to the terminal according to the terminal identifier.
  • the management server does not need to establish a communication connection with each terminal, and the management server only needs to establish a communication connection with the proxy server, thereby reducing the number of communication connections that the management server needs to establish. This saves the communication resources of the management server.
  • the management server must establish a communication connection with each terminal.
  • the management server needs to send control information to a certain terminal, the management server needs to detect the communication connection between the management server and the terminal. Is it normal that the control information can be sent to the terminal when the communication connection between the management server and the terminal is normal; when the management server needs to separately send control information to the plurality of terminals, the management server needs to detect the management server and the plurality of Whether the communication connection between each terminal in the terminal is normal, thereby increasing the system pressure of the management server.
  • the management server does not need to establish a communication connection between each terminal, and the management server only needs to establish a communication connection with the proxy server, and the proxy server establishes a communication connection with each terminal, so
  • the management server needs to separately send control information to multiple terminals
  • the management server only needs to care whether the communication connection between the management server and the proxy server is normal, and the management server does not need to care about the proxy server and each of the multiple terminals. Whether the communication connection between the two is abnormal, so that it is not necessary to detect whether the communication connection between the proxy server and each of the plurality of terminals is normal, thereby avoiding increasing the system pressure of the management server.
  • each terminal supports a different communication protocol, and therefore, if there is no proxy server, the management server needs to support the communication protocol supported by each terminal at the same time, so that the management server can Communicate with each terminal, but this will increase the system complexity of the management server.
  • the management server only needs to communicate with the proxy server, and does not need to communicate with each terminal.
  • the management server only needs to support the communication protocol supported by the proxy server, and does not need to support each terminal.
  • the supported communication protocols reduce the system complexity of the management server.
  • control information when it is required to separately control a plurality of terminals, it is not necessary to separately send to each terminal. Control information, just send control information to the proxy server, thus achieving the unification of the control portal.
  • the communication connection between the proxy server and the terminal may be abnormal, for example, the communication connection is temporarily disconnected, or the terminal temporarily has no right to use the communication connection or the like.
  • the proxy server cannot send the control information to the terminal.
  • the proxy server when the proxy server receives the control information sent by the management server and the terminal identifier, the proxy server needs to detect whether the communication connection between the proxy server and the terminal is abnormal; if the communication connection does not have an abnormality, the proxy server The control information may be sent to the terminal according to the terminal identifier. If the communication connection is abnormal, the proxy server cannot send the control information to the terminal according to the terminal identifier at this time. However, although the proxy server cannot send the control information to the terminal according to the terminal identifier at this time, the proxy server can locally store the control information in order to transmit the control information to the terminal according to the terminal identifier when the communication connection is normal.
  • the proxy server detects that the communication connection between the proxy server and the terminal is normal, the proxy server acquires the control information and the terminal identifier from the corresponding relationship, and according to the The terminal identifier sends control information to the terminal, thus improving the reliability of transmitting control information to the terminal.
  • the receiving unit 21 is further configured to receive stop control information sent by the management server and a terminal identifier of the terminal, where the stop control information carries the control instruction and a system identifier of the operating system, where The stop control information is used to indicate that the terminal is controlled according to the control instruction when the foreground operating system of the terminal is the operating system.
  • the sending unit 23 is further configured to send the stop control information to the terminal according to the terminal identifier, so that the terminal deletes the system identifier of the operating system and the control command stored in the terminal. Correspondence relationship.
  • the administrator may no longer need to make the terminal control the terminal according to the control instruction when the foreground system of the terminal is the target operating system.
  • the administrator can input the terminal identifier and the stop control information of the terminal in the management server, and the control is And the system identifier of the instruction and the target operating system is added in the stop control information, and then the terminal identifier and the stop control information are submitted to the management server, where the stop control information is used to indicate: stopping the foreground operation of the terminal by the control instruction
  • the terminal is controlled; the management server sends the terminal identifier to the proxy server for the stop control information; when the proxy server receives the terminal identifier and the stop control information sent by the management server, the terminal identifies the terminal according to the terminal identifier Sending to the stop control information; when the terminal receives the stop control information sent by the proxy server, extracting the system identifier of the target operating system and the control command from the stop control information, and locally searching for the system identifier of the target operating system and The control
  • the terminal cannot obtain the control instruction corresponding to the system identifier of the target operating system, and therefore, the terminal does not control according to the control instruction. terminal.
  • the sending unit 23 is further configured to determine that the information format of the control information is not an information format supported by the terminal, and convert the information format of the control information into an information format supported by the terminal;
  • the terminal identifier sends the control information of the converted information format to the terminal.
  • the information format of the control information sent to the proxy server in the management server may be inconsistent with the information format supported by the terminal, and the information format of the control information sent to the proxy server in the management server and the information supported by the terminal
  • the terminal cannot identify the control information locally, that is, the control command and the system identifier in the control information cannot be identified, and thus the control command cannot be executed, and the terminal cannot be implemented at the end.
  • the foreground operating system of the terminal controls the target operating system according to the control instruction. Therefore, when the proxy server receives the control information sent by the management server, it is required to detect whether the information format of the control information is the information format supported by the terminal.
  • the proxy server converts the information format of the control information into an information format supported by the terminal;
  • the proxy server then sends control information converted to the information format to the terminal according to the terminal identifier, and the terminal can locally execute the control instruction in the control information converted by the information format, so that the foreground operating system of the terminal can be achieved.
  • the operating system controls the purpose of the terminal according to the control instruction.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention may be used to implement the method implemented by the foregoing embodiments of the present invention shown in FIG. 5-6. Portions relating to embodiments of the present invention are shown, and specific technical details are not disclosed. Please refer to the embodiments of the present invention shown in FIGS. 5-6.
  • the terminal may be a terminal device such as a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like.
  • FIG. 11 is a block diagram showing a portion of the structure of a handset 300 associated with various embodiments of the present invention.
  • the mobile phone 300 includes components such as an RF (radio frequency) circuit 320, a memory 330, an input unit 340, a display unit 350, a gravity sensor 360, an audio circuit 370, a processor 380, and a power source 390.
  • RF radio frequency
  • the components of the mobile phone 300 will be specifically described below with reference to FIG. 11:
  • the RF circuit 320 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, and transmitting the received information to the processor 380 for processing; in addition, transmitting the uplink data to the proxy server or the management server.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like.
  • RF circuitry 320 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (global system of mobile communication), GPRS (general packet radio service), CDMA (code division multiple access) , code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), e-mail, SMS (short messaging service), and the like.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • e-mail short messaging service
  • the memory 330 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone 300 by running software programs and modules stored in the memory 330.
  • the memory 330 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, such as a sound playing function, an image playing function, and the like; and the storage data area may be stored according to the mobile phone 300. Use the created data, such as audio data, image data, phone book, and so on.
  • memory 330 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 340 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 300.
  • the input unit 340 can include a touch screen 341 as well as other input devices 342.
  • the touch screen 341, also referred to as a touch panel, can collect touch operations on or near the user, such as the operation of the user using a finger, a stylus, or the like on the touch screen 341 or near the touch screen 341, and according to The preset program drives the corresponding connection device.
  • the touch screen 341 can include a touch detection device and a touch Touch the two parts of the controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 380 is provided and can receive commands from the processor 380 and execute them.
  • the touch screen 341 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 340 may also include other input devices 342.
  • other input devices 342 may include, but are not limited to, one or more of a physical keyboard, function keys, trackballs, mice, joysticks, and the like.
  • the display unit 350 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 300.
  • the display unit 350 may include a display panel 351.
  • the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch screen 341 can cover the display panel 351, and when the touch screen 341 detects a touch operation on or near it, transmits to the processor 380 to determine the type of the touch event, and then the processor 380 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 351.
  • touch screen 341 and the display panel 351 are used as two separate components to implement the input and input functions of the mobile phone 300 in FIG. 11, in some embodiments, the touch screen 341 may be integrated with the display panel 351 to implement the mobile phone 300. Input and output functions.
  • Gravity sensor 360 can detect the acceleration of the mobile phone in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the handset 300 can also include other sensors, such as light sensors.
  • the light sensor can include an ambient light sensor and a proximity light sensor.
  • the ambient light sensor can adjust the brightness of the display panel 341 according to the brightness of the ambient light; the proximity light sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 341 and/or the backlight when the mobile phone 300 moves to the ear.
  • the mobile phone 300 can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and will not be described herein.
  • Audio circuitry 370, speaker 371, microphone 372 can provide an audio interface between the user and handset 300.
  • the audio circuit 370 can transmit the converted electrical data of the received audio data to the speaker 371, and convert it into a sound signal output by the speaker 371; on the other hand, the microphone 372 converts the collected sound signal into an electrical signal, by the audio circuit 370. After receiving, it is converted to audio data, and then the audio data is output to the RF circuit 320 for transmission to, for example, another mobile phone, or the audio data is output to the memory 330 for further processing.
  • Processor 380 is the control center of handset 300, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 330, and recalling data stored in memory 330, The various functions and processing data of the mobile phone 300 are performed to perform overall monitoring of the mobile phone.
  • the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
  • the handset 300 also includes a power source 390, such as a battery, that powers the various components.
  • a power source 390 such as a battery
  • the power source can be logically connected to the processor 380 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 300 may further include a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
  • WiFi Wireless Fidelity
  • Bluetooth Wireless Fidelity
  • the RF circuit 320 is further configured to receive first control information sent by the server, where the first control information carries a first control instruction and a system identifier of the first operating system, where the first control instruction is used Indication
  • the terminal performs a specified operation, the first operating system is one of the at least two operating systems in the terminal, and the first control information is used to indicate that the foreground operating system at the terminal is the The operating system controls the terminal according to the first control instruction.
  • the processor 380 is further configured to: store, according to the system identifier of the first operating system, that the foreground operating system of the terminal is not the first operating system, store the first operating system in the memory 330.
  • the system identifies a correspondence relationship with the first control instruction.
  • the processor 380 is further configured to: after waiting for the foreground operating system of the terminal to be changed to the first operating system, control the terminal according to the first control instruction in the correspondence.
  • the RF circuit 320 is further configured to receive second control information sent by the server, where the second control information carries a second control instruction and a system identifier of the second operating system, where the second control instruction And indicating to perform a specified operation on the terminal, the second operating system is one of at least two operating systems in the terminal, and the second control information is used to indicate a foreground operation in the terminal.
  • the terminal is controlled according to the second control instruction.
  • the processor 380 is further configured to determine, according to the system identifier of the second operating system, that the foreground operating system of the terminal is the second operating system, and control the terminal according to the second control instruction.
  • the processor 380 is further configured to store, in the memory 330, a correspondence between the system identifier of the second operating system and the second control instruction; determining that the foreground operating system of the terminal changes, if the changed foreground The operating system is the second operating system, the second control instruction is obtained from a correspondence between the system identifier of the second operating system and the second control instruction; and the second control instruction is controlled according to the second control instruction. terminal.
  • the RF circuit 320 is further configured to receive third control information sent by the server, where the third control information carries a third control instruction and does not carry a system identifier, where the third control instruction is used to indicate to the terminal And performing the specified operation; the third control information is used to indicate that the terminal is controlled according to the third control instruction when the foreground operating system of the terminal is a preset operating system, where the preset operating system is in the terminal One of at least two operating systems.
  • the processor 380 is further configured to determine that the foreground operating system of the terminal is the preset operating system, and control the terminal according to the third control instruction.
  • the RF circuit 320 is further configured to detect whether a communication connection between the terminal and the server is normal; if the communication connection between the terminal and the server is normal, send the server to acquire the Acquiring an acquisition request of the first control information; receiving the first control information returned by the server according to the acquisition request.
  • the RF circuit 320 is further configured to receive stop control information sent by the server, where the stop control information carries the first control instruction and a system identifier of the first operating system, where the stop control information is used to indicate Stopping the terminal according to the first control instruction when the foreground operating system of the terminal is the first operating system.
  • the processor 380 is further configured to delete the correspondence between the system identifier of the first operating system and the first control instruction stored in the memory 330 based on the stop control information received by the receiving unit.
  • the processor 380 is specifically configured to: power off the wifi device by using driving information of the wifi device in the terminal.
  • the processor 380 is specifically configured to: power on the wifi device by using driving information of the wifi device in the terminal, And setting the wifi access point identifier of the office operating system by using an API in the system service of the Container carrying the office operating system
  • the wifi access point identifier list includes only the identifier of the preset access point.
  • FIG. 12 is a schematic structural diagram of a proxy server according to an exemplary embodiment.
  • the proxy server 310 includes a processor 410, a memory 420, and a network interface 430, and the processor 410, the memory 420, and the network interface 430 are connected to each other through a bus 440.
  • Memory 420 includes, but is not limited to, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), or portable read only memory (CD-ROM).
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • CD-ROM portable read only memory
  • the processor 410 may be one or more central processing units (CPUs). In the case where the processor 410 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
  • the network interface 430 may be a wired interface, such as a Fiber Distributed Data Interface (FDDI) or a Gigabit Ethernet (GE) interface.
  • the network interface 430 may also be a wireless interface.
  • the network interface 430 is further configured to receive control information and a terminal identifier sent by a management server that is in communication with the proxy server, where the control information carries a control instruction and a system identifier of an operating system, where the control command is used to indicate a location
  • the terminal corresponding to the terminal identifier performs a specified operation, where the operating system is one of at least two operating systems in the terminal; the control information is used to indicate that the foreground operating system at the terminal is the operation And controlling, by the system, the terminal according to the control instruction; and, after waiting for the communication connection between the proxy server and the terminal to be normal, the proxy server sends the Control information.
  • the memory 420 is configured to store a correspondence between the control information and the terminal identifier.
  • the processor 410 in the proxy server 310 is configured to read the program code stored in the memory 420, the following operations are performed: determining that an abnormality occurs in a communication connection between the proxy server and the terminal, the proxy server And storing a correspondence between the control information and the terminal identifier.

Abstract

一种终端控制方法及装置。所述方法包括:对于终端接收到管理服务器发送的任意一个控制信息,如果该控制信息指示在终端的前台操作系统为目标操作系统时,根据该控制信息携带的控制指令控制该终端,而当终端的前台操作系统不为目标操作系统时,终端并不根据该控制指令控制终端,其次,终端可以存储目标操作系统的系统标识与该控制指令的对应关系,以使之后在终端的前台操作系统变更为目标操作系统时,终端还可以根据该对应关系获取该控制指令,并根据该控制指令控制终端,从而实现管理人员需要在终端的前台系统为目标操作系统时控制终端的目的,进而实现分别在多个不同的操作系统下对终端实行精准的差异化管控的目的。

Description

终端控制方法及装置
本申请要求于2016年11月22日提交中国专利局、申请号为201611039815.6、发明名称为“终端控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及计算机技术领域,尤其涉及一种终端控制方法及装置。
背景技术
当前,一方面为了增加工作人员的私人终端的价值,另一方面为了使用上的便利性,越来越多的工作人员通过自己的私人终端进行办公。例如,工作人员在自己的私人终端中安装两个操作系统,分别为办公操作系统和个人操作系统。
在办公时段,工作人员需要将自己的私人终端的前台操作系统变更为办公操作系统。在休息时,可以将自己的私人终端中的前台的操作系统变更为个人操作系统并处理与办公无关的私人业务。
随着各个企业之间的竞争的白热化,企业的数据安全越来越重要,出于数据安全的考虑,往往对同一终端的不同操作系统有差异化的要求。例如当工作人员在办公场所中,企业的IT管理员往往希望在工作人员的私人终端的前台操作系统为个人操作系统时,工作人员的私人终端不允许连接办公场所中的wifi接入点,而出于工作需要,企业的IT管理员希望在工作人员的私人终端的前台的操作系统为办公操作系统时,工作人员的私人终端允许连接办公场所中特定的wifi接入点。
然而,目前还没有在多个不同的操作系统下对私人终端实行差异化管控的方法,因此,在多个不同的操作系统下对私人终端实行差异化管控是一个亟待解决的技术问题。
发明内容
为克服相关技术中存在的问题,本发明实施例提供一种终端控制方法及装置。
根据本发明实施例的第一方面,提供一种终端控制方法,所述方法包括:
终端接收服务器发送的第一控制信息,所述第一控制信息携带第一控制指令以及第一操作系统的系统标识,所述第一控制指令用于指示对所述终端执行指定操作,所述第一操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第一控制信息用于指示在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
所述终端根据所述第一操作系统的系统标识,确定出所述终端的前台操作系统不为所述第一操作系统,所述终端存储所述第一操作系统的系统标识与所述第一控制指令的对应关系;
等待所述终端的前台操作系统变更为所述第一操作系统后,所述终端根据所述对应关 系中的所述第一控制指令控制所述终端。
在本发明实施例中,对于与管理服务器通信连接的任意一个终端,该终端可能同时会接收到管理服务器分别发送的多个控制信息,每一个控制信息中携带的控制指令分别用于在该终端的前台操作系统为不同操作系统时控制该终端;也即,该终端可能会同时接收到至少两个控制指令,且该至少两个控制指令分别用于在该终端的前台操作系统为不同的操作系统时控制该终端的控制指令。然而,在该终端接收到至少两个控制指令时,在该终端中的至少两个操作系统中,只有一个操作系统为该终端的前台操作系统,而其他操作系统均为该终端的后台操作系统。
因此,对于该终端接收到管理服务器发送的任意一个控制信息,该控制信息中携带的控制指令为用于在该终端的前台操作系统为目标操作系统时控制该终端的控制指令;目标操作系统为该终端中的至少两个操作系统中的一个操作系统。当该终端的前台操作系统不为目标操作系统时,该终端并不根据该控制指令控制该终端,其次,该终端可以存储目标操作系统的系统标识与该控制指令的对应关系。以使之后在终端的前台操作系统变更为目标操作系统时,该终端还可以根据该对应关系获取该控制指令,并根据该控制指令控制该终端,从而实现管理人员需要在该终端的前台系统为目标操作系统时控制该终端的目的,进而实现分别在多个不同的操作系统下对终端实行精准的差异化管控的目的。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:
所述终端接收所述服务器发送的第二控制信息,所述第二控制信息携带第二控制指令以及第二操作系统的系统标识,所述第二控制指令用于指示对所述终端执行指定操作,所述第二操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第二控制信息用于指示在所述终端的前台操作系统为所述第二操作系统时根据所述第二控制指令控制所述终端;
所述终端根据所述第二操作系统的系统标识,确定出所述终端的前台操作系统为所述第二操作系统,所述终端根据所述第二控制指令控制所述终端。
其中,由于该终端中有至少两个操作系统,该终端的使用者在使用该终端时,可能会变更该终端的前台操作系统,例如,该终端使用者将终端的前台操作系统由个人操作系统变更至办公操作系统,或者,将该终端的前台操作系统由办公操作系统变更至个人操作系统。
其中,在本发明实施例中,在该终端的前台操作系统不同时,管理人员对该终端控制的控制方式不同,也即,不同的前台操作系统对应的控制指令不同,因此,一旦该终端的前台操作系统发生变化,就需要变更对该终端控制的控制方式,也即,需要换一种控制指令控制终端。
为了在该终端的前台操作系统一旦发生变化时,终端能够及时根据与变化后的前台操作系统的系统标识相对应的控制指令控制该终端,在第一方面,还有如下可选设计;
可选地,所述终端根据所述第二控制指令控制所述终端之后,所述方法还包括:
所述终端存储所述第二操作系统的系统标识与所述第二控制指令的对应关系;
所述终端确定所述终端的前台操作系统发生变化,如果变化后的前台操作系统为所述第二操作系统,则所述终端从所述第二操作系统的系统标识与所述第二控制指令的对应关系中获取所述第二控制指令;
所述终端根据所述第二控制指令控制所述终端。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:
所述终端接收所述服务器发送的第三控制信息,所述第三控制信息携带第三控制指令且未携带系统标识,所述第三控制指令用于指示对所述终端执行指定操作;所述第三控制信息用于指示在所述终端的前台操作系统为预设操作系统时根据所述第三控制指令控制所述终端,所述预设操作系统为所述终端中的至少两个操作系统中的一个操作系统;
所述终端确定所述终端的前台操作系统为所述预设操作系统,所述终端根据所述第三控制指令控制所述终端。
其中,当终端中只有一个操作系统时,管理人员在服务器中输入控制信息时,只需在控制信息中添加该控制指令,而无需在控制信息中添加该终端中的该操作系统的系统标识,
由于该终端中只有一个操作系统,因此,该操作系统一直为该终端的前台操作系统,如此,当该终端接收到该控制信息时,该终端就会根据该控制信息携带的该控制指令控制该终端。
然而,当该终端中有多个操作系统时,通常情况下,需要在该控制信息中添加系统标识,这样终端就能确定应该在该终端的前台操作系统为该系统标识对应的操作系统时根据该控制信息携带的该控制指令控制该终端,否则,该终端无法确定应该在该终端的前台操作系统为哪一个操作系统时根据该控制信息携带的该控制指令控制该终端,因此,该终端就不会执行根据该控制指令控制该终端的操作。也即,通常情况下,当该终端中有多个操作系统时,不支持该控制信息中只携带控制指令而不携带系统标识的。
而在本发明实施例中,当该终端中有多个操作系统时,支持该控制信息中只携带控制指令而不携带系统标识,当该控制信息携带控制指令但未携带系统标识时,该终端可以将该控制指令确定为用于在该终端的前台操作系统为预设操作系统时控制该终端的控制指令;该预设操作系统为该终端中的至少两个操作系统中的一个操作系统。也支持该控制信息中同时携带控制指令和系统标识,这样,该终端就会将该控制指令确定为用于在该终端的前台操作系统为该系统标识对应的操作系统时控制该终端的控制指令。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:所述终端接收服务器发送的第一控制信息,包括:
所述终端检测所述终端与所述服务器之间的通信连接是否正常;
如果所述终端与所述服务器之间的通信连接正常,所述终端向所述服务器发送用于获取所述第一控制信息的获取请求;
所述终端接收所述服务器根据所述获取请求返回的所述第一控制信息。
在本发明另一实施例中,由于有时候管理服务器与该终端之间的通信连接会出现异常,且在该通信连接出现异常时管理服务器就无法向该终端发送控制信息,也即,该终端就接收不到控制信息。因此,对于该终端而言,为了能够尽快从管理服务器中得到控制信息,以尽快实现管理人员的目的,该终端可以检测该终端与管理服务器之间的该通信连接是否正常;当该终端与管理服务器之间的该通信连接正常时,该终端也可以向管理服务器发送用于获取控制信息的获取请求,该获取请求还携带该终端的终端标识;当管理服务器接收到该获取请求时,管理服务器可以从该获取请求中提取出该终端标识,再根据该终端 标识在本地存储的对应关系中获取该控制信息与该终端标识之间的对应关系,并获取该对应关系中的该控制信息,然后根据该终端标识向该终端发送该控制信息;终端接收管理服务器根据该获取请求返回的该控制信息。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:所述方法还包括:
所述终端接收所述服务器发送的停止控制信息,所述停止控制信息携带所述第一控制指令和所述第一操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
所述终端删除所述终端中存储的所述第一操作系统的系统标识和所述第一控制指令的对应关系。
在本发明另一实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。这时,管理人员可以在管理服务器中输入该终端的终端标识和包括该控制指令和目标操作系统的系统标识的停止控制信息,然后将该终端标识和该停止控制信息提交给管理服务器,该停止控制信息用于指示:停止在该终端的前台操作系统为目标操作系统时根据该控制指令控制该终端;管理服务器根据该终端标识向该终端发送给停止控制信息。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:
所述第二操作系统为个人操作系统,所述第二控制指令用于指示禁止使用所述终端中的wifi设备;
所述终端根据所述第二控制指令控制所述终端,包括:
所述终端利用所述终端中的所述wifi设备的驱动信息对所述wifi设备下电。
在第一方面,还有如下可选设计;
可选地,所述方法还包括:
所述第二操作系统为办公操作系统,所述第二控制指令用于指示允许使用所述终端中的wifi设备,且使用所述终端的wifi设备时仅能连接预设接入点;
所述终端根据所述第二控制指令控制所述终端,包括:
所述终端利用所述终端中的所述wifi设备的驱动信息对所述wifi设备上电,并利用承载办公操作系统的Container的系统服务中的API设置办公操作系统的wifi接入点标识列表,所述wifi接入点标识列表仅包括所述预设接入点的标识。
根据本发明实施例的第二方面,提供一种终端控制方法,所述方法包括:
代理服务器接收与所述代理服务器通信连接的管理服务器发送的控制信息和终端标识,所述控制信息携带控制指令以及操作系统的系统标识,所述控制指令用于指示对所述终端标识对应的终端执行指定操作,所述操作系统为所述终端中的至少两个操作系统中的一个操作系统;所述控制信息用于指示在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端;
所述代理服务器确定所述代理服务器与所述终端之间的通信连接出现异常,所述代理服务器存储所述控制信息与所述终端标识的对应关系;
等待所述代理服务器与所述终端之间的通信连接正常后,所述代理服务器根据所述终端标识向所述终端发送所述控制信息。
在本发明实施例中,管理服务器无需与每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,从而减少了管理服务器需要建立的通信连接的数量,进而节省了管理服务器的通信资源。
另外,如果没有代理服务器,则管理服务器就要与每一个终端之间分别建立通信连接,在管理服务器需要向某一终端发送控制信息时,管理服务器需要检测管理服务器与该终端之间的通信连接是否正常,在管理服务器与该终端之间的通信连接正常时才能向该终端发送该控制信息;在管理服务器需要向多个终端分别发送控制信息时,管理服务器需要检测管理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,从而会增加管理服务器的系统压力。而在本发明实施例中,管理服务器无需每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,代理服务器与每一个终端之间建立通信连接,因此,在管理服务器需要向多个终端分别发送控制信息时,管理服务器只需关心管理服务器与代理服务器之间的通信连接是否正常,管理服务器无需关心代理服务器与该多个终端中的每一个终端之间的通信连接是否异常,从而无需检测代理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,进而避免增加管理服务器的系统压力。
以及,在本发明实施例中,有可能每一个终端各自所支持的通信协议都不一样,因此,如果没有代理服务器,则管理服务器需要同时支持每一个终端所支持的通信协议,如此管理服务器才能与每一个终端之间通信,但是这样会增加管理服务器的系统复杂度。而在本发明实施例中,管理服务器只需与代理服务器之间通信,而无需与每一个终端之间都通信,管理服务器只需支持代理服务器所支持的通信协议即可,无需支持每一个终端所支持的通信协议,从而降低了管理服务器的系统复杂度。
其次,在本发明实施例中,当需要分别控制多个终端时,无需向每一个终端分别发送控制信息,只需向代理服务器发送控制信息即可,从而实现了控制入口的统一。
在本发明实施例中,有时候代理服务器与该终端之间的通信连接会出现异常,例如该通信连接暂时断开,或,该终端暂时无权限使用该通信连接等。当代理服务器与该终端之间的通信连接出现异常时,代理服务器就无法向该终端发送该控制信息。
因此,当代理服务器接收到管理服务器发送的该控制信息和该终端标识时,代理服务器需要检测代理服务器与该终端之间的通信连接是否出现异常;如果该通信连接未出现异常,则代理服务器此时可以根据该终端标识向该终端发送该控制信息。如果该通信连接出现异常,则代理服务器此时就无法根据该终端标识向该终端发送该控制信息。然而,虽然此时代理服务器无法根据该终端标识向终端发送该控制信息,为了之后在该通信连接正常时代理服务器能够根据该终端标识向该终端发送该控制信息,代理服务器可以在本地存储该控制信息与该终端标识之间的对应关系,之后,当代理服务器检测到代理服务器与该终端之间的通信连接正常时,代理服务器就从该对应关系获取该控制信息与该终端标识,并根据该终端标识向该终端发送控制信息,如此提高了向该终端发送控制信息的可靠性。
在第二方面,还有如下可选设计;
可选地,所述方法还包括:
所述代理服务器接收所述管理服务器发送的停止控制信息和所述终端的终端标识,所述停止控制信息携带所述控制指令和所述操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端,
所述代理服务器根据所述终端标识向所述终端发送所述停止控制信息;以使所述终端删除所述终端中存储的所述操作系统的系统标识和所述控制指令的对应关系。
进一步地,在本发明实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。
如果管理人员不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端,则管理人员可以在管理服务器中输入该终端的终端标识和停止控制信息,并将该控制指令和目标操作系统的系统标识添加在该停止控制信息中,然后将该终端标识和该停止控制信息提交给管理服务器,该停止控制信息用于指示:停止通过该控制指令在该终端的前台操作系统为目标操作系统时控制该终端;管理服务器向代理服务器发送该终端标识该停止控制信息;当代理服务器接收到管理服务器发送的该终端标识和该停止控制信息时,根据该终端标识向该终端发送给停止控制信息;当该终端接收到代理服务器发送的该停止控制信息时,从该停止控制信息中提取出目标操作系统的系统标识和该控制指令,在本地查找目标操作系统的系统标识与该控制指令的对应关系,删除该对应关系。
这样,之后当该终端的前台操作系统变更为目标操作系统时,该终端就获取不到与目标操作系统的系统标识相对应的该控制指令,因此,该终端就不会再根据该控制指令控制终端。
在第二方面,还有如下可选设计;
可选地,所述代理服务器根据所述终端标识向所述终端发送所述控制信息,包括:
所述代理服务器确定所述控制信息的信息格式不为所述终端支持的信息格式,所述代理服务器将所述控制信息的信息格式转换为所述终端支持的信息格式;
所述代理服务器根据所述终端标识向所述终端发送已转换信息格式的所述控制信息。
在本发明中,管理服务器中向代理服务器发送的该控制信息的信息格式可能与该终端支持的信息格式不一致,当管理服务器中向代理服务器发送的该控制信息的信息格式与该终端支持的信息格式不一致时,该终端在本地就无法识别该控制信息,也即无法识别该控制信息中的控制指令和系统标识,进而进而就无法执行该控制指令,也就无法实现在该终端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的,因此,当代理服务器接收到管理服务器发送的该控制信息时,需要检测该控制信息的信息格式是否为该终端支持的信息格式;当该控制信息的信息格式不为该终端支持的信息格式时,代理服务器将该控制信息的信息格式转化为该终端支持的信息格式;
之后代理服务器根据该终端标识向该终端发送转换了信息格式的控制信息,该终端在本地可以执行该转换了信息格式的控制信息中的控制指令,如此可以实现在该终端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的。
根据本发明实施例的第三方面,提供一种终端,该终端具有实现上述第一方面的方法设计中终端行为的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。
在第三方面,还有如下可选设计;
可选地,终端的结构中包括接收单元和处理单元,所述接收单元用于支持终端与服务器之间的通信,接收第一方面的上述方法中所涉及的信息或者指令,所述处理单元被配置为执行终端执行上述方法中相应的功能,所述终端还可以包括存储器,所述存储器用于与所述处理单元耦合,其包括终端必要的程序指令和数据。
根据本发明实施例的第四方面,提供一种代理服务器,该代理服务器具有实现上述第二方面的方法设计中代理服务器行为的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。
在第四方面,还有如下可选设计;
可选地,代理服务器的结构中包括接收单元、处理单元和发送单元,所述接收单元用于支持代理服务器与管理服务器之间的通信,接收第二方面的上述方法中所涉及的信息或者指令,所述发送单元用于支持代理服务器与终端之间的通信,向终端发送上述方法中所涉及的信息或者指令,所述处理单元被配置为执行代理服务器执行上述方法中相应的功能,所述代理服务器还可以包括存储器,所述存储器用于与所述处理单元耦合,其包括代理服务器必要的程序指令和数据。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明实施例。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明实施例的原理。
图1是根据一示例性实施例示出的一种终端控制系统的示意图;
图2是根据一示例性实施例示出的一种终端控制方法的流程图;
图3是根据一示例性实施例示出的一种终端控制系统的示意图;
图4是根据一示例性实施例示出的一种终端控制方法的流程图;
图5是根据一示例性实施例示出的一种终端控制方法的流程图;
图6是根据一示例性实施例示出的一种终端控制方法的流程图;
图7是根据一示例性实施例示出的一种终端控制方法的流程图;
图8是根据一示例性实施例示出的一种终端控制方法的流程图;
图9是根据一示例性实施例示出的一种终端的结构示意图;
图10是根据一示例性实施例示出的一种代理服务器的结构示意图;
图11是根据一示例性实施例示出的一种终端的结构示意图;
图12是根据一示例性实施例示出的一种代理服务器的结构示意图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明实施例的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种终端控制系统的示意图,参见图1,该系统包括管理服务器1和至少一个终端2,管理服务器分别与每一个终端2通信连接,例如,通过4G(the 4th Generation mobile communication,第四代移动通信技术)连接或者通过wifi(wireless-fidelity,无线保真)连接等。终端2可以是个人计算机,例如手机、平板电脑、笔记本电脑或台式电脑等,也可以是其他具有计算能力的计算设备。管理服务 器与任意一个终端2之间也可以实现数据交互。
图2是根据一示例性实施例示出的一种终端控制方法的流程图,如图2所示,该方法应用于图1所示的终端控制系统中,该方法包括以下步骤。
在步骤S101中,管理服务器向终端发送控制信息;该控制信息携带控制指令以及目标操作系统的系统标识;该控制指令用于指示对终端执行指定操作,目标操作系统为终端中的至少两个操作系统中的一个操作系统,该控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端。
本发明实施例中的该终端为图1所示的任意一个终端2。
在本发明实施例中,终端中安装有至少两个操作系统,每个操作系统都有一个系统标识,且每个操作系统的系统标识都不相同。
在该终端安装有至少两个操作系统的情况下,有一个操作系统为前台操作系统,其他操作系统为后台操作系统。无论是前台操作系统,还是后台操作系统,都占用终端的计算资源和存储资源,可以运行多种服务。但是前台操作系统和后台操作系统在显示资源的占用方面有差异,前台操作系统可以将显示卡转用内存中的内容输出到终端的屏幕上,并展现给用户;而后台操作系统无法输出内容到屏幕上。
在本发明实施例中,在该终端安装有至少两个操作系统的情况下,在任意时刻终端的屏幕上只会显示一个操作系统的操作界面,而不是同时显示多个操作系统的操作界面。因此,在本发明实施例中,在任意时刻,终端的前台操作系统是指当前占用终端的显示资源的操作系统。也可以说,前台操作系统是终端的屏幕上当前显示的操作界面对应的操作系统。从终端用户的角度看,终端用户可以通过终端的屏幕与前台操作系统进行交互,后台操作系统的操作界面对终端用户不可见。终端用户可以通过终端上的特殊按键,或者在屏幕进行特殊轨迹的滑动等操作来切换前台操作系统。终端的硬件在接收到上述操作触发的事件时,对前台操作系统进行切换。
当终端只安装有一个操作系统的情况下,前台操作系统即为终端中唯一的操作系统。
例如,终端中安装有两个操作系统,分别为办公操作系统和个人操作系统,当该终端的使用者利用该终端办公时,可以将办公操作系统设置为该终端的前台操作系统,终端的屏幕上就会显示办公操作系统的操作界面,该终端的使用者就可以在办公操作系统上办公,此时个人操作系统为后台操作系统。当该终端的使用者利用该终端处理与办公无关的私人业务时,可以将个人操作系统设置为该终端的前台操作系统,此时终端的屏幕上就会显示个人操作系统的操作界面,该终端的使用者就可以在个人操作系统上处理与办公无关的私人业务,此时办公操作系统为后台操作系统。
在本发明实施例中,在任意时刻,如果管理人员需要在终端的前台操作系统为目标操作系统时使得终端能够根据该控制指令控制该终端,则无论此时终端的前台操作系统是否为目标操作系统,管理人员都可以通过管理服务器向该终端发送控制信息;当该终端接收到控制信息时,该终端就可以从控制信息中提取出该控制指令和目标操作系统的系统标识,并在终端的前台操作系统为目标操作系统时根据该控制指令控制该终端,如此实现管理人员的目的。
其中,管理人员可以在管理服务器中输入包括该控制指令和目标操作系统的系统标识的控制信息。
其次,由于与管理服务器通信连接的终端有多个,因此,为了使得管理服务器能够明 确该控制信息是作用于该终端的控制信息,管理人员在管理服务器输入该控制信息的同时,还需要在管理服务器中输入该终端的终端标识,并将该控制信息和该终端标识一并提交给管理服务器。之后管理服务器就会根据该终端标识向该终端发送该控制信息。
在本发明实施例中,在与管理服务器分别连接的所有终端中,不同的终端的终端标识不同,终端标识可以为终端的IMSI(International Mobile Subscriber Identification Number,国际移动用户识别码)或者IMEI(International Mobile Equipment Identity,国际移动设备身份码)等等,本发明实施例对此不加以限定。
其中,在本发明实施例中,该控制指令可以为控制该终端中的wifi设备下电的消息,或者为:控制该终端中的wifi设备上电并当该终端在连接接入点时只能连接预设接入点的消息。
在本发明实施例中,管理服务器与该终端之间可以通过TCP/IP协议(Transmission Control Protocol/Internet Protocol,网络通讯协议)进行数据交互,因此,在本步骤中,管理服务器可以通过TCP/IP协议向该终端发送该控制信息。具体地,终端接入网络后,根据预先存储的管理服务器的IP地址和端口,向管理服务器发起TCP长连接请求,管理服务器接收到TCP长连接请求后与终端建立TCP连接,通过建立的TCP连接向终端发送该控制信息。
在本发明实施例中,有时候管理服务器与该终端之间的通信连接会出现异常,例如该通信连接暂时断开,或,该终端暂时无权限使用该通信连接等。当管理服务器与该终端之间的通信连接出现异常时,管理服务器就无法向该终端发送该控制信息。
因此,当管理服务器接收到管理人员提交的控制信息和该终端标识时,管理服务器需要检测管理服务器与该终端之间的通信连接是否出现异常;如果该通信连接未出现异常,则管理服务器此时可以根据该终端标识向该终端发送该控制信息。如果该通信连接出现异常,则管理服务器此时就无法根据该终端标识向该终端发送控制信息。然而,虽然此时管理服务器无法根据该终端标识向终端发送该控制信息,为了之后在该通信连接正常时管理服务器能够根据该终端标识向该终端发送该控制信息,管理服务器可以在本地存储该控制信息与该终端标识之间的对应关系,之后,当管理服务器检测到管理服务器与该终端之间的通信连接正常时,管理服务器就可以获取该对应关系中的该控制信息与该终端标识,并根据该终端标识向该终端发送该控制信息,如此提高了向该终端发送控制信息的可靠性。
进一步地,在管理服务器根据该终端标识向该终端发送该控制信息之后,为了节省管理服务器本地的存储空间,管理服务器就可以从本地删除该控制信息与该终端标识之间的对应关系。
在步骤S102中,该终端接收管理服务器发送的该控制信息。
在本发明另一实施例中,由于有时候管理服务器与该终端之间的通信连接会出现异常,且在该通信连接出现异常时管理服务器就无法向该终端发送控制信息,也即,该终端就接收不到控制信息。因此,对于该终端而言,为了能够尽快从管理服务器中得到控制信息,以尽快实现管理人员的目的,该终端可以检测该终端与管理服务器之间的该通信连接是否正常;当该终端与管理服务器之间的该通信连接正常时,该终端也可以向管理服务器发送用于获取控制信息的获取请求,该获取请求还携带该终端的终端标识;当管理服务器接收到该获取请求时,管理服务器可以从该获取请求中提取出该终端标识,再根据该终端标识在本地存储的对应关系中获取该控制信息与该终端标识之间的对应关系,并获取该对 应关系中的该控制信息,然后根据该终端标识向该终端发送该控制信息;终端接收管理服务器根据该获取请求返回的该控制信息。
在步骤S103中,该终端根据目标操作系统的系统标识检测该终端的前台操作系统是否为目标操作系统。
当该终端接收到该控制信息时,终端可以从该控制信息中提取出目标操作系统的系统标识,然后获取该终端的前台操作系统的系统标识,再比较该终端的前台操作系统的系统标识与目标操作系统的系统标识是否相同,当该终端的前台操作系统的系统标识与目标操作系统的系统标识相同时,确定该终端的前台操作系统为目标操作系统,然后执行步骤S104;当该终端的前台操作系统的系统标识与目标操作系统的系统标识不同时,确定该终端的前台操作系统不为目标操作系统,然后执行步骤S105。
其中,在本发明实施例中,该终端可以在本地缓存中分配一个前台操作系统标识字段,前台操作系统标识字段中用于存储终端的前台操作系统的系统标识;当终端在屏幕上显示某一个操作系统的操作界面时,终端就会将该某一操作系统的系统标识存储在前台操作系统标识字段中,当终端之后将屏幕上显示的操作界面从该某一操作系统的操作界面变更为另一操作系统的操作界面,终端就会从前台操作系统标识字段中删除该某一操作系统的系统标识,并将该另一操作系统的系统标识存储在前台操作系统标识字段中。也即,在本发明实施例中,在任意时刻,前台操作系统标识字段中存储的系统标识对应的操作系统即为终端此时的前台操作系统。
因此,在本步骤中,该终端可以获取本地缓存中的前台操作系统标识字段中存储的系统标识,并作为该终端的前台操作系统的系统标识。
在步骤S104中,如果该终端确定出该终端的前台操作系统不为目标操作系统,该终端存储目标操作系统的系统标识与该控制指令的对应关系,等待该终端的前台操作系统变更为目标操作系统后,终端再根据该对应关系中的该控制指令控制该终端。
在本发明实施例中,由于控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端;因此,当该终端的前台操作系统不为目标操作系统时,终端就不能根据该控制指令控制该终端。
然而,终端的使用者之后在使用终端的过程中,可能会将终端的前台操作系统变更为目标操作系统,为了在终端的前台操作系统一旦变更为目标操作系统时终端能够及时根据该控制指令控制该终端,如果该终端根据目标操作系统的系统标识确定出该终端的前台操作系统不为目标操作系统,该终端可以存储目标操作系统的系统标识与该控制指令的对应关系,如此,在该终端的前台操作系统一旦变更为目标操作系统时,该终端可以获取该对应关系中的该控制指令,并根据该控制指令控制该终端,从而实现管理人员的目的。
在步骤S105中,如果该终端确定出该终端的前台操作系统为目标操作系统,该终端根据该控制指令控制该终端,并存储目标操作系统的系统标识与该控制指令的对应关系。
在本发明实施例中,由于控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端;因此,当该终端的前台操作系统为目标操作系统时,该终端就可以根据该控制指令控制该终端,如此实现管理人员的目的。
在本发明实施例中,该控制指令包括很多种,例如用于更新该终端中的硬件设备的工作状态的指令,用于更新目标操作系统的系统策略的指令,以及用于更新目标操作系统中的数据的指令等。
其中,该终端中的硬件设备包括终端的音响、蓝牙设备、wifi设备以及麦克风等,该终端中安装了该终端中的每一个硬件设备的驱动信息,驱动信息用于控制硬件设备的工作状态,例如禁止硬件设备工作或者允许硬件设备工作等。
该终端事先可以以Linux的Namespace(命名空间)机制为基础,在Linux的内核中创建多个Container(容器),且为每一个Container分配独立的Namespace。
在创建的多个Container中,有一个Container为Root Container(根容器),Root Container中至少包括MDMController(Mobile Device Management controller,移动设备管理控制器)和系统服务。
其他Container均为用于承载操作系统的Container,每一个用于承载操作系统的Container上都可以运行一个操作系统,Container的命名空间为在Container上运行的操作系统提供必要的内核支持。用于运行操作系统中的每一个Container中至少包括MDM Proxy(移动设备管理代理)和API(应用程序开发接口)。
其中,Root Container中的MDMController用于接收管理服务器发送给该终端的控制信息。然后从控制信息中提取出该控制指令和目标操作系统的系统标识。在该终端的前台操作系统为目标操作系统时,如果该控制指令为用于指示更新该终端中的硬件设备的工作状态的指令,则MDMController可以利用API调用内核中的该硬件设备的驱动信息,该API为Root Container中的系统服务中的API。然后根据该控制指令修改该硬件设备的驱动信息,以实现更新该硬件设备的设备工作状态。
在本发明实施例中,硬件设备的驱动信息中包含有适配层,适配层中包括有校验字段,校验字段中用于存储Container的名称。其中,仅有校验字段中存储的Container的名称对应的Container能够修改该硬件设备的驱动信息,而未在校验字段中存储的Container的名称对应的Container无法修改该硬件设备的驱动信息。如此避免了Root Container和其他Container同时都对硬件设备的驱动进行操作造成冲突。
如果该控制指令为用于指示更新目标操作系统的系统策略的指令,则MDMController向承载目标操作系统的Container中的MDM Proxy发送该控制指令,MDM Proxy接收该控制指令,并利用API修改目标操作系统的系统,该API为承载目标操作系统的Container中的系统服务中的的API。
如果该控制指令为用于指示更新目标操作系统中的数据的指令,则MDMController向承载目标操作系统的Container中的MDM Proxy发送该控制指令,MDM Proxy接收该控制指令,并利用API修改目标操作系统中的数据,该API为承载目标操作系统的Container中的系统服务中的API。
本发明以一个实例为例进行举例说明,但不作为对本发明保护范围的限制。例如,该终端中的操作系统包括办公操作系统和个人操作系统。
在本发明一个实施例中,目标操作系统为个人操作系统,该控制指令用于指示禁止使用该终端中的wifi设备;此时,该控制指令为用于指示更新该终端中的硬件设备的工作状态的指令。
因此,当该终端的前台操作系统为个人操作系统时,该终端可以利用该终端中的该wifi设备的驱动信息对该wifi设备下电。
具体地,Root Container中的MDMController调用Root Container中的wifi服务中的API调用内核中的该wifi设备的驱动信息,然后根据该控制指令修改该wifi设备的驱 动信息,以使该wifi设备下电,在该wifi设备下电之后,终端的使用者就无法使用终端中的该wifi设备。
在本发明另一实施例中,目标操作系统为办公操作系统,该控制指令用于指示允许使用该终端中的wifi设备,且使用该终端的wifi设备时仅能连接预设接入点;此时该控制指令包括两个子指令,分别为第一子指令和第二子指令,第一子指令为用于指示更新该终端中的硬件设备的工作状态的指令,以及,第二子指令为用于指示更新该目标操作系统的系统策略的指令。
因此,当该终端的前台操作系统为办公操作系统时,该终端利用该终端中的该wifi设备的驱动信息对该wifi设备上电,并利用API设置办公操作系统的wifi接入点标识列表,该API为承载办公操作系统的Container中的系统服务中的API,该wifi接入点标识列表仅包括预设接入点的标识。
具体地,Root Container中的MDMController利用API调用内核中的该wifi设备的驱动信息,该API为Root Container中的wifi服务中的API,然后根据第一子指令修改该wifi设备的驱动信息,以使该wifi设备下电,在该wifi设备下电之后,终端的使用者就无法使用终端中的该wifi设备。
以及,MDMController向承载办公操作系统的Container中的MDM Proxy发送第二子指令,MDM Proxy接收第二子指令,调用API设置wifi接入点标识列表,该API为承载办公操作系统的Container中的系统服务中的API。如此,当该终端的前台操作系统为办公操作系统时,终端的使用者利用该wifi设备连接接入点时,终端仅仅显示wifi接入点标识列表,如此终端利用该wifi设备只能连接预设接入点。
在本发明另一实施例中,由于该终端中有至少两个操作系统,该终端的使用者在使用终端时,可能会变更终端的前台操作系统,例如该终端使用者将终端的前台操作系统由个人操作系统变更至办公操作系统,或者,将该终端的前台操作系统由办公操作系统变更至个人操作系统。其中,在该终端的前台操作系统不同时,管理人员需要对该终端控制的控制方式不同,也即,不同的前台操作系统对应的控制指令不同,因此,一旦该终端的前台操作系统发生变化,就需要变更对该终端控制的控制方式,也即,需要换一种控制指令控制终端。
如果终端的使用者之后在使用该终端的过程中,将该终端的前台操作系统从目标操作系统变更为其他操作系统,又将终端的前台操作系统从其他操作系统再次变更为目标操作系统,为了在该终端的前台操作系统一旦从其他操作系统变更为目标操作系统时能够及时根据该控制指令再次控制该终端,在本步骤中,当该终端根据该控制指令控制终端之后,进一步地,该终端还需要存储目标操作系统的系统标识与该控制指令的对应关系。如此,在该终端的前台操作系统一旦从其他操作系统变更为目标操作系统时,该终端可以根据目标操作系统的系统标识获取该对应关系中的该控制指令,并根据该控制指令再次控制该终端,从而实现管理人员的目的。
在本发明实施例中,对于与管理服务器通信连接的任意一个终端,该终端可能同时会接收到管理服务器分别发送的多个控制信息,每一个控制信息中携带的控制指令分别用于在该终端的前台操作系统为不同操作系统时控制该终端;也即,该终端可能会同时接收到至少两个控制指令,且该至少两个控制指令分别用于在该终端的前台操作系统为不同的操作系统时控制该终端的控制指令。然而,在该终端接收到至少两个控制指令时,在该终端 中的至少两个操作系统中,只有一个操作系统为该终端的前台操作系统,而其他操作系统均为该终端的后台操作系统。
因此,对于该终端接收到管理服务器发送的任意一个控制信息,假设该控制信息中携带的控制指令为用于在该终端的前台操作系统为目标操作系统时控制该终端的控制指令;目标操作系统为该终端中的至少两个操作系统中的一个操作系统,当该终端的前台操作系统不为目标操作系统时,该终端并不根据该控制指令控制该终端,其次,该终端可以存储目标操作系统的系统标识与该控制指令的对应关系。以使之后在终端的前台操作系统变更为目标操作系统时,该终端还可以根据该对应关系获取该控制指令,并根据该控制指令控制该终端,从而实现管理人员需要在该终端的前台系统为目标操作系统时控制该终端的目的,进而实现分别在多个不同的操作系统下对终端实行精准的差异化管控的目的。
其中,由于该终端中有至少两个操作系统,该终端的使用者在使用该终端时,可能会变更该终端的前台操作系统,例如,该终端使用者将终端的前台操作系统由个人操作系统变更至办公操作系统,或者,将该终端的前台操作系统由办公操作系统变更至个人操作系统。
在本发明实施例中,在该终端的前台操作系统不同时,管理人员对该终端控制的控制方式不同,也即,不同的前台操作系统对应的控制指令不同,因此,一旦该终端的前台操作系统发生变化,就需要变更对该终端控制的控制方式,也即,需要换一种控制指令控制终端。
为了在该终端的前台操作系统一旦发生变化时,终端能够及时根据与变化后的前台操作系统的系统标识相对应的控制指令控制该终端,本发明实施例中还包括如下流程:
在步骤S106中,该终端监听该终端的前台操作系统是否发生变化。
在本发明实施例中,对于该终端中的至少两个操作系统中的任意一个操作系统,当该操作系统为该终端的前台操作系统时,该操作系统的操作界面上会显示一个前台操作系统变更接口,该终端的使用者可以通过该前台操作系统变更接口变更该终端的前台操作系统。例如,该前台操作系统变更接口可以为一个按钮,当用户点击该按钮时,该操作系统的操作界面上会显示该终端中的至少两个操作系统中的所有操作系统的系统标识,用户可以从显示的所有操作系统的系统标识中选择一个系统标识,然后该终端就会将用户选择该系统标识对应的操作系统变更为终端的前台操作系统。进一步地,该终端还可以将本地的缓存中的前台操作系统标识字段中存储的系统标识替换为用户选择的该系统标识。例如,终端删除本地的缓存中的前台操作系统标识字段中当前存储的系统标识,并将用户选择的该系统标识存储前台操作系统标识字段中。对于终端中的其它每一个操作系统,同样如此。
因此,在本步骤中,终端可以检测终端的缓存中的前台操作系统标识字段中是否发生替换事件,替换事件包括具有先后顺序的删除系统标识的事件和存储系统标识的事件,当前台操作系统标识字段中发生替换事件时,确定该终端的前台操作系统发生变化,当前台操作系统标识字段中未发生替换事件时,确定该终端的前台操作系统未发生变化。
当该终端的前台操作系统发生变化时,在步骤S107中,该终端从存储的各个操作系统标识和控制指令的对应关系中,查找包括变化后的前台操作系统的系统标识的对应关系,并进一步获取查找到的对应关系中的控制指令。
在本发明实施例中,当该终端的前台操作系统发生变化时,该终端可以获取变化后的前台操作系统的系统标识,例如获取本地的缓存中的前台操作系统标识字段当前存储的系 统标识,并作为终端的变化后的前台操作系统的系统标识,然后该终端从存储的各个操作系统标识和控制指令的对应关系中,查找包括变化后的前台操作系统的系统标识的对应关系,并进一步获取查找到的对应关系中的控制指令。
其中,当该终端的前台操作系统未发生变化时,返回步骤S106。
在步骤S108中,该终端根据该获取的控制指令控制该终端。
进一步地,在本发明另一实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。这时,管理人员可以在管理服务器中输入该终端的终端标识和包括该控制指令和目标操作系统的系统标识的停止控制信息,然后将该终端标识和该停止控制信息提交给管理服务器,该停止控制信息用于指示:停止在该终端的前台操作系统为目标操作系统时根据该控制指令控制该终端;管理服务器根据该终端标识向该终端发送给停止控制信息。
该终端接收管理服务器发送的停止控制信息,从停止控制信息中提取出目标操作系统的系统标识和该控制指令,删除终端中存储的目标操作系统的系统标识和该控制指令的对应关系。
这样,之后当该终端的前台操作系统变更为目标操作系统时,该终端就无法根据该对应关系获取到该控制指令,因此,该终端就不会在终端的前台操作系统为目标操作系统时再根据该控制指令控制终端。
图3是根据一示例性实施例示出的一种终端控制系统的示意图,参见图3,该系统包括管理服务器1、代理服务器2和至少一个终端3,管理服务器1与代理服务器2通信连接,代理服务器2分别与每一个终端3通信连接,例如,通过4G(the 4th Generation mobile communication,第四代移动通信技术)连接或者通过wifi(wireless-fidelity,无线保真)连接等。终端3可以是个人计算机,例如手机、平板电脑、笔记本电脑或台式电脑等,也可以是其他具有计算能力的计算设备。管理服务器1与代理服务器2之间可以实现数据交互,以及代理服务器2与任意一个终端3之间也可以实现数据交互。
图4是根据一示例性实施例示出的一种终端控制方法的流程图,如图4所示,该方法应用于图3所示的终端控制系统中,该方法包括以下步骤。
在步骤S201中,管理服务器向代理服务器发送控制信息和终端标识;该控制信息携带控制指令以及目标操作系统的系统标识;该控制指令用于指示对终端执行指定操作,目标操作系统为终端中的至少两个操作系统中的一个操作系统,该控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端。
本发明实施例中的该终端为图3所示的任意一个终端3。
在本发明实施例中,终端中安装有至少两个操作系统,每个操作系统都有一个系统标识,且每个操作系统的系统标识都不相同。
在该终端安装有至少两个操作系统的情况下,有一个操作系统为前台操作系统,其他操作系统为后台操作系统。无论是前台操作系统,还是后台操作系统,都占用终端的计算资源和存储资源,可以运行多种服务。但是前台操作系统和后台操作系统在显示资源的占用方面有差异,前台操作系统可以将显示卡转用内存中的内容输出到终端的屏幕上,并展现给用户;而后台操作系统无法输出内容到屏幕上。
在本发明实施例中,在该终端安装有至少两个操作系统的情况下,在任意时刻终端的 屏幕上只会显示一个操作系统的操作界面,而不是同时显示多个操作系统的操作界面。因此,在本发明实施例中,在任意时刻,终端的前台操作系统是指当前占用终端的显示资源的操作系统。也可以说,前台操作系统是终端的屏幕上当前显示的操作界面对应的操作系统。从终端用户的角度看,终端用户可以通过终端的屏幕与前台操作系统进行交互,后台操作系统的的操作界面对终端用户不可见。终端用户可以通过终端上的特殊按键,或者在屏幕进行特殊轨迹的滑动等操作来切换前台操作系统。终端的硬件来接收到上述操作触发的事件时,对前台操作系统进行切换。
当终端只安装有一个操作系统的情况下,前台操作系统即为终端中唯一的操作系统。
例如,终端中安装有两个操作系统,分别为办公操作系统和个人操作系统,当该终端的使用者利用该终端办公时,可以将办公操作系统设置为该终端的前台操作系统,终端的屏幕上就会显示办公操作系统的操作界面,该终端的使用者就可以在办公操作系统上办公,此时个人操作系统为后台操作系统。当该终端的使用者利用该终端处理与办公无关的私人业务时,可以将个人操作系统设置为该终端的前台操作系统,此时终端的屏幕上就会显示个人操作系统的操作界面,该终端的使用者就可以在个人操作系统上处理与办公无关的私人业务,此时办公操作系统为后台操作系统。
在本发明实施例中,在任意时刻,如果管理人员需要在终端的前台操作系统为目标操作系统时使得终端能够根据该控制指令控制该终端,则无论此时终端的前台操作系统是否为目标操作系统,管理人员都可以通过管理服务器和代理服务器向该终端发送控制信息;当该终端接收到控制信息时,该终端就可以从控制信息中提取出该控制指令和目标操作系统的系统标识,并在终端的前台操作系统为目标操作系统时根据该控制指令控制该终端,如此实现管理人员的目的。
其中,管理人员可以在管理服务器中输入包括该控制指令和目标操作系统的系统标识的控制信息。
其次,由于与管理服务器通信连接的终端有多个,因此,为了使得管理服务器能够明确控制信息是作用于该终端的控制信息,管理人员在管理服务器输入控制信息的同时,还需要在管理服务器中输入该终端的终端标识,并将控制信息和该终端标识一并提交给管理服务器;之后管理服务器就会向代理服务器发送该控制信息和该终端标识,以使代理服务器可以根据该终端标识向该终端发送该控制信息。
在本发明实施例中,在与代理服务器分别连接的所有终端中,不同的终端的终端标识不同,终端标识可以为终端的IMSI(International Mobile Subscriber Identification Number,国际移动用户识别码)或者IMEI(International Mobile Equipment Identity,国际移动设备身份码)等等,本发明实施例对此不加以限定。
其中,在本发明实施例中,该控制指令可以为控制该终端中的wifi设备下电的消息,或者为:控制该终端中的wifi设备上电并当该终端在连接接入点时只能连接预设接入点的消息。
在本发明实施例中,管理服务器中设置有基于Https(Hyper Text Transfer Protocol over Secure Socket Layer)协议的Restful接口,代理服务器中也设置有基于Https协议的Restful接口,因此,管理服务器与代理服务器之间的可以通过https协议进行数据交互,在本步骤中,管理服务器可以通过https协议向代理服务器发送该控制信息和该终端标识。
其中,管理服务器可以生成一个消息,该消息中包括终端标识字段、系统标识字段、指令类型字段、控制对象字段以及控制状态字段等。
管理服务器可以将该终端标识添加至该消息的终端标识字段中。将目标系统的系统标识添加在该消息中的系统标识字段中。将该控制指令的指令类型添加在该消息中的指令类型字段中,该控制指令包括三种类型的指令:用于指示更新该终端中的硬件设备的工作状态的指令,用于指示更新目标操作系统的系统策略的指令以及用于指示更新目标操作系统中的数据的指令。将该控制指令作用的对象添加至该消息中的控制对象字段。以及将需要该对象达到的目标状态添加至该消息中的控制状态字段中。之后,再向代理服务器发送该消息。
在步骤S202中,代理服务器接收管理服务器发送的该控制信息和该终端标识。
在步骤S203中,代理服务器根据该终端标识向该终端发送该控制信息。
在本发明实施例中,有时候代理服务器与该终端之间的通信连接会出现异常,例如该通信连接暂时断开,或,该终端暂时无权限使用该通信连接等。当代理服务器与该终端之间的通信连接出现异常时,代理服务器就无法向该终端发送该控制信息。
因此,当代理服务器接收到管理服务器发送的该控制信息和该终端标识时,代理服务器需要检测代理服务器与该终端之间的通信连接是否出现异常;如果该通信连接未出现异常,则代理服务器此时可以根据该终端标识向该终端发送该控制信息。如果该通信连接出现异常,则代理服务器此时就无法根据该终端标识向该终端发送该控制信息。然而,虽然此时代理服务器无法根据该终端标识向终端发送该控制信息,为了之后在该通信连接正常时代理服务器能够根据该终端标识向该终端发送该控制信息,代理服务器可以在本地存储该控制信息与该终端标识之间的对应关系,之后,当代理服务器检测到代理服务器与该终端之间的通信连接正常时,代理服务器就从该对应关系获取该控制信息与该终端标识,并根据该终端标识向该终端发送控制信息,如此提高了向该终端发送控制信息的可靠性。
进一步地,在代理服务器根据该终端标识向该终端发送该控制信息之后,为了节省代理服务器本地的存储空间,代理服务器就可以从本地删除该控制信息与该终端标识之间的对应关系。
在本发明实施例中,代理服务器与该终端之间的可以通过TCP/IP协议(Transmission Control Protocol/Internet Protocol,网络通讯协议)进行数据交互,因此,在本步骤中,代理服务器可以通过TCP/IP协议向该终端发送该控制信息。具体地,终端接入网络后,根据预先存储的代理服务器的IP地址和端口,向代理服务器发起TCP长连接请求,代理服务器接收到TCP长连接请求后与终端建立TCP连接,通过建立的TCP连接向终端发送该控制信息。
在本发明实施例中,管理服务器无需与每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,从而减少了管理服务器需要建立的通信连接的数量,进而节省了管理服务器的通信资源。
另外,如果没有代理服务器,则管理服务器就要与每一个终端之间分别建立通信连接,在管理服务器需要向某一终端发送控制信息时,管理服务器需要检测管理服务器与该终端之间的通信连接是否正常,在管理服务器与该终端之间的通信连接正常时才能向该终端发送该控制信息;在管理服务器需要向多个终端分别发送控制信息时,管理服务器需要检测管理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,从而会增加管理 服务器的系统压力。而在本发明实施例中,管理服务器无需每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,代理服务器与每一个终端之间建立通信连接,因此,在管理服务器需要向多个终端分别发送控制信息时,管理服务器只需关心管理服务器与代理服务器之间的通信连接是否正常,管理服务器无需关心代理服务器与该多个终端中的每一个终端之间的通信连接是否异常,从而无需检测代理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,进而避免增加管理服务器的系统压力。
以及,在本发明实施例中,有可能每一个终端各自所支持的通信协议都不一样,因此,如果没有代理服务器,则管理服务器需要同时支持每一个终端所支持的通信协议,如此管理服务器才能与每一个终端之间通信,但是这样会增加管理服务器的系统复杂度。而在本发明实施例中,管理服务器只需与代理服务器之间通信,而无需与每一个终端之间都通信,管理服务器只需支持代理服务器所支持的通信协议即可,无需支持每一个终端所支持的通信协议,从而降低了管理服务器的系统复杂度。
其次,在本发明实施例中,当需要分别控制多个终端时,无需向每一个终端分别发送控制信息,只需向代理服务器发送控制信息即可,从而实现了控制入口的统一。
在步骤S204中,该终端接收代理服务器发送的该控制信息。
其中,在终端接收到代理服务器发送的该控制信息之后,终端根据该控制信息控制终端的过程可以参见如图2所示的实施例,在此不做详述。
图5是根据一示例性实施例示出的一种终端控制方法的流程图,如图5所示,该方法应用于图1或图3所示的终端中,该方法包括以下步骤。
在步骤S301中,终端接收服务器发送的该控制信息;该控制信息携带控制指令以及目标操作系统的系统标识;该控制指令用于指示对终端执行指定操作,目标操作系统为终端中的至少两个操作系统中的一个操作系统,该控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端。
在步骤S302中,该终端根据目标操作系统的系统标识检测该终端的前台操作系统是否为目标操作系统。
在步骤S303中,如果该终端确定出该终端的前台操作系统不为目标操作系统,该终端存储目标操作系统的系统标识与该控制指令的对应关系,等待该终端的前台操作系统变更为目标操作系统后,终端再根据该对应关系中的该控制指令控制该终端。
在步骤S304中,如果该终端确定出该终端的前台操作系统为目标操作系统,该终端根据该控制指令控制该终端,并存储目标操作系统的系统标识与该控制指令的对应关系。
本发明实施例中的步骤S301至步骤S304中的详细解释可以参见如图2所示的实施例,在此不做详述。
在本发明实施例中,对于与管理服务器通信连接的任意一个终端,该终端可能同时会接收到管理服务器分别发送的多个控制信息,每一个控制信息中携带的控制指令分别用于在该终端的前台操作系统为不同操作系统时控制该终端;也即,该终端可能会同时接收到至少两个控制指令,且该至少两个控制指令分别用于在该终端的前台操作系统为不同的操作系统时控制该终端的控制指令。然而,在该终端接收到至少两个控制指令时,在该终端中的至少两个操作系统中,只有一个操作系统为该终端的前台操作系统,而其他操作系统均为该终端的后台操作系统。
因此,对于该终端接收到管理服务器发送的任意一个控制信息,假设该控制信息中携带的控制指令为用于在该终端的前台操作系统为目标操作系统时控制该终端的控制指令;目标操作系统为该终端中的至少两个操作系统中的一个操作系统,当该终端的前台操作系统不为目标操作系统时,该终端并不根据该控制指令控制该终端,其次,该终端可以存储目标操作系统的系统标识与该控制指令的对应关系。以使之后在终端的前台操作系统变更为目标操作系统时,该终端还可以根据该对应关系获取该控制指令,并根据该控制指令控制该终端,从而实现管理人员需要在该终端的前台系统为目标操作系统时控制该终端的目的,进而实现分别在多个不同的操作系统下对终端实行精准的差异化管控的目的。
其中,由于该终端中安装有至少两个操作系统,该终端的使用者在使用该终端时,可能会变更该终端的前台操作系统,例如,该终端使用者将终端的前台操作系统由个人操作系统变更至办公操作系统,或者,将该终端的前台操作系统由办公操作系统变更至个人操作系统。
其中,在本发明实施例中,在该终端的前台操作系统不同时,管理人员对该终端控制的控制方式不同,也即,不同的前台操作系统对应的控制指令不同,因此,一旦该终端的前台操作系统发生变化,就需要变更对该终端控制的控制方式,也即,需要换一种控制指令控制终端。
为了在该终端的前台操作系统一旦发生变化时能够及时根据与变化后的前台操作系统的系统标识相对应的控制指令控制该终端,参见图6,在附图5所示方法的基础上,该方法还包括如下流程:
在步骤S401中,该终端监听该终端的前台操作系统是否发生变化。
当该终端的前台操作系统发生变化时,在步骤S402中,该终端从存储的各个操作系统标识和控制指令的对应关系中,查找包括变化后的前台操作系统的系统标识的对应关系,并进一步获取查找到的对应关系中的控制指令。
其中,当该终端的前台操作系统未发生变化时,返回步骤S401。
在步骤S403中,该终端根据该获取的控制指令控制该终端。
本发明实施例中的步骤S401至步骤S403中的详细解释可以参见如图2所示的实施例,在此不做详述。
进一步地,在本发明另一实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。
如果管理人员不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端,则管理人员可以在服务器中输入该终端的终端标识和停止控制信息,并将该控制指令和目标操作系统的系统标识添加在该停止控制信息中,然后将该终端标识和该停止控制信息提交给服务器,该停止控制信息用于指示:停止通过该控制指令在该终端的前台操作系统为目标操作系统时控制该终端;服务器根据该终端标识向该终端发送给停止控制信息;当该终端接收到服务器发送的该停止控制信息时,从该停止控制信息中提取出目标操作系统的系统标识和该控制指令,从先前存储的多个对应关系中查找目标操作系统的系统标识与该控制指令的对应关系,并删除该对应关系。
这样,之后当该终端的前台操作系统变更为目标操作系统时,该终端就获取不到与目标操作系统相对应的该控制指令,因此,该终端就不会再根据该控制指令控制终端。
图7是根据一示例性实施例示出的一种终端控制方法的流程图,如图7所示,该方法应用于图3所示的代理服务器中,该方法包括以下步骤。
在步骤S501中,代理服务器接收与代理服务器通信连接的管理服务器发送的控制信息和终端标识。该控制信息携带控制指令以及目标操作系统的系统标识;该控制指令用于指示对终端执行指定操作,目标操作系统为终端中的至少两个操作系统中的一个操作系统,该控制信息用于指示在终端的前台操作系统为目标操作系统时根据该控制指令控制终端。
在步骤S502中,代理服务器根据该终端标识向该终端发送该控制信息。
本发明实施例中步骤S501和步骤S502中的详细解释可以参见如图4所示的实施例,在此不做详述。
在本发明实施例中,管理服务器无需与每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,从而减少了管理服务器需要建立的通信连接的数量,进而节省了管理服务器的通信资源。
另外,如果没有代理服务器,则管理服务器就要与每一个终端之间分别建立通信连接,在管理服务器需要向某一终端发送控制信息时,管理服务器需要检测管理服务器与该终端之间的通信连接是否正常,在管理服务器与该终端之间的通信连接正常时才能向该终端发送该控制信息;在管理服务器需要向多个终端分别发送控制信息时,管理服务器需要检测管理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,从而会增加管理服务器的系统压力。而在本发明实施例中,管理服务器无需每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,代理服务器与每一个终端之间建立通信连接,因此,在管理服务器需要向多个终端分别发送控制信息时,管理服务器只需关心管理服务器与代理服务器之间的通信连接是否正常,管理服务器无需关心代理服务器与该多个终端中的每一个终端之间的通信连接是否异常,从而无需检测代理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,进而避免增加管理服务器的系统压力。
以及,在本发明实施例中,有可能每一个终端各自所支持的通信协议都不一样,因此,如果没有代理服务器,则管理服务器需要同时支持每一个终端所支持的通信协议,如此管理服务器才能与每一个终端之间通信,但是这样会增加管理服务器的系统复杂度。而在本发明实施例中,管理服务器只需与代理服务器之间通信,而无需与每一个终端之间都通信,管理服务器只需支持代理服务器所支持的通信协议即可,无需支持每一个终端所支持的通信协议,从而降低了管理服务器的系统复杂度。
其次,在本发明实施例中,当需要分别控制多个终端时,无需向每一个终端分别发送控制信息,只需向代理服务器发送控制信息即可,从而实现了控制入口的统一。
在本发明又一实施例中,管理服务器中向代理服务器发送的该控制信息的信息格式可能与该终端支持的信息格式不一致,当管理服务器中向代理服务器发送的该控制信息的信息格式与该终端支持的信息格式不一致时,该终端在本地就无法识别该控制信息,也即无法识别该控制信息中的控制指令和系统标识,进而就无法执行该控制指令,也就无法实现在该终端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的,因此,当代理服务器接收到管理服务器发送的该控制信息时,需要检测该控制信息的信息格式是否为 该终端支持的信息格式;当该控制信息的信息格式不为该终端支持的信息格式时,代理服务器将该控制信息的信息格式转换为该终端支持的信息格式。
之后代理服务器根据该终端标识向该终端发送转换了信息格式的控制信息,该终端在本地可以执行该转换了信息格式的控制信息中的控制指令,如此可以实现在该终端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的。
其中,控制信息的信息格式包括:用于指示系统标识的关键字,用于指示控制指令的指令类型的关键字以及用于指示控制指令的目标控制状态的关键字等。
其中,技术人员事先会将每一个终端支持的控制信息的信息格式都存储在代理服务器中,因此,代理服务器可以从本地根据该终端标识获取该终端支持的信息格式。
例如,当管理人员需要在该终端的前台操作系统为个人操作系统时禁止终端的使用者使用该终端中的wifi设备。
假设管理人员在管理服务器中输入的该控制信息可以为:“operating system ID=个人,wifidevice=disable”,其中,“operating system ID”为用于指示系统标识的关键字,“个人”为系统标识,“wifidevice”为用于指示控制指令的指令类型的关键字,在此例中,该控制指令用于控制wifi设备,“disable”为用于指示控制指令的目标控制状态的关键字,在此例中,需要控制该终端中的wifi设备的目标控制状态为禁止使用。另外,用于指示控制指令的目标控制状态的关键字为“enable”,也即,在此例中,用于指示控制指令的目标控制状态的关键字为“enable”或“disable”。
假设,该终端支持的控制信息的信息格式为“OS ID=(),wifidevice=()”,其中,这该信息格式中,“OS ID”为用于指示系统标识的关键字,“wifidevice”为用于指示控制指令的指令类型的关键字,第一个括号“()”内用于填写系统标识,第二个括号“()”内用于填写控制指令的目标控制状态的关键字,其中,在此例中,用于指示控制指令的目标控制状态的关键字为“1”或“0”,其中,关键字“1”相当于关键字“enable”,关键字“0”相当于关键字“disable”。
当终端接收到控制信息“operating system ID=个人,wifidevice=disable”时,该终端查找不到用于指示系统标识的关键字“OS ID”,以及,虽然能够查找到用于指示控制指令的指令类型的关键字“wifidevice”,但是无法查找到的用于指示控制指令的目标控制状态的关键字“0”或“1”,因此,该终端就无法在该终端的前台操作系统为个人操作系统时将该终端中的wifi设备下电,进而无法实现管理人员需要在该终端的前台操作系统为个人操作系统时禁止终端的使用者使用该终端中的wifi设备的目的。
技术人员事先可以在代理服务器中存储该终端对应的格式转换关系表,该终端对应的格式转换关系表可以如下表1所示。
表1
Figure PCTCN2017086375-appb-000001
因此,代理服务器在接收到控制信息“operating system ID=个人,wifidevice=disable”时,可以在该终端对应的格式转换关系表中查找与用于指示系统标识的关键字“operating system ID”相对应的关键字“OS ID”,查找与目标控制状态 “disable”相对应的关键字“0”,将控制信息“operating system ID=个人,wifidevice=disable”中的“operating system ID”修改为“OS ID”,以及将“disable”修改为“0”,得到控制信息“OS ID=个人,wifidevice=0”,这样,该终端就可以在控制信息“OS ID=个人,wifidevice=0”中,查找到用于指示系统标识的关键字“OS ID”,查找到系统标识“个人”,查找到用于指示控制指令的指令类型的关键字“wifidevice”,以及查找到的用于指示控制指令的目标控制状态的关键字“0”,因此,该终端就就额可以在该终端的前台操作系统为个人操作系统时将该终端中的wifi设备下电,进而实现管理人员需要在该终端的前台操作系统为个人操作系统时禁止终端的使用者使用该终端中的wifi设备的目的。
如果没有代理服务器,则管理服务器向任意一个终端发送控制信息,发送的控制信息的信息格式必须是该终端支持的信息格式,当不同的终端支持的控制信息的信息格式不同时,管理服务器需要支持的信息格式非常多,这就增加了管理服务器的系统复杂度。
而在本发明实施例中,代理服务器可以将管理服务器发送的控制信息的信息格式转换为每一个终端支持的信息格式,因此,管理服务器无需支持每一个终端支持的信息格式,从而降低了管理服务器的系统复杂度。
图8是根据一示例性实施例示出的一种终端控制方法的流程图,如图8所示,该方法应用于图1或图3所示的终端中,该方法包括以下步骤。
在步骤S601中,终端接收服务器发送的控制信息。
如果该控制信息携带控制指令但未携带系统标识,在步骤S602中,该终端确定该控制信息用于指示在终端的前台操作系统为预设操作系统时根据控制指令控制终端,该预设操作系统为该终端中的至少两个操作系统中的一个操作系统。
在本发明实施例中,管理人员在服务器中输入控制信息时,需要在该控制信息中添加该控制指令,但可以不在控制信息中的系统标识字段中添加系统标识。如此该终端就会确定该控制信息用于指示在终端的前台操作系统为预设操作系统时根据控制指令控制终端。并当该终端的前台操作系统不为预设操作系统时,该终端存储预设操作系统的系统标识与该控制指令的对应关系,以使在该终端的前台操作系统为预设操作系统时,该终端再从该对应关系中获取该控制指令,然后根据该控制指令控制该终端;以及当该终端的前台操作系统为预设操作系统时,该终端从该对应关系中获取该控制指令并根据该控制指令控制该终端。
如果该控制信息携带控制指令以及目标操作系统的系统标识,在步骤S603中,该终端确定该控制信息用于指示在终端的前台操作系统为预设操作系统时根据该控制指令控制终端。
在本发明实施例中,控制信息中包含系统标识字段,管理人员在服务器中输入控制信息时,需要在该控制信息中添加该控制指令,以及可以在控制信息中的系统标识字段中添加目标操作系统的系统标识。如此该终端就会将控制指令确定为用于在该终端的前台操作系统为目标操作系统时控制该终端的控制指令。并当该终端的前台操作系统不为目标操作系统时,该终端存储目标操作系统的系统标识与该控制指令的对应关系,以使在该终端的前台操作系统为目标操作系统时,该终端再从该对应关系中获取该控制指令,然后根据该控制指令控制该终端;以及当该终端的前台操作系统为目标操作系统时,该终端从该对应 关系中获取该控制指令并根据该控制指令控制该终端。。
其中,当终端中只有一个操作系统时,管理人员在服务器中输入控制信息时,只需在控制信息中添加该控制指令,而无需在控制信息中添加该终端中的该操作系统的系统标识,
由于该终端中只有一个操作系统,因此,该操作系统一直为该终端的前台操作系统,如此,当该终端接收到该控制信息时,该终端就会根据该控制信息携带的该控制指令控制该终端。
然而,当该终端中有多个操作系统时,通常情况下,需要在该控制信息中添加系统标识,这样终端就能确定应该在该终端的前台操作系统为该系统标识对应的操作系统时根据该控制信息携带的该控制指令控制该终端,否则,该终端无法确定应该在该终端的前台操作系统为哪一个操作系统时根据该控制信息携带的该控制指令控制该终端,因此,该终端就不会执行根据该控制指令控制该终端的操作。也即,通常情况下,当该终端中有多个操作系统时,不支持该控制信息中只携带控制指令而不携带系统标识的。
而在本发明实施例中,当该终端中有多个操作系统时,支持该控制信息中只携带控制指令而不携带系统标识,当该控制信息携带控制指令但未携带系统标识时,该终端可以将该控制指令确定为用于在该终端的前台操作系统为预设操作系统时控制该终端的控制指令;该预设操作系统为该终端中的至少两个操作系统中的一个操作系统。也支持该控制信息中同时携带控制指令和系统标识,这样,该终端就会将该控制指令确定为用于在该终端的前台操作系统为该系统标识对应的操作系统时控制该终端的控制指令。
图9是根据一示例性实施例示出的一种终端的结构示意图。参照图9,所述终端包括:接收单元11和处理单元12;
所述接收单元22,用于接收服务器发送的第一控制信息,所述第一控制信息携带第一控制指令以及第一操作系统的系统标识,所述第一控制指令用于指示对所述终端执行指定操作,所述第一操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第一控制信息用于指示在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
所述处理单元12,用于根据所述第一操作系统的系统标识,确定出所述终端的前台操作系统不为所述第一操作系统,存储所述第一操作系统的系统标识与所述第一控制指令的对应关系;并等待所述终端的前台操作系统变更为所述第一操作系统后,根据所述对应关系中的所述第一控制指令控制所述终端。
在本发明实施例中,对于与管理服务器通信连接的任意一个终端,该终端可能同时会接收到管理服务器分别发送的多个控制信息,每一个控制信息中携带的控制指令分别用于在该终端的前台操作系统为不同操作系统时控制该终端;也即,该终端可能会同时接收到至少两个控制指令,且该至少两个控制指令分别用于在该终端的前台操作系统为不同的操作系统时控制该终端的控制指令。然而,在该终端接收到至少两个控制指令时,在该终端中的至少两个操作系统中,只有一个操作系统为该终端的前台操作系统,而其他操作系统均为该终端的后台操作系统。
因此,对于该终端接收到管理服务器发送的任意一个控制信息,假设该控制信息中携带的控制指令为用于在该终端的前台操作系统为目标操作系统时控制该终端的控制指令; 目标操作系统为该终端中的至少两个操作系统中的一个操作系统,当该终端的前台操作系统不为目标操作系统时,该终端并不根据该控制指令控制该终端,其次,该终端可以存储目标操作系统的系统标识与该控制指令的对应关系。以使之后在终端的前台操作系统变更为目标操作系统时,该终端还可以根据该对应关系获取该控制指令,并根据该控制指令控制该终端,从而实现管理人员需要在该终端的前台系统为目标操作系统时控制该终端的目的,进而实现分别在多个不同的操作系统下对终端实行精准的差异化管控的目的。
进一步地,所述接收单元22,还用于接收所述服务器发送的第二控制信息,所述第二控制信息携带第二控制指令以及第二操作系统的系统标识,所述第二控制指令用于指示对所述终端执行指定操作,所述第二操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第二控制信息用于指示在所述终端的前台操作系统为所述第二操作系统时根据所述第二控制指令控制所述终端;
所述处理单元12,还用于根据所述第二操作系统的系统标识,确定出所述终端的前台操作系统为所述第二操作系统,根据所述第二控制指令控制所述终端。
其中,由于该终端中有至少两个操作系统,该终端的使用者在使用该终端时,可能会变更该终端的前台操作系统,例如,该终端使用者将终端的前台操作系统由个人操作系统变更至办公操作系统,或者,将该终端的前台操作系统由办公操作系统变更至个人操作系统。
其中,在本发明实施例中,在该终端的前台操作系统不同时,管理人员对该终端控制的控制方式不同,也即,不同的前台操作系统对应的控制指令不同,因此,一旦该终端的前台操作系统发生变化,就需要变更对该终端控制的控制方式,也即,需要换一种控制指令控制终端。
为了在该终端的前台操作系统一旦发生变化时,终端能够及时根据与变化后的前台操作系统的系统标识相对应的控制指令控制该终端,
进一步地,所述处理单元12,还用于存储所述第二操作系统的系统标识与所述第二控制指令的对应关系;确定所述终端的前台操作系统发生变化,如果变化后的前台操作系统为所述第二操作系统,则从所述第二操作系统的系统标识与所述第二控制指令的对应关系中获取所述第二控制指令;根据所述第二控制指令控制所述终端。
进一步地,所述接收单元22,还用于接收所述服务器发送的第三控制信息,所述第三控制信息携带第三控制指令且未携带系统标识,所述第三控制指令用于指示对所述终端执行指定操作;所述第三控制信息用于指示在所述终端的前台操作系统为预设操作系统时根据所述第三控制指令控制所述终端,所述预设操作系统为所述终端中的至少两个操作系统中的一个操作系统;
所述处理单元12,还用于确定所述终端的前台操作系统为所述预设操作系统,根据所述第三控制指令控制所述终端。
其中,当终端中只有一个操作系统时,管理人员在服务器中输入控制信息时,只需在控制信息中添加该控制指令,而无需在控制信息中添加该终端中的该操作系统的系统标识,
由于该终端中只有一个操作系统,因此,该操作系统一直为该终端的前台操作系统,如此,当该终端接收到该控制信息时,该终端就会根据该控制信息携带的该控制指令控制该终端。
然而,当该终端中有多个操作系统时,通常情况下,需要在该控制信息中添加系统标识,这样终端就能确定应该在该终端的前台操作系统为该系统标识对应的操作系统时根据该控制信息携带的该控制指令控制该终端,否则,该终端无法确定应该在该终端的前台操作系统为哪一个操作系统时根据该控制信息携带的该控制指令控制该终端,因此,该终端就不会执行根据该控制指令控制该终端的操作。也即,通常情况下,当该终端中有多个操作系统时,不支持该控制信息中只携带控制指令而不携带系统标识的。
而在本发明实施例中,当该终端中有多个操作系统时,支持该控制信息中只携带控制指令而不携带系统标识,当该控制信息携带控制指令但未携带系统标识时,该终端可以将该控制指令确定为用于在该终端的前台操作系统为预设操作系统时控制该终端的控制指令;该预设操作系统为该终端中的至少两个操作系统中的一个操作系统。也支持该控制信息中同时携带控制指令和系统标识,这样,该终端就会将该控制指令确定为用于在该终端的前台操作系统为该系统标识对应的操作系统时控制该终端的控制指令。
进一步地,所述接收单元22,还用于检测所述终端与所述服务器之间的通信连接是否正常;如果所述终端与所述服务器之间的通信连接正常,向所述服务器发送用于获取所述第一控制信息的获取请求;接收所述服务器根据所述获取请求返回的所述第一控制信息。
在本发明另一实施例中,由于有时候管理服务器与该终端之间的通信连接会出现异常,且在该通信连接出现异常时管理服务器就无法向该终端发送控制信息,也即,该终端就接收不到控制信息。因此,对于该终端而言,为了能够尽快从管理服务器中得到控制信息,以尽快实现管理人员的目的,该终端可以检测该终端与管理服务器之间的该通信连接是否正常;当该终端与管理服务器之间的该通信连接正常时,该终端也可以向管理服务器发送用于获取控制信息的获取请求,该获取请求还携带该终端的终端标识;当管理服务器接收到该获取请求时,管理服务器可以从该获取请求中提取出该终端标识,再根据该终端标识在本地存储的对应关系中获取该控制信息与该终端标识之间的对应关系,并获取该对应关系中的该控制信息,然后根据该终端标识向该终端发送该控制信息;终端接收管理服务器根据该获取请求返回的该控制信息。
进一步地,所述接收单元22,还用于接收所述服务器发送的停止控制信息,所述停止控制信息携带所述第一控制指令和所述第一操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
所述处理单元12,还用于基于所述接收单元接收到的所述停止控制信息,删除所述终端中存储的所述第一操作系统的系统标识和所述第一控制指令的对应关系。
在本发明另一实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。这时,管理人员可以在管理服务器中输入该终端的终端标识和包括该控制指令和目标操作系统的系统标识的停止控制信息,然后将该终端标识和该停止控制信息提交给管理服务器,该停止控制信息用于指示:停止在该终端的前台操作系统为目标操作系统时根据该控制指令控制该终端;管理服务器根据该终端标识向该终端发送给停止控制信息。
其中,所述第二操作系统为个人操作系统,所述第二控制指令用于指示禁止使用所述终端中的wifi设备;
所述处理单元12,还用于利用所述终端中的所述wifi设备的驱动信息对所述wifi设 备下电。
其中,所述第二操作系统为办公操作系统,所述第二控制指令用于指示允许使用所述终端中的wifi设备,且使用所述终端的wifi设备时仅能连接预设接入点;
所述处理单元12,还用于利用所述终端中的所述wifi设备的驱动信息对所述wifi设备上电,并利用承载办公操作系统的Container的系统服务中的API设置办公操作系统的wifi接入点标识列表,所述wifi接入点标识列表仅包括所述预设接入点的标识。
图10是根据一示例性实施例示出的一种代理服务器的结构示意图。参照图9,代理服务器包括:接收单元21、处理单元22和发送单元23。
所述接收单元21,用于接收与所述代理服务器通信连接的管理服务器发送的控制信息和终端标识,所述控制信息携带控制指令以及操作系统的系统标识,所述控制指令用于指示对所述终端标识对应的终端执行指定操作,所述操作系统为所述终端中的至少两个操作系统中的一个操作系统;所述控制信息用于指示在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端;
所述处理单元22,用于确定所述代理服务器与所述终端之间的通信连接出现异常,存储所述控制信息与所述终端标识的对应关系;
所述发送单元23,用于等待所述代理服务器与所述终端之间的通信连接正常后,根据所述终端标识向所述终端发送所述控制信息。
在本发明实施例中,管理服务器无需与每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,从而减少了管理服务器需要建立的通信连接的数量,进而节省了管理服务器的通信资源。
另外,如果没有代理服务器,则管理服务器就要与每一个终端之间分别建立通信连接,在管理服务器需要向某一终端发送控制信息时,管理服务器需要检测管理服务器与该终端之间的通信连接是否正常,在管理服务器与该终端之间的通信连接正常时才能向该终端发送该控制信息;在管理服务器需要向多个终端分别发送控制信息时,管理服务器需要检测管理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,从而会增加管理服务器的系统压力。而在本发明实施例中,管理服务器无需每一个终端之间都建立通信连接,管理服务器只需与代理服务器之间建立一个通信连接即可,代理服务器与每一个终端之间建立通信连接,因此,在管理服务器需要向多个终端分别发送控制信息时,管理服务器只需关心管理服务器与代理服务器之间的通信连接是否正常,管理服务器无需关心代理服务器与该多个终端中的每一个终端之间的通信连接是否异常,从而无需检测代理服务器分别与该多个终端中的每一个终端之间的通信连接是否正常,进而避免增加管理服务器的系统压力。
以及,在本发明实施例中,有可能每一个终端各自所支持的通信协议都不一样,因此,如果没有代理服务器,则管理服务器需要同时支持每一个终端所支持的通信协议,如此管理服务器才能与每一个终端之间通信,但是这样会增加管理服务器的系统复杂度。而在本发明实施例中,管理服务器只需与代理服务器之间通信,而无需与每一个终端之间都通信,管理服务器只需支持代理服务器所支持的通信协议即可,无需支持每一个终端所支持的通信协议,从而降低了管理服务器的系统复杂度。
其次,在本发明实施例中,当需要分别控制多个终端时,无需向每一个终端分别发送 控制信息,只需向代理服务器发送控制信息即可,从而实现了控制入口的统一。
在本发明实施例中,有时候代理服务器与该终端之间的通信连接会出现异常,例如该通信连接暂时断开,或,该终端暂时无权限使用该通信连接等。当代理服务器与该终端之间的通信连接出现异常时,代理服务器就无法向该终端发送该控制信息。
因此,当代理服务器接收到管理服务器发送的该控制信息和该终端标识时,代理服务器需要检测代理服务器与该终端之间的通信连接是否出现异常;如果该通信连接未出现异常,则代理服务器此时可以根据该终端标识向该终端发送该控制信息。如果该通信连接出现异常,则代理服务器此时就无法根据该终端标识向该终端发送该控制信息。然而,虽然此时代理服务器无法根据该终端标识向终端发送该控制信息,为了之后在该通信连接正常时代理服务器能够根据该终端标识向该终端发送该控制信息,代理服务器可以在本地存储该控制信息与该终端标识之间的对应关系,之后,当代理服务器检测到代理服务器与该终端之间的通信连接正常时,代理服务器就从该对应关系获取该控制信息与该终端标识,并根据该终端标识向该终端发送控制信息,如此提高了向该终端发送控制信息的可靠性。
进一步地,所述接收单元21,还用于接收所述管理服务器发送的停止控制信息和所述终端的终端标识,所述停止控制信息携带所述控制指令和所述操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端,
所述发送单元23,还用于根据所述终端标识向所述终端发送所述停止控制信息;以使所述终端删除所述终端中存储的所述操作系统的系统标识和所述控制指令的对应关系。
进一步地,在本发明实施例中,对于目标操作系统,之后管理人员可能不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端。
如果管理人员不再需要在该终端的前台系统为目标操作系统时使得终端根据该控制指令控制该终端,则管理人员可以在管理服务器中输入该终端的终端标识和停止控制信息,并将该控制指令和目标操作系统的系统标识添加在该停止控制信息中,然后将该终端标识和该停止控制信息提交给管理服务器,该停止控制信息用于指示:停止通过该控制指令在该终端的前台操作系统为目标操作系统时控制该终端;管理服务器向代理服务器发送该终端标识该停止控制信息;当代理服务器接收到管理服务器发送的该终端标识和该停止控制信息时,根据该终端标识向该终端发送给停止控制信息;当该终端接收到代理服务器发送的该停止控制信息时,从该停止控制信息中提取出目标操作系统的系统标识和该控制指令,在本地查找目标操作系统的系统标识与该控制指令的对应关系,删除该对应关系。
这样,之后当该终端的前台操作系统变更为目标操作系统时,该终端就获取不到与目标操作系统的系统标识相对应的该控制指令,因此,该终端就不会再根据该控制指令控制终端。
进一步地,所述发送单元23,还用于确定所述控制信息的信息格式不为所述终端支持的信息格式,将所述控制信息的信息格式转换为所述终端支持的信息格式;并根据所述终端标识向所述终端发送已转换信息格式的所述控制信息。
在本发明中,管理服务器中向代理服务器发送的该控制信息的信息格式可能与该终端支持的信息格式不一致,当管理服务器中向代理服务器发送的该控制信息的信息格式与该终端支持的信息格式不一致时,该终端在本地就无法识别该控制信息,也即无法识别该控制信息中的控制指令和系统标识,进而进而就无法执行该控制指令,也就无法实现在该终 端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的,因此,当代理服务器接收到管理服务器发送的该控制信息时,需要检测该控制信息的信息格式是否为该终端支持的信息格式;当该控制信息的信息格式不为该终端支持的信息格式时,代理服务器将该控制信息的信息格式转化为该终端支持的信息格式;
之后代理服务器根据该终端标识向该终端发送转换了信息格式的控制信息,该终端在本地可以执行该转换了信息格式的控制信息中的控制指令,如此可以实现在该终端的前台操作系统为目标操作系统根据该控制指令控制该终端的目的。
图11为本发明实施例提供的一种终端的结构示意图,本发明实施例提供的终端可以用于实施上述图5-图6所示的本发明各实施例实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照图5-图6所示的本发明各实施例。
该终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等终端设备,本发明实施例以终端为手机为例进行说明,图11示出的是与本发明各实施例相关的手机300的部分结构的框图。
如图11所示,手机300包括:RF(radio frequency,射频)电路320、存储器330、输入单元340、显示单元350、重力传感器360、音频电路370、处理器380、以及电源390等部件。本领域技术人员可以理解,图11中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图11对手机300的各个构成部件进行具体的介绍:
RF电路320可用于收发信息或通话过程中,信号的接收和发送,将接收到的信息发给处理器380处理;另外,将上行的数据发送给代理服务器或管理服务器。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路320还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(global system of mobile communication,全球移动通讯系统)、GPRS(general packet radio service,通用分组无线服务)、CDMA(code division multiple access,码分多址)、WCDMA(wideband code division multiple access,宽带码分多址)、LTE(long term evolution,长期演进)、电子邮件、SMS(short messaging service,短消息服务)等。
存储器330可用于存储软件程序以及模块,处理器380通过运行存储在存储器330的软件程序以及模块,从而执行手机300的各种功能应用以及数据处理。存储器330可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序,比如声音播放功能、图像播放功能等;存储数据区可存储根据手机300的使用所创建的数据,比如音频数据、图像数据、电话本等。此外,存储器330可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元340可用于接收输入的数字或字符信息,以及产生与手机300的用户设置以及功能控制有关的键信号输入。具体地,输入单元340可包括触摸屏341以及其他输入设备342。触摸屏341,也称为触控面板,可收集用户在其上或附近的触摸操作,比如用户使用手指、触笔等任何适合的物体或附件在触摸屏341上或在触摸屏341附近的操作,并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏341可包括触摸检测装置和触 摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏341。除了触摸屏341,输入单元340还可以包括其他输入设备342。具体地,其他输入设备342可以包括但不限于物理键盘、功能键、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元350可用于显示由用户输入的信息或提供给用户的信息以及手机300的各种菜单。显示单元350可包括显示面板351,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触摸屏341可覆盖显示面板351,当触摸屏341检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板351上提供相应的视觉输出。虽然在图11中,触摸屏341与显示面板351是作为两个独立的部件来实现手机300的输入和输入功能,但是在某些实施例中,可以将触摸屏341与显示面板351集成而实现手机300的输入和输出功能。
重力传感器(gravity sensor)360,可以检测手机在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。
手机300还可以包括其它传感器,比如光传感器。具体地,光传感器可包括环境光传感器及接近光传感器。其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度;接近光传感器可以检测是否有物体靠近或接触手机,可在手机300移动到耳边时,关闭显示面板341和/或背光。手机300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路370、扬声器371、麦克风372可提供用户与手机300之间的音频接口。音频电路370可将接收到的音频数据转换后的电信号,传输到扬声器371,由扬声器371转换为声音信号输出;另一方面,麦克风372将收集的声音信号转换为电信号,由音频电路370接收后转换为音频数据,再将音频数据输出至RF电路320以发送给比如另一手机,或者将音频数据输出至存储器330以便进一步处理。
处理器380是手机300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器330内的软件程序和/或模块,以及调用存储在存储器330内的数据,执行手机300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理单元;优选的,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。
手机300还包括给各个部件供电的电源390,比如电池。优选的,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机300还可以包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。
在本发明实施例中,RF电路320还用于接收服务器发送的第一控制信息,所述第一控制信息携带第一控制指令以及第一操作系统的系统标识,所述第一控制指令用于指示对所 述终端执行指定操作,所述第一操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第一控制信息用于指示在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端。
处理器380还用于根据所述第一操作系统的系统标识,确定出所述终端的前台操作系统不为所述第一操作系统的情况下,在存储器330中存储所述第一操作系统的系统标识与所述第一控制指令的对应关系。
处理器380还用于等待所述终端的前台操作系统变更为所述第一操作系统后,根据所述对应关系中的所述第一控制指令控制所述终端。
在本发明实施例中,RF电路320还用于接收所述服务器发送的第二控制信息,所述第二控制信息携带第二控制指令以及第二操作系统的系统标识,所述第二控制指令用于指示对所述终端执行指定操作,所述第二操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第二控制信息用于指示在所述终端的前台操作系统为所述第二操作系统时根据所述第二控制指令控制所述终端。
处理器380还用于根据所述第二操作系统的系统标识,确定出所述终端的前台操作系统为所述第二操作系统,根据所述第二控制指令控制所述终端。
进一步的,处理器380还用于在存储器330中存储所述第二操作系统的系统标识与所述第二控制指令的对应关系;确定所述终端的前台操作系统发生变化,如果变化后的前台操作系统为所述第二操作系统,则从所述第二操作系统的系统标识与所述第二控制指令的对应关系中获取所述第二控制指令;根据所述第二控制指令控制所述终端。
进一步的,RF电路320还用于接收所述服务器发送的第三控制信息,所述第三控制信息携带第三控制指令且未携带系统标识,所述第三控制指令用于指示对所述终端执行指定操作;所述第三控制信息用于指示在所述终端的前台操作系统为预设操作系统时根据所述第三控制指令控制所述终端,所述预设操作系统为所述终端中的至少两个操作系统中的一个操作系统。
处理器380还用于确定所述终端的前台操作系统为所述预设操作系统,根据所述第三控制指令控制所述终端。
进一步的,RF电路320还用于检测所述终端与所述服务器之间的通信连接是否正常;如果所述终端与所述服务器之间的通信连接正常,向所述服务器发送用于获取所述第一控制信息的获取请求;接收所述服务器根据所述获取请求返回的所述第一控制信息。
进一步的,RF电路320还用于接收所述服务器发送的停止控制信息,所述停止控制信息携带所述第一控制指令和所述第一操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端。
处理器380还用于基于所述接收单元接收到的所述停止控制信息,删除所述存储器330中存储的所述第一操作系统的系统标识和所述第一控制指令的对应关系。
进一步地,在处理器380根据所述第二控制指令控制所述终端的过程中,处理器380具体用于:利用所述终端中的所述wifi设备的驱动信息对所述wifi设备下电。
进一步地,在处理器380根据所述第二控制指令控制所述终端的过程中,处理器380具体用于:利用所述终端中的所述wifi设备的驱动信息对所述wifi设备上电,并利用承载办公操作系统的Container的系统服务中的API设置办公操作系统的wifi接入点标识 列表,所述wifi接入点标识列表仅包括所述预设接入点的标识。
图12是根据一示例性实施例示出的一种代理服务器的结构示意图。参照图12,所述代理服务器310包括处理器410、存储器420和网络接口430,所述处理器410、存储器420和网络接口430通过总线440相互连接。
存储器420包括但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、或便携式只读存储器(CD-ROM)。
处理器410可以是一个或多个中央处理器(Central Processing Unit,简称CPU),在处理器410是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。
网络接口430可以是有线接口,例如光纤分布式数据接口(Fiber Distributed Data Interface,简称FDDI)、千兆以太网(Gigabit Ethernet,简称GE)接口;网络接口430也可以是无线接口。
所述网络接口430还用于接收与所述代理服务器通信连接的管理服务器发送的控制信息和终端标识,所述控制信息携带控制指令以及操作系统的系统标识,所述控制指令用于指示对所述终端标识对应的终端执行指定操作,所述操作系统为所述终端中的至少两个操作系统中的一个操作系统;所述控制信息用于指示在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端;以及,还用于等待所述代理服务器与所述终端之间的通信连接正常后,所述代理服务器根据所述终端标识向所述终端发送所述控制信息。
所述存储器420用于存储所述控制信息与所述终端标识的对应关系。
所述代理服务器310中的处理器410用于读取所述存储器420中存储的程序代码后,执行以下操作:确定所述代理服务器与所述终端之间的通信连接出现异常,所述代理服务器存储所述控制信息与所述终端标识的对应关系。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明实施例的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明实施例的一般性原理并包括本发明实施例未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明实施例的真正范围和精神由所附的权利要求指出。
应当理解的是,本发明实施例并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和变更。本发明实施例的范围仅由所附的权利要求来限制。

Claims (22)

  1. 一种终端控制方法,其特征在于,所述方法包括:
    终端接收服务器发送的第一控制信息,所述第一控制信息携带第一控制指令以及第一操作系统的系统标识,所述第一控制指令用于指示对所述终端执行指定操作,所述第一操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第一控制信息用于指示在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
    所述终端根据所述第一操作系统的系统标识,确定出所述终端的前台操作系统不为所述第一操作系统,所述终端存储所述第一操作系统的系统标识与所述第一控制指令的对应关系;
    等待所述终端的前台操作系统变更为所述第一操作系统后,所述终端根据所述对应关系中的所述第一控制指令控制所述终端。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述终端接收所述服务器发送的第二控制信息,所述第二控制信息携带第二控制指令以及第二操作系统的系统标识,所述第二控制指令用于指示对所述终端执行指定操作,所述第二操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第二控制信息用于指示在所述终端的前台操作系统为所述第二操作系统时根据所述第二控制指令控制所述终端;
    所述终端根据所述第二操作系统的系统标识,确定出所述终端的前台操作系统为所述第二操作系统,所述终端根据所述第二控制指令控制所述终端。
  3. 根据权利要求2所述的方法,其特征在于,所述终端根据所述第二控制指令控制所述终端之后,所述方法还包括:
    所述终端存储所述第二操作系统的系统标识与所述第二控制指令的对应关系;
    所述终端确定所述终端的前台操作系统发生变化,如果变化后的前台操作系统为所述第二操作系统,则所述终端从所述第二操作系统的系统标识与所述第二控制指令的对应关系中获取所述第二控制指令;
    所述终端根据所述第二控制指令控制所述终端。
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述方法还包括:
    所述终端接收所述服务器发送的第三控制信息,所述第三控制信息携带第三控制指令且未携带系统标识,所述第三控制指令用于指示对所述终端执行指定操作;所述第三控制信息用于指示在所述终端的前台操作系统为预设操作系统时根据所述第三控制指令控制所述终端,所述预设操作系统为所述终端中的至少两个操作系统中的一个操作系统;
    所述终端确定所述终端的前台操作系统为所述预设操作系统,所述终端根据所述第三控制指令控制所述终端。
  5. 根据权利要求1至3任一所述的方法,其特征在于,所述终端接收服务器发送的第一控制信息,包括:
    所述终端检测所述终端与所述服务器之间的通信连接是否正常;
    如果所述终端与所述服务器之间的通信连接正常,所述终端向所述服务器发送用于获取所述第一控制信息的获取请求;
    所述终端接收所述服务器根据所述获取请求返回的所述第一控制信息。
  6. 根据权利要求1至3任一所述的方法,其特征在于,所述方法还包括:
    所述终端接收所述服务器发送的停止控制信息,所述停止控制信息携带所述第一控制指令和所述第一操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
    所述终端删除所述终端中存储的所述第一操作系统的系统标识和所述第一控制指令的对应关系。
  7. 根据权利要求2所述的方法,其特征在于,
    所述第二操作系统为个人操作系统,所述第二控制指令用于指示禁止使用所述终端中的wifi设备;
    所述终端根据所述第二控制指令控制所述终端,包括:
    所述终端利用所述终端中的所述wifi设备的驱动信息对所述wifi设备下电。
  8. 根据权利要求2所述的方法,其特征在于,
    所述第二操作系统为办公操作系统,所述第二控制指令用于指示允许使用所述终端中的wifi设备,且使用所述终端的wifi设备时仅能连接预设接入点;
    所述终端根据所述第二控制指令控制所述终端,包括:
    所述终端利用所述终端中的所述wifi设备的驱动信息对所述wifi设备上电,并利用承载办公操作系统的Container的系统服务中的API设置办公操作系统的wifi接入点标识列表,所述wifi接入点标识列表仅包括所述预设接入点的标识。
  9. 一种终端控制方法,其特征在于,所述方法包括:
    代理服务器接收与所述代理服务器通信连接的管理服务器发送的控制信息和终端标识,所述控制信息携带控制指令以及操作系统的系统标识,所述控制指令用于指示对所述终端标识对应的终端执行指定操作,所述操作系统为所述终端中的至少两个操作系统中的一个操作系统;所述控制信息用于指示在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端;
    所述代理服务器确定所述代理服务器与所述终端之间的通信连接出现异常,所述代理服务器存储所述控制信息与所述终端标识的对应关系;
    等待所述代理服务器与所述终端之间的通信连接正常后,所述代理服务器根据所述终端标识向所述终端发送所述控制信息。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    所述代理服务器接收所述管理服务器发送的停止控制信息和所述终端的终端标识,所述停止控制信息携带所述控制指令和所述操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端,
    所述代理服务器根据所述终端标识向所述终端发送所述停止控制信息;以使所述终端删除所述终端中存储的所述操作系统的系统标识和所述控制指令的对应关系。
  11. 根据权利要求9所述的方法,其特征在于,所述代理服务器根据所述终端标识向所述终端发送所述控制信息,包括:
    所述代理服务器确定所述控制信息的信息格式不为所述终端支持的信息格式,所述代理服务器将所述控制信息的信息格式转换为所述终端支持的信息格式;
    所述代理服务器根据所述终端标识向所述终端发送已转换信息格式的所述控制信息。
  12. 一种终端控制终端,其特征在于,所述终端包括:接收单元和处理单元;
    所述接收单元,用于接收服务器发送的第一控制信息,所述第一控制信息携带第一控制指令以及第一操作系统的系统标识,所述第一控制指令用于指示对所述终端执行指定操作,所述第一操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第一控制信息用于指示在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
    所述处理单元,用于根据所述第一操作系统的系统标识,确定出所述终端的前台操作系统不为所述第一操作系统,存储所述第一操作系统的系统标识与所述第一控制指令的对应关系;并等待所述终端的前台操作系统变更为所述第一操作系统后,根据所述对应关系中的所述第一控制指令控制所述终端。
  13. 根据权利要求12所述的终端,其特征在于,
    所述接收单元,还用于接收所述服务器发送的第二控制信息,所述第二控制信息携带第二控制指令以及第二操作系统的系统标识,所述第二控制指令用于指示对所述终端执行指定操作,所述第二操作系统为所述终端中的至少两个操作系统中的一个操作系统,所述第二控制信息用于指示在所述终端的前台操作系统为所述第二操作系统时根据所述第二控制指令控制所述终端;
    所述处理单元,还用于根据所述第二操作系统的系统标识,确定出所述终端的前台操作系统为所述第二操作系统,根据所述第二控制指令控制所述终端。
  14. 根据权利要求13所述的终端,其特征在于,
    所述处理单元,还用于存储所述第二操作系统的系统标识与所述第二控制指令的对应关系;确定所述终端的前台操作系统发生变化,如果变化后的前台操作系统为所述第二操作系统,则从所述第二操作系统的系统标识与所述第二控制指令的对应关系中获取所述第二控制指令;根据所述第二控制指令控制所述终端。
  15. 根据权利要求12至14任一所述的终端,其特征在于,所述方法还包括:
    所述接收单元,还用于接收所述服务器发送的第三控制信息,所述第三控制信息携带第三控制指令且未携带系统标识,所述第三控制指令用于指示对所述终端执行指定操作;所述第三控制信息用于指示在所述终端的前台操作系统为预设操作系统时根据所述第三控制指令控制所述终端,所述预设操作系统为所述终端中的至少两个操作系统中的一个操作系统;
    所述处理单元,还用于确定所述终端的前台操作系统为所述预设操作系统,根据所述第三控制指令控制所述终端。
  16. 根据权利要求12至14任一所述的终端,其特征在于,
    所述接收单元,还用于检测所述终端与所述服务器之间的通信连接是否正常;如果所述终端与所述服务器之间的通信连接正常,向所述服务器发送用于获取所述第一控制信息的获取请求;接收所述服务器根据所述获取请求返回的所述第一控制信息。
  17. 根据权利要求12至14任一所述的终端,其特征在于,
    所述接收单元,还用于接收所述服务器发送的停止控制信息,所述停止控制信息携带所述第一控制指令和所述第一操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述第一操作系统时根据所述第一控制指令控制所述终端;
    所述处理单元,还用于基于所述接收单元接收到的所述停止控制信息,删除所述终端 中存储的所述第一操作系统的系统标识和所述第一控制指令的对应关系。
  18. 根据权利要求13所述的终端,其特征在于,
    所述第二操作系统为个人操作系统,所述第二控制指令用于指示禁止使用所述终端中的wifi设备;
    所述处理单元,还用于利用所述终端中的所述wifi设备的驱动信息对所述wifi设备下电。
  19. 根据权利要求13所述的终端,其特征在于,
    所述第二操作系统为办公操作系统,所述第二控制指令用于指示允许使用所述终端中的wifi设备,且使用所述终端的wifi设备时仅能连接预设接入点;
    所述处理单元,还用于利用所述终端中的所述wifi设备的驱动信息对所述wifi设备上电,并利用承载办公操作系统的Container的系统服务中的API设置办公操作系统的wifi接入点标识列表,所述wifi接入点标识列表仅包括所述预设接入点的标识。
  20. 一种代理服务器,其特征在于,所述代理服务器包括:接收单元,处理单元和发送单元;
    所述接收单元,用于接收与所述代理服务器通信连接的管理服务器发送的控制信息和终端标识,所述控制信息携带控制指令以及操作系统的系统标识,所述控制指令用于指示对所述终端标识对应的终端执行指定操作,所述操作系统为所述终端中的至少两个操作系统中的一个操作系统;所述控制信息用于指示在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端;
    所述处理单元,用于确定所述代理服务器与所述终端之间的通信连接出现异常,存储所述控制信息与所述终端标识的对应关系;
    所述发送单元,用于等待所述代理服务器与所述终端之间的通信连接正常后,根据所述终端标识向所述终端发送所述控制信息。
  21. 根据权利要求20所述的代理服务器,其特征在于,所述接收单元,还用于接收所述管理服务器发送的停止控制信息和所述终端的终端标识,所述停止控制信息携带所述控制指令和所述操作系统的系统标识,所述停止控制信息用于指示停止在所述终端的前台操作系统为所述操作系统时根据所述控制指令控制所述终端,
    所述发送单元,还用于根据所述终端标识向所述终端发送所述停止控制信息;以使所述终端删除所述终端中存储的所述操作系统的系统标识和所述控制指令的对应关系。
  22. 根据权利要求20所述的代理服务器,其特征在于,所述发送单元,还用于确定所述控制信息的信息格式不为所述终端支持的信息格式,将所述控制信息的信息格式转换为所述终端支持的信息格式;并根据所述终端标识向所述终端发送已转换信息格式的所述控制信息。
PCT/CN2017/086375 2016-11-22 2017-05-27 终端控制方法及装置 WO2018094996A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17873021.4A EP3407195B1 (en) 2016-11-22 2017-05-27 Terminal control method and apparatus
EP22159409.6A EP4095683A1 (en) 2016-11-22 2017-05-27 Terminal control method and apparatus
US16/419,580 US11468183B2 (en) 2016-11-22 2019-05-22 Differentiated management and control of terminals with multiple operating systems

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611039815.6 2016-11-22
CN201611039815.6A CN108089928B (zh) 2016-11-22 2016-11-22 终端控制方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/419,580 Continuation US11468183B2 (en) 2016-11-22 2019-05-22 Differentiated management and control of terminals with multiple operating systems

Publications (1)

Publication Number Publication Date
WO2018094996A1 true WO2018094996A1 (zh) 2018-05-31

Family

ID=62170821

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086375 WO2018094996A1 (zh) 2016-11-22 2017-05-27 终端控制方法及装置

Country Status (4)

Country Link
US (1) US11468183B2 (zh)
EP (2) EP3407195B1 (zh)
CN (1) CN108089928B (zh)
WO (1) WO2018094996A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335383B (zh) * 2019-06-18 2021-09-07 广东汇泰龙科技股份有限公司 一种全面记录操作信息的方法及应用其的云锁系统
CN110515662B (zh) * 2019-07-17 2021-01-01 湖南新云网科技有限公司 双系统设备的远程控制方法、系统、设备及可读存储介质
CN112905275A (zh) * 2019-12-03 2021-06-04 斑马智行网络(香港)有限公司 用于多操作系统的显示方法和显示设备
US11632294B2 (en) * 2020-05-19 2023-04-18 Microsoft Technology Licensing, Llc Configuration techniques for managed host operating systems and containerized applications instantiated thereby

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145277A (zh) * 2006-09-13 2008-03-19 株式会社东芝 信息处理设备及远程控制代码传送控制方法
CN101493779A (zh) * 2009-02-27 2009-07-29 中国工商银行股份有限公司 一种对远程终端进行控制的方法
CN102148841A (zh) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 一种远程监控多操作系统的方法
CN104049858A (zh) * 2013-03-15 2014-09-17 宇宙互联有限公司 支持操作系统共享的电子装置、系统及方法
CN104093077A (zh) * 2013-10-29 2014-10-08 腾讯科技(深圳)有限公司 多终端互联的方法、装置及系统
US20140351893A1 (en) * 2009-09-10 2014-11-27 Amazon Technologies, Inc. Managing hardware reboot and reset in shared environments

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191623A1 (en) * 2002-02-25 2003-10-09 Oak Technology, Inc. Computer system capable of executing a remote operating system
AU2011202837B2 (en) * 2010-12-21 2013-08-22 Lg Electronics Inc. Mobile terminal and method of controlling a mode switching therein
AU2011202840B2 (en) * 2010-12-21 2014-04-17 Lg Electronics Inc. Mobile terminal and method of controlling a mode switching therein
US9448825B2 (en) * 2011-08-05 2016-09-20 Vmware, Inc. Unified notification bar between virtual mobile device and physical mobile device
KR20130032460A (ko) * 2011-09-23 2013-04-02 엔에이치엔비즈니스플랫폼 주식회사 안전한 모바일 통신을 위한 네트워크 스위칭 기능을 가지는 휴대용 통신 단말기 및 그 스위칭 방법
US8893261B2 (en) * 2011-11-22 2014-11-18 Vmware, Inc. Method and system for VPN isolation using network namespaces
EP2846586B1 (en) * 2013-09-06 2018-11-28 Fujitsu Limited A method of accessing a network securely from a personal device, a corporate server and an access point
US20150264047A1 (en) * 2014-03-12 2015-09-17 Agreeya Mobility, Inc. Method and system for providing secure communication between multiple operating systems in a communication device
CN105025467B (zh) * 2014-04-28 2018-12-25 宇龙计算机通信科技(深圳)有限公司 一种基于mdm的终端控制方法及系统
US9912996B2 (en) * 2014-11-19 2018-03-06 Alticast Corporation System and method for providing cloud based user interfaces
US10084867B1 (en) * 2015-02-10 2018-09-25 Open Invention Network, Llc Location awareness assistant for switching between a business profile mode and a personal profile mode
CN105046156B (zh) * 2015-08-26 2018-05-08 北京元心科技有限公司 智能终端及其设备访问权限控制方法
CN105138896B (zh) * 2015-08-26 2017-10-20 北京元心科技有限公司 智能终端及其硬件设备访问权限控制方法
CN110545281B (zh) * 2016-05-27 2022-01-18 华为技术有限公司 一种接入wifi网络的方法及装置
US10505758B2 (en) * 2017-07-06 2019-12-10 Huawei Technologies Co., Ltd. Systems and methods for sharing network interfaces between containers in an embedded computing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145277A (zh) * 2006-09-13 2008-03-19 株式会社东芝 信息处理设备及远程控制代码传送控制方法
CN101493779A (zh) * 2009-02-27 2009-07-29 中国工商银行股份有限公司 一种对远程终端进行控制的方法
US20140351893A1 (en) * 2009-09-10 2014-11-27 Amazon Technologies, Inc. Managing hardware reboot and reset in shared environments
CN102148841A (zh) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 一种远程监控多操作系统的方法
CN104049858A (zh) * 2013-03-15 2014-09-17 宇宙互联有限公司 支持操作系统共享的电子装置、系统及方法
CN104093077A (zh) * 2013-10-29 2014-10-08 腾讯科技(深圳)有限公司 多终端互联的方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3407195A4 *

Also Published As

Publication number Publication date
US20190286829A1 (en) 2019-09-19
EP3407195B1 (en) 2022-04-06
EP3407195A4 (en) 2019-03-20
US11468183B2 (en) 2022-10-11
EP3407195A1 (en) 2018-11-28
EP4095683A1 (en) 2022-11-30
CN108089928A (zh) 2018-05-29
CN108089928B (zh) 2022-01-14

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
US10055220B2 (en) Method, apparatus, and system for processing desktop data of mobile terminal
US10320719B2 (en) Message withdrawal method, apparatus and storage medium
WO2018090933A1 (zh) 业务平台地址解析的方法、设备及系统
WO2015135328A1 (zh) 一种虚拟机迁移控制方法及装置
US11579946B2 (en) Method for managing multiple operating systems in a terminal
WO2016150270A1 (zh) 群组会话消息处理方法和装置
US11468183B2 (en) Differentiated management and control of terminals with multiple operating systems
JP6492184B2 (ja) 情報の推薦を管理するための方法、デバイス、およびシステム
WO2014206143A1 (zh) 未读消息数目显示方法、装置和设备
US9497565B1 (en) Interface display method, device, terminal, server and system
US10691819B2 (en) Method and apparatus for remotely deleting information
WO2018040813A1 (zh) 音视频通信方法、终端、服务器及存储介质
WO2014206138A1 (zh) 一种更新网页数据的方法、装置和终端设备
WO2018095216A1 (zh) 关系链处理方法、终端及存储介质
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN109144596B (zh) 快捷启动方法、装置、终端、服务器及系统
WO2018209802A1 (zh) 一种显示设备标识的方法、移动终端及终端设备
WO2017000496A1 (zh) 一种添加联系人的方法及设备
CN110196662B (zh) 一种展示同步状态的方法、装置、终端及存储介质
CN106209601B (zh) 状态更新消息的推送方法及装置
KR102493291B1 (ko) 사용자 계정 인식 개인 영역 네트워크 본딩
CN110572491B (zh) 信息分享方法、信息分享装置以及网络设备
CN116938855A (zh) 一种跨应用数据管理方法、装置、电子设备和存储介质
CN112799857A (zh) 一种应用访问方法以及装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2017873021

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017873021

Country of ref document: EP

Effective date: 20180820

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17873021

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE