How to Generate Adb Bugreport on Android Phones

Source: Internet
Author: User
Keywords adb bugreport adb bugreport
Tags android adb bugreport bugreport adb

Android phones have a bugreport for debugging purposes, and can log a lot of logs. The previous article talked about how to install this log tool. This one records the generation and export of bugreport. Test mobile phone: Android phone 7.0 or above

  • Install an ADB on the computer, just install ADB, and configure the path, so you can use adb directly in any path. SDK is very big
  • Turn on the debug mode and make the developer mode by pressing the version number several times on the phone.
  • Turn on debugging in developer mode
  • Connect your phone to your computer and select Transfer files.
  • Open the CMD window
  • The following is the command set time:
  1. Reset battery statistics and history

      Adb shell dumpsys batterystats --reset

       2. Get the detailed wakelock data, Chinese is the wake lock, the application can hold the lock, the CPU can not enter the sleep state, has been working. For example, when the screen of the mobile phone is off, some applications can still wake up the screen to prompt the user for the message. Here is the wakeoc lock mechanism. Although the screen of the mobile phone is closed, these applications are still running. After this switch is turned on, try not to open it for too long. The reason is: the log is too big to bear.

     Adb shell dumpsys batterystats --enable full-wake-history --enabled

     Adb shell dumpsys batterystats --disable full-wake-history --off

      3. crawling logs
     Adb bugreport bugreport.zip
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.