$ adb shell dumpsys battery Current Battery Service state: AC powered: false USB powered: true Wireless powered: false Max charging current: 500000 Max charging voltage: 5000000 Charge counter: 1005815 status: 2 health: 2 present: true level: 32 scale: 100 voltage: 3872 temperature: 200 technology: Li-ion $ adb shell dumpsys battery|grep level:|awk {'print $2'} 33
$ termux-battery-status -h Usage: termux-battery-status Get the status of the device battery. $ termux-battery-status { "health": "GOOD", "percentage": 70, "plugged": "PLUGGED_USB", "status": "CHARGING", "temperature": 36.900001525878906 }
コメント