开发者

adb bugreport: Is there a way to reset the log?

开发者 https://www.devze.com 2023-01-17 15:40 出处:网络
Hey, I\'m new to Android/ADB I\'ve been asked to dump an adb bugreport log by someone.I managed to do this, but the report was 640k and had a ton of crash dumps for various apps that I was playing wi

Hey, I'm new to Android/ADB

I've been asked to dump an adb bugreport log by someone. I managed to do this, but the report was 640k and had a ton of crash dumps for various apps that I was playing with. I'm trying to present just the information for the app we're interested in.

Is there a way to res开发者_如何学运维et the log so that I don't have all this other cruft?

thanks!


You can clear old logs that are available while starting your application by calling adb logcat -c from shell prompt. It should clear any old logs on the buffer and the logs getting printed thereafter should be from your application(at least a majority of them).


I would recommend to clean up old battery collection data before making bug report. Otherwise the output will be bigger.

adb shell dumpsys batterystats --reset
adb shell bugreport > Bugreport_File_Name.txt
0

精彩评论

暂无评论...
验证码 换一张
取 消