1. base cmd
1. Mount the file system: mount -o remount /dev/block/mtdblock0 /system
2. Copy the file: cp /storage/emulated/legacy/a.apk /system/app/a.apk
3. Start Specify APP: adb shell am start -n com.test.shellsample/com.test.shellsample.MainActivity
4. Modify folder and subdirectory permissions: chmod -R 777 data
2. studio
1. Pack and pack to generate APK: gradlew assemble
3. Android Wear
1. Connect the watch to the computer through the mobile phone:
adb forward tcp:2222 localabstract:/adb-hub
adb connect localhost:2222
adb -s localhost:2222 shell
2. Modify the watch input method settings:
adb -s localhost:2222 shell ime enable cn.hangood.hangoodkeyboard/.HangoodIME
adb -s localhost:2222 shell ime set cn.hangood.hangoodkeyboard/.HangoodIME
Android common shell command collection
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327030486&siteId=291194637
Recommended
Ranking