pm clear com.example.test :
清除应用数据.
home keycode 3 的设置在 systemui 的 layout 下面的home.xml :
android.view.KeyEvent
adb shell input swipe 1000 200 0 200 500 : launcher 界面右滑至下一个屏。
adb shell input swipe 0 200 1000 200 250 launcher 界面左滑至前一个屏。
adb shell input keyevent 3 : 发送Home按键;
adb shell input keyevent 4 : 发送Back按键;
adb shell input tap 300 250 : 在坐标300.250的位置发送tap事件.
adb shell input keyevent 26 : 电源按键;
Currently running services
adb shell cmd -l
发送 notification
adb shell cmd notification post 1 nh
apk的路径
adb shell pm path com.example.test
已安装的包
adb shell pm list package
导出数据库 :
adb root
adb remount
adb pull /data/data/com.android.launcher3/databases
编译Launcher3:
m Launcher3
安装Launcher3.apk:
adb root
adb remount
adb push Z:\out\target\product\Tinker_Board_2\system_ext\priv-app\Launcher3\Launcher3.apk /system_ext/priv-app/Launcher3/Launcher3.apk
清除launcher3数据库:
adb root
adb remount
adb shell rm -rf /data/data/com.android.launcher3/databases
adb reboot
删除Launcher3.apk:
adb root
adb remount
adb shell rm -rf /system_ext/priv-app/Launcher3/Launcher3.apk
adb uninstall com.android.launcher3
adb reboot