CN112818331A - Adb tool encryption control method, device, equipment and storage medium - Google Patents
Adb tool encryption control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112818331A CN112818331A CN202110075608.0A CN202110075608A CN112818331A CN 112818331 A CN112818331 A CN 112818331A CN 202110075608 A CN202110075608 A CN 202110075608A CN 112818331 A CN112818331 A CN 112818331A
- Authority
- CN
- China
- Prior art keywords
- user
- adb tool
- adb
- tool
- acquiring
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses an adb tool encryption control method, device, equipment and storage medium. The invention installs adb tool at PC end and generates adb tool command window; establishing communication connection between a PC (personal computer) end and intelligent equipment; acquiring an input action signal of a user in the adb tool command window; displaying a control enabling option of an adb tool page to a user according to the action signal; and acquiring a password input command of a user, and closing the adb tool use function of the intelligent equipment according to the password input command. The adb tool encryption control method can open or close the adb tool in the developer mode, so that a user can obtain enough authority by using the development mode, and can also forbid the use of the adb function for a terminal user, thereby ensuring the data security of intelligent equipment.
Description
Technical Field
The invention relates to the field of software control, in particular to an adb tool encryption control method, device, equipment and storage medium.
Background
The adb tool is an important debugging tool for the android product, and can be used for installing/uninstalling applications, adding/deleting system files, acquiring equipment information, operating states and the like. In addition, the android product has adb functionality only in development mode.
At present, android products are widely applied to the fields of industrial control and business display, and generally need to be delivered in a development mode to obtain enough permissions for clients to custom add extranet equipment and the like. However, the adb tool is also directly open to the end user, which poses a significant threat to the security of the product. Therefore, how to promote the encryption security of the adb tool has become an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
In order to overcome the above defects, embodiments of the present invention provide an adb tool encryption control method, apparatus, device, and storage medium, so as to solve the problems in the prior art.
In a first aspect, an embodiment of the present invention provides an adb tool encryption control method, where the method includes:
installing an adb tool at a PC (personal computer) end and generating an adb tool command window;
establishing communication connection between a PC (personal computer) end and intelligent equipment;
acquiring an input action signal of a user in the adb tool command window;
displaying a control enabling option of an adb tool page to a user according to the action signal;
and acquiring a password input command of a user, and closing the adb tool use function of the intelligent equipment according to the password input command.
Preferably, the acquiring an input action signal of a user in the adb tool command window includes:
detecting whether a user clicks an equipment number button on a PC terminal interface;
and acquiring an input action signal of the user according to the clicking action of the user.
Preferably, the displaying the control enabling option of the adb tool page to the user according to the action signal includes:
creating a password input dialog box based on the AlertDialog dialog box and the EditText input box instance;
acquiring a password value input by a user;
storing a default password value by using a prop file;
comparing whether the password value input by the user is matched with the default password value;
and if so, showing whether the adb tool page needs to be closed or not to the user.
Preferably, the displaying the control enabling option of the adb tool page to the user according to the action signal further includes:
and if not, directly returning to the adb tool command window.
Preferably, if the adb tool page is matched, the displaying to the user whether the adb tool page needs to be closed includes:
if the user mode is matched with the developer mode, entering a mode selection dialog box, wherein the mode selection dialog box comprises a user mode and a developer mode;
in developer mode, the user is shown whether the adb tool page needs to be closed.
Preferably, the detecting whether the user clicks a device number button on the PC-side interface includes:
and detecting whether the user clicks the equipment number button once or more on the PC-side interface.
In a second aspect, an embodiment of the present invention provides an adb tool encryption control apparatus, where the apparatus includes:
the command window generating module is used for installing an adb tool at the PC end and generating an adb tool command window;
the communication connection establishing module is used for establishing communication connection between the PC end and the intelligent equipment;
the user command acquisition module is used for acquiring an input action signal of a user in the adb tool command window;
the display control module is used for displaying a control enabling option of the adb tool page to a user according to the action signal;
and the abd tool enabling control module is used for acquiring a password input command of a user and closing the adb tool using function of the intelligent equipment according to the password input command.
In a third aspect, an embodiment of the present invention provides an adb tool encryption control apparatus, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of the first aspect in the above embodiments.
In summary, the adb tool encryption control method, apparatus, device and storage medium provided by the embodiments of the present invention. The invention installs adb tool at PC end and generates adb tool command window; establishing communication connection between a PC (personal computer) end and intelligent equipment; acquiring an input action signal of a user in the adb tool command window; displaying a control enabling option of an adb tool page to a user according to the action signal; and acquiring a password input command of a user, and closing the adb tool use function of the intelligent equipment according to the password input command. The adb tool encryption control method can open or close the adb tool in the developer mode, so that a user can obtain enough authority by using the development mode, and can also forbid the use of the adb function for a terminal user, thereby ensuring the data security of intelligent equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an adb tool encryption control method according to an embodiment of the present invention.
Fig. 2 is a flowchart of the method for controlling encryption of an adb tool according to the embodiment of the present invention, showing a control enabling option of an adb tool page to a user according to the action signal.
Fig. 3 is a logic architecture of an adb tool encryption control method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an adb tool encryption control apparatus according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an adb tool encryption control apparatus according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1 and fig. 3, an embodiment of the present invention provides an adb tool encryption control method, which can turn on or off an adb tool in a developer mode, so that a user can obtain enough rights using a development mode, and also can prohibit an adb function from being used by a terminal user, thereby ensuring data security of an intelligent device.
The method comprises the following steps:
s1, installing an adb tool at the PC end and generating an adb tool command window;
s2, establishing communication connection between the PC end and the intelligent equipment;
s3, acquiring an input action signal of a user in the adb tool command window;
preferably, the acquiring an input action signal of a user in the adb tool command window includes:
detecting whether a user clicks an equipment number button on a PC terminal interface;
and acquiring an input action signal of the user according to the clicking action of the user.
S4, displaying a control enabling option of the adb tool page to a user according to the action signal;
preferably, referring to fig. 2, the displaying the control enabling option of the adb tool page to the user according to the action signal includes:
s41, creating a password input dialog box based on the AlertDialog dialog box and the EditText input box instance;
s42, acquiring a password value input by a user;
s43, storing default password values by utilizing the prop file;
s44, comparing whether the password value input by the user is matched with the default password value;
and S45, if the adb tool page is matched with the adb tool page, showing whether the adb tool page needs to be closed or not to the user.
And S5, acquiring a password input command of a user, and closing the adb tool use function of the intelligent device according to the password input command.
Preferably, the displaying the control enabling option of the adb tool page to the user according to the action signal further includes:
and if not, directly returning to the adb tool command window.
Preferably, if the adb tool page is matched, the displaying to the user whether the adb tool page needs to be closed includes:
if the user mode is matched with the developer mode, entering a mode selection dialog box, wherein the mode selection dialog box comprises a user mode and a developer mode;
in developer mode, the user is shown whether the adb tool page needs to be closed.
Preferably, the detecting whether the user clicks a device number button on the PC-side interface includes:
and detecting whether the user clicks the equipment number button once or more on the PC-side interface. Specifically, in the present embodiment, whether the user clicks the device number button on the adb tool command window is detected seven times; when the password is detected, firstly, popping up a password input box and inputting the password. Analyzing the prop file through SystemProperties, obtaining a default password value, and comparing the input password. It can be understood that systemoproperties is a class, and directly calls locally to create, obtain and modify system properties, and the path is: SystemProperties/frames/base/core/java/android/os/SystemProperties
Referring to fig. 4, an embodiment of the present invention provides an adb tool encryption control apparatus, where the apparatus includes:
the command window generating module 1 is used for installing an adb tool at a PC end and generating an adb tool command window;
the communication connection establishing module 2 is used for establishing communication connection between the PC end and the intelligent equipment;
the user command acquisition module 3 is used for acquiring an input action signal of a user in the adb tool command window;
the display control module 4 is used for displaying a control enabling option of an adb tool page to a user according to the action signal;
and the abd tool enabling control module 5 is used for acquiring a password input command of a user and closing the adb tool using function of the intelligent equipment according to the password input command.
In addition, an adb tool encryption control method according to the embodiment of the present invention described in conjunction with fig. 1 may be implemented by an adb tool encryption control apparatus. Fig. 5 is a schematic diagram illustrating a hardware structure of an adb tool encryption control apparatus according to an embodiment of the present invention.
The adb tool encryption control apparatus may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the adb tool encryption control methods in the above-described embodiments.
In one example, the adb tool encryption control device may also include a communication interface 403 and a bus 410. As shown in fig. 5, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
In addition, in combination with the adb tool encryption control method in the foregoing embodiment, an embodiment of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the adb tool encryption control methods in the above embodiments.
In summary, embodiments of the present invention provide an adb tool encryption control method, apparatus, device, and storage medium. The invention installs adb tool at PC end and generates adb tool command window; establishing communication connection between a PC (personal computer) end and intelligent equipment; acquiring an input action signal of a user in the adb tool command window; displaying a control enabling option of an adb tool page to a user according to the action signal; and acquiring a password input command of a user, and closing the adb tool use function of the intelligent equipment according to the password input command. The adb tool encryption control method can open or close the adb tool in the developer mode, so that a user can obtain enough authority by using the development mode, and can also forbid the use of the adb function for a terminal user, thereby ensuring the data security of intelligent equipment.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (9)
1. An adb tool encryption control method, the method comprising:
installing an adb tool at a PC (personal computer) end and generating an adb tool command window;
establishing communication connection between a PC (personal computer) end and intelligent equipment;
acquiring an input action signal of a user in the adb tool command window;
displaying a control enabling option of an adb tool page to a user according to the action signal;
and acquiring a password input command of a user, and closing the adb tool use function of the intelligent equipment according to the password input command.
2. The adb tool encryption control method of claim 1, wherein the acquiring an input action signal of a user in the adb tool command window comprises:
detecting whether a user clicks an equipment number button on a PC terminal interface;
and acquiring an input action signal of the user according to the clicking action of the user.
3. The adb tool encryption control method of claim 2, wherein the displaying the control enabling option of the adb tool page to the user according to the action signal comprises:
creating a password input dialog box based on the AlertDialog dialog box and the EditText input box instance;
acquiring a password value input by a user;
storing a default password value by using a prop file;
comparing whether the password value input by the user is matched with the default password value;
and if so, showing whether the adb tool page needs to be closed or not to the user.
4. The adb tool encryption control method of claim 3, wherein the presenting the control enabling option of the adb tool page to the user according to the action signal further comprises:
and if not, directly returning to the adb tool command window.
5. The adb tool encryption control method of claim 4, wherein if the adb tool page matches, displaying to a user whether the adb tool page needs to be closed comprises:
if the user mode is matched with the developer mode, entering a mode selection dialog box, wherein the mode selection dialog box comprises a user mode and a developer mode;
in developer mode, the user is shown whether the adb tool page needs to be closed.
6. The encryption control method for the adb tool of claim 2, wherein the detecting whether the user clicks a device number button on the PC-side interface comprises:
and detecting whether the user clicks the equipment number button once or more on the PC-side interface.
7. An adb tool encryption control apparatus, the apparatus comprising:
the command window generating module is used for installing an adb tool at the PC end and generating an adb tool command window;
the communication connection establishing module is used for establishing communication connection between the PC end and the intelligent equipment;
the user command acquisition module is used for acquiring an input action signal of a user in the adb tool command window;
the display control module is used for displaying a control enabling option of the adb tool page to a user according to the action signal;
and the abd tool enabling control module is used for acquiring a password input command of a user and closing the adb tool using function of the intelligent equipment according to the password input command.
8. An adb tool encryption control apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-6.
9. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075608.0A CN112818331A (en) | 2021-01-20 | 2021-01-20 | Adb tool encryption control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075608.0A CN112818331A (en) | 2021-01-20 | 2021-01-20 | Adb tool encryption control method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112818331A true CN112818331A (en) | 2021-05-18 |
Family
ID=75858494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110075608.0A Pending CN112818331A (en) | 2021-01-20 | 2021-01-20 | Adb tool encryption control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112818331A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113742658A (en) * | 2021-07-22 | 2021-12-03 | 深圳市智微智能科技股份有限公司 | adb tool encryption method, system, terminal and storage medium |
CN113961931A (en) * | 2021-10-19 | 2022-01-21 | 北京字节跳动网络技术有限公司 | Adb tool using method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106612178A (en) * | 2015-10-22 | 2017-05-03 | 哈尔滨安天科技股份有限公司 | Method and device for protecting security of Android adb data transmission |
CN107402876A (en) * | 2016-05-18 | 2017-11-28 | 中兴通讯股份有限公司 | A kind of method and terminal of startup ADB debugging |
CN110442398A (en) * | 2019-08-09 | 2019-11-12 | 四川虹美智能科技有限公司 | A kind of adb instrument start-up method, smart machine and system |
CN111125675A (en) * | 2018-10-30 | 2020-05-08 | 阿里巴巴集团控股有限公司 | Method and system for controlling debugging port and test method |
CN111709054A (en) * | 2020-06-12 | 2020-09-25 | 腾讯科技(深圳)有限公司 | Privacy space information access control method and device and computer equipment |
CN111756703A (en) * | 2020-06-03 | 2020-10-09 | 拉扎斯网络科技(上海)有限公司 | Debugging interface management method and device and electronic equipment |
-
2021
- 2021-01-20 CN CN202110075608.0A patent/CN112818331A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106612178A (en) * | 2015-10-22 | 2017-05-03 | 哈尔滨安天科技股份有限公司 | Method and device for protecting security of Android adb data transmission |
CN107402876A (en) * | 2016-05-18 | 2017-11-28 | 中兴通讯股份有限公司 | A kind of method and terminal of startup ADB debugging |
CN111125675A (en) * | 2018-10-30 | 2020-05-08 | 阿里巴巴集团控股有限公司 | Method and system for controlling debugging port and test method |
CN110442398A (en) * | 2019-08-09 | 2019-11-12 | 四川虹美智能科技有限公司 | A kind of adb instrument start-up method, smart machine and system |
CN111756703A (en) * | 2020-06-03 | 2020-10-09 | 拉扎斯网络科技(上海)有限公司 | Debugging interface management method and device and electronic equipment |
CN111709054A (en) * | 2020-06-12 | 2020-09-25 | 腾讯科技(深圳)有限公司 | Privacy space information access control method and device and computer equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113742658A (en) * | 2021-07-22 | 2021-12-03 | 深圳市智微智能科技股份有限公司 | adb tool encryption method, system, terminal and storage medium |
CN113961931A (en) * | 2021-10-19 | 2022-01-21 | 北京字节跳动网络技术有限公司 | Adb tool using method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2426618B1 (en) | Information device, program, method for preventing execution of unauthorized program code, and computer readable recording medium | |
US7657870B2 (en) | Method and apparatus for implementing dynamic function groups in a data processing system | |
US20210192022A1 (en) | Permission management system, permission management method, and electronic device | |
CN112818331A (en) | Adb tool encryption control method, device, equipment and storage medium | |
CN108763951B (en) | Data protection method and device | |
CN110855642B (en) | Application vulnerability detection method and device, electronic equipment and storage medium | |
CN109684795B (en) | Method and device for anti-debugging of application program and electronic equipment | |
US10318731B2 (en) | Detection system and detection method | |
CN110659491B (en) | Computer system recovery method, device, equipment and readable storage medium | |
CN107153608B (en) | Code detection method and code detection device | |
EP3001293A1 (en) | Method and device for rights management | |
CN107315947A (en) | Pay class application management method, device and mobile terminal | |
CN106127558B (en) | Bill generation method and mobile terminal | |
CN110674050B (en) | Memory out-of-range detection method and device, electronic equipment and computer storage medium | |
CN111222122A (en) | Application authority management method and device and embedded equipment | |
CN110633196A (en) | Automatic use case execution method and device of application program | |
CN114925344A (en) | U-coil control method, device, equipment and medium | |
CN114356290A (en) | Data processing method and device and computer readable storage medium | |
US11461494B2 (en) | Secure view of content on devices | |
CN113110771A (en) | Desktop application icon display control method and device, terminal equipment and storage medium | |
CN115083463B (en) | Method, electronic system and storage medium for controlling memory access rights | |
CN113703810B (en) | Updating method and device | |
CN114707149B (en) | Puppet process detection method and device, electronic equipment and storage medium | |
CN114969759B (en) | Asset security assessment method, device, terminal and medium of industrial robot system | |
TWI779257B (en) | Firmware update method and firmware update system thereof |
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 |