ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
android:battery

battery

バッテリーの容量を確認する

dumpsys

$ 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

* dumpsys  \|  Android デベロッパー  \|  Android Developers

termux

$ 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
}

Automate

コメント

コメントを入力. Wiki文法が有効です:
  _____  _____   __ __  ____   _____
 / ___/ / ___/  / // / / __ \ / ___/
/ (_ / / (_ /  / _  / / /_/ // /__  
\___/  \___/  /_//_/  \___\_\\___/
 
android/battery.txt · 最終更新: 2020/01/18 00:21 by matoken