输入adb shell dumpsys命令可以看到有很多信息可以查询,如下:
- **C:\Users\Administrator>adb shell dumpsys
Currently running services:
MiuiBackup
MiuiInit
SurfaceFlinger
accessibility
account
activity
alarm
android.security.keystore
appops
appwidget
audio
backup
battery
batterypropreg
batterystats
bluetooth_manager
clipboard
cneservice
commontime_management
connectivity
consumer_ir
content
country_detector
cpuinfo
dbinfo
device_policy
devicestoragemonitor
diskstats
display
display.qservice
dreams
drm.drmManager
dropbox
entropy
gfxinfo
hardware
input
input_method
iphonesubinfo
iphonesubinfo.0
iphonesubinfo.1
isms
isms.0
isms.1
jobscheduler
listen.service
location
locationpolicy
lock_settings
media.audio_flinger
media.audio_policy
media.camera
media.player
media_router
meminfo
miui.fdpp
miui.os.servicemanager
miui.shell
miui.usb.service
miui.whetstone
miui.whetstone.klo
miui.whetstone.mcd
miui.whetstone.net
miui.whetstone.power
mount
netpolicy
netstats
network_management
notification
package
permission
phone
phone.0
phone.1
power
print
procstats
samplingprofiler
scheduling_policy
search
search_engine
security
sensorservice
serial
servicediscovery
simphonebook
simphonebook.0
simphonebook.1
sip
statusbar
telephony.registry
textservices
uimode
updatelock
usagestats
usb
user
vibrator
wallpaper
whetstone.activity
wifi
wifip2p
window**
但我们使用比较多的是:
1、meminfo,查看内存
2、cpuinfo,查看cpu信息
3、battery,查看电池信息
4、activity,查看activity信息