a="/sys/devices/virtual/power_supply/battery"
b=$(cat $a/status)
c=$(cat $a/health)
d=$(cat $a/technology)
e=$(cat $a/voltage_now)
f=$(cat $a/current_now)
g=$(cat $a/present)
h=$(cat $a/capacity)
i=$(cat $a/temp)
while(true)
do
time=$(date +%H:%M:%S)
echo $time $b $c $d $e $f $g $h $i
sleep 5s
done
android shell 电池电量 显示
最新推荐文章于 2023-08-25 14:54:29 发布