&读取电池信息
adb shell dumpsys batteryCurrent Battery Service state:
AC powered: false //false表示没使用AC电源
USB powered: true //true表示使用USB电源
Wireless powered: false //false表示没使用无线电源
status: 2 //2表示电池正在充电,1表示没充电
health: 2 //2表示电池状态优秀
present: true //true表示已安装电池
level: 63 //电池百分比
scale: 100 //满电量时电池百分比为100%(不确定是否正确)
voltage: 3781 //电池电压3.781V
temperature: 250 //电池温度为25摄氏度
technology: Li-ion //电池类型为锂电池[/pre]
设置电量百分比
adb shell dumpsys battery set level 100复位,恢复实际状态
adb shell dumpsys battery reset