Launcher3 开发常用的adb操作 | 您所在的位置:网站首页 › adb修改默认桌面命令 › Launcher3 开发常用的adb操作 |
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 nhapk的路径 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 |
CopyRight 2018-2019 实验室设备网 版权所有 |