2013-02-20 '"adb shell dumpsys" parameter list'
Android开发中,常常可以用adb shell dumpsys这条命令来dump出系统运行时的状态信息,例如可以这样来察看某个应用的内存使用信息
1
adb shell dumpsys meminfo com.google.android.apps.maps
Copied!
察看TaskStack
1
adb shell dumpsys activity activities
Copied!
察看Alarm列表
1
adb shell dumpsys alarm
Copied!
如果在linux下配合 watch 命令更是可以自动刷新实时察看。这条命令的用法是 adb shell dumpsys SERVICE [option] [process name],可用的SERVICE列表:
1
$ adb shell dumpsys | grep 'DUMP OF SERVICE' | awk '{print $4}' | tr -d ':'
2
CustomFrequencyManagerService
3
DirEncryptService
4
SYSSCOPE
5
SecTVOutService
6
SurfaceFlinger
7
TvoutService_C
8
accessibility
9
account
10
activity
11
alarm
12
apn_settings_policy
13
application_policy
14
apppermission_control_policy
15
appwidget
16
audio
17
backup
18
battery
19
batteryinfo
20
bluetooth
21
bluetooth_a2dp
22
bluetooth_avrcp
23
bluetooth_policy
24
browser_policy
25
clipboard
26
clipboardEx
27
com.orange.authentication.simcard
28
commontime_management
29
connectivity
30
content
31
country_detector
32
cpuinfo
33
date_time_policy
34
dbinfo
35
device_info
36
device_policy
37
devicestoragemonitor
38
diskstats
39
drm.drmManager
40
dropbox
41
eas_account_policy
42
edm_proxy
43
email_account_policy
44
email_policy
45
enterprise_policy
46
enterprise_vpn_policy
47
entropy
48
firewall_policy
49
gfxinfo
50
hardware
51
input
52
input_method
53
iphonesubinfo
54
isms
55
kioskmode
56
location
57
location_policy
58
lock_settings
59
mdm.remotedesktop
60
media.audio_flinger
61
media.audio_policy
62
media.camera
63
media.player
64
meminfo
65
mini_mode_app_manager
66
misc_policy
67
motion_recognition
68
mount
69
netpolicy
70
netstats
71
network_management
72
nfc
73
notification
74
package
75
password_policy
76
permission
77
phone
78
phone_restriction_policy
79
phoneext
80
power
81
remoteinjection
82
restriction_policy
83
roaming_policy
84
samplingprofiler
85
samsung.facedetection_service
86
scheduling_policy
87
search
88
security_policy
89
sensorservice
90
serial
91
servicediscovery
92
simphonebook
93
sip
94
statusbar
95
telephony.registry
96
textservices
97
throttle
98
tvoutservice
99
uimode
100
updatelock
101
usagestats
102
usb
103
vibrator
104
voip
105
vpn_policy
106
wallpaper
107
wfd
108
wifi
109
wifi_policy
110
wifip2p
111
window
Copied!
此外,某些服务还支持如下参数
1
ACTIVITY MANAGER PENDING INTENTS (adb shell dumpsys activity intents)
2
ACTIVITY MANAGER BROADCAST STATE (adb shell dumpsys activity broadcasts)
3
ACTIVITY MANAGER CONTENT PROVIDERS (adb shell dumpsys activity providers)
4
ACTIVITY MANAGER SERVICES (adb shell dumpsys activity services)
5
ACTIVITY MANAGER ACTIVITIES (adb shell dumpsys activity activities)
6
ACTIVITY MANAGER RUNNING PROCESSES (adb shell dumpsys activity processes)
7
INPUT MANAGER (adb shell dumpsys input)
8
WINDOW MANAGER LAST ANR (adb shell dumpsys window lastanr)
9
WINDOW MANAGER POLICY STATE (adb shell dumpsys window policy)
10
WINDOW MANAGER SESSIONS (adb shell dumpsys window sessions)
11
WINDOW MANAGER TOKENS (adb shell dumpsys window tokens)
12
WINDOW MANAGER WINDOWS (adb shell dumpsys window windows)
Copied!
最近更新 1yr ago
复制链接