adb常用命令

2018-07-12  本文已影响0人  Kevin_Gao

adb抓完全Log

adb logcat -b main -b system -b radio -b events -v time > /tmp/all.log

adb抓Kernel Log

adb shell cat /proc/kmsg > /tmp/kernel.log

pm相关

清除某包的数据:

adb shell pm clear pkgName

列出所有安装的包

adb shell pm list packages

列出所有安装包的apk路径

adb shell pm list packages -f

am相关

发送广播

adb shell am broadcast -a com.Android.test

根据包名类名启动Activity

adb shell am start -n pkgName/className

杀死包名对应进程

adb shell am force-stop com.android.launcher3

根据包名卸载应用

adb uninstall com.android.launcher3

截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png

6.截屏

adb shell /system/bin/screencap -p /sdcard/screenshot.png
上一篇下一篇

猜你喜欢

热点阅读