ADB Usage Basics

Source: Internet
Author: User

ADB is an Android software development with the simulator or Android phone communication tools, when the simulator is turned on, or the computer connected to the Android phone, open cmd, hit the ADB, enter (of course, to configure the environment variable before the line yo), there will be a lot of command help information, Here are a few common commands to start with.

ADB devices

View the Android device currently connected to your PC (both simulator and phone can see)


adb kill-server

Kill ADB Debug Bridge


adb start-server

Start adb Debug Bridge


adb Shell

Enter the terminal of the Android device and you can use the command under Linux when you enter it.


adb install xxx.apkinstall application, XXX is the application nameADB Uninstall < app package name > download application, uninstall must be the application's package name, not the application name yo

Adb–s < Emulator or Android device name > Install xxx.apk

- s means select Device if multiple devices are connected with the-s command

adb pull< file name > < file name >

Copy files from your Android device to your computer

ADB push < file name > < file name >

Copy the files on your computer to your Android device

Monkey (monkey) This command can be used to test the stress resistance of the program you are developing first the ADB shell enters the terminal and then monkey, the carriage return will appear using the Help
Let's start with one of the simplest monkey. 1000 This command simulates your finger randomly clicking on the Android device 1000 times, the error will be recorded, it is recommended to use the best time to open DDMS, it seems convenient, if you want to test a program, Need to add a parameter Monkey-p < package name > 1000-p followed by the package name of the application you want to test, and finally the number of clicks, (if it is a real machine, you have to root the line yo)

ADB Usage Basics

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.