CN113742658A - adb tool encryption method, system, terminal and storage medium - Google Patents

adb tool encryption method, system, terminal and storage medium Download PDF

Info

Publication number
CN113742658A
CN113742658A CN202110829668.7A CN202110829668A CN113742658A CN 113742658 A CN113742658 A CN 113742658A CN 202110829668 A CN202110829668 A CN 202110829668A CN 113742658 A CN113742658 A CN 113742658A
Authority
CN
China
Prior art keywords
adb tool
adb
option
password
tool
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
Application number
CN202110829668.7A
Other languages
Chinese (zh)
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.)
Shenzhen JWIPC Technology Co Ltd
Original Assignee
Shenzhen JWIPC 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 Shenzhen JWIPC Technology Co Ltd filed Critical Shenzhen JWIPC Technology Co Ltd
Priority to CN202110829668.7A priority Critical patent/CN113742658A/en
Publication of CN113742658A publication Critical patent/CN113742658A/en
Pending legal-status Critical Current

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/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • 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/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to an adb tool encryption method, which comprises the following steps: adding an adb tool enabling option for controlling the starting and the closing of the adb tool, and encrypting the adb tool enabling option; when the equipment enters a development mode, triggering and displaying an adb tool enabling option according to a set condition, and prompting to input a password for verification after the adb tool enabling option is selected; if the password is verified to be not passed, returning directly, and if the password is verified to be passed, providing options of opening and closing the adb tool; by the method, the enabling option of the adb tool which can be displayed through condition triggering is set through encryption, a seller can modify the adb tool through triggering and displaying the enabling option of the adb tool and inputting a password, adjustment and setting of equipment are facilitated, meanwhile, whether the adb tool is opened or not can be set for a terminal consumer selectively, the purpose of management and control is achieved, flexibility is higher, and meanwhile, management and control of safety of products are facilitated.

Description

adb tool encryption method, system, terminal and storage medium
Technical Field
The present invention relates to the field of adb tool encryption technologies, and in particular, to an adb tool encryption method, system, terminal, 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. Moreover, the android product has the adb function only in a development mode.
At present, android products are widely applied to the fields of industrial control and commercial display, and generally need to be delivered in a development mode to obtain enough permissions for clients (sellers) to add extranet equipment in a self-defined manner and the like. However, the adb tool will also be directly open to the end user, which poses a significant threat to the security of the product.
An adb encryption method is needed for a client to encrypt an adb tool, so that the client can obtain enough authority by using a development mode and can also prohibit the use of an adb function for an end user.
Disclosure of Invention
The present invention provides an adb tool encryption method, an adb tool encryption system, an adb tool encryption terminal, and a computer-readable storage medium, which are directed to overcome the above-mentioned drawbacks of the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an adb tool encryption method is constructed, wherein the method comprises the following steps:
the first step is as follows: adding an adb tool enabling option for controlling the starting and the closing of the adb tool, and encrypting the adb tool enabling option;
the second step is that: when the equipment enters a development mode, triggering and displaying the adb tool enabling option according to a set condition, and prompting to input a password for verification after the adb tool enabling option is selected;
the third step: if the password is verified not to pass, the password is directly returned, and if the password is verified to pass, the option of opening and closing the adb tool is provided.
The adb tool encryption method comprises the steps that when encryption is carried out in the first step, a password input dialog box is created by using AlertDialog and EditText text box examples, and a default password value is stored by using a prop file;
and when the input password is verified in the second step, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password.
The adb tool encryption method of the present invention, wherein the third step further includes a method:
when the password passes the verification, entering a mode selection dialog box selection mode into a user mode or a developer mode;
hiding the adb tool enable option in user mode;
displaying the adb tool enable option and providing the adb tool on and off options in the developer mode.
In the adb tool encryption method, in the second step, the setting condition is the set number of times of continuously clicking the device number button.
An adb tool encryption system is used for realizing the adb tool encryption method, and comprises an adb tool enabling option unit, an encryption and decryption unit and an adb tool selection unit;
the adb tool enabling option unit is used for increasing adb tool enabling options for controlling the on and off of the adb tool;
the encryption and decryption unit is used for encrypting the adb tool enabling option and verifying the password;
the adb tool selection unit is a sub-option of the adb tool enabling option and is used for providing an option of turning on and off the adb tool.
The adb tool encryption system comprises an encryption and decryption unit, a password input dialog box and a default password value, wherein when the encryption and decryption unit encrypts, the password input dialog box is created by using AlertDialog and EditText text box examples, and a prop file is used for storing the default password value;
and when the encryption and decryption unit verifies the input password, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password.
The adb tool encryption system further comprises a mode selection unit, wherein the mode selection unit is a sub-option of the adb tool enabling option and is used for providing a mode dialog box, and the mode selection dialog box comprises options: a user mode and a developer mode;
hiding the adb tool enable option in user mode;
displaying the adb tool enabling option in the developer mode and providing an adb tool on and off option through the adb tool selection unit.
The adb tool encryption system comprises an adb tool enabling option unit, a data processing unit and a data processing unit, wherein the adb tool enabling option unit is used for setting triggering conditions of adb tool enabling options.
An adb tool encryption terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the steps of the method as set forth above.
The invention has the beneficial effects that: by the method, the enabling option of the adb tool which can be displayed through condition triggering is set through encryption, a seller can modify the adb tool through triggering and displaying the enabling option of the adb tool and inputting a password, adjustment and setting of equipment are facilitated, meanwhile, whether the adb tool is opened or not can be set for a terminal consumer selectively, the purpose of management and control is achieved, flexibility is higher, and meanwhile, management and control of safety of products are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described with reference to the accompanying drawings and embodiments, wherein the drawings in the following description are only part of the embodiments of the present invention, and for those skilled in the art, other drawings can be obtained without inventive efforts according to the accompanying drawings:
FIG. 1 is a flow chart of an adb tool encryption method in accordance with a preferred embodiment of the present invention;
FIG. 2 is a schematic block diagram of an adb tool encryption system in accordance with a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.
As shown in fig. 1, the adb tool encryption method according to the preferred embodiment of the present invention includes the following steps:
s01: adding an adb tool enabling option for controlling the starting and the closing of the adb tool, and encrypting the adb tool enabling option;
s02: when the equipment enters a development mode, triggering and displaying an adb tool enabling option according to a set condition, and prompting to input a password for verification after the adb tool enabling option is selected;
s03: if the password is verified to be not passed, returning directly, and if the password is verified to be passed, providing options of opening and closing the adb tool;
by the method, the enabling option of the adb tool which can be displayed through condition triggering is set through encryption, a seller can modify the adb tool through triggering and displaying the enabling option of the adb tool and inputting a password, adjustment and setting of equipment are facilitated, meanwhile, whether the adb tool is opened or not can be set for a terminal consumer selectively, the purpose of management and control is achieved, flexibility is higher, and meanwhile, management and control of safety of products are facilitated.
Preferably, when encryption is performed in the first step, a password input dialog box is created by using an alert dialog and an EditText text box instance, and a default password value is stored by using a prop file;
when the input password is verified in the second step, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password;
of course, it is understood that there may be other existing encryption manners, and simple transformation based on this principle is within the scope of protection of the present application;
preferably, the third step further comprises the method:
when the password passes the verification, entering a mode selection dialog box selection mode into a user mode or a developer mode;
hiding the adb tool enable option in user mode;
displaying an adb tool enabling option and providing an adb tool opening and closing option in a developer mode; the operation is simple and convenient, and the requirements of different dealers can be met.
Preferably, in the second step, the setting condition is the set number of times of continuously clicking the device number button, for example, 7 times of continuously clicking the device number button, but other numbers or buttons may be set.
An adb tool encryption system for implementing the adb tool encryption method described above, as shown in fig. 2, includes an adb tool enabling option unit 1, an encryption/decryption unit 2, and an adb tool selection unit 3;
the adb tool enabling option unit 1 is used for increasing adb tool enabling options for controlling the on and off of an adb tool;
the encryption and decryption unit 2 is used for encrypting the adb tool enabling option and verifying the password;
the adb tool selection unit 3 is a sub option of the adb tool enabling option and is used for providing an adb tool opening and closing option;
by the method, the enabling option of the adb tool which can be displayed through condition triggering is set through encryption, a seller can modify the adb tool through triggering and displaying the enabling option of the adb tool and inputting a password, adjustment and setting of equipment are facilitated, meanwhile, whether the adb tool is opened or not can be set for a terminal consumer selectively, the purpose of management and control is achieved, flexibility is higher, and meanwhile, management and control of safety of products are facilitated.
Preferably, when the encryption and decryption unit 2 encrypts, a password input dialog box is created by using alert dialog and EditText text box instances, and a default password value is stored by using a prop file;
when the encryption and decryption unit 2 verifies the input password, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password; of course, it is understood that there may be other existing encryption methods, and a simple transformation based on this principle is within the scope of the present application.
Preferably, the system further includes a mode selection unit 4, where the mode selection unit 4 is a sub-option of the adb tool enabling option and is used to provide a mode dialog box, and the mode selection dialog box includes options: user mode 40 and developer mode 41;
hide adb tool enable options in user mode 40;
the adb tool enable option is displayed in the developer mode 41 and the option of turning on and off the adb tool is provided through the adb tool selection unit 3.
Preferably, the adb tool enable option unit 1 is further configured to set a trigger condition of the adb tool enable option.
An adb tool encryption terminal comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the steps of the method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the steps of the method as set forth above.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (10)

1. An adb tool encryption method is characterized by comprising the following steps:
the first step is as follows: adding an adb tool enabling option for controlling the starting and the closing of the adb tool, and encrypting the adb tool enabling option;
the second step is that: when the equipment enters a development mode, triggering and displaying the adb tool enabling option according to a set condition, and prompting to input a password for verification after the adb tool enabling option is selected;
the third step: if the password is verified not to pass, the password is directly returned, and if the password is verified to pass, the option of opening and closing the adb tool is provided.
2. The adb tool encryption method of claim 1, wherein, in the first step of encryption, a password entry dialog is created using alert dialog, EditText text box instance, and a default password value is stored using a prop file;
and when the input password is verified in the second step, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password.
3. The adb tool encryption method of claim 1 or 2, wherein the third step further comprises the method of:
when the password passes the verification, entering a mode selection dialog box selection mode into a user mode or a developer mode;
hiding the adb tool enable option in user mode;
displaying the adb tool enable option and providing the adb tool on and off options in the developer mode.
4. The adb tool encryption method according to claim 1 or 2, wherein in the second step, the setting condition is a set number of times of continuously clicking a device number button.
5. An adb tool encryption system for implementing the adb tool encryption method of any one of claims 1 to 4, comprising an adb tool enable option unit, an encryption/decryption unit, and an adb tool selection unit;
the adb tool enabling option unit is used for increasing adb tool enabling options for controlling the on and off of the adb tool;
the encryption and decryption unit is used for encrypting the adb tool enabling option and verifying the password;
the adb tool selection unit is a sub-option of the adb tool enabling option and is used for providing an option of turning on and off the adb tool.
6. The adb tool encryption system of claim 5, wherein the encryption and decryption unit creates a password entry dialog box using alert dialog, EditText text box instance, and stores default password values using a prop file when encrypting;
and when the encryption and decryption unit verifies the input password, analyzing the prop file through SystemProperties to obtain a default password value, and comparing the input password.
7. The adb tool encryption system of claim 5, further comprising a mode selection unit that is a sub-option of the adb tool enabling option, for providing a mode dialog box that includes options: a user mode and a developer mode;
hiding the adb tool enable option in user mode;
displaying the adb tool enabling option in the developer mode and providing an adb tool on and off option through the adb tool selection unit.
8. The adb tool encryption system of claim 5, wherein the adb tool enable option unit is further configured to set a trigger condition for an adb tool enable option.
9. An adb tool encryption terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202110829668.7A 2021-07-22 2021-07-22 adb tool encryption method, system, terminal and storage medium Pending CN113742658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110829668.7A CN113742658A (en) 2021-07-22 2021-07-22 adb tool encryption method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110829668.7A CN113742658A (en) 2021-07-22 2021-07-22 adb tool encryption method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113742658A true CN113742658A (en) 2021-12-03

Family

ID=78728939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110829668.7A Pending CN113742658A (en) 2021-07-22 2021-07-22 adb tool encryption method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113742658A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100417A1 (en) * 2013-05-30 2015-04-09 Visa International Service Association Dynamic Checkout Button Apparatuses, Methods and Systems
CN109522174A (en) * 2018-11-14 2019-03-26 西安闻泰电子科技有限公司 Control adb enabled method, apparatus, terminal and storage medium
CN110442398A (en) * 2019-08-09 2019-11-12 四川虹美智能科技有限公司 A kind of adb instrument start-up method, smart machine and system
CN111460405A (en) * 2020-03-17 2020-07-28 福建升腾资讯有限公司 Method, device, equipment and medium for enabling equipment outside cabinet to enter background setting
CN112818331A (en) * 2021-01-20 2021-05-18 深圳市智微智能软件开发有限公司 Adb tool encryption control method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100417A1 (en) * 2013-05-30 2015-04-09 Visa International Service Association Dynamic Checkout Button Apparatuses, Methods and Systems
CN109522174A (en) * 2018-11-14 2019-03-26 西安闻泰电子科技有限公司 Control adb enabled method, apparatus, terminal and storage medium
CN110442398A (en) * 2019-08-09 2019-11-12 四川虹美智能科技有限公司 A kind of adb instrument start-up method, smart machine and system
CN111460405A (en) * 2020-03-17 2020-07-28 福建升腾资讯有限公司 Method, device, equipment and medium for enabling equipment outside cabinet to enter background setting
CN112818331A (en) * 2021-01-20 2021-05-18 深圳市智微智能软件开发有限公司 Adb tool encryption control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200034528A1 (en) Personalized and cryptographically secure access control in trusted execution environment
CN103617382A (en) Privacy protection method and device
US9501646B2 (en) Program verification apparatus, program verification method, and computer readable medium
CN112231702B (en) Application protection method, device, equipment and medium
CN110889131B (en) File sharing system
Teufl et al. Android encryption systems
US10120987B2 (en) Device and method for executing protected iOS software modules
Martín et al. An in-depth study of the jisut family of android ransomware
CN111695166A (en) Disk encryption protection method and device
US10430596B2 (en) Information processing method, terminal and nonvolatile machine-readable medium
CN109086578A (en) A kind of method that soft ware authorization uses, equipment and storage medium
CN110674525A (en) Electronic equipment and file processing method thereof
CN109522683B (en) Software tracing method, system, computer equipment and storage medium
KR101638257B1 (en) Method for protecting source code of application and apparatus for performing the method
US11379568B2 (en) Method and system for preventing unauthorized computer processing
CN111709054B (en) Privacy space information access control method and device and computer equipment
JPH09204360A (en) Method for protecting confidential data
US10528748B2 (en) Context-driven on-device data protection
CN113742658A (en) adb tool encryption method, system, terminal and storage medium
JP2005222155A (en) Secret document management device, secret document management method, and secret document management program
US9411984B2 (en) Cryptographic processing apparatus, cryptographic processing system, and cryptographic processing method
Teufl et al. iOS encryption systems: Deploying iOS devices in security-critical environments
US20220334749A1 (en) Systems and methods for purging data from memory
WO2019066883A1 (en) Plug-and-play declarative security functionality deployment for an engineering platform
CN114357387A (en) Tamper-proof judgment method, compilation method and equipment for java application program

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211203