Scene:
1. As a bridge between PC-side and mobile-phone communication, ADB plays an important role in debugging mobile app and viewing mobile phone information.
2. Some of the more useful commands are listed here to facilitate quick check.
To view a list of devices on which USB debugging is turned on: ADB devices install APK: adb-s xxxxx (device serial number, using ADB devices, assuming that only one device is connected, do not need to join the-s parameter) install-r (install again)-S ( Install to SD card) apk local path adb install C:\1.apk adb-s 03157df364737e11 install C:\1.apk adb-s 03157df364737e11 Install-r C:\1.apk adb-s 03157df364737e11 install-r-S C:\1.apk uninstall apk:adb-s 03157df364737e11 Uninstall com.xxx.xxx ( APP package name, androidmanifest.xml definition) view executing app:adb shell Dumpsys activity view installed App:adb-s 03157df364737e11 shell pm List package launches Apk:adb-s 03157DF364737E11 shell am start android.intent.action.main-n packagename/xx.xx.activity ADB shell am start-a android.intent.action.main-n packagename/com.xxx.ui.fullscreenactivity--ei ID 100 Stop apk:adb-s 0315 7DF364737E11 Shell am force-stop com.xxx.xxx (APP package name, androidmanifest.xml definition) Mobile communication definition port forwarding: adb-s 03157df364737e11 forward tcp:8089 tcp:7665 into the Linux shell:adb shell many other uses: ADB help
Check if root adb shell enters and then hit Su to enter, assuming normal access is root
[Android]_[0 basic]_[adb useful commands]