Skip to content

Instantly share code, notes, and snippets.

@naseer
Last active August 29, 2015 14:10
Show Gist options
  • Save naseer/8034e736f8c819da4a35 to your computer and use it in GitHub Desktop.
Save naseer/8034e736f8c819da4a35 to your computer and use it in GitHub Desktop.
Display bugreport

##About bugreports An Android bugreport is the most standard way in the Google team to report any bugs. Typically a bugreport is taken by default at the occurence of any symptom. The bugreport covers the necessary state information that occurred at the time of the issue. It includes the kernel log, the userspace logs, and other system state. It may also include the last kernel log that occurred if the report is take after a crash.

##Getting a bugreport adb bugreport > bugreport.txt

##Sections relevant to display debugging Please refer to the sample bugreport here Apart from the kernel log and the userspace log, the bugreport has

  • dumpsys surfaceflinger (search for DUMP OF SERVICE SurfaceFlinger) - The dumpsys dumps all of the layer information
  • Power manager state (DUMP OF SERVICE power)
  • Window manager state (DUMP OF SERVICE window)
  • Previous Kernel log (LAST KMSG)
  • Recent panic log (/sys/fs/pstore/dmesg-ramoops-0) --> This may be specific to Motorola
  • Various memory related states such as procrank
  • Java and native stack trace of all current running processes (VM TRACES JUST NOW) - This is useful when there is a userspace hang suspected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment