adb测试app电量方法

发布时间 2023-06-26 14:39:47作者: 常疯大虾

Adb测试App电量方法

1.通过adb将电池信息清空

adb shell dumpsys batterystats –-reset

2.打开app,进行业务场景操作

在命令行模式输入:adb shell dumpsys batterystats com.cubic.autohome >H:\DeskTop\dianchi.txt

3.根据文件,分析app电池消耗

Estimated power use (mAh):

根据被测应用的uid,分析电池使用情况