How to enable the Android power button bug report

To develop for a mobile platform, whether a website or an app, you need access to the log of a device. The logbook provides information about the Internet and API calls sent and received, as well as information about the device and how it interacts with an app or website.

For Android, a device log is normally obtained by connecting the device to a desktop system. The process is not complicated, but it binds you to a desktop system that is inconvenient.

Device login on Android phones

A device log does not necessarily have to be generated from a desktop system. An Android phone can generate a complete device log on its own.

Start of Android 10, and beyond, there is a built-in option to generate an error report that contains a complete log. This option must be enabled before it can be used.

1. Activate developer options

The Android on / off button error option is enabled by developer options that need to be enabled themselves.

  1. Open the Settings app on your Android device.
  2. Go to System.
  3. Look for the build number here. Its location may vary depending on your device.
  4. Tap the build number seven times. You will see a notification stating that developer options are enabled.

Enable USB debugging

After enabling developer options, you should now enable USB debugging.

  1. Open the Settings app on your Android device.
  2. Go to System> Developer Options. Depending on your device, the developer options may be under a different setting.
  3. Look for the USB debugging switch and turn it on.

3. Activate the login of the on / off button

After enabling USB debugging, you can enable the power button for the on / off button.

  1. Make the Settings app on your Android device.
  2. Go to System> Developer Options.
  3. Turn off the ‘Bug report shortcut’ switch.

4. Capture bug report

Now that the bug report short copy is enabled, you can use it to record an error report.

  1. Open the app or website for which you want to generate an error report.
  2. Press and hold the on / off button on your Android device.
  3. The on / off button menu will appear Bug Report Button. Tap on it.
  4. You will see ‘Bug report generated’ notification.
  5. Use the app / navigate the website until you encounter an error.
  6. Open the Notifications menu and see if the the progress bar below the bug report notification is complete.
  7. Once the progress bar is complete, tap on it and choose how you want to share the bug report.

5. Device Error Reporting Access

If you want to access an error report on your device, you can do so via the Settings app.

  1. Open the Settings app on your Android device.
  2. Go to Storage> Files.
  3. Tap on the hamburger icon option at the top left.
  4. From the navigation drawer, select bug reports.
  5. Go through the different error reports, and tap on the one you want to see.

6. Customize bug report

An Android device can generate two types of error reports; an interactive bug report that is a more concise report, and a complete report that contains everything. You can choose between the two which type you want to generate.

  1. Open the Settings app on your Android device.
  2. Go to Developer options.
  3. Type bug report.
  4. From the popup, select the type of bug report what you want to generate.
  5. The institution will applies to all future bug reports what you catch.

What’s in an error report?

An error report generated on an Android device could simply be a text file, or it could be a zip file containing multiple files.

Normally contains a bug report;

  • A bug report file.
  • A dump log file.
  • A directory containing logs used by sensors on the device and other hardware-related logs.
  • A directory called FS that contains information about the file system.

Android Device Log Error Report

The Android Bug Report contains the same information that you obtain when you generate a device log using ADB Tools. The only difference is that with ADB tools you have to give instructions for the type of information you want to record. The bug report generated on Android automatically captures all this information.

Bug reports can be particularly small, e.g. Single-digit MB files, or it can be much larger. It depends on how much information is captured.

The article How to enable the Android Power Button Bug Report appears first on TechtricksNg.

Leave a Comment