不裝任何apk也想知道目前的電池狀況嗎?
直接下指令就可以了
就會秀出:
Current Battery Service state:
AC powered: false
USB powered: true
status: 2
health: 2
present: true
level: 26
scale: 100
voltage:3747
temperature: 318
technology: Li-ion
其它有關adb shell dumpsys 後面的參數還有很多用法,總共如下:
SurfaceFlinger
accessibility
account
activity
alarm
appwidget
audio
backup
battery
batteryinfo
bluetooth
bluetooth_a2dp
bluetooth_dg_service
bluetooth_fm_receiver_service
clipboard
connectivity
content
cpuinfo
device_policy
devicestoragemonitor
diskstats
dropbox
entropy
hardware
htc_checkin
htchardware
input_method
iphonesubinfo
isms
location
media.audio_flinger
media.audio_policy
media.camera
media.player
meminfo
mount
netstat
network_management
notification
package
permission
phone
power
search
sensor
simphonebook
statusbar
telephony.registry
throttle
uimode
usagestats
usbnet
userbehavior
vibrator
wallpaper
wifi
window
如果什麼參數都不加,直接打adb shell dumpsys,就會出現全部的資訊了。
直接下指令就可以了
adb shell dumpsys battery
就會秀出:
Current Battery Service state:
AC powered: false
USB powered: true
status: 2
health: 2
present: true
level: 26
scale: 100
voltage:3747
temperature: 318
technology: Li-ion
其它有關adb shell dumpsys 後面的參數還有很多用法,總共如下:
SurfaceFlinger
accessibility
account
activity
alarm
appwidget
audio
backup
battery
batteryinfo
bluetooth
bluetooth_a2dp
bluetooth_dg_service
bluetooth_fm_receiver_service
clipboard
connectivity
content
cpuinfo
device_policy
devicestoragemonitor
diskstats
dropbox
entropy
hardware
htc_checkin
htchardware
input_method
iphonesubinfo
isms
location
media.audio_flinger
media.audio_policy
media.camera
media.player
meminfo
mount
netstat
network_management
notification
package
permission
phone
power
search
sensor
simphonebook
statusbar
telephony.registry
throttle
uimode
usagestats
usbnet
userbehavior
vibrator
wallpaper
wifi
window
如果什麼參數都不加,直接打adb shell dumpsys,就會出現全部的資訊了。
沒有留言:
張貼留言