先安装Docker
见另一篇 http://www.jianshu.com/p/13895279c758
安装Battery Historian
docker -- run -p <port>:9999 gcr.io/android-battery-historian:2.1 --port 9999
上面这个是官方提供的,我是没用上,找不到资源,后面用了另一个作者的https://hub.docker.com/r/blystad/battery-historian-2/
感谢,所以用这个,虽然已经是九个月前更新的了
docker pull blystad/battery-historian-2
然而我还是没有这么做,我用Kitematic直接搜索下载 ORZ
获取日志
Android 7.0 及以上:
$ adb bugreport bugreport.zip
Android 5.0 Lollipop (API level 21) 至Android 6.0:
$ adb bugreport > bugreport.txt
然而我还是出问题了.暂时不解决了

重置日志
adb shell dumpsys batterystats --reset
Wakelock analysis
adb shell dumpsys batterystats --enable full-wake-history
The End
Thx google. Thx world.