Android phones in order to facilitate debugging a man named bugreport things, you can record a lot of logs. Previous talked about this log to see how to install the tool: power optimization of Battery Historian installation
This is a record about the generation and export of bugreport. Test Mobile: Android 7.0+ phone
Crawl log
-
ADB upload a computer, only to install ADB on the line with the next path, so that any path can be directly adb. SDK very big
-
Turn on debug mode, press a few times on the phone more than the version number, the developer mode to get out
-
Open in developer mode debugging
-
Phone connected to the computer, select the file transfer
-
Open a CMD window
Here is the command set time:
. A reset battery statistics and history
adb shell dumpsys batterystats --reset
. Wakelock b obtain detailed data, Chinese is a wake-lock, to have the application holding the lock, CPU can not go to sleep, it has been in working condition. For example, the phone screen when the screen is off, some applications still can wake up the screen prompts the user message, this is used the wakeloc lock mechanism, although the mobile phone screen is off, but these applications are still in the running. When this switch is turned on, try to not drive too long, on the grounds that: the log can not stand too much.
adb shell dumpsys batterystats --enable full-wake -history - to enable
adb shell dumpsys batterystats --disable full-wake -history - closed
c crawl log.
on access bugreport, on the Google Developers site (https: // developer.android.com/studio/profile/battery-historianbugreport method, as follows :), there is how to obtain
the For running the Android 7.0 Devices and iN AREAS oF COMMUNICAITIONS:
the adb bugreport> [path /] bugreport.zipDevices running Android 6.0 and the For Lower:
adb bugreport> [path /] bugreport.txt
If you can not export more than 7.0 bugreport when using the command, most likely because your version is too low due to adb, this command does not require root rights, the default permissions to
adb commands (https://developer.android.com/studio/command-line/adb),
adb version download (https://developer.android.com/studio/releases/platform- tools)
The accuracy of the data on electricity bugreport acquired
bugreport is a xml file (under a framework called power_profile.xml file) as a reference value to calculate the power consumption during the test, if this has not been modified xml file, xml standard power of Google is the default value, there are certain reference value DOU test analysis;