logcat – App logs are sometimes absent from Android bugreport
I’m trying to get logs from a certain Android application (KDE Connect, if this is relevant), whenever a certain issue/error happens.
- When I reproduce the issue first, then connect to the phone over USB (USB debugging enabled) and run
adb bugreportto capture a bug report — I cannot see any logs from the application, in the zip’s logcat. (I can see other logs from the issue’s timeframe though, even from hours earlier, so this doesn’t look like a buffer issue) - When I connect to the phone over USB first (USB debugging enabled), reproduce the issue and then run
adb bugreport— I can see the interesting app logs, even a backtrace of the interesting errors, in the zip’s logcat.
So it would appear there is a difference in what gets logged when USB debugging is connected/enabled, versus when it is not. I’m no Android developer but I cannot find any info on this behaviour.
Does anyone have an explanation (and sources)?
Read more here: Source link
