1. Enter the phone command line mode
ADB shell
With multiple phones.
ADB- s + phone number + shell
2. Install APK
ADB install and then drag the apk file into the command line
Uninstall APK
ADB Uninstall + package name
3. Enter Root permission
ADB shell
Su
4. Kill the server
ADB kill-server
5. Tune Up server
ADB devices
Or
ADB start-server
6. ADB push command (write file to phone or read phone file)
Demo:adb pushd:\test.apk/system/app/Writing files
adb Push/system/app d:\ Read File
Note: ADB push is not an installation command, it is to copy a file to the directory specified by the phone, as long as there is sufficient permissions, you can copy the files to any directory, even in the/system/app/directory, as a system user program
7. Deleting apps
ADB remount//re-hangs the system partition to make the system partition writable
ADB shell
CD System/app
RM *.apk
8. Output all installed applications
ADB shell PM List packages-f
9. Analog Key input
ADB shell input keyevent +keyevent corresponds to the code
10. Recording Screen
ADB Shell Screenrecord/sdcard/demo.mp4
11. Start an activity
ADB shell am START-N package Name/package name + class name
12. Restart
ADB reboot
Http://www.cnblogs.com/wansho/p/5104336.html
Android common ADB commands