adb 在 ROM 开发中的基本使用

截屏:
adb shell screencap /sdcard/test.png

查看手机中所有apk 包名:
adb shell pm list packages

根据包名,查看apk 安装路径
adb shell pm path 包名

使用 -s 过滤log标签
adb logcat -s 关注log标签

使用 -c 清除缓存log:
adb logcat -c

查看当前的Activity 的界面:
adb shell “dumpsys window | grep mCurrentFocus”

查看编译时间以及版本:
adb shell getprop | grep build.date

发布了3 篇原创文章 · 获赞 1 · 访问量 113

猜你喜欢

转载自blog.csdn.net/qq_22233425/article/details/104722102
ROM