CN110764840B - Method, device and system for wirelessly debugging android device - Google Patents

Method, device and system for wirelessly debugging android device Download PDF

Info

Publication number
CN110764840B
CN110764840B CN201910930588.3A CN201910930588A CN110764840B CN 110764840 B CN110764840 B CN 110764840B CN 201910930588 A CN201910930588 A CN 201910930588A CN 110764840 B CN110764840 B CN 110764840B
Authority
CN
China
Prior art keywords
application program
android
port number
instruction
debugging
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
CN201910930588.3A
Other languages
Chinese (zh)
Other versions
CN110764840A (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.)
Wanghai Kangxin Beijing Technology Co ltd
Original Assignee
Wanghai Kangxin Beijing 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 Wanghai Kangxin Beijing Technology Co ltd filed Critical Wanghai Kangxin Beijing Technology Co ltd
Priority to CN201910930588.3A priority Critical patent/CN110764840B/en
Publication of CN110764840A publication Critical patent/CN110764840A/en
Application granted granted Critical
Publication of CN110764840B publication Critical patent/CN110764840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The invention provides a method, a device and a system for wirelessly debugging android equipment. The android device is provided with an adb service and a configuration file thereof, wherein the configuration file comprises a port number of the adb service. The android device is connected with a local area network; receiving an externally input starting instruction aiming at an application program, and running the application program according to the starting instruction; acquiring root rights by using an application program, acquiring a configuration file based on the root rights, reminding the outside of inputting a new port number, and replacing the port number in the configuration file with the new port number inputted from the outside; receiving an externally input adb service restarting instruction, and restarting the adb service according to the instruction; receiving a debugging instruction sent by external debugging equipment connected with the same local area network based on a port with a new port number of the android equipment; the debug instruction is executed using the adb service. Therefore, the android device can be debugged wirelessly through the scheme.

Description

Method, device and system for wirelessly debugging android device
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a system for wirelessly debugging android equipment.
Background
Android (Android) is an operating system based on Linux free and open source code. adb (Android Debug Bridge ) is a tool in Android SDK (Software Development Kit ) with which Android devices can be directly operated and managed.
The adb supports wireless debugging, but the adb port number of the android device needs to be known. However, most android devices do not use default port numbers, and the port numbers used by the devices cannot be queried through normal means, so that wireless connection debugging cannot be used.
Disclosure of Invention
The invention provides a method, a device and a system for wirelessly debugging android equipment, which can wirelessly debug the android equipment.
In order to achieve the above purpose, the invention is realized by the following technical scheme:
in a first aspect, the invention provides a method for wirelessly debugging android equipment, which is applied to the android equipment, wherein the android equipment has opened root permission and is provided with a first application program, the android equipment is provided with an adb service and a configuration file thereof, and the configuration file comprises a port number of the adb service; the method comprises the following steps:
connecting to a local area network;
receiving a first starting instruction which is input externally and aims at the first application program;
operating the first application program according to the first starting instruction;
acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, reminding the outside of inputting a new port number, receiving the new port number input from the outside, and replacing the port number in the configuration file with the new port number;
receiving an adb service restarting instruction input from the outside;
restarting the adb service according to the adb service restarting instruction;
receiving a debugging instruction sent by external debugging equipment connected with the local area network based on the port of the android equipment with the new port number;
and executing the debugging instruction by utilizing the adb service.
Further, before the receiving the first start instruction for the first application program, the method further includes:
receiving an externally input installation instruction for a second application program;
downloading and installing the second application program according to the installation instruction;
receiving a second starting instruction which is input externally and aims at the second application program;
operating the second application program according to the second starting instruction;
and starting the root permission by using the second application program.
Further, the obtaining, by using the first application program, the root right includes:
and outputting a user authorization dialog box by using the first application program, and acquiring the root authority when receiving an approval authorization instruction input by the user authorization dialog box.
Further, the replacing the port number in the configuration file with the new port number includes: replacing X in service.adb.tcp.portX in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
In a second aspect, the present invention provides an android device, comprising:
the device comprises a wireless connection module, a first processing module, a restarting module and a debugging module;
the android device is provided with an adb service and a configuration file thereof, wherein the configuration file comprises a port number of the adb service;
the wireless connection module is used for connecting a local area network;
the first processing module is used for receiving a first starting instruction which is input externally and is aimed at the first application program; operating the first application program according to the first starting instruction; acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, reminding the outside of inputting a new port number, receiving the new port number input from the outside, and replacing the port number in the configuration file with the new port number;
the restarting module is used for receiving an adb service restarting instruction input from the outside; restarting the adb service according to the adb service restarting instruction;
the debugging module is used for receiving a debugging instruction sent by external debugging equipment connected with the local area network based on the port of the android equipment with the new port number; and executing the debugging instruction by utilizing the adb service.
Further, the android device further comprises: the second processing module is used for receiving an externally input installation instruction aiming at a second application program; downloading and installing the second application program according to the installation instruction; receiving a second starting instruction which is input externally and aims at the second application program; operating the second application program according to the second starting instruction; and starting the root permission by using the second application program.
Further, the first processing module is configured to output a user authorization dialog box by using the first application program, and obtain the root authority when receiving an external grant authorization instruction input through the user authorization dialog box.
Further, the first processing module is configured to replace X in service_adb_tcp_port X in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
Further, the android device comprises an android simulator, an android mobile phone or an android tablet.
In a third aspect, the present invention provides a system for wirelessly debugging an android device, comprising:
debugging equipment and any android equipment;
the debugging equipment and the android equipment are connected under the same local area network;
the android device is provided with a configuration file of an adb service, and the configuration file comprises a port number of the adb service;
an adb is installed on the debugging equipment;
the debugging equipment is used for receiving the port number and the IP address of the android equipment which are input externally; according to the IP address and the port number, the android device is connected in a wireless mode; and receiving an externally input debugging instruction, and sending the debugging instruction to the android device.
The invention provides a method, a device and a system for wirelessly debugging android equipment. The android device is provided with an adb service and a configuration file thereof, wherein the configuration file comprises a port number of the adb service. The android device is connected with a local area network; receiving an externally input starting instruction aiming at an application program, and running the application program according to the starting instruction; acquiring root rights by using an application program, acquiring a configuration file based on the root rights, reminding the outside of inputting a new port number, and replacing the port number in the configuration file with the new port number inputted from the outside; receiving an externally input adb service restarting instruction, and restarting the adb service according to the instruction; receiving a debugging instruction sent by external debugging equipment connected with the same local area network based on a port with a new port number of the android equipment; the debug instruction is executed using the adb service. Therefore, the android device can be debugged wirelessly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for wirelessly commissioning android devices, provided by an embodiment of the present invention;
FIG. 2 is a flow chart of another method for wirelessly commissioning android devices provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an android device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another android device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a system for wirelessly debugging an android device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for wirelessly debugging an android device, which is applied to the android device, wherein the android device has opened root rights and is installed with a first application program, an adb service and a configuration file thereof are provided on the android device, and the configuration file includes a port number of the adb service; the method comprises the following steps:
step 101: is connected with a local area network.
Step 102: a first initiation instruction for the first application is received that is externally input.
Step 103: and operating the first application program according to the first starting instruction.
Step 104: and acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, reminding the outside of inputting a new port number, receiving the new port number input from the outside, and replacing the port number in the configuration file with the new port number.
Step 105: and receiving an adb service restarting instruction input from the outside.
Step 106: and restarting the adb service according to the adb service restarting instruction.
Step 107: and receiving a debugging instruction sent by external debugging equipment connected with the local area network based on the port of the android equipment with the new port number.
Step 108: and executing the debugging instruction by utilizing the adb service.
The embodiment of the invention provides a method for wirelessly debugging android equipment, which is applied to the android equipment, wherein the android equipment is provided with an adb service and a configuration file thereof, and the configuration file comprises a port number of the adb service after the root authority of the android equipment is opened and an application program is installed on the android equipment. The android device is connected with a local area network; receiving an externally input starting instruction aiming at an application program, and running the application program according to the starting instruction; acquiring root rights by using an application program, acquiring a configuration file based on the root rights, reminding the outside of inputting a new port number, and replacing the port number in the configuration file with the new port number inputted from the outside; receiving an externally input adb service restarting instruction, and restarting the adb service according to the instruction; receiving a debugging instruction sent by external debugging equipment connected with the same local area network based on a port with a new port number of the android equipment; the debug instruction is executed using the adb service. Therefore, the android device can be debugged wirelessly.
In detail, the debugging equipment provided with the adb tool and the android equipment to be debugged can be connected to the same local area network, and the debugging equipment can establish wireless connection with the android equipment based on the IP address of the android equipment and the port number of the adb service of the android equipment, so that the android equipment can be debugged wirelessly.
In detail, the debugged android device can be an android simulator, or can be an actually existing android device, such as an android mobile phone, an android tablet and the like.
For wireless connection to an android device, the debugging device needs to know the port number. Correspondingly, the android device needs to acquire root rights. Therefore, the android device can modify the port number in the configuration file of the adb service according to the requirements of debugging personnel based on root rights. Furthermore, the debugger can input the modified port number into the debugging equipment.
In detail, root rights are one kind of SYSTEM rights, also called root rights, and SYSTEM rights can be understood as a concept, but are higher than administtra rights, root is a super Administrator user account in Linux and unix SYSTEMs, which has the right of the whole SYSTEM up to nothing, and all objects can operate.
In the embodiment of the invention, the port number modification operation can be executed by the first application program on the android device. Thus, the android device needs to open the root authority first, and the first application program can acquire the root authority and modify the port number based on the root authority.
In detail, the first application program may be an application program created by a debugger according to the needs, or an existing application program that may be used to obtain root rights and modify port numbers. After the first application program is determined, the debugger needs to install the first application program on the android device in advance.
After the first application program is installed, a debugger can trigger an icon of the first application program to request the android device to start the first application program. After the first application program is started, root rights can be obtained, and a configuration file of the adb service is obtained based on the obtained root rights. After the configuration file is obtained, a dialog box may be popped up to prompt the debugger to enter the port number. After the debugger inputs the new port number, the first application program can replace the original port number in the configuration file with the new port number.
In detail, on the premise of ensuring that the port numbers do not conflict, the new port number can be any port number meeting the standard, and a debugger can set the new port number according to the needs.
Because the port number in the configuration file has changed, the adb service may be restarted in order to allow the adb service to adapt to the new port number. In detail, the debugging personnel can operate the android mobile phone to independently restart the adb service, and can also directly restart the android device.
And then, the debugging equipment under the same local area network can wirelessly send a debugging instruction based on the IP address and the new port number of the android equipment, and correspondingly, the android equipment can execute the debugging instruction by utilizing the restarted adb service, so that the wireless debugging of the android equipment by the debugging equipment is realized. Such debugging operations may include any file to the android device, including operations to add, delete, modify, and search system files.
In order to modify the port number in the configuration file, the first application program needs to obtain the root permission, and correspondingly, the android device needs to open the root permission. In general, in order to avoid some potential risks when the Android platform is applied, vendors lock root rights before the equipment leaves the factory, and only open user rights with relatively low levels. Thus, for android mobile phones with root rights not opened, the root rights need to be opened in advance.
Based on this, in one embodiment of the present invention, to illustrate a possible implementation manner of opening the root right, before the receiving the first start instruction for the first application program, which is input externally, the method further includes: receiving an externally input installation instruction for a second application program; downloading and installing the second application program according to the installation instruction; receiving a second starting instruction which is input externally and aims at the second application program; operating the second application program according to the second starting instruction; and starting the root permission by using the second application program.
In detail, the second application may be an existing application for opening root rights, such as "one-key root master", "KingRoot", etc., which may be downloaded from an existing software resource. After the second application program is downloaded, the debugger can start the second application program to run the second application program, and perform corresponding operation according to the operation prompt of the second application program, so that the second application program can start the root permission of the android device.
In the above description, after the debugger starts the first application, the first application may obtain the root permission of the android device. In order to avoid the first application program starting caused by false triggering, the first application program can send out authorization confirmation notification again after starting, and the debugger can acquire root rights after confirming authorization. Thus, in one embodiment of the present invention, the acquiring, by using the first application program, the root right includes: and outputting a user authorization dialog box by using the first application program, and acquiring the root authority when receiving an approval authorization instruction input by the user authorization dialog box.
In detail, after the debugger clicks the icon of the first application program, the first application program is started normally, and after the first application program is started, a user authorization dialog box is displayed, so that the debugger confirms whether the authorization is again, and if the debugger agrees to the authorization, the operation of acquiring the root authority can be continuously executed.
In one embodiment of the present invention, the replacing the port number in the configuration file with the new port number includes: replacing X in service.adb.tcp.portX in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
In detail, a service. Adb. Tcp. Port X is recorded in the configuration file, where X is an original port number, and although a debugger cannot view the port number, the value of X can be changed based on root authority by using the first application program. Therefore, the debugger can input a new port number as required, and the first application program can replace the value of X with the new port number.
As shown in fig. 2, the embodiment of the invention provides a method for wirelessly debugging android device, which may include the following steps:
step 201: the debugging equipment and the android equipment are both connected with the same local area network.
In detail, the android device has root authority and is provided with an application program A, and an android debug bridge adb service and a configuration file thereof are arranged on the android device, wherein the configuration file comprises a port number of the adb service.
In detail, an adb is installed on the debugging device.
Step 202: and downloading and installing a one-key root master by the android device according to external operation.
Step 203: and the android device runs a one-key root master according to external operation, and opens the root permission by using the one-key root master.
Step 204: and the android device runs the installed application program A according to external operation.
In detail, this application a can be an application that can be developed autonomously by a debugger as required. The debugger can install the application program A on the android device through data line connection or network downloading.
Step 205: and the android device outputs a user authorization dialog box by using the application program A.
In detail, the dialog box may be provided with two function buttons of "authorized" and "not authorized" to allow the debugger to confirm whether the authorization is granted.
Step 206: and when the android device receives an approval authorization instruction input by the user through an authorization dialog box, acquiring root permission.
Assume that the debugger clicks "grant".
Step 207: the android device acquires a configuration file based on root permission by using the application program A, reminds the outside to input a new port number, and receives the new port number input from the outside: 10, replacing the port number in the configuration file with 10.
Assuming that the debugger needs to set the new port number to 10, 10 can be entered.
In detail, the application program a replaces X in the service_adb.tcp.portx in the configuration file with 10, and after replacement, the configuration file is the service_adb.tcp.port10.
Step 208: and the android device receives an externally input adb service restarting instruction and restarts the adb service.
Step 209: the debugging device receives an externally input IP address and port number of the android device: 10, according to the IP address and port number: and 10, wirelessly connecting with android equipment.
Step 210: the debugging equipment receives an externally input debugging instruction and sends the debugging instruction to the android equipment.
Step 211: android device has port number based on android device: 10, receiving a debug instruction sent by an external debug device connected with the local area network.
Step 212: and executing the debugging instruction by the android device through the adb service.
As shown in fig. 3, an embodiment of the present invention provides an android device, which may include: a wireless connection module 301, a first processing module 302, a restarting module 303, and a debugging module 304;
the android device is provided with an adb service and a configuration file thereof, wherein the configuration file comprises a port number of the adb service;
the wireless connection module 301 is configured to connect to a local area network;
the first processing module 302 is configured to receive a first start instruction for the first application program, which is input from the outside; operating the first application program according to the first starting instruction; acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, reminding the outside of inputting a new port number, receiving the new port number input from the outside, and replacing the port number in the configuration file with the new port number;
the restarting module 303 is configured to receive an adb service restarting instruction input from the outside; restarting the adb service according to the adb service restarting instruction;
the debug module 304 is configured to receive, based on a port of the android device having the new port number, a debug instruction sent by an external debug device connected to the local area network; and executing the debugging instruction by utilizing the adb service.
In one embodiment of the present invention, please refer to fig. 4, the android device further includes: a second processing module 401, configured to receive an externally input installation instruction for a second application program; downloading and installing the second application program according to the installation instruction; receiving a second starting instruction which is input externally and aims at the second application program; operating the second application program according to the second starting instruction; and starting the root permission by using the second application program.
In one embodiment of the present invention, the first processing module 302 is configured to output a user authorization dialog box by using the first application program, and obtain the root authority when receiving an approval authorization instruction input from the outside through the user authorization dialog box.
In one embodiment of the present invention, the first processing module 302 is configured to replace X in service_adb_tcp_portx in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
In one embodiment of the invention, the android device comprises an android simulator, an android mobile phone or an android tablet.
As shown in fig. 5, an embodiment of the present invention provides a system for wirelessly debugging an android device, which may include: a commissioning device 501 and any of the android devices 502 described above;
wherein the debugging device 501 and the android device 502 are connected under the same local area network;
the android device 502 is provided with a configuration file of an adb service, and the configuration file comprises a port number of the adb service;
an adb is installed on the debug equipment 501;
the debug device 501 is configured to receive the port number and the IP address of the android device 502, which are input externally; according to the IP address and the port number, the android device 502 is connected in a wireless mode; and receiving an externally input debugging instruction, and sending the debugging instruction to the android device 502.
In detail, after the debugger inputs a new port number to the android device as required, the android device can change the port number of the adb service in the configuration file to the new port number. Thus, after the debugging personnel find the IP address of the android device, the IP address and the new port number can be input into the debugging device.
The debugging personnel can be connected to the android device in a wireless mode according to the IP address and the port number by controlling the debugging device. Then, the debugging personnel can control the debugging equipment as required to send out the regulation and control instruction. The regulation and control instruction can be transmitted to the android device in a wireless mode, and the regulation and control instruction is executed by an adb service on the android device, so that regulation and control operation is completed.
In summary, according to the embodiment of the invention, the port number of the adb service of the android device is modified through the android application program on the android device, so that wireless connection between the android device and the debugging device can be realized, and wireless debugging of the android device is facilitated through the debugging device. In the embodiment of the invention, the application program is only required to be installed on the android device to be debugged in any mode, the adb connection port can be modified by the running program, and the adb connection port is easy to operate without being connected with a computer or other auxiliary equipment.
The content of information interaction and execution process between the units in the device is based on the same conception as the embodiment of the method of the present invention, and specific content can be referred to the description in the embodiment of the method of the present invention, which is not repeated here.
In summary, the embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, the android device is provided with the adb service and the configuration file thereof, wherein the configuration file comprises the port number of the adb service after the android device has opened the root authority and is provided with the application program. The android device is connected with a local area network; receiving an externally input starting instruction aiming at an application program, and running the application program according to the starting instruction; acquiring root rights by using an application program, acquiring a configuration file based on the root rights, reminding the outside of inputting a new port number, and replacing the port number in the configuration file with the new port number inputted from the outside; receiving an externally input adb service restarting instruction, and restarting the adb service according to the instruction; receiving a debugging instruction sent by external debugging equipment connected with the same local area network based on a port with a new port number of the android equipment; the debug instruction is executed using the adb service. Therefore, the android device can be debugged wirelessly.
2. According to the embodiment of the invention, the port number of the adb service of the android device is modified through the android application program on the android device, so that wireless connection between the android device and the debugging device can be realized, and wireless debugging of the android device is facilitated through the debugging device. In the embodiment of the invention, the application program is only required to be installed on the android device to be debugged in any mode, the adb connection port can be modified by the running program, and the adb connection port is easy to operate without being connected with a computer or other auxiliary equipment.
It is noted that relational terms such as first and second, and the like, are 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. Moreover, 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 statement "comprises/comprising" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media in which program code may be stored, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the foregoing description is only illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. The method is characterized by being applied to android equipment, wherein the android equipment is provided with an android debug bridge adb service and configuration files of the adb service, and the configuration files of the adb service comprise port numbers of the adb service; the method comprises the following steps:
connecting the debugging equipment and the android equipment to the same local area network;
receiving a first starting instruction which is input externally and aims at the first application program;
operating the first application program according to the first starting instruction;
acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, popping up a dialog box to remind the outside of inputting a new port number, receiving the new port number input from the outside, and replacing the port number of the adb service in the configuration file of the adb service by the first application program;
receiving an adb service restarting instruction input from the outside;
restarting the adb service according to the adb service restarting instruction;
receiving a debugging instruction sent by the debugging equipment outside the local area network based on the IP address of the android equipment and the port with the new port number;
and executing the debugging instruction by utilizing the adb service.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
before the receiving the first start instruction for the first application program, the method further includes:
receiving an externally input installation instruction for a second application program;
downloading and installing the second application program according to the installation instruction;
receiving a second starting instruction which is input externally and aims at the second application program;
operating the second application program according to the second starting instruction;
and starting the root permission by using the second application program.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the obtaining the root authority by using the first application program includes:
and outputting a user authorization dialog box by using the first application program, and acquiring the root authority when receiving an approval authorization instruction input by the user authorization dialog box.
4. A method according to any one of claims 1 to 3, wherein,
the replacing the port number of the adb service in the configuration file of the adb service with the new port number includes: replacing X in service.adb.tcp.portX in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
5. An android device, comprising:
the device comprises a wireless connection module, a first processing module, a restarting module and a debugging module;
the android device is provided with an android debug bridge adb service and configuration files of the adb service, wherein the configuration files of the adb service comprise port numbers of the adb service;
the wireless connection module is used for connecting a local area network; the commissioning device is also connected to the local area network;
the first processing module is used for receiving a first starting instruction which is input externally and is aimed at the first application program; operating the first application program according to the first starting instruction; acquiring the root authority by using the first application program, acquiring the configuration file based on the root authority, popping up a dialog box to remind the outside of inputting a new port number, receiving the new port number input by the outside by the first application program, and replacing the port number of the adb service in the configuration file of the adb service with the new port number;
the restarting module is used for receiving an adb service restarting instruction input from the outside; restarting the adb service according to the adb service restarting instruction;
the debugging module is used for receiving a debugging instruction sent by the debugging equipment outside the local area network based on the IP address of the android equipment and the port with the new port number; and executing the debugging instruction by utilizing the adb service.
6. The android device of claim 5, wherein,
further comprises: the second processing module is used for receiving an externally input installation instruction aiming at a second application program; downloading and installing the second application program according to the installation instruction; receiving a second starting instruction which is input externally and aims at the second application program; operating the second application program according to the second starting instruction; and starting the root permission by using the second application program.
7. The android device of claim 5, wherein,
the first processing module is configured to output a user authorization dialog box by using the first application program, and acquire the root authority when receiving an approval authorization instruction input from the outside through the user authorization dialog box.
8. The android device of claim 5, wherein,
the first processing module is configured to replace X in service_adb_tcp_portx in the configuration file with the new port number;
wherein the new port number is any integer in a value range [1, 65535 ].
9. The android device of any one of claim 5 to 8,
the android device comprises an android simulator, an android mobile phone or an android tablet.
10. A system for wirelessly commissioning android devices, comprising:
debugging device and android device according to any one of claims 5 to 9;
the debugging equipment and the android equipment are connected under the same local area network;
the android device is provided with a configuration file of an android debug bridge adb service, and the configuration file comprises a port number of the adb service;
an adb is installed on the debugging equipment;
the debugging equipment is used for receiving the port number and the IP address of the android equipment which are input externally; according to the IP address and the port number, the android device is connected in a wireless mode; and receiving an externally input debugging instruction, and sending the debugging instruction to the android device.
CN201910930588.3A 2019-09-29 2019-09-29 Method, device and system for wirelessly debugging android device Active CN110764840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930588.3A CN110764840B (en) 2019-09-29 2019-09-29 Method, device and system for wirelessly debugging android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930588.3A CN110764840B (en) 2019-09-29 2019-09-29 Method, device and system for wirelessly debugging android device

Publications (2)

Publication Number Publication Date
CN110764840A CN110764840A (en) 2020-02-07
CN110764840B true CN110764840B (en) 2023-11-03

Family

ID=69330780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930588.3A Active CN110764840B (en) 2019-09-29 2019-09-29 Method, device and system for wirelessly debugging android device

Country Status (1)

Country Link
CN (1) CN110764840B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791869A (en) * 2021-09-18 2021-12-14 湖南小算科技信息有限公司 Method for acquiring shell permission of terminal equipment based on android system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521025A (en) * 2011-11-30 2012-06-27 上海新时达电气股份有限公司 Embedded microcontroller port customization method
CN103297425A (en) * 2013-05-09 2013-09-11 苏州泽佑科技有限公司 Semi-automatic password changing processing system
CN104394131A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Method for debugging multiple Android devices via wifi
CN105302364A (en) * 2015-09-24 2016-02-03 福建天晴数码有限公司 Android device remote controlling method and system
CN105893067A (en) * 2015-06-03 2016-08-24 福建创意嘉和软件有限公司 Method for implementing running of Android system application based on PC machine
CN105893193A (en) * 2015-12-08 2016-08-24 乐视移动智能信息技术(北京)有限公司 Connection control method of adb (Android Debug Bridge) and related equipment
CN106776323A (en) * 2016-12-17 2017-05-31 广州酷狗计算机科技有限公司 Application testing method and device
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN108170607A (en) * 2018-01-03 2018-06-15 上海传英信息技术有限公司 The control device and control method of OTP switches
CN108572929A (en) * 2017-03-07 2018-09-25 腾讯科技(深圳)有限公司 The open method and device of the debugging mode of equipment
CN108965286A (en) * 2018-07-09 2018-12-07 国网重庆市电力公司电力科学研究院 A kind of lightweight network equipment port detection method based on python
CN109871288A (en) * 2018-12-25 2019-06-11 上海瑞家信息技术有限公司 Execute method, apparatus, equipment and the medium of android system order

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521025A (en) * 2011-11-30 2012-06-27 上海新时达电气股份有限公司 Embedded microcontroller port customization method
CN103297425A (en) * 2013-05-09 2013-09-11 苏州泽佑科技有限公司 Semi-automatic password changing processing system
CN104394131A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Method for debugging multiple Android devices via wifi
CN105893067A (en) * 2015-06-03 2016-08-24 福建创意嘉和软件有限公司 Method for implementing running of Android system application based on PC machine
CN105302364A (en) * 2015-09-24 2016-02-03 福建天晴数码有限公司 Android device remote controlling method and system
CN105893193A (en) * 2015-12-08 2016-08-24 乐视移动智能信息技术(北京)有限公司 Connection control method of adb (Android Debug Bridge) and related equipment
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN106776323A (en) * 2016-12-17 2017-05-31 广州酷狗计算机科技有限公司 Application testing method and device
CN108572929A (en) * 2017-03-07 2018-09-25 腾讯科技(深圳)有限公司 The open method and device of the debugging mode of equipment
CN108170607A (en) * 2018-01-03 2018-06-15 上海传英信息技术有限公司 The control device and control method of OTP switches
CN108965286A (en) * 2018-07-09 2018-12-07 国网重庆市电力公司电力科学研究院 A kind of lightweight network equipment port detection method based on python
CN109871288A (en) * 2018-12-25 2019-06-11 上海瑞家信息技术有限公司 Execute method, apparatus, equipment and the medium of android system order

Also Published As

Publication number Publication date
CN110764840A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110851114A (en) Business system development method and device, electronic equipment and storage medium
CN107992308B (en) Plug-in management method for android terminal application program
US20070169129A1 (en) Automated application configuration using device-provided data
US11960869B2 (en) Android penetration method and device for implementing silent installation based on accessibility services
CN106445309B (en) Application download entry display method and device
CN109358827B (en) Method, system, equipment and storage medium for controlling application serial port printing
CN105765533A (en) Method and apparatus for firmware virtualization
CN110764840B (en) Method, device and system for wirelessly debugging android device
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN103997684A (en) Method and device for updating operating system
CN110837377B (en) Application program updating method and device, storage medium and electronic equipment
JP2013214247A (en) Information processing device, control method, and program
CN111177732B (en) System debugging mode control method and system and electronic equipment
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN111222122A (en) Application authority management method and device and embedded equipment
CN114217879B (en) Method for breaking through android ghost process limitation during program starting and running
CN111522560A (en) Software installation method and device, storage medium and electronic equipment
CN113791869A (en) Method for acquiring shell permission of terminal equipment based on android system
CN102902564A (en) Method and device for installing patches
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN111382416B (en) Application program operation identification method and device, terminal equipment and storage medium
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
KR101771438B1 (en) Mobile communication terminal and Method for installing application thereof
CN115543389A (en) System function updating method, device, terminal device and computer 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
CB02 Change of applicant information

Address after: 100176 room 07, block 2, building B, No. 12, Hongda North Road, Beijing Economic and Technological Development Zone, Beijing

Applicant after: Wanghai Kangxin (Beijing) Technology Co.,Ltd.

Address before: 100176 room 07, block 2, building B, No. 12, Hongda North Road, Beijing Economic and Technological Development Zone, Beijing

Applicant before: BEIJING NEUSOFT VIEWHIGH TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100176 room 801-2, 8th floor, building 3, yard 22, Ronghua Middle Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Wanghai Kangxin (Beijing) Technology Co.,Ltd.

Address before: Room 07, zone 2, building B, No. 12, Hongda North Road, Beijing Economic and Technological Development Zone, Beijing 100176

Applicant before: Wanghai Kangxin (Beijing) Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant