1. Install APK (if add-r parameter, keep set data, reinstall FILENAME.APK)
ADB install xxx.apk
ADB install-r xxx.apk
2. Uninstall APK (if the plus-K parameter, to uninstall the software but retain the configuration and cache files)
ADB uninstall xxx.apk
ADB uninstall-k xxx.apk
3. View all currently connected emulator devices
ADB devices
4, to a certain simulator operation
Adb-s Simulator number Command
5, import files to the simulator (this command can also be implemented to install the APK, just put the apk into "/system/app" or "/data/app" OK)
ADB push file Emulator path
6. export files from simulator
ADB pull simulator file local path
7. Check the simulator log information
ADB logcat
8. Get Administrator Privileges
ADB root
9. Enter Shell mode
ADB shell
10, start activity (adb shell followed by the command mainly from the source \system\core\toolbox directory and source \frameworks\base\cmds directory)
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.)
11. Get the Device ID number
ADB Get-serialno
12. Open ADB Service
ADB start-server
13. Close the ADB service
ADB kill-server
14. Visit Sqlite3
ADB shell
Sqlite3
15. Restart the device
ADB reboot
16, hanging in the partition (can make the system partition can be re-writable)
ADB remount
17, the release port (can be set any port number, as the host to the emulator or device request port)
ADB forward tcp:5555 tcp:8000
18. Shutdown command
ADB Shell Reboot-p
19. Delete Files and folders
TOOLS>ADB remount
TOOLS>ADB Shell
#su
#cd system/sd/data//Enter the specified folder within the system
#ls//list displays the contents of the current folder
#rm-R xxx//delete the folder with the name xxx and all the files inside it
#rm XXX//delete file xxx
#rmdir xxx//delete xxx folder
20. View Package name Ls-l/data/app
21. Start a calculator in a mobile phone
Am Start-n com.android.calculator2/. Calculator
The above is a number of commonly used ADB commands, such as do not understand or other commonly used commands, you can leave a message!
Android Common ADB commands