If I have bug reports enabled in dev options and I take a bugreport from the power button menu, where are these reports saved?

I see there is an option to share it, but I want to pull it directly through adb for analysis.

up vote 7 down vote accepted

Bugreports are stored in /data/data/com.android.shell/files/bugreports.

You can't access the file directly without root access.

  • hi. This is not a question directly related to OP's, but I always wanted to know where the bug report is sent whenever an app encounters an error and offers to submit the report? I'm guessing it's a Google server, but it could also be to the app developer's email. – asgs Apr 30 '16 at 20:26
  • 3
    Not 100% certain, but I believe it goes to a Google server and devs can access it through their developer dashboard. I think the feedback on app crashes is a subset of the info in a bug report, just logcat/system log, stack trace, etc. – arcyqwerty Jul 12 '16 at 14:22
  • On Android 6 (at least on Samsung Galaxy J5) is /data/data/com.android.shell/files/bugreports accessible also for shell user. – pevik Nov 15 '17 at 20:27

You can connect your device to your PC, and use android SDK tools adb, then go to the directory and in your command line use adb shell bugreport > bugreport.txt Your bugreport will output.

  • 6
    That will work for taking a new bugreport but not for retrieving one that already exists (i.e. taken while using the phone unattached to adb) – arcyqwerty Mar 28 '16 at 14:52

If you want to view the bug reports on your PC, run adb from a directory where you want to save the bugreports with

adb pull /data/data/com.android.shell/files/bugreports

But this may require root permission.

  • That has already been mentioned in this answer – apart from the adb pull part. When using adb, on the device's end it's usually running as shell user – which IMHO is the owner of that location, so no root should be needed to pull the files. – Izzy Oct 25 '17 at 14:02

In my case, they are in /data/user_de/0/com.android.shell/files/bugreports/

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.