Tags: command Daquan IDE Class scree install folder USB adb push EnterHow to use the command:1, unzip the ADB package to the specified folder, including files include:adb.exe,adbwinapi.dll,adbwinusbapi.dll ; 2, open CMD (win+r) into the ADB path, start to execute the ADB command.ADB command set:
service usage details adb shell dumps YS Package//Show all program information, including activity,receiver adb shell Dumpsys cpuinfo //Display CPU usage information adb shell Dumpsys battery
//Display battery status adb shell dumpsys window //Display window information
. Use adb to start the application pageAdb shell am start-n [package name + activity name]Example: adb shell am start-n com. tencent. mm/. ui. splashacit.pdfWhen the application is forced to stop, the application is stuck and needs to be stopped, run the following command: adb shell am force-stop 17. Record wireless co
debugging applications using data lines is inconvenient, this blog introduces the use of ADB wireless Tools. When the phone is on the same network as the Computer. Implement Wireless Debugging Applications.ADB wireless allows mobile phones to use
: settings --> Wireless Network --> wlan settings --> advanced options --> ip address such as 192.168.2.11
3. Run ping 192.168.2.11 in the command of the local machine. If the ping is successful, the connection can be established.
4. Run adb connect 192.168.2.11.
If the connection is successful, you can continue the subsequent operations. If the connection fails, as shown in:
Unadble to connect
command forwarding Port-forwards requests on a specific port to different ports on the emulator or phone. The following example goes from Port 6100 to port 7100:
adb forward tcp:6100 tcp:7100
You can also use the UNIX-named socket ID:
adb forward tcp:6100 local:logd
Copying files to or from a emulator/device Instance you can use the ADB c
inexplicable problems fall off the line, you can first Kill-server, and then start-server to ensure that the server process starts. can often solve problems.
2.5 adb shellEnter the shell interface of the debug device, where you can use many of the instructions in the debug device. Many of the higher-order uses below are. $ adb shell
shell@hwH60:/ $3, high-order Usage 3.1
1 common command-line tools in the Android SDKThere are many command-line tools in the 2 starting and shutting down the ADB service (ADB start-server and ADB kill-server)After testing by the author, the ADB service is possible (this service can be found in the Windows process after the simulator has been running for a
After testing by the author, the ADB service is possible (this service can be found in the Windows process, which is used for the emulator or a real-time service connected via a USB cable), after the simulator has been running for a while. The ADB service needs to be re-closed and restarted. Of course, restarting eclipse may solve the problem. But that's more troublesome. If you want to close the
CD System/app RM *.apk 21. Get Administrator Privileges: ADB root 22. Start activity: ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c category,-e Extended data, etc.). 23. Release Port: You can set any port number as the request port for the host to the emulator or device. Such as:ADB forward tcp:5555 tcp:8000 24. Copy files: You can copy files t
ObjectiveWelcome everyone I share and recommend useful code Snippets ~ ~StatementWelcome reprint, but please keep the original source of the article:CSDN:http://www.csdn.netrainy season o mo away:http://blog.csdn.net/luckkofBody[Description]How to turn on and off the ADB authentication mechanism (Google adb secure)[Keyword]ADB secure, ro.adb.secure,
in multiple devices (simulators), you need to specify a device number when you want to view the status of one of them directly with Logcat, or when you install the app directly on the target device. ADB devicesThis command can get the serial number of the current device (serialnumber). like a simulator, usually a emulator-5554 .After the ADB directive, add the parameter-s You can specify the target of the
Connect adb with wifi and adb with wifi
Generally, USB is used to connect a computer to an Android device. However, wifi can also be used to connect to an Android device through a standard TCP/IP connection.
Step 1: Set --- WiFi --- advanced to view the IP address of the current WiFi;
Run the following command:
Complete.
Wifi key display adb cannot c
(). I have read a total of 0 comments for 36 times.10:29:15
When you want to use logcat to view the status of one of multiple devices (simulators), or directly install an application on the target device, you must specify the device number.Adb devicesThis command can obtain the serial number of the current device (serialNumber ).For example, a simulator is usually emulator-5554Add the parameter-s You can specify the adb Command target.It is useful whe
The meaning of each parameter: AC Powered:false Indicates whether to connect the power supply, false is not to use the power supply USB Powered:true Indicates whether use power is used and true is USB powered Status:2 indicates battery charge state, here 2 indicates battery charge Health:2 indicates the health of the battery, 2 indicates that the battery is in good condition Present:true indicates if there is a battery on the phone, true indicates that there is a battery Level:66 represents
activity:intent {comp={com.iceskysl.itracks/com.iceskysl.itracks . Itracks}}04-12 16:59:47.641 d/itracks (23968): Renderlistview.04-12 16:59:47.671 D/showtrack (23968): Myoverlay::d ARW. Mdefcaption=i ' m here.04-12 16:59:47.681 D/showtrack (23968): Myoverlay::d ARW. Mdefcaption=i ' m here.9. record the wireless communication log in general, there is a lot of traffic in the wireless communication, it is no
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
About the ADB implementati
To debug Android with a network requires that the device has root accessIf your phone does not have a command-line tool, first install the terminal emulator on your phone and then enter it at the Terminal:$su
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.