Taking logs for bug reports
These instructions will generate a logcat
file which you can then attach to a bug report on JIRA.
That file basically consists of a log of system messages, including stack traces when the device throws an error, and debug messages from apps.
With a computer
Note: This method requires that you have
adb
installed.
If you don’t have it installed, please do that before continuing.- Open Command Prompt (Windows) or Terminal (Linux/macOS).
-
Type
adb logcat -d > logcat.txt
. This will save the log tologcat.txt
.Additionally, the radio buffer can be viewed or stored with
logcat
. If needed or requested, typeadb logcat -db radio > radio.txt
to save it toradio.txt
.
On your device
Note: This method requires that your device is rooted.
- Open the Terminal app (you can enable the built-in terminal app in Developer options).
- Type
su
and confirm root access - you may have to turn on root access for apps in Developer options. -
Type
logcat -d -f /sdcard/logcat.txt
. This will save the log to/sdcard/logcat.txt
.Additionally, the radio buffer can be viewed or stored with
logcat
. If needed or requested, typelogcat -db radio -f /sdcard/radio.txt
to save it to/sdcard/radio.txt
.