美文网首页
adb常用命令

adb常用命令

作者: Kevin_Gao | 来源:发表于2018-07-12 17:17 被阅读0次

    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
    

    相关文章

      网友评论

          本文标题:adb常用命令

          本文链接:https://www.haomeiwen.com/subject/qserpftx.html