adb 获取电量

1.打开cmd,连接模拟器 2.输入命令:adb shell dumpsys battery(查看电量) 3.将充电状态改为非充电状态 命令:adb shell dumpsys battery set status 1 status = 2 代表充电
相关文章
相关标签/搜索