adb shell pm
adb shell pm reset-permissions -p <app-package-name> 重置权限
adb shell pm grant <app-package-name> <permission-name> 授予权限
adb shell pm revoke <app-package-name> <permission-name> 撤销权限
adb shell pm grant, revoke: these commands either grant or revoke permissions
to apps. The permissions must be declared as used in the app's
manifest, be runtime permissions (protection level dangerous),
and the app targeting SDK greater than Lollipop MR1.
adb shell pm reset-permissions: revert all runtime permissions to their default state.
adb shell pm list permission-groups
adb shell pm list permissions [-g] [-f] [-d] [-u] [GROUP]
adb shell cmd package install-existing
adb shell settings
adb shell dumpsys
adb shell wm density
adb shell screencap
adb shell screenrecord
adb shell getprop
adb shell setprop
adb shell cat /proc/cpuinfo
adb shell rm
adb shell mkdir
adb shell cp
adb shell mv
adb shell top
adb shell ip -f inet addr show wlan0
adb shell netstat
adb shell am start -a android.intent.action.CALL -d tel:+19797220011
adb shell am start -a android.intent.action.SENDTO -d sms:+19797220011 --es sms_body "Test Message" --ez exit_on_sent false
adb shell input text 'I love this adb command'
adb shell am start -a android.intent.action.VIEW -d https://technastic.com
adb shell am force-stop xxx包名:通过包名杀死APP进程
adb shell pm hide xxx包名: 隐藏某个app,相当于禁用,无需root权限,不需要修改"Read-only"状态,不删除app数据
adb shell pm unhide xxx包名:取消隐藏app
adb shell svc power stayon true :保持屏幕长亮,本质是打开开发者模式中的(不锁定屏幕)开关
adb install -t xxx.apk:安装debug版APP
adb install -r xxx.apk:替换安装已有APP
adb install -d xxx.apk:降级安装已有APP
adb shell pm dump xxx包名 | findstr “version” :查看app版本号
mount -o rw,remount / :解决Read-only file system问题
adb shell settings put secure install_non_market_apps 1 :开启“允许安装未知来源应用”,特别适合在被限制安装应用的电视上用