- 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
网友评论