Scenarios:
1. ADB acts as a bridge between the PC and the mobile phone, and plays an important role in debugging mobile apps and viewing mobile phone information.
2. Here are some more practical commands for quick reference.
Check the list of devices that enable USB debugging:
adb devices
install APK:
adb -s xxxxx (device serial number, obtained using adb devices, if only one device is connected, no need to add -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, defined in AndroidManifest.xml)
Check the running APP:
adb shell dumpsys activity
Check 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, in AndroidManifest.xml Definition)
Mobile communication definition port forwarding:
adb -s 03157df364737e11 forward tcp:8089 tcp:7665
Enter linux shell:
adb shell
For more usage reference:
adb help
Check if root
adb shell Enter and press su Enter, if it can enter normally, it is root
adb utility command
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327007781&siteId=291194637
Ranking