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