16

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.

5 Answers 5

10

As of Android 10, at least for Pixel devices, bugreports taken from the device are available in /bugreports - even without root access! You can get the names of the available bug reports with

adb shell ls /bugreports/

then get the file you want with adb pull, e.g.

adb pull /bugreports/bugreport-foobar-lotsofnumbers-date.zip
3
  • It worked for me on my Galaxy Note 9 but my bugreports were in /bugreports/bugreport/
    – Gazumbo
    Commented Aug 27, 2021 at 17:55
  • 1
    Officially documented at Capture and read bug reports - Save an older bug report
    – Weekend
    Commented Jul 6, 2022 at 7:15
  • If you don't have adb set up, it is available in the Android Studio Device File Explorer. Just open the top level shortcut to the directory bugreports Commented Aug 29, 2022 at 0:10
8

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

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

1
  • On Android 6 (at least on Samsung Galaxy J5) is /data/data/com.android.shell/files/bugreports accessible also for shell user.
    – pevik
    Commented Nov 15, 2017 at 20:27
5

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

1
  • and linked as /bugreports Commented Sep 22, 2019 at 5:44
4

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.

1
  • 7
    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
    Commented Mar 28, 2016 at 14:52
2

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.

1
  • 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
    Commented Oct 25, 2017 at 14:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .