Battery Historian 初探

先安装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.

详见官方文档:https://github.com/google/battery-historian

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容