Battery Historian 使用常用命令

一、重置电池数据收集数据

打开电池数据获取:
adb shell dumpsys batterystats --enable full-wake-history 重置电池数据: adb shell dumpsys batterystats --reset

获取电量数据报告:

adb bugreport > bugreport.txt

或者:

adb shell dumpsys batterystats > batterystats.txt 

获取指定app的信息:

adb shell dumpsys batterystats > com.example.android.sunshine.app > batterystats.txt

原文地址:https://www.cnblogs.com/liyuanhong/p/7066282.html