CN110750408B - Method, device and apparatus for controlling USB debug mode switch, and storage medium - Google Patents

Method, device and apparatus for controlling USB debug mode switch, and storage medium Download PDF

Info

Publication number
CN110750408B
CN110750408B CN201910945125.4A CN201910945125A CN110750408B CN 110750408 B CN110750408 B CN 110750408B CN 201910945125 A CN201910945125 A CN 201910945125A CN 110750408 B CN110750408 B CN 110750408B
Authority
CN
China
Prior art keywords
instruction
switch
switching
server
usb
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910945125.4A
Other languages
Chinese (zh)
Other versions
CN110750408A (en
Inventor
陈娅芳
李政军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan youzhiduo Technology Co.,Ltd.
Original Assignee
Hunan New Cloudnet Technology Co ltd
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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN201910945125.4A priority Critical patent/CN110750408B/en
Publication of CN110750408A publication Critical patent/CN110750408A/en
Application granted granted Critical
Publication of CN110750408B publication Critical patent/CN110750408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The invention belongs to the technical field of intelligent equipment control, and provides a method, equipment, a device and a storage medium for controlling a USB debugging mode switch. The method comprises the following steps: the target equipment receives a switching instruction sent by the server, and the USB debugging function of the target equipment is in a hidden state; verifying the validity of the switching command according to a preset verification rule; and when the switching command is legal, acquiring command parameters from the switching command. The USB debugging function of the terminal equipment is in a hidden state, so that the USB debugging mode can be effectively prevented from being completely exposed to a terminal user, the problem that the USB debugging mode of the existing intelligent equipment is completely controlled by the user is solved, students are effectively prevented from surfing the Internet and installing third-party application by themselves, the personal safety of the students is guaranteed, the fairness of the learning environment is ensured, and finally, the special requirements in maintenance and development are met.

Description

Method, device and apparatus for controlling USB debug mode switch, and storage medium
Technical Field
The invention relates to the technical field of intelligent equipment control, in particular to a method, equipment, a device and a storage medium for controlling a USB debugging mode switch.
Background
At present, for primary and secondary school student intelligent equipment used in the market, such as electronic school boards, student positioning watches and other equipment, the function is single, the practicability is poor, especially the safety consideration is particularly deficient, and the setting of a USB debugging mode is often completely exposed to a terminal user. When the user breaks the intelligent device by self-flashing, the USB debugging mode can be started, and once the user starts the 'USB debugging' setting, the user gives up half of the control right of the intelligent device. In this case, the following problems exist in the existing intelligent device: firstly, stealing data, selling the data to a third party organization by a lawless person by utilizing student data, and reducing the personal safety of students, for example, pretending to be a little chat of the students or deceiving the students by a white list of an address list; secondly, data are tampered, data such as false attendance, social contact, achievement and the like are provided, and learning fairness is damaged. In conclusion, the prior art is difficult to ensure the personal safety, data safety and learning fairness of students.
Disclosure of Invention
The invention mainly aims to provide a method, equipment and a storage medium for controlling a USB debugging mode switch, and aims to solve the technical problem that a USB debugging mode is completely exposed to a terminal user in the prior art.
To achieve the above object, a first aspect of the embodiments of the present invention provides a method for controlling a USB debug mode switch, including:
the target equipment receives the switch instruction sent by the server, and the USB debugging function of the target equipment is in a hidden state;
verifying the validity of the switching command according to a preset verification rule; when the switching command is legal, acquiring command parameters from the switching command;
and when the instruction parameter is a starting parameter, a USB debugging mode is started, and when the instruction parameter is a closing parameter, the USB debugging mode is closed.
In the embodiment of the invention, the USB debugging function of the terminal equipment is in a hidden state, the USB debugging mode is in a closed state under normal conditions, and when the terminal equipment has problems and needs to be maintained and developed or other scenes, a manufacturer can open the USB debugging mode of the terminal equipment by configuring a management platform; when the maintenance and development are completed, a manufacturer closes the USB debugging mode through the platform, the USB debugging mode can be effectively prevented from being completely exposed to a terminal user through the setting, the problem that the USB debugging mode of the existing intelligent equipment is completely controlled by the user is solved, on one hand, students can be prevented from surfing the Internet and installing third-party application by themselves, on the other hand, the personal safety of the students is guaranteed, the fairness of the learning environment is guaranteed, and finally, the special requirements during the maintenance and development are also met.
In the embodiment of the invention, the terminal equipment does not immediately react after receiving the switching instruction sent by the server, but verifies whether the sent switching instruction is legal or not according to the preset verification rule, and only when the switching instruction is correct and legal, the terminal equipment can obtain the corresponding instruction parameters from the switching instruction.
Further, the switch command comprises an MD5 value, a device ID, a command and command parameters, the MD5 value comprises an appID and a device ID character string, and the device ID refers to a unique ID identification of the device.
Further, the verifying the validity of the switch command according to a preset verification rule includes:
after the target equipment receives the switching instruction sent by the server, the target equipment simultaneously returns a corresponding switching instruction to the server;
the target device and the server respectively verify whether the MD5 value in the acquired switch command is the same as a preset value;
if the switching instructions are the same, the switching instructions are legal, and if the switching instructions are not the same, the switching instructions are illegal.
In the embodiment of the invention, the terminal equipment can respond to the switching instruction only when the switching instruction is legal when the MD5 values in the switching instructions received by the terminal equipment and the server are the same as the preset values. The whole process is managed by the manufacturer through the platform in a unified mode, the USB debugging mode of the intelligent equipment is completely controlled by the manufacturer, and a user cannot break the intelligent terminal equipment through self-flashing, so that the personal and data safety of students and the learning fairness are effectively guaranteed.
Further, before the target device receives the switch command sent by the server, the method further includes:
configuring the switching instruction for the target equipment through a cloud platform, and sending the switching instruction to the server;
and the server sends the switching command to the target equipment.
Further, the switch command is configured in any one of a single configuration mode, a batch configuration mode and an attribute configuration mode.
Further, the attribute configuration mode is configured according to any attribute of a city, a school, a year or a class.
Further, the mode of the terminal device acquiring the switch instruction sent by the server is any one of a network, bluetooth or a base station.
In the embodiment of the invention, the administrator performs unified management through the cloud platform according to different modes and different attributes, the operation is convenient and flexible, and the switch control of the USB debugging mode of the intelligent terminal equipment is well realized; the server can also send a switching instruction to the terminal equipment through various channels, so that the USB debugging mode can be reasonably switched on and off under different conditions.
A second aspect of the embodiments of the present invention provides a terminal device for controlling a USB debug mode switch, including:
the receiving module is used for receiving the switching instruction sent by the server; when the switch instruction is a turn-on instruction, responding to the switch instruction and turning on a USB debugging mode, and when the switch instruction is a turn-off instruction, responding to the switch instruction and turning off the USB debugging mode; wherein the USB debug mode is in a hidden state;
the sending module is used for returning a corresponding switch instruction to the server after the target equipment receives the switch instruction sent by the server;
and the judging module is used for verifying the legality of the switch instruction according to a preset verification rule.
A third aspect of the embodiments of the present invention provides an apparatus for controlling a USB debug mode switch, including a storage unit, a processing unit, and a computer program stored in the storage unit and executable on the processing unit, where the processing unit implements the steps of the remote control method when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, which stores a computer program, and the computer program, when executed by a processor or a processing unit, implements the steps of the remote control method described above.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for controlling a USB debug mode switch according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal device for controlling a USB debug mode switch according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for controlling a USB debug mode switch according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
As shown in fig. 1, a first embodiment of the present invention provides a method for controlling a USB debug mode switch, including:
s12, the target device receives the switch instruction sent by the server, and the USB debugging mode is in a hidden state; when the switch instruction is a turn-on instruction, responding to the switch instruction and turning on a USB debugging mode, and when the switch instruction is a turn-off instruction, responding to the switch instruction and turning off the USB debugging mode;
in one embodiment, step S12 is followed by:
s13, verifying the legality of the switch instruction according to a preset verification rule;
and when the switching command is legal, acquiring command parameters from the switching command.
In this embodiment, after the terminal device obtains the switch instruction sent by the server, the terminal device does not immediately respond, but first verifies whether the sent switch instruction is legal according to a preset verification rule, and if the switch instruction is legal, the terminal device obtains instruction parameters from the switch instruction; and if the command parameters are illegal, the terminal equipment cannot acquire the command parameters from the switching command.
In an application, a server includes, but is not limited to, a third party server. The USB debugging mode of the terminal equipment is in a hidden state, under a normal condition, the USB debugging mode is in a closed state, and when the terminal equipment has problems and needs to be maintained and developed, a manufacturer can open the USB debugging mode of the terminal equipment through a configuration management platform; when the maintenance and development are completed, the manufacturer closes the USB debugging mode through the platform. The terminal device includes but is not limited to intelligent terminals such as cell-phones, panel computer, intelligent bracelet, school tablet, electronic schoolbag.
In one embodiment, step S13 is followed by:
s14, controlling the USB debugging mode to be opened and closed according to the instruction parameters;
and when the instruction parameter is a starting parameter, a USB debugging mode is started, and when the instruction parameter is a closing parameter, the USB debugging mode is closed.
In one implementation, the switch command includes an MD5 value, a device ID, a command, and command parameters, the MD5 value includes an appID and a device ID string, and the device ID refers to a unique ID identification of the device.
It should be noted that appID is fixed data which is applied from a cloud platform and has a good protocol; the equipment ID refers to the unique ID identification of each terminal equipment, and the equipment IDs of different terminal equipments are different; the instruction is an instruction character with a good protocol between the server and the terminal device, and the instruction parameter is a parameter content corresponding to the instruction, for example, the instruction may be "0" and "1", where the instruction parameter corresponding to the instruction "0" may be an on parameter, and the instruction parameter corresponding to the instruction "1" may be an off parameter.
In a specific implementation, the verifying the validity of the switch command according to a preset verification rule includes:
after the target equipment receives the switching instruction sent by the server, the target equipment simultaneously returns a corresponding switching instruction to the server;
the target device and the server respectively verify whether the MD5 value in the acquired switch command is the same as a preset value;
if the switching instructions are the same, the switching instructions are legal, and if the switching instructions are not the same, the switching instructions are illegal.
In this embodiment, when the MD5 values in the switch commands acquired by the target device and the server are the same as the preset values, the terminal device determines that the switch command sent by the server is legal, and the terminal device responds to the corresponding switch command; when the MD5 values in the switching instructions acquired by the target device and the server are different from the preset values, the terminal device judges that the switching instruction sent by the server is illegal, and the terminal device does not need to respond to the corresponding switching instruction.
In an embodiment of the present invention, before the target device receives the switch instruction sent by the server, the method further includes:
s10, configuring the switching instruction for the target equipment through a cloud platform, and sending the switching instruction to the server;
and S11, the server sends the switching instruction to the target equipment.
In an embodiment of the present invention, the switch command is configured in a single configuration manner, a batch configuration manner, and an attribute configuration manner. The attribute configuration mode can be configured according to any attribute of a city, a school, a year or a class, or other attributes can be adopted to flexibly configure the terminal device according to needs.
In this embodiment, the configuration switch instructions can be managed in a unified manner, thereby effectively avoiding the exposure of the setting of the USB debugging mode to the terminal user, and the USB debugging mode switch can be flexibly controlled to the terminal device as required, thereby realizing the reasonable opening and closing of the USB debugging mode under different conditions.
In application, the manner of acquiring the switch command sent by the server includes, but is not limited to, a network manner, a bluetooth manner, and a base station manner. The Bluetooth mode can be parent APP mobile phone Bluetooth or end user APP mobile phone Bluetooth, and the base station mode can be a 2.4G base station of intelligent equipment in a classroom.
This embodiment is through setting up USB debugging function into hidden state, and be controlled by the firm completely, the user can't be through the intelligent terminal equipment of breaking by oneself the flashing, can effectively avoid exposing the USB debugging mode for end user completely, the problem that current intelligent equipment USB debugging mode is controlled by the user completely has been solved, can prevent student's online by oneself the flashing on the one hand, install third party and use, on the other hand has ensured student's personal safety, the fairness of learning environment has been guaranteed, special requirement when maintenance and development has also been satisfied at last.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example two
As shown in fig. 2, the present embodiment provides a terminal device 100 for controlling a USB debug mode switch, including:
a receiving module 10, configured to receive the switch instruction sent by the server; when the switch instruction is a turn-on instruction, responding to the switch instruction and turning on a USB debugging mode, and when the switch instruction is a turn-off instruction, responding to the switch instruction and turning off the USB debugging mode; wherein the USB debug mode is in a hidden state;
a sending module 20, configured to, after the target device receives the switch instruction sent by the server, simultaneously return a corresponding switch instruction to the server;
and the judging module 30 is used for verifying the validity of the switch instruction according to a preset verification rule.
In one embodiment, the terminal device 100 for controlling the USB debug mode switch further includes:
and the acquisition module is used for acquiring instruction parameters from the switch instruction when the switch instruction is legal.
In one embodiment, the terminal device 100 for controlling the USB debug mode switch further includes:
and the control module is used for opening the USB debugging mode when the instruction parameter is an opening parameter, and closing the USB debugging mode when the instruction parameter is a closing parameter.
In one embodiment, the terminal device 100 for controlling the USB debug mode switch further includes:
the verification module is used for verifying whether the MD5 value in the switch command received by the terminal equipment is the same as a preset value or not; if the switching instructions are the same, the switching instructions are legal, and if the switching instructions are not the same, the switching instructions are illegal.
In one embodiment, the terminal device 100 for controlling the USB debug mode switch further includes:
the switch instruction of the terminal equipment is managed in a unified mode in the embodiment, the USB debugging function of the terminal equipment is set to be in a hidden state, the switch instruction legality sent out is verified according to the preset verification rule after the switch instruction is obtained, the USB debugging mode of the intelligent terminal equipment is completely controlled by a manufacturer, the manufacturer uniformly configures the USB debugging mode switch of the terminal equipment, the problem that the USB debugging mode of the existing intelligent equipment is completely controlled by a user is solved, on one hand, students can be prevented from surfing the internet by themselves, third party application is installed, on the other hand, the personal safety of the students is guaranteed, the fairness of a learning environment is guaranteed, and finally, special requirements in maintenance and development are met.
EXAMPLE III
As shown in fig. 3, the present embodiment provides an apparatus 80 for controlling a USB debug mode switch, comprising: a storage unit 801, a processing unit 803, and a computer program 802 stored in the storage unit 801 and executable on the processing unit 803. The processing unit 803 implements the steps of the method for controlling the USB debug mode switch as described above, such as steps S11-S13 shown in FIG. 1, when the computer program 802 is executed. Alternatively, the processing unit 803 realizes the functions of each module/unit in each device embodiment described above when executing the computer program 802.
Illustratively, the computer program 802 may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the present invention. The one or more modules/units may be a series of instruction segments of the computer program 802 that can perform specific functions, which are used to describe the execution process of the computer program 802 in the apparatus 80 for controlling a USB debug mode switch. For example, the computer program 802 may be divided into a receiving module 10, a sending module 20 and a determining module 30, and the specific functions of each module are as follows:
a receiving module 10, configured to receive the switch instruction sent by the server; when the switch instruction is a turn-on instruction, responding to the switch instruction and turning on a USB debugging mode, and when the switch instruction is a turn-off instruction, responding to the switch instruction and turning off the USB debugging mode; wherein the USB debug mode is in a hidden state;
a sending module 20, configured to, after the target device receives the switch instruction sent by the server, simultaneously return a corresponding switch instruction to the server;
the judging module 30 is used for verifying the validity of the switch instruction according to a preset verification rule; and when the switching command is legal, acquiring command parameters from the switching command.
The device 80 for controlling the USB debug mode switch may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The device 80 for controlling the USB debug mode switch can include, but is not limited to, a processing unit 803 and a storage unit 801. It will be understood by those skilled in the art that fig. 3 is merely an example of the apparatus 80 for controlling the USB debug mode switch, and does not constitute a limitation of the apparatus 80 for controlling the USB debug mode switch, and may include more or less components than those shown, or combine some components, or different components, for example, the data recovery terminal device may further include an input-output device, a network access device, a bus, etc.
The Processing Unit 803 may be a Central Processing Unit (CPU) 803, or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage unit 801 may be an internal storage unit 801 of the apparatus 80 for controlling a USB debug mode switch, such as a hard disk or a memory of the apparatus 80 for controlling a USB debug mode switch. The storage unit 801 may also be an external storage device of the apparatus 80 for controlling the USB debug mode switch, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the apparatus 80 for controlling the USB debug mode switch. In one embodiment, the storage unit 801 may further include both the internal storage unit 801 and the external storage device of the apparatus 80 for controlling a USB debug mode switch. The storage unit 801 is used to store the computer program 802 and other programs and data required by the data recovery terminal device. The storage unit 801 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/communication terminal and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/communication terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A method of controlling a USB debug mode switch, comprising:
the method comprises the steps that target equipment receives a switching instruction sent by a server, and the USB debugging function of the target equipment is in a hidden state;
verifying the validity of the switching command according to a preset verification rule; when the switching command is legal, acquiring command parameters from the switching command;
when the instruction parameter is a starting parameter, a USB debugging mode is started, and when the instruction parameter is a closing parameter, the USB debugging mode is closed;
the switch command comprises an MD5 value, a device ID, a command and command parameters, the MD5 value comprises an appID and a device ID character string, and the device ID refers to a unique ID identification of the device;
the verifying the validity of the switch command according to a preset verification rule comprises the following steps:
after the target equipment receives the switching instruction sent by the server, the target equipment simultaneously returns a corresponding switching instruction to the server;
the target device and the server respectively verify whether the MD5 value in the acquired switch command is the same as a preset value;
if the switching instructions are the same, the switching instructions are legal, and if the switching instructions are not the same, the switching instructions are illegal.
2. The method for controlling switching of the USB debug mode according to claim 1, wherein before said target device receives said switching instruction from said server, further comprising:
configuring the switching instruction for the target equipment through a cloud platform, and sending the switching instruction to the server;
and the server sends the switching command to the target equipment.
3. The method according to claim 2, wherein the switch command is configured in any one of a single configuration mode, a batch configuration mode, and an attribute configuration mode.
4. The method according to claim 3, wherein the attribute configuration mode is configured according to any one of a city, a school, a year, and a class.
5. A terminal device for controlling a USB debug mode switch, comprising:
the receiving module is used for receiving a switching instruction sent by the server; when the switch instruction is a turn-on instruction, responding to the switch instruction and turning on a USB debugging mode, and when the switch instruction is a turn-off instruction, responding to the switch instruction and turning off the USB debugging mode; wherein the USB debug mode is in a hidden state;
the sending module is used for returning a corresponding switch instruction to the server after the target equipment receives the switch instruction sent by the server;
the judging module is used for verifying the validity of the switch instruction according to a preset verification rule;
the acquisition module is used for acquiring instruction parameters from the switch instruction when the switch instruction is legal;
the control module is used for opening a USB debugging mode when the instruction parameter is an opening parameter, and closing the USB debugging mode when the instruction parameter is a closing parameter;
the verification module is used for verifying whether the MD5 value in the switch command received by the terminal equipment is the same as a preset value or not; if the switching instructions are the same, the switching instructions are legal, and if the switching instructions are not the same, the switching instructions are illegal.
6. An apparatus for controlling a USB debug mode switch, comprising a storage unit, a processing unit, and a computer program stored in said storage unit and executable on said processing unit, wherein the steps of the method according to any of claims 1 to 4 are implemented when said computer program is executed by said processing unit.
7. A readable storage medium, in which a computer program is stored which, when being executed by a processor or a processing unit, carries out the steps of the method according to any one of claims 1 to 4.
CN201910945125.4A 2019-09-30 2019-09-30 Method, device and apparatus for controlling USB debug mode switch, and storage medium Active CN110750408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945125.4A CN110750408B (en) 2019-09-30 2019-09-30 Method, device and apparatus for controlling USB debug mode switch, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945125.4A CN110750408B (en) 2019-09-30 2019-09-30 Method, device and apparatus for controlling USB debug mode switch, and storage medium

Publications (2)

Publication Number Publication Date
CN110750408A CN110750408A (en) 2020-02-04
CN110750408B true CN110750408B (en) 2021-03-26

Family

ID=69277697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945125.4A Active CN110750408B (en) 2019-09-30 2019-09-30 Method, device and apparatus for controlling USB debug mode switch, and storage medium

Country Status (1)

Country Link
CN (1) CN110750408B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552630A (en) * 2020-03-24 2020-08-18 北京声智科技有限公司 Skill debugging method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808441A (en) * 2016-03-31 2016-07-27 浪潮通用软件有限公司 Multidimensional performance diagnosis and analysis method
CN108563134A (en) * 2018-03-28 2018-09-21 四川斐讯信息技术有限公司 A kind of method and system based on network-control child's lock-switch
CN109582518A (en) * 2018-12-06 2019-04-05 广东浪潮大数据研究有限公司 It is a kind of for the control method of BIOS debugging mode, device and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9621561B2 (en) * 2009-02-27 2017-04-11 Microsoft Technology Licensing, Llc Enabling trusted conferencing services
CN104239804A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Data protecting method and device
CN104239813A (en) * 2014-09-15 2014-12-24 南京邮电大学 Use control method of mobile terminal application software
CN104866752B (en) * 2015-05-12 2018-09-04 广东欧珀移动通信有限公司 A kind of application guard method and user terminal
CN106407068A (en) * 2015-07-30 2017-02-15 华为终端(东莞)有限公司 A device automatically controlling connection and disconnection of USB cables and a testing method
CN108427649B (en) * 2018-01-16 2020-09-15 广州杰赛科技股份有限公司 Access management method, terminal device, system and storage medium of USB interface
CN109800602B (en) * 2019-01-25 2023-05-16 北京掌汇天下科技有限公司 Privacy protection method, mobile terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808441A (en) * 2016-03-31 2016-07-27 浪潮通用软件有限公司 Multidimensional performance diagnosis and analysis method
CN108563134A (en) * 2018-03-28 2018-09-21 四川斐讯信息技术有限公司 A kind of method and system based on network-control child's lock-switch
CN109582518A (en) * 2018-12-06 2019-04-05 广东浪潮大数据研究有限公司 It is a kind of for the control method of BIOS debugging mode, device and equipment

Also Published As

Publication number Publication date
CN110750408A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US20190095059A1 (en) Method and device for processing application icon and electronic apparatus
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN107506637A (en) Information displaying method and device, terminal and readable storage medium storing program for executing
CN107861738A (en) Using abnormality eliminating method, device, storage medium and terminal device
US8914013B2 (en) Device management macros
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
CN109271211A (en) Method, apparatus of attending to anything else, equipment and the medium of application program
CN112698895A (en) Display method, device, equipment and medium of electronic equipment
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN110244963B (en) Data updating method and device and terminal equipment
CN110750408B (en) Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN110515662B (en) Remote control method, system, equipment and readable storage medium for dual-system equipment
CN111177732B (en) System debugging mode control method and system and electronic equipment
CN110659462A (en) Terminal control method, terminal control system and terminal
CN108293197B (en) Resource statistical method, device and terminal
CN112016080A (en) Application authority management method and device and electronic equipment
CN106933666B (en) Method for calling information input program and electronic equipment
CN106648298B (en) Application control method and device and mobile terminal
CN112948817A (en) Permission control method and device of application program, computer equipment and medium
CN110245016B (en) Data processing method, system, device and terminal equipment
CN109543420B (en) Permission configuration method and device based on sud, electronic equipment and storage medium
CN109947309B (en) Application control method and device, terminal and readable storage medium
CN107291512B (en) Application program multi-opening method and device, terminal equipment and storage medium
CN111915422A (en) Wind control model scheduling method and device, machine readable medium and equipment
CN109918122B (en) White list maintenance method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220415

Address after: 410000 No. 201, building 5, R & D headquarters, Central South University Science Park, changzuo Road, Yuelu street, Yuelushan University Science and Technology City, Changsha City, Hunan Province

Patentee after: Hunan youzhiduo Technology Co.,Ltd.

Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right