If you like to view battery history data with KitKat and below devices, expand battery-historian , and then run the following:
$ adb shell dumpsys batterystats --reset >> run some test. either manual or with espresso, or monkeyrunner ... << $ adb bugreport > bugreport.txt $ ./historian.py bugreport.txt > out.html >> open out.html with your favorite browser <<
If you created a power file using the monsoon or any other tool, you can add this file (lines) by passing it with the -p option
Edit The best and fastest way to get an error message is with:
# create battery stats table adb shell dumpsys batterystats > bugreport
joecks Jul 16 '14 at 15:53 2014-07-16 15:53
source share