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  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
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值