[Android] _ [elementary] _ [adb practical command]
Scenario:
1. ADB serves as a bridge between pc and mobile phone, and plays an important role in debugging mobile apps and viewing mobile phone information.
2. Some useful commands are listed here for quick query.
View the list of devices that enable USB debugging: adb devices APK: adb-s xxxxx (device serial number, obtained using adb devices. If only one device is connected, you do not need to add the-s parameter) install-r (reinstall)-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. view the running APP: adb shell dumpsys activity view the installed APP: adb-s 03157df364737e11 shell pm list package start APK: adb-s 03157df364737e11 shell am start android. intent. action. MAIN-n PackageName/xx. xx. activity stop APK: adb-s 03157df364737e11 shell am force-stop com. xxx. xxx (APP Package name, AndroidManifest. (defined in xml) mobile phone communication definition port forwarding: adb-s 03157df364737e11 forward tcp: 8089 tcp: 7665 go to linux shell: adb shell for more usage refer to: adb help
Check whether the root adb shell enters and then press su to press Enter. If the root shell enters normally