美文网首页
adb 笔记6:获取崩溃日志

adb 笔记6:获取崩溃日志

作者: _百草_ | 来源:发表于2022-09-21 11:02 被阅读0次
  • adb shell dumpsys dropbox # 获取本机中的部分log
C:\Users\百草>adb shell dumpsys dropbox
Drop box contents: 123 entries
Max entries: 1000
Low priority rate limit period: 2000 ms
Low priority tags: {data_app_wtf, keymaster, system_server_wtf, system_app_strictmode, system_app_wtf, system_server_strictmode, data_app_strictmode, netstats}

2022-08-22 11:32:11 storage_trim (text, 25 bytes)
    unknown 9752576 133825742
2022-08-22 11:32:11 storage_trim (text, 19 bytes)
    internal 0 93460791
...
...
2022-08-22 11:33:28 data_app_crash (text, 1805 bytes)
    Process: com.huawei.android.thememanager/PID: 6718/UID: 10352/Flags: 0 ...
2022-08-22 11:33:28 system_server_wtf (text, 1428 bytes)
    Process: system_server/Subject: BootReceiver/Build: google/flame/flame ...
...
...
2022-08-22 15:38:48 system_server_wtf (text, 1428 bytes)
    Process: system_server/Subject: BootReceiver/Build: google/flame/flame ...
2022-08-22 15:38:48 SYSTEM_BOOT (text, 562 bytes)
    isPrevious: true/Build: google/flame/flame:12/SQ3A.220605.009.A1/86432 ...
2022-08-22 15:39:31 data_app_crash (text, 1804 bytes)
    Process: com.huawei.android.thememanager/PID: 9264/UID: 10352/Flags: 0 ...
2022-08-22 15:42:15 data_app_crash (text, 4064 bytes)
    Process: com.philips.ph.*/PID: 11974/UID: 10019/Flags: 0 ...   # 标注包名;因为崩溃后直接获取的log,所在查看最新的即可

Usage: dumpsys dropbox [--print|--file] [YYYY-mm-dd] [HH:MM:SS] [tag]

  • adb shell dumpsys dropbox --print [log日志] # 打印并重定向某个位置方便查看
    查找具体的包名,获取对应的日期信息
C:\Users\百草>adb shell dumpsys dropbox --print 2022-08-22 15:42:15 data_app_crash
Drop box contents: 123 entries
Max entries: 1000
Low priority rate limit period: 2000 ms
Low priority tags: {data_app_wtf, keymaster, system_server_wtf, system_app_strictmode, system_app_wtf, system_server_strictmode, data_app_strictmode, netstats}
Searching for: 2022-08-22 15:42:15 data_app_crash

========================================
2022-08-22 15:42:15 data_app_crash (text, 4064 bytes)
Process: com.philips.ph.babymonitorplus
PID: 11974
UID: 10019
Flags: 0x30983e46
Package: com.philips.ph.** v1660825644 (1.0.4)
Foreground: Yes
Process-Runtime: 18592
Build: google/flame/flame:12/SQ3A.220605.009.A1/8643238:user/release-keys
Loading-Progress: 1.0

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.alibaba.fastjson.JSONArray.toJSONString()' on a null object reference
        at com.tuyasmart.stencil.utils.CountryUtils.jsonStringToCountryRespBean(CountryUtils.java:134)
        at com.tuyasmart.stencil.utils.CountryUtils.getCountriesData(CountryUtils.java:63)
        at com.tuya.smart.country.select.utils.CountryUtils.getCountryBeans(CountryUtils.java:352)
        at
**** 


C:\Users\百草>adb shell dumpsys dropbox --print 2022-08-22 15:42:15 data_app_crash >baby.txt

相关文章

  • adb 笔记6:获取崩溃日志

    adb shell dumpsys dropbox # 获取本机中的部分log adb shell dumpsy...

  • Pull出日志

    获取anr的信息 adb pull /data/anr ./anr 获取log中dropbox日志信息 adb p...

  • ubantu crash 调试

    APP崩溃后 adb logcat 打印错误日志 找到崩溃日志 addr2line -e libksvd.so 0...

  • android native 崩溃日志查询

    java 层的崩溃最好查,没什么说的 android tomstone 崩溃日志 adb shell dump...

  • ios崩溃分析

    崩溃日志的获取 崩溃日志的获取:ios设备上的应用闪退之后会生成崩溃报告存储在设备上,可以通过这样几种途径获取设备...

  • iOS开发-使用dSYM文件符号化Crash日志

    1、获取crash日志 通过Xcode获取到崩溃日志,方法是Xcode->Window->DevicesView ...

  • Android--LogCat

    获取 Android 手机的日志:adb logcat -v time > /Users/guxuecheng/D...

  • 使用ADB工具获取安卓崩溃日志

    作为一个测试人员,特别是安卓的测试,由于系统版本的不同和手机本身各个品牌的优化和硬件的不同,会出现各种各样的崩溃。...

  • iOS崩溃日志分析入门

    怎么获取崩溃日志 见获取日志的N+1中方式[https://juejin.cn/post/690528115174...

  • iOS 下的崩溃日志还原

    iOS 下的崩溃日志还原 一、相关文件获取 1、carsh文件 首先是获取到 carsh 日志文件,但是获取到之后...

网友评论

      本文标题:adb 笔记6:获取崩溃日志

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