adb使用

作者: ygx211 | 来源:发表于2018-06-29 10:21 被阅读7次

    说明

    收集工作中常用的adb命令

    • 清除数据:
      adb shell pm clear [包名]
      
    • 查看指定包名的应用信息
      adb shell dumpsys package [包名]
      
    • 抓取内存快照
      adb shell dumpheap [包名] [/sdcard/mem.hprof]
      adb pull /sdcard/mem.hprof .
      
    • 查看应用上包名list
      adb shell pm list packages
      
    • 发送广播:
      adb shell am broadcast -a [action] --es [str_key] [str_value] --ez [boolean_key] [boolean_value] ...
      
    • 抓取日志到文件
      adb logcat -v time > [zzw.log]
      

    相关文章

      网友评论

          本文标题:adb使用

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