CN110727645B - Method and system for opening debug bridge adb, storage medium and electronic equipment - Google Patents

Method and system for opening debug bridge adb, storage medium and electronic equipment Download PDF

Info

Publication number
CN110727645B
CN110727645B CN201911007521.9A CN201911007521A CN110727645B CN 110727645 B CN110727645 B CN 110727645B CN 201911007521 A CN201911007521 A CN 201911007521A CN 110727645 B CN110727645 B CN 110727645B
Authority
CN
China
Prior art keywords
preset
bridge adb
folder
debug bridge
opening
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
CN201911007521.9A
Other languages
Chinese (zh)
Other versions
CN110727645A (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.)
Dongguan ELF Education Software Co Ltd
Original Assignee
Dongguan ELF Education Software 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 Dongguan ELF Education Software Co Ltd filed Critical Dongguan ELF Education Software Co Ltd
Priority to CN201911007521.9A priority Critical patent/CN110727645B/en
Publication of CN110727645A publication Critical patent/CN110727645A/en
Application granted granted Critical
Publication of CN110727645B publication Critical patent/CN110727645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Abstract

The invention provides a method, a system, a storage medium and an electronic device for opening a debugging bridge adb, wherein the method comprises the steps of obtaining a user operation instruction; opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb; opening a preset application corresponding to the debug bridge adb; acquiring operation information of a user on the preset application, and counting the number of clicks at a preset position; and when the click times are more than or equal to the preset times, opening the debug bridge adb. According to the invention, when the intelligent terminal needs to open the debugging bridge adb, the debugging bridge adb can be opened without a network, and the abnormal log and the debugging equipment can be captured.

Description

Method, system, storage medium and electronic device for opening debug bridge adb
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method, a system, a storage medium, and an electronic device for opening a debug bridge adb.
Background
At present, learning intelligent terminals such as home education machines can be used for ensuring that children can be absorbed in learning and not be attracted by other entertainment and other applications, and adb (Android Debug Bridge) needs to be turned off so that children can not install third-party applications. When adb debugging needs to be opened, adb is generally opened synchronously through a network type networking server, so that smoothness of network connection needs to be ensured. However, when some network modules are not available, the adb cannot be opened normally, and debugging cannot be performed.
Disclosure of Invention
The invention aims to provide a method, a system, a storage medium and electronic equipment for opening a debugging bridge adb, which can open the debugging bridge adb, capture abnormal logs and debug equipment without a network when an intelligent terminal needs to open the debugging bridge adb.
The technical scheme provided by the invention is as follows:
the invention provides a method for opening a debugging bridge adb, which comprises the following steps:
acquiring a user operation instruction;
opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
acquiring operation information of a user on the preset application;
and when the operation information accords with a preset condition, opening the debug bridge adb.
Further, before obtaining the user operation instruction, the method further includes:
and acquiring a preset path corresponding to the debug bridge adb and the name of the folder under each path.
Further, when the operation information meets a preset condition, opening the debug bridge adb further comprises:
when a user exit instruction is acquired, closing the preset application;
and resetting the data in the operation information and closing the debug bridge adb.
Further, resetting data in the operation information, and after closing the debug bridge adb, further including:
and deleting the established folder of the preset path.
The invention also provides a system for opening the debug bridge adb, which comprises the following components:
the instruction acquisition module is used for acquiring a user operation instruction;
the folder establishing module is used for opening a file resource manager of the intelligent terminal according to the user operation instruction acquired by the instruction acquiring module and establishing a folder under a preset path corresponding to the debugging bridge adb;
the application starting module is used for starting a preset application corresponding to the debug bridge adb after the folder building module completes the building of the folder under the preset path;
the information acquisition module is used for acquiring the operation information of the user on the preset application started by the application starting module;
and the control module is used for opening the debugging bridge adb when the operation information acquired by the information acquisition module accords with a preset condition.
Further, the method also comprises the following steps:
and the preset parameter acquisition module is used for acquiring preset paths corresponding to the debug bridge adb and folder names under the paths.
Further, the method also comprises the following steps:
the control module is used for closing the preset application when a user exit instruction is acquired;
and the control module resets the data in the operation information and closes the debug bridge adb.
Further, the method also comprises the following steps:
and the control module deletes the established folder of the preset path.
The present invention also provides a storage medium having a computer program stored thereon, which when executed by a processor, implements any of the methods described above.
The invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements any one of the methods described above when executing the computer program.
The method, the system, the storage medium and the electronic equipment for opening the debug bridge adb provided by the invention can bring at least one of the following beneficial effects:
1. in the invention, for the intelligent terminal which is not started by the debug bridge adb, when the adb is abnormal or needs to be debugged, the setting of the adb through a server is not needed, and whether the adb can be opened or not is judged by directly creating a folder on a preset path and a click operation mode combination of a certain adb preset application on the intelligent terminal, so that the adb is prevented from being exposed in a hidden mode in a single processing mode.
2. According to the invention, the multilayer preset paths are set, so that the situation that a user enters or is cracked due to misoperation caused by setting a single preset path is avoided, and the confidentiality degree is high. On the other hand, the folders of all levels in the preset path are named based on identification information such as equipment names and machine type names of different intelligent terminals, and therefore the confidentiality degree is improved.
3. In the invention, when a user needs to reset the data in the operation information to 0 to close the debug bridge adb, the preset application is quitted to ensure that the background runs and the debug bridge adb cannot be closed when other operations are carried out, thereby ensuring that the operation of an operator is successfully completed.
4. In the invention, after the intelligent terminal confirms to close the debug bridge adb, the established folder of the preset path is deleted. The condition of each layer needs to be verified when an operator opens the debug bridge adb each time, the folder with the preset path is prevented from being reserved, other users can operate the debug bridge adb by mistake, and the confidentiality degree is reduced.
Drawings
The above features, technical features, advantages and implementations of a method, system, storage medium and electronic device for opening a debug bridge adb will be further described in the following detailed description of preferred embodiments in a clearly understandable manner with reference to the accompanying drawings.
FIG. 1 is a flow diagram of one embodiment of a method of opening a debug bridge adb of the present invention;
FIG. 2 is a flow diagram of another embodiment of a method of opening a debug bridge adb of the present invention;
FIG. 3 is a flow diagram of another embodiment of a method of opening a debug bridge adb of the present invention;
FIG. 4 is a flow diagram of another embodiment of a method of opening a debug bridge adb of the present invention;
FIG. 5 is a block diagram illustrating an embodiment of a system for opening a debug bridge adb;
fig. 6 is a schematic structural diagram of another embodiment of the system for opening the debug bridge adb according to the present invention.
The reference numbers indicate:
system for 100 opening debugging bridge adb
110 instruction acquisition module 120 folder establishment module
130 application opening module 140 information acquisition module
150 control module 160 presetting parameter obtaining module
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 present application. However, it will be apparent to one skilled in the art that the present application 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 application 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.
For the sake of simplicity, only the parts relevant to the present invention are schematically shown in the drawings, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically depicted, or only one of them is labeled. In this document, "a" means not only "only one of this but also a case of" more than one ".
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.
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, family 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 terminal 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 network creation application, a word processing 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 digital video 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 application, 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 more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, without inventive effort, other drawings and embodiments can be derived from them.
One embodiment of the present invention, as shown in fig. 1, is a method for opening a debug bridge adb, including:
s100, acquiring a user operation instruction;
specifically, when an operator needs to open the debugging bridge adb of the intelligent terminal, a user operation instruction can be issued to the intelligent terminal, and then the intelligent terminal acquires the user operation instruction. The invention is mainly applied to educational electronic equipment, and the purpose of hiding the opening function of the debugging bridge adb is to prevent users such as children from changing configuration or downloading third-party application at will, so that the operator is a worker who needs to capture an abnormal log and debug the equipment through the debugging bridge adb when the intelligent terminal is abnormal or needs to be debugged.
Based on the characteristics of the intelligent terminal, the user operation instruction can be a voice instruction, and the intelligent terminal performs voice recognition to analyze the user intention after acquiring the user operation instruction, and then executes corresponding operation. The method can also be an operation instruction input by a user through a touch screen and other human-computer interaction interfaces, wherein the user can operate one by one according to the instruction, or a specific shortcut is preset to directly jump, for example, a long press of a function key is set to directly open a file resource manager of the intelligent terminal.
S200, opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
specifically, a file resource manager of the intelligent terminal is opened according to the obtained user operation instruction, and a folder under a preset path corresponding to the debug bridge adb is established in the file resource manager.
For example, if the preset path corresponding to the debug bridge adb is opened is a-B, a folder a is first newly established in the file resource manager, and then a folder B is newly established under the folder a. The preset path corresponding to the starting of the debug bridge adb can be set based on the requirements and habits of the user or based on the secrecy requirement of the system.
The preset path may have only one layer, that is, only the folder a is established in the file resource manager, or may have multiple layers, that is, after the folder a is established in the file resource manager, the folder B is established in the folder a, and so on, the new creation may continue from the folder B. The more levels of the preset paths indicate that the complexity is higher, the more difficult the preset paths are to be cracked, and therefore, the confidentiality is higher.
Secondly, the names of the folders at each layer of the preset path are also generated based on preset rules. The names of the folders in each layer of the preset paths of the intelligent terminals of different models can be the same or different.
If the names of the folders on each layer of the preset paths of all the intelligent terminals are the same, the universality is higher, the management is more convenient, but the confidentiality degree is not enough, and any operator can open the debugging bridge adb of other terminals after knowing the preset path of one intelligent terminal.
If the names of the folders on each layer of the preset paths of the intelligent terminals of different models are different, and part or all of the names of the folders are named based on the equipment names and the model names of the intelligent terminals, the adaptability and the confidentiality are higher, and an operator is prevented from starting the debugging bridge adb of other intelligent terminals according to the preset path of any intelligent terminal.
S300, after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
specifically, after the completion of the establishment of the folder under the preset path is detected, the first layer condition for starting the debug bridge adb is satisfied, and therefore the preset application corresponding to the debug bridge adb is opened. The preset application is an application related to the debug bridge adb function, and may be a specific application for turning on and off the debug bridge adb.
The standard of whether the folders under the preset path are established is whether the folders under the preset path are established completely, but the folders under the preset path are not necessarily completely consistent, for example, the preset path is that a folder a is established in the file resource manager and a folder B is established in the folder a, and if only the folder a exists in the file resource manager, the establishment is not completed. If folder A is created at the file explorer and folder B is created under folder A, the creation is complete. In addition, if folder A is created at the file explorer, folder B is created under folder A, and folder C is created under folder B, the same is done.
S400, acquiring operation information of a user on the preset application;
specifically, after the preset application is opened, the user performs a certain operation through a touch screen or other human-computer interaction device, the intelligent terminal obtains operation information of the user on the preset application, identifies data in the operation information, and obtains the identified data type according to a preset condition of opening the debug bridge adb, for example, counting the number of times that the user clicks at a preset position.
The operation information is an operation performed by a user on the preset application, and may be a click, a long press, and the like, and whether the operation performed by the user on the preset application meets a preset condition for opening the debug bridge adb is further identified, where the preset condition is also set according to a requirement of the user, and may be different from each other. For example, a specific location on a preset application is pressed for a preset time, etc. Preferably, the preset condition may be set to click on a specific location on the preset application for a preset number of times, and thus, the number of clicks of the user on the preset location in the statistical operation information is identified. Likewise, the preset condition can also be set to any other single operation manner or a combination of operation manners.
And S500, when the operation information accords with the preset condition, opening the debug bridge adb.
Specifically, if the operation information of the user meets the preset condition, it is described that the second layer condition for starting the debug bridge adb is satisfied, and meanwhile, the two layers of conditions are satisfied, so that the debug bridge adb is opened. For example, if the preset condition is set to click on a specific position on the preset application for a preset number of times, when the number of clicks is greater than or equal to the preset number of times, the debug bridge adb is opened.
In this embodiment, for an intelligent terminal that a debug bridge adb is not opened, when the adb needs to be opened abnormally or when the debug bridge adb needs to be opened, the network does not need to set through the server, and whether the adb can be opened or not is determined by directly creating a folder on a preset path and a click operation mode combination of a certain adb preset application on the intelligent terminal, so that the adb is prevented from being exposed in a hidden manner in a single processing mode.
Another embodiment of the present invention is an optimized embodiment of the above embodiment, as shown in fig. 2, compared with the above embodiment, the main improvements of the present embodiment are that:
s010 obtains a preset path corresponding to the debug bridge adb and the name of the folder under each path.
Specifically, a preset path corresponding to the debug bridge adb and a folder name under each path are obtained. For example, if the preset path corresponding to the debug bridge adb is opened is a-B, a folder a is newly established in the file resource manager of the intelligent terminal, and then a folder B is newly established under the folder a. The preset path corresponding to the debug bridge adb can be set based on the requirements and habits of the user or based on the secrecy requirement of the system.
The preset path may have only one layer, that is, only the folder a is established in the file resource manager, or may have multiple layers, that is, after the folder a is established in the file resource manager, the folder B is established in the folder a, and so on, the new creation may continue from the folder B. The more levels of the preset path, the higher the complexity of the preset path, the less easy the preset path to be cracked, and therefore, the higher the confidentiality.
Secondly, the names of the folders at each layer of the preset path are also generated based on preset rules. The names of the folders on each layer of the preset paths of the intelligent terminals of different models can be the same or different.
If the names of the folders in each layer of the preset paths of all the intelligent terminals are the same, the universality is stronger, the management is more convenient, but the confidentiality degree is not enough, and any operator can open the debugging bridge adb of other terminals after knowing the preset path of one of the intelligent terminals.
If the names of the folders on each layer of the preset paths of the intelligent terminals of different models are different, and part or all of the names of the folders are named based on the equipment names and the model names of the intelligent terminals, the adaptability and the confidentiality are higher, and an operator is prevented from starting the debugging bridge adb of other intelligent terminals according to the preset path of any intelligent terminal.
And subsequently, comparing the path and the name of the folder newly established by the operator with the acquired preset path and name, if the comparison is consistent, indicating that the establishment of the folder under the preset path is finished, if any position has an error, indicating that the establishment of the folder under the preset path is unsuccessful, and if the position is not full, starting the function of the debugging bridge adb.
The criterion of whether the folders under the preset path are established is whether the folders under the preset path are established completely, but not necessarily completely consistent, for example, the preset path is that a folder a is established in the file resource manager and a folder B is established in the folder a, and if only the file resource manager has the folder a, the establishment is not completed. If folder A is created at the file explorer and folder B is created under folder A, the creation is complete. In addition, if folder A is created at the file explorer, folder B is created under folder A, and folder C is created under folder B, the same is done.
S100, acquiring a user operation instruction;
s200, opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
s300, after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
s400, acquiring operation information of a user on the preset application;
and S500, when the operation information accords with the preset condition, opening the debug bridge adb.
In the embodiment, the multilayer preset paths are set, so that the phenomenon that a user enters or is cracked due to misoperation caused by setting a single preset path is avoided, and the confidentiality degree is high. On the other hand, the folders of all levels in the preset path are named based on identification information such as equipment names and machine type names of different intelligent terminals, and therefore the confidentiality degree is improved.
Another embodiment of the present invention is an optimized embodiment of the above embodiment, as shown in fig. 3, compared with the above embodiment, the main improvements of this embodiment are that:
s100, acquiring a user operation instruction;
s200, opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
s300, after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
s400, acquiring operation information of a user on the preset application;
and S500, when the operation information meets the preset condition, opening the debug bridge adb.
S600, when a user exit instruction is acquired, closing the preset application;
specifically, when the debugging bridge adb is opened, after the operator completes all operations, the operator issues a user quitting instruction, then the intelligent terminal acquires the user quitting instruction, and quits and closes the preset application corresponding to the debugging bridge adb.
Based on the characteristics of the intelligent terminal, the user exit instruction can be a voice instruction, and the intelligent terminal performs voice recognition to analyze the user intention after acquiring the user exit instruction and then executes corresponding operation. The method can also be an exit instruction input by a user through a human-computer interaction interface such as a touch screen.
S700, resetting the data in the operation information and closing the debug bridge adb.
Specifically, when the preset application is closed, data in the operation information is reset, and the debug bridge adb is closed. The second layer condition for starting the debug bridge adb is that the operation information meets a preset condition, the preset condition is that a certain operation mode or a combined operation mode reaches a certain number of times, and if the preset application is simply closed without resetting the intelligent terminal to acquire the data in the identified and counted operation information, the intelligent terminal still judges that the condition for starting the debug bridge adb is met. Therefore, the debug bridge adb can be turned off only by resetting the data in the operation information to 0.
In this embodiment, when the user needs to reset the data in the operation information to 0 to close the debug bridge adb, and thus perform other operations, the preset application is exited to enable the background to run without closing the debug bridge adb, thereby ensuring that the operation of the operator is completed smoothly.
Another embodiment of the present invention is an optimized embodiment of the above embodiment, as shown in fig. 4, compared with the above embodiment, the main improvement of this embodiment is that it includes:
s100, acquiring a user operation instruction;
s200, opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
s300, after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
s400, acquiring operation information of a user on the preset application, and counting the number of clicks at a preset position;
s500, when the click times are more than or equal to the preset times, opening the debugging bridge adb.
S600, when a user exit instruction is acquired, closing the preset application;
s700, resetting the click times to be 0, and closing the debug bridge adb.
S800, deleting the established folder of the preset path.
Specifically, after the intelligent terminal confirms that the debug bridge adb is closed, the established folder of the preset path is deleted. However, if the remaining files or folders exist in the folder of the preset path, the operator is asked to perform operations such as deletion, reservation, or transfer according to the selection instruction of the operator.
For example, the default path is to create folder A at the file explorer and folder B under folder A, and if there is folder A under folder A and folder B under folder B and folder C under folder B, the operator is asked to delete, retain or transfer all files under path A-B-C to folders under other paths and then delete all folders under path A-B.
In this embodiment, after the intelligent terminal determines to close the debug bridge adb, the established folder of the preset path is deleted. The condition of each layer needs to be verified when an operator opens the debug bridge adb every time, the situation that a folder with a preset path is reserved to allow other users to operate by mistake is avoided, and the confidentiality degree is reduced.
One embodiment of the present invention, as shown in fig. 5, is a system 100 for opening a debug bridge adb, comprising:
an instruction obtaining module 110, for obtaining a user operation instruction;
specifically, when an operator needs to open the debugging bridge adb of the intelligent terminal, a user operation instruction can be issued to the intelligent terminal, and then the intelligent terminal acquires the user operation instruction. The invention is mainly applied to educational electronic equipment, and the purpose of hiding the opening function of the debugging bridge adb is to prevent users such as children from changing configuration or downloading third-party application at will, so that the operator is a worker who needs to capture an abnormal log and debug the equipment through the debugging bridge adb when the intelligent terminal is abnormal or needs to be debugged.
Based on the characteristics of the intelligent terminal, the user operation instruction can be a voice instruction, and the intelligent terminal performs voice recognition to analyze the user intention after obtaining the user operation instruction, and then executes corresponding operation. The method can also be an operation instruction input by a user through a touch screen and other human-computer interaction interfaces, wherein the user can operate one by one according to the instruction, or a specific shortcut is preset to directly jump, for example, a long press of a function key is set to directly open a file resource manager of the intelligent terminal.
The folder establishing module 120, configured to open a file resource manager of the intelligent terminal according to the user operation instruction acquired by the instruction acquiring module 110, and establish a folder in a preset path corresponding to the debug bridge adb;
specifically, a file resource manager of the intelligent terminal is opened according to the obtained user operation instruction, and a folder under a preset path corresponding to the debug bridge adb is established in the file resource manager.
For example, if the preset path corresponding to the debug bridge adb is opened is a-B, folder a is newly established in the file resource manager, and then folder B is newly established under folder a. The preset path corresponding to the debug bridge adb can be set based on the requirements and habits of the user or based on the secrecy requirement of the system.
The preset path may have only one layer, that is, only the folder a is established in the file resource manager, or may have multiple layers, that is, after the folder a is established in the file resource manager, the folder B is established in the folder a, and so on, the new creation may continue from the folder B. The more levels of the preset paths indicate that the complexity is higher, the more difficult the preset paths are to be cracked, and therefore, the confidentiality is higher.
Secondly, the names of the folders on each layer of the preset path are also generated based on preset rules. The names of the folders in each layer of the preset paths of the intelligent terminals of different models can be the same or different.
If the names of the folders on each layer of the preset paths of all the intelligent terminals are the same, the universality is higher, the management is more convenient, but the confidentiality degree is not enough, and any operator can open the debugging bridge adb of other terminals after knowing the preset path of one intelligent terminal.
If the names of the folders on each layer of the preset paths of the intelligent terminals of different models are different, and part or all of the names of the folders are named based on the equipment names and the model names of the intelligent terminals, the adaptability and the confidentiality are higher, and an operator is prevented from starting the debugging bridge adb of other intelligent terminals according to the preset path of any intelligent terminal.
The application opening module 130, after the folder establishment module 120 completes establishment of the folder in the preset path, opens the preset application corresponding to the debug bridge adb;
specifically, after the completion of the establishment of the folder under the preset path is detected, the first layer condition for starting the debug bridge adb is met, and therefore, the preset application corresponding to the debug bridge adb is started. The preset application is an application related to the debug bridge adb function, and may be a specific application for turning on and off the debug bridge adb.
The standard of whether the folders under the preset path are established is whether the folders under the preset path are established completely, but the folders under the preset path are not necessarily completely consistent, for example, the preset path is that a folder a is established in the file resource manager and a folder B is established in the folder a, and if only the folder a exists in the file resource manager, the establishment is not completed. If folder A is created at the file explorer and folder B is created under folder A, the creation is complete. In addition, if folder A is created at the file explorer, folder B is created under folder A, and folder C is created under folder B, the same is done.
An information obtaining module 140, configured to obtain operation information of the user on the preset application started by the application starting module 130;
specifically, after the preset application is opened, the user performs a certain operation through a touch screen or other human-computer interaction device, the intelligent terminal obtains operation information of the user on the preset application, identifies data in the operation information, and obtains the identified data type according to a preset condition of opening the debug bridge adb, for example, counting the number of times that the user clicks at a preset position.
The operation information is an operation performed by a user on the preset application, and may be a click, a long press, and the like, and whether the operation performed by the user on the preset application meets a preset condition for opening the debug bridge adb is further identified, where the preset condition is also set according to a requirement of the user, and may be different from each other. For example, a specific location on a preset application is pressed for a preset time, etc. Preferably, the preset condition may be set to click at a specific position on the preset application for a preset number of times, and thus, the number of clicks of the user at the preset position in the statistical operation information is identified. Likewise, the preset condition can also be set to any other single operation manner or a combination of operation manners.
The control module 150 opens the debug bridge adb when the operation information acquired by the information acquisition module 140 meets a preset condition.
Specifically, if the operation information of the user meets the preset condition, it is indicated that the second layer condition for starting the debug bridge adb is met, and meanwhile, the two layers of conditions are met, so that the debug bridge adb is started. For example, if the preset condition is set to click on a specific position on the preset application for a preset number of times, when the number of clicks is greater than or equal to the preset number of times, the debug bridge adb is opened.
In this embodiment, for an intelligent terminal that a debug bridge adb is not opened, when the adb needs to be opened abnormally or when the debug bridge adb needs to be opened, the network does not need to set through the server, and whether the adb can be opened or not is determined by directly creating a folder on a preset path and a click operation mode combination of a certain adb preset application on the intelligent terminal, so that the adb is prevented from being exposed in a hidden manner in a single processing mode.
Another embodiment of the present invention is an optimized embodiment of the above embodiment, as shown in fig. 6, compared with the above embodiment, the main improvements of this embodiment are that:
the preset parameter obtaining module 160 obtains a preset path corresponding to the debug bridge adb and names of folders under the paths.
Specifically, a preset path corresponding to the debug bridge adb and a folder name under each path are obtained. For example, if the preset path corresponding to the debug bridge adb is opened is a-B, a folder a is newly established in the file resource manager of the intelligent terminal, and then a folder B is newly established under the folder a. The preset path corresponding to the starting of the debug bridge adb can be set based on the requirements and habits of the user or based on the secrecy requirement of the system.
The preset path may have only one layer, that is, only the folder a is established in the file resource manager, or may have multiple layers, that is, after the folder a is established in the file resource manager, the folder B is established in the folder a, and so on, the new creation may continue from the folder B. The more levels of the preset path, the higher the complexity of the preset path, the less easy the preset path to be cracked, and therefore, the higher the confidentiality.
Secondly, the names of the folders on each layer of the preset path are also generated based on preset rules. The names of the folders in each layer of the preset paths of the intelligent terminals of different models can be the same or different.
If the names of the folders in each layer of the preset paths of all the intelligent terminals are the same, the universality is stronger, the management is more convenient, but the confidentiality degree is not enough, and any operator can open the debugging bridge adb of other terminals after knowing the preset path of one of the intelligent terminals.
If the names of the folders on each layer of the preset paths of the intelligent terminals of different models are different, and part or all of the names of the folders are named based on the equipment names and the model names of the intelligent terminals, the adaptability and the confidentiality are higher, and an operator is prevented from starting the debugging bridge adb of other intelligent terminals according to the preset path of any intelligent terminal.
And subsequently, comparing the path and the name of the folder newly established by the operator with the acquired preset path and name, if the comparison is consistent, indicating that the establishment of the folder under the preset path is finished, if any position has an error, indicating that the establishment of the folder under the preset path is unsuccessful, and if the position is not full, starting the function of the debugging bridge adb.
The criterion of whether the folders under the preset path are established is whether the folders under the preset path are established completely, but not necessarily completely consistent, for example, the preset path is that a folder a is established in the file resource manager and a folder B is established in the folder a, and if only the file resource manager has the folder a, the establishment is not completed. If folder A is created at the file explorer and folder B is created under folder A, the creation is complete. In addition, if folder A is created at the file explorer, folder B is created under folder A, and folder C is created under folder B, the same is done.
In the embodiment, the multilayer preset paths are set, so that the phenomenon that a user enters or is cracked due to misoperation caused by setting a single preset path is avoided, and the confidentiality degree is high. On the other hand, the folders of all levels in the preset path are named based on identification information such as equipment names and machine type names of different intelligent terminals, and therefore the confidentiality degree is improved.
An instruction obtaining module 110, which obtains a user operation instruction;
the folder establishing module 120, configured to open a file resource manager of the intelligent terminal according to the user operation instruction acquired by the instruction acquiring module 110, and establish a folder in a preset path corresponding to the debug bridge adb;
the application opening module 130, after the folder establishment module 120 establishes the folder in the preset path is completed, opens the preset application corresponding to the debug bridge adb;
an information obtaining module 140, configured to obtain operation information of the user on the preset application started by the application starting module 130;
the control module 150 opens the debug bridge adb when the operation information acquired by the information acquisition module 140 meets a preset condition.
The control module 150 is used for closing the preset application when a user exit instruction is acquired;
specifically, when the debugging bridge adb is opened, after the operator completes all operations, the operator issues a user quitting instruction, then the intelligent terminal acquires the user quitting instruction, and quits and closes the preset application corresponding to the debugging bridge adb.
Based on the characteristics of the intelligent terminal, the user exit instruction can be a voice instruction, and the intelligent terminal performs voice recognition to analyze the user intention after acquiring the user exit instruction and then executes corresponding operation. The method can also be an exit instruction input by a user through a human-computer interaction interface such as a touch screen.
And the control module 150 resets the data in the operation information and closes the debug bridge adb.
Specifically, when the preset application is closed, data in the operation information is reset, and the debug bridge adb is closed. The second layer condition for starting the debug bridge adb is that the operation information meets a preset condition, the preset condition is that a certain operation mode or a combined operation mode reaches a certain number of times, and if only the preset application is simply closed without resetting the intelligent terminal to acquire data in the identified and counted operation information, the intelligent terminal still judges that the condition for starting the debug bridge adb is met. Therefore, the debug bridge adb can be turned off only by resetting the data in the operation information to 0.
In this embodiment, when the user needs to reset the data in the operation information to 0 to close the debug bridge adb, and thus perform other operations, the preset application is exited to enable the background to run without closing the debug bridge adb, thereby ensuring that the operation of the operator is completed smoothly.
The control module 150 deletes the established folder of the preset path.
Specifically, after the intelligent terminal confirms that the debug bridge adb is closed, the established folder of the preset path is deleted. However, if the folder of the preset path still has other files or folders, the operator is asked to perform operations such as deletion, reservation, or transfer according to the selection instruction of the operator.
For example, the default path is to create folder A at the file explorer and folder B under folder A, and if there is folder A under folder A and folder B under folder B, the operator is asked to delete, retain or transfer all files under path A-B-C to folders under other paths and then delete all folders under path A-B.
In this embodiment, after the intelligent terminal confirms that the debug bridge adb is closed, the established folder of the preset path is deleted. The condition of each layer needs to be verified when an operator opens the debug bridge adb each time, the folder with the preset path is prevented from being reserved, other users can operate the debug bridge adb by mistake, and the confidentiality degree is reduced.
An embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out all or part of the method steps of the first embodiment.
All or part of the flow of the method according to the embodiments of the present invention may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the embodiments of the method. 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, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. 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.
An embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the first embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer apparatus, various interfaces and lines connecting the various parts of the overall computer apparatus.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for opening a debugging bridge adb is used for a learning intelligent terminal, and is characterized by comprising the following steps:
acquiring a user operation instruction;
opening a file resource manager of the intelligent terminal according to the user operation instruction, and establishing a folder under a preset path corresponding to the debug bridge adb;
after the folder under the preset path is established, opening a preset application corresponding to the debug bridge adb;
acquiring operation information of a user on the preset application;
and when the operation information accords with a preset condition, opening the debug bridge adb.
2. The method for opening the debug bridge adb according to claim 1, wherein before acquiring the user operation instruction, the method further comprises:
and acquiring a preset path corresponding to the debug bridge adb and the name of the folder under each path.
3. The method for opening a debug bridge adb according to claim 1, wherein when the operation information meets a preset condition, after opening the debug bridge adb, the method further comprises:
when a user exit instruction is acquired, closing the preset application;
and resetting the data in the operation information and closing the debug bridge adb.
4. The method for opening the debug bridge adb according to claim 3, wherein resetting the data in the operation information further comprises, after closing the debug bridge adb:
and deleting the established folder of the preset path.
5. The utility model provides a system for open debugging bridge adb for study class intelligent terminal, includes:
the instruction acquisition module is used for acquiring a user operation instruction;
the folder establishing module is used for opening a file resource manager of the intelligent terminal according to the user operation instruction acquired by the instruction acquiring module and establishing a folder under a preset path corresponding to the debug bridge adb;
the application starting module is used for opening a preset application corresponding to the debug bridge adb after the folder establishment module establishes the folder under the preset path;
the information acquisition module is used for acquiring the operation information of the user on the preset application started by the application starting module;
and the control module is used for opening the debug bridge adb when the operation information acquired by the information acquisition module accords with a preset condition.
6. The system for opening a debug bridge adb according to claim 5, further comprising:
and the preset parameter acquisition module is used for acquiring preset paths corresponding to the debug bridge adb and folder names under the paths.
7. The system for opening a debug bridge adb according to claim 5, further comprising:
the control module is used for closing the preset application when a user exit instruction is acquired;
and the control module resets the data in the operation information and closes the debug bridge adb.
8. The system for opening a debug bridge adb according to claim 7, further comprising:
and the control module deletes the established folder of the preset path.
9. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 4.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program for execution on the processor, the electronic device comprising: the processor, when executing the computer program, implements the method of any of claims 1 to 4.
CN201911007521.9A 2019-10-22 2019-10-22 Method and system for opening debug bridge adb, storage medium and electronic equipment Active CN110727645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007521.9A CN110727645B (en) 2019-10-22 2019-10-22 Method and system for opening debug bridge adb, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007521.9A CN110727645B (en) 2019-10-22 2019-10-22 Method and system for opening debug bridge adb, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110727645A CN110727645A (en) 2020-01-24
CN110727645B true CN110727645B (en) 2023-02-24

Family

ID=69222739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007521.9A Active CN110727645B (en) 2019-10-22 2019-10-22 Method and system for opening debug bridge adb, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110727645B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium
CN107391362A (en) * 2017-06-28 2017-11-24 北京珠穆朗玛移动通信有限公司 Application testing method, mobile terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391362A (en) * 2017-06-28 2017-11-24 北京珠穆朗玛移动通信有限公司 Application testing method, mobile terminal and storage medium
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多模式安卓平台安全检测系统研究与设计;赵晓燕;《中国优秀硕士学位论文全文数据库》;20150331;第I139-92页 *

Also Published As

Publication number Publication date
CN110727645A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
US10922437B2 (en) Installation and management of client extensions
US20200380151A1 (en) Time-based functionality restrictions
WO2021040994A1 (en) Systems, method, and media for determining security compliance of continuous build software
CN107181858B (en) Method and terminal for displaying notification message
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN109800135B (en) Information processing method and terminal
CN104866752B (en) A kind of application guard method and user terminal
CN110244963B (en) Data updating method and device and terminal equipment
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
US20200089910A1 (en) Message privacy
US9268782B2 (en) Re-use of binaries for multiple user accounts
CN107480001A (en) System recovery method and device
US20140325204A1 (en) Device Management Macros
CN108875011B (en) Method, device, equipment and medium for acquiring page state information of third-party application
US20230259548A1 (en) Virtual file library
WO2019205560A1 (en) Interface display method and device, and smart interactive panel and storage medium
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN112000911A (en) Page management method and device, electronic equipment and storage medium
CN106648962B (en) A kind of management method, device and intelligent terminal for opening application more
WO2018049880A1 (en) Data migration method and device
CN106445670B (en) A kind of data managing method, device and mobile terminal for opening application more
CN110727645B (en) Method and system for opening debug bridge adb, storage medium and electronic equipment
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN110245016B (en) Data processing method, system, device and terminal equipment
CN110750408B (en) Method, device and apparatus for controlling USB debug mode switch, and storage medium

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