dumpsys account
root@zms:/ # dumpsys account
User UserInfo{0:机主:13}:
Accounts: 0
Active Sessions: 0
RegisteredServicesCache: 0 services
dumpsys activity用法
root@zms:/ # dumpsys activity -h
dumpsys activity -h
Activity manager dump options:
[-a] [-c] [-h] [cmd] …
cmd may be one of:
a[ctivities]: activity stack state
b[roadcasts] [PACKAGE_NAME] [history [-s]]: broadcast state
i[ntents] [PACKAGE_NAME]: pending intent state
p[rocesses] [PACKAGE_NAME]: process state
o[om]: out of memory management
prov[iders] [COMP_SPEC …]: content provider state
provider [COMP_SPEC]: provider client-side state
s[ervices] [COMP_SPEC …]: service state
service [COMP_SPEC]: service client-side state
package [PACKAGE_NAME]: all state related to given package
all: dump all activities
top: dump the top activity
cmd may also be a COMP_SPEC to dump activities.
COMP_SPEC may be a component name (com.foo/.myApp),
a partial substring in a component name, a
hex object identifier.
-a: include all available server state.
-c: include client state.
dumpsys alarm用法
root@zms:/ # dumpsys alarm -h
dumpsys alarm -h
alarm manager dump options:
log [on/off]
Example:
$adb shell dumpsys alarm log on
$adb shell dumpsys alarm log off
执行结果:
Current Alarm Manager state:
nowRTC=1444963503435=2015-10-16 10:45:03 nowELAPSED=4543950
Next alarm: 4540515 = 2015-10-16 10:45:00
Next wakeup: 4553022 = 2015-10-16 10:45:12
Pending alarm batches: 13
Batch{421e93c0 num=1 start=4553022 end=4553022}:
RTC_WAKEUP #0: Alarm{421e9378 type 0 com.iflytek.vflynote}
type=0 whenElapsed=4553022 when=+9s72ms window=0 repeatInterval=0 count=0
operation=PendingIntent{421e9368: PendingIntentRecord{42290600 com.iflytek.vflynote startService}}
Batch{41e22ac0 num=1 start=4569901 end=4569901}:
RTC_WAKEUP #0: Alarm{41e22a78 type 0 android}
type=0 whenElapsed=4569901 when=+25s951ms window=0 repeatInterval=0 count=0
operation=PendingIntent{4202ada0: PendingIntentRecord{4202aca8 android broadcastIntent}}
Batch{42035f58 num=1 start=4600515 end=4600515 STANDALONE}:
ELAPSED #0: Alarm{420b36c0 type 3 android}
type=3 whenElapsed=4600515 when=+56s565ms window=0 repeatInterval=0 count=0
operation=PendingIntent{41e53060: PendingIntentRecord{41f86b40 android broadcastIntent}}
Batch{41ece798 num=1 start=5419772 end=6769772}:
ELAPSED #0: Alarm{41ece750 type 3 android}
type=3 whenElapsed=5419772 when=+14m35s822ms window=-1 repeatInterval=1800000 count=0
operation=PendingIntent{4217bd28: PendingIntentRecord{4217bc88 android broadcastIntent}}
Batch{41f46918 num=1 start=7096635 end=7096635}:
ELAPSED_WAKEUP #0: Alarm{41f48410 type 2 android}
type=2 whenElapsed=7096635 when=+42m32s685ms window=0 repeatInterval=0 count=0
operation=PendingIntent{41eca2f0: PendingIntentRecord{420d1d18 android broadcastIntent}}
Batch{41f20be8 num=1 start=7225095 end=7225095}:
ELAPSED_WAKEUP #0: Alarm{41f20ba0 type 2 android}
type=2 whenElapsed=7225095 when=+44m41s145ms window=0 repeatInterval=0 count=0
operation=PendingIntent{4208fc00: PendingIntentRecord{4208fb60 android broadcastIntent}}
Batch{4232b918 num=1 start=7929886 end=11124886}:
ELAPSED_WAKEUP #0: Alarm{4232b8d0 type 2 android}
type=2 whenElapsed=7929886 when=+56m25s936ms window=-1 repeatInterval=0 count=0
operation=PendingIntent{41ded0c8: PendingIntentRecord{41cbc950 android broadcastIntent}}
Batch{41f0fc30 num=2 start=31376249 end=31376249}:
RTC #1: Alarm{41f07458 type 1 android}
type=1 whenElapsed=31376249 when=+7h27m12s299ms window=0 repeatInterval=0 count=0
operation=PendingIntent{41dfbfb8: PendingIntentRecord{41e3b618 android broadcastIntent}}
ELAPSED #0: Alarm{41f18370 type 3 com.android.phone}
type=3 whenElapsed=28821792 when=+6h44m37s842ms window=-1 repeatInterval=28800000 count=0
operation=PendingIntent{41d23aa0: PendingIntentRecord{4227f050 com.android.phone broadcastIntent}}
Batch{41f03db0 num=1 start=43226297 end=43226297}:
ELAPSED #0: Alarm{41f074a0 type 3 com.iflytek.vflynote}
type=3 whenElapsed=43226297 when=+10h44m42s347ms window=0 repeatInterval=43200000 count=0
operation=PendingIntent{421277b8: PendingIntentRecord{42126808 com.iflytek.vflynote broadcastIntent}}
Batch{41ef35e8 num=1 start=45026602 end=45026602}:
RTC_WAKEUP #0: Alarm{41ef35a0 type 0 com.iflytek.inputmethod}
type=0 whenElapsed=45026602 when=+11h14m42s651ms window=0 repeatInterval=0 count=0
operation=PendingIntent{41d5a988: PendingIntentRecord{4219cc40 com.iflytek.inputmethod broadcastIntent}}
Batch{41ef06a8 num=1 start=52240515 end=52240515 STANDALONE}:
RTC #0: Alarm{41ef31c8 type 1 android}
type=1 whenElapsed=52240515 when=+13h14m56s565ms window=0 repeatInterval=0 count=0
operation=PendingIntent{41e563e8: PendingIntentRecord{41f96488 android broadcastIntent}}
Batch{41ef0468 num=1 start=268240997 end=466686498}:
RTC #0: Alarm{41ef0420 type 1 com.mediatek.systemupdate}
type=1 whenElapsed=268240997 when=+3d1h14m57s47ms window=-1 repeatInterval=0 count=0
operation=PendingIntent{41e0ae00: PendingIntentRecord{42210968 com.mediatek.systemupdate broadcastIntent}}
Batch{41ee5280 num=1 start=867643729 end=1515641279}:
ELAPSED #0: Alarm{41ee5fa0 type 3 android}
type=3 whenElapsed=867643729 when=+9d23h44m59s779ms window=-1 repeatInterval=0 count=0
operation=PendingIntent{41e91540: PendingIntentRecord{41e86ce8 android broadcastIntent}}
Broadcast ref count: 0
Top Alarms:
+5s775ms running, 0 wakeups, 76 alarms: android
act=android.intent.action.TIME_TICK
+170ms running, 11 wakeups, 11 alarms: com.iflytek.vflynote
cmp={com.iflytek.vflynote/com.iflytek.pushclient.manager.PushService}
+117ms running, 0 wakeups, 3 alarms: android
act=com.android.server.action.NETWORK_STATS_POLL
+58ms running, 3 wakeups, 3 alarms: com.android.keyguard
act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD
+54ms running, 1 wakeups, 1 alarms: com.iflytek.inputmethod
act=BlcAlarmManager.getConfig
+46ms running, 2 wakeups, 2 alarms: android
act=com.android.server.WifiManager.action.DEVICE_IDLE
+41ms running, 2 wakeups, 2 alarms: android
act=com.android.server.WifiManager.action.DELAYED_DRIVER_STOP
+26ms running, 1 wakeups, 1 alarms: android
act=android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED
Alarm Stats:
android +5s980ms running, 5 wakeups:
+5s775ms 0 wakes 76 alarms: act=android.intent.action.TIME_TICK
+117ms 0 wakes 3 alarms: act=com.android.server.action.NETWORK_STATS_POLL
+46ms 2 wakes 2 alarms: act=com.android.server.WifiManager.action.DEVICE_IDLE
+41ms 2 wakes 2 alarms: act=com.android.server.WifiManager.action.DELAYED_DRIVER_STOP
+26ms 1 wakes 1 alarms: act=android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED
com.iflytek.inputmethod +54ms running, 1 wakeups:
+54ms 1 wakes 1 alarms: act=BlcAlarmManager.getConfig
com.iflytek.vflynote +170ms running, 11 wakeups:
+170ms 11 wakes 11 alarms: cmp={com.iflytek.vflynote/com.iflytek.pushclient.manager.PushService}
com.android.keyguard +58ms running, 3 wakeups:
+58ms 3 wakes 3 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD
dumpsys battery用法:
root@zms:/ # dumpsys battery -h
dumpsys battery -h
Dump current battery state, or:
set ac|usb|wireless|status|level|invalid
reset
执行结果:
root@zms:/ # dumpsys battery
dumpsys battery
Current Battery Service state:
AC powered: false
USB powered: true
Wireless powered: false
status: 5
status: 4
health: 2
present: true
present: false
level: 100
level: 50
scale: 100
voltage: 4200
temperature: 22
technology: Li-ion
dumpsys cupinfo
root@zms:/ # dumpsys cpuinfo
dumpsys cpuinfo
Load: 7.35 / 7.55 / 7.56
CPU usage from 58015ms to 22060ms ago:
15% 1560/com.test.demoa: 13% user + 1.9% kernel / faults: 5746 minor
6.8% 131/mediaserver: 6.8% user + 0% kernel
2.3% 568/zmssdk: 0.2% user + 2.1% kernel / faults: 1 minor
1.3% 153/adbd: 0.3% user + 0.9% kernel / faults: 15 minor
0.5% 2400/logcat: 0.1% user + 0.3% kernel
0.4% 764/sdcard: 0% user + 0.3% kernel
0.3% 621/system_server: 0.2% user + 0.1% kernel / faults: 6 minor
0.2% 781/com.test.demob: 0.2% user + 0% kernel
0.1% 2584/kworker/0:1: 0% user + 0.1% kernel
0.1% 2833/kworker/0:2: 0.1% user + 0% kernel
0% 1080/com.test.demob:remote: 0% user + 0% kernel / faults: 4 minor
0% 1972/kworker/u:4: 0% user + 0% kernel
0% 62/mmcqd/0: 0% user + 0% kernel
0% 152/em_svr: 0% user + 0% kernel
0% 1543/com.test.democ: 0% user + 0% kernel / faults: 32 minor
+0% 2837/sh: 0% user + 0% kernel
23% TOTAL: 17% user + 5.9% kernel + 0% iowait
dumpsys diskstats
root@zms:/ # dumpsys diskstats
dumpsys diskstats
Latency: 0ms [512B Data Write]
Data-Free: 726356K / 1031064K total = 70% free
Cache-Free: 122848K / 126992K total = 96% free
System-Free: 548480K / 1032088K total = 53% free
dumpsys usagestats
Date: 20100101
com.test.demod: 1 times, 4896 ms
com.test.demod.MovieListActivity: 1 starts, 250-500ms=1
com.test.demoa: 8 times, 776387 ms
com.test.demoa.ui.activity.MainActivity: 10 starts, 2000-3000ms=1, 3000-4000ms=1
com.test.demoa.ui.activity.MultimediaActivity: 2 starts, 1000-1500ms=1
com.test.demoa.ui.activity.SettingSystemDisplayActivity: 1 starts, 0-250ms=1
com.test.demoa.ui.activity.SettingActivity: 5 starts, 250-500ms=1, 500-750ms=1, >=5000ms=2
com.test.lockscreen: 4 times, 123 ms
com.test.lockscreen.MainActivity: 4 starts
com.android.settings: 2 times, 54861 ms
com.android.settings.Settings$DeviceInfoSettingsActivity: 1 starts, 500-750ms=1
com.android.settings.CryptKeeper: 1 starts
Date: 20131231
com.test.demod: 1 times, 29994 ms
com.test.demod.MovieListActivity: 1 starts, 250-500ms=1
com.test.engineermode: 1 times, 1867 ms
com.test.engineermode.EngineerMode: 1 starts, 1000-1500ms=1
com.test.demoa: 64 times, 3190986 ms
com.test.demoa.ui.activity.MainActivity: 101 starts, 500-750ms=1, 750-1000ms=1, 1000-1500ms=4, 2000-3000ms=2, 4000-5000ms=3, >=5000ms=3
com.test.demoa.ui.activity.SettingGravityActivity: 3 starts, 0-250ms=2, 250-500ms=1
com.test.demoa.ui.activity.MagicActivity: 8 starts, 0-250ms=6
com.test.demoa.lib.filemanager.FolderActivity: 1 starts, >=5000ms=1
com.test.demoa.ui.activity.MultimediaActivity: 2 starts, 500-750ms=1
com.test.demoa.ui.activity.SettingSystemDisplayActivity: 4 starts, 0-250ms=2, 250-500ms=2
com.test.demoa.ui.activity.SettingSystemVolumeActivity: 8 starts, 0-250ms=8
com.test.demoa.ui.activity.RouteListActivity: 1 starts, 250-500ms=1
com.test.demoa.ui.activity.SettingActivity: 53 starts, 0-250ms=8, 250-500ms=24, 500-750ms=4, 750-1000ms=2, 1000-1500ms=1, >=5000ms=6
android: 3 times, 273 ms
com.android.server.ShutdownActivity: 2 starts
com.test.storage.StorageDefaultPathDialog: 1 starts
com.android.provision: 1 times, 143 ms
com.android.provision.DefaultActivity: 1 starts
com.test.lockscreen: 44 times, 1645 ms
com.test.lockscreen.MainActivity: 44 starts
com.android.settings: 12 times, 440116 ms
com.android.settings.Settings: 8 starts, 250-500ms=1, 500-750ms=1, 750-1000ms=1
com.android.settings.SubSettings: 10 starts, 250-500ms=4, 500-750ms=7, 750-1000ms=1, 1000-1500ms=6, >=5000ms=1
com.android.settings.Settings$TetherWifiSettingsActivity: 1 starts, 1000-1500ms=1
com.android.settings.Settings$WifiSettingsActivity: 2 starts, 250-500ms=1, 500-750ms=1
com.android.systemui: 2 times, 2902 ms
com.android.systemui.usb.UsbDebuggingActivity: 2 starts, 0-250ms=2
Date: 20151015
com.test.demod: 1 times, 4571 ms
com.test.demod.MovieListActivity: 1 starts, 250-500ms=1
com.test.demoa: 24 times, 2725765 ms
com.test.demoa.ui.activity.MainActivity: 34 starts, 2000-3000ms=4
com.test.demoa.ui.activity.FmTransmitActivity: 2 starts, 250-500ms=1, 500-750ms=1
com.test.demoa.lib.filemanager.FolderActivity: 4 starts, 250-500ms=2, 500-750ms=2
com.test.demoa.ui.activity.MultimediaActivity: 4 starts, 500-750ms=1
com.test.demoa.ui.activity.SettingSystemDisplayActivity: 1 starts, 250-500ms=1
com.test.demoa.ui.activity.RouteListActivity: 1 starts, 250-500ms=1
com.test.demoa.ui.activity.WeatherActivity: 1 starts, 1500-2000ms=1
com.test.demoa.ui.activity.SettingActivity: 6 starts, 250-500ms=2, 500-750ms=1, >=5000ms=1
android: 6 times, 373 ms
com.android.server.ShutdownActivity: 6 starts
com.test.lockscreen: 7 times, 960 ms
com.test.lockscreen.MainActivity: 7 starts
com.android.gallery3d: 1 times, 4083 ms
com.android.gallery3d.app.GalleryActivity: 1 starts, 500-750ms=1
com.test.speech: 2 times, 60607 ms
com.test.speech.WakeUpCloudAsr: 2 starts, 250-500ms=2
com.test.democ: 2 times, 70293 ms
com.test.democ.ui.activity.MainActivity: 1 starts, >=5000ms=1
com.test.democ.ui.activity.BNavigatorActivity: 2 starts, 1000-1500ms=1
com.android.music: 1 times, 2630 ms
com.android.music.MusicBrowserActivity: 1 starts, 1000-1500ms=1
Date: 20151016
com.test.demod: 2 times, 3556 ms
com.test.demod.MovieListActivity: 2 starts, 250-500ms=1
com.test.demoa: 7 times, 342131 ms
com.test.demoa.ui.activity.MainActivity: 13 starts, 2000-3000ms=1
com.test.demoa.ui.activity.MagicActivity: 2 starts, 0-250ms=1
com.test.demoa.ui.activity.RouteShowActivity: 3 starts, 500-750ms=1, 1500-2000ms=1, 2000-3000ms=1
com.test.demoa.ui.activity.MultimediaActivity: 4 starts, 0-250ms=1, 250-500ms=1
com.test.demoa.ui.activity.SettingSystemVolumeActivity: 1 starts, 0-250ms=1
com.test.demoa.ui.activity.RouteListActivity: 6 starts, 250-500ms=2, 500-750ms=1
com.test.demoa.ui.activity.WeatherActivity: 1 starts, 750-1000ms=1
com.test.demoa.ui.activity.SettingActivity: 5 starts, 250-500ms=1, 500-750ms=2
com.test.lockscreen: 2 times, 298 ms
com.test.lockscreen.MainActivity: 2 starts
com.android.gallery3d: 2 times, 20870 ms
com.android.gallery3d.app.GalleryActivity: 1 starts, 250-500ms=1
com.android.gallery3d.app.MovieActivity: 1 starts, 750-1000ms=1
com.test.speech: 2 times, 4136 ms
com.test.speech.WakeUpCloudAsr: 2 starts, 250-500ms=2
com.android.settings: 2 times, 61039 ms
com.android.settings.Settings: 2 starts, 500-750ms=1
com.android.settings.SubSettings: 2 starts, 250-500ms=1
dumpsys statusbar
Icon list:
0: (ime) null
1: (sync_failing) null
2: (sync_active) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f020185 level=0 visible=false num=0 )
3: (location) null
4: (bluetooth) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f0200d0 level=0 visible=false num=0 )
5: (nfc) null
6: (headset) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f02016a level=0 visible=false num=0 )
7: (tty) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f020186 level=0 visible=false num=0 )
8: (speakerphone) null
9: (mute) null
10: (volume) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f02016d level=0 visible=false num=0 )
11: (wifi) null
12: (cdma_eri) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f02016f level=0 visible=false num=0 )
13: (data_connection) null
14: (phone_evdo_signal) null
15: (phone_signal) null
16: (battery) null
17: (alarm_clock) StatusBarIcon(pkg=com.android.systemuiuser=0 id=0x7f0200ca level=0 visible=false num=0 )
18: (secure) null
19: (clock) null
Notification list:
0: StatusBarNotification(pkg=android user=UserHandle{-1} id=17040500 tag=null score=0: Notification(pri=0 contentView=android/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x2 kind=[null]))
1: StatusBarNotification(pkg=com.android.phone user=UserHandle{0} id=103 tag=null score=0: Notification(pri=0 contentView=com.android.phone/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x10 kind=[null]))
2: StatusBarNotification(pkg=android user=UserHandle{-1} id=17040508 tag=null score=-10: Notification(pri=-1 contentView=android/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x2 kind=[null]))
mDisabled=0x0
mDisableRecords.size=0
dumpsys meminfo用法:
root@zms:/ # dumpsys meminfo -h
dumpsys meminfo -h
meminfo dump options: [-a] [-d] [-c] [–oom] [process]
-a: include all available information for each process.
-d: include dalvik details when dumping process details.
-c: dump in a compact machine-parseable representation.
–oom: only show processes organized by oom adj.
–local: only collect details locally, don’t call process.
If [process] is specified it can be the name or
pid of a specific process to dump.
执行结果:
root@zms:/ # dumpsys memoinfo
dumpsys memoinfo
Can’t find service: memoinfo
root@esky82_tb_cn_kk:/ # dumpsys meminfo
dumpsys meminfo
Applications Memory Usage (kB):
Uptime: 5890684 Realtime: 5890684
Total PSS by process:
38821 kB: com.test.speech (pid 1560)
30357 kB: com.test.inputmethod (pid 839)
26352 kB: system (pid 621)
22843 kB: com.test.demoa (pid 781 / activities)
20629 kB: com.android.systemui (pid 709)
13530 kB: com.android.settings (pid 1111)
12954 kB: zygote (pid 129)
12419 kB: com.android.phone (pid 858)
11972 kB: com.test.democ (pid 1367)
11146 kB: mediaserver (pid 131)
9586 kB: android.process.media (pid 997)
9532 kB: com.test.demoa:remote (pid 1080)
6525 kB: com.android.mms (pid 1150)
6497 kB: com.android.contacts (pid 1132)
4858 kB: com.android.browser (pid 1638)
4838 kB: surfaceflinger (pid 128)
4633 kB: com.test.democ:xpush (pid 1543)
3599 kB: drmserver (pid 130)
3540 kB: com.test.bluetooth (pid 872)
2972 kB: com.test.systemupdate (pid 1093)
2659 kB: com.test.videofavorites (pid 1666)
2641 kB: em_svr (pid 152)
2567 kB: com.camera.simplewebcam (pid 1232)
1559 kB: mtkbt (pid 144)
1449 kB: logcat (pid 2400)
1296 kB: gocsdk (pid 140)
1170 kB: wpa_supplicant (pid 820)
1117 kB: gocsdk (pid 568)
1000 kB: mtk_agpsd (pid 135)
726 kB: rild (pid 589)
639 kB: netd (pid 124)
589 kB: vold (pid 115)
436 kB: keystore (pid 134)
384 kB: /init (pid 1)
363 kB: dm_agent_binder (pid 142)
297 kB: debuggerd (pid 122)
284 kB: mdlogger (pid 522)
277 kB: nvram_agent_binder (pid 147)
268 kB: adbd (pid 153)
268 kB: sdcard (pid 764)
266 kB: ppl_agent (pid 143)
266 kB: GoogleOtaBinder (pid 146)
260 kB: gsm0710muxd (pid 523)
259 kB: sh (pid 3019)
254 kB: mobile_log_d (pid 123)
246 kB: ccci_mdinit (pid 119)
246 kB: MtkCodecService (pid 137)
245 kB: netdiag (pid 125)
204 kB: sdcard (pid 945)
187 kB: dumpsys (pid 3028)
174 kB: ueventd (pid 78)
159 kB: drvbd (pid 111)
156 kB: installd (pid 133)
152 kB: healthd (pid 113)
127 kB: 6620_launcher (pid 159)
115 kB: servicemanager (pid 114)
114 kB: thermal (pid 149)
112 kB: logwrapper (pid 117)
107 kB: batterywarning (pid 136)
102 kB: thermald (pid 150)
Total PSS by OOM adjustment:
51051 kB: Native
12954 kB: zygote (pid 129)
11146 kB: mediaserver (pid 131)
4838 kB: surfaceflinger (pid 128)
3599 kB: drmserver (pid 130)
2641 kB: em_svr (pid 152)
1559 kB: mtkbt (pid 144)
1449 kB: logcat (pid 2400)
1296 kB: gocsdk (pid 140)
1170 kB: wpa_supplicant (pid 820)
1117 kB: gocsdk (pid 568)
1000 kB: mtk_agpsd (pid 135)
726 kB: rild (pid 589)
639 kB: netd (pid 124)
589 kB: vold (pid 115)
436 kB: keystore (pid 134)
384 kB: /init (pid 1)
363 kB: dm_agent_binder (pid 142)
297 kB: debuggerd (pid 122)
284 kB: mdlogger (pid 522)
277 kB: nvram_agent_binder (pid 147)
268 kB: adbd (pid 153)
268 kB: sdcard (pid 764)
266 kB: ppl_agent (pid 143)
266 kB: GoogleOtaBinder (pid 146)
260 kB: gsm0710muxd (pid 523)
259 kB: sh (pid 3019)
254 kB: mobile_log_d (pid 123)
246 kB: ccci_mdinit (pid 119)
246 kB: MtkCodecService (pid 137)
245 kB: netdiag (pid 125)
204 kB: sdcard (pid 945)
187 kB: dumpsys (pid 3028)
174 kB: ueventd (pid 78)
159 kB: drvbd (pid 111)
156 kB: installd (pid 133)
152 kB: healthd (pid 113)
127 kB: 6620_launcher (pid 159)
115 kB: servicemanager (pid 114)
114 kB: thermal (pid 149)
112 kB: logwrapper (pid 117)
107 kB: batterywarning (pid 136)
102 kB: thermald (pid 150)
26352 kB: System
26352 kB: system (pid 621)
36588 kB: Persistent
20629 kB: com.android.systemui (pid 709)
12419 kB: com.android.phone (pid 858)
3540 kB: com.test.bluetooth (pid 872)
22843 kB: Foreground
22843 kB: com.test.demoa (pid 781 / activities)
9532 kB: Visible
9532 kB: com.test.demoa:remote (pid 1080)
30357 kB: Perceptible
30357 kB: com.test.inputmethod (pid 839)
4633 kB: A Services
4633 kB: com.test.democ:xpush (pid 1543)
60379 kB: B Services
38821 kB: com.test.speech (pid 1560)
11972 kB: com.test.democ (pid 1367)
9586 kB: android.process.media (pid 997)
39608 kB: Cached
13530 kB: com.android.settings (pid 1111)
6525 kB: com.android.mms (pid 1150)
6497 kB: com.android.contacts (pid 1132)
4858 kB: com.android.browser (pid 1638)
2972 kB: com.test.systemupdate (pid 1093)
2659 kB: com.test.videofavorites (pid 1666)
2567 kB: com.camera.simplewebcam (pid 1232)
Total PSS by category:
69844 kB: Dalvik
66262 kB: Unknown
53991 kB: .so mmap
38884 kB: .dex mmap
31369 kB: Dalvik Other
5883 kB: .apk mmap
4473 kB: Other mmap
4420 kB: Stack
3944 kB: Native
1704 kB: .ttf mmap
233 kB: Other dev
168 kB: .jar mmap
164 kB: Ashmem
4 kB: Cursor
0 kB: code mmap
0 kB: image mmap
0 kB: Graphics
0 kB: GL
0 kB: Memtrack
Total RAM: 988984 kB
Free RAM: 712716 kB (39608 cached pss + 295808 cached + 377300 free)
Used RAM: 269671 kB (241735 used pss + 7840 buffers + 476 shmem + 19620 slab)
Lost RAM: 6597 kB
ZRAM: 4 kB physical used for 0 kB in swap (524284 kB total swap)
Tuning: 128 (large 256), oom 122880 kB, restore limit 40960 kB (high-end-gfx)
package com.test.demo
root@zms:/ # dumpsys package com.test.demo
dumpsys package com.test.demo
Activity Resolver Table:
Non-Data Actions:
android.intent.action.MAIN:
41f7bce8 com.test.demo/.ui.activity.MainActivity filter 41f7bec0
Action: “android.intent.action.MAIN”
Category: “android.intent.category.LAUNCHER”
Category: “android.intent.category.HOME”
Category: “android.intent.category.DEFAULT”
Receiver Resolver Table:
Schemes:
file:
41f7eca8 com.test.demo/.model.CardEjectReceiver filter 41f7ede0
Action: “android.intent.action.MEDIA_MOUNTED”
Action: “android.intent.action.MEDIA_EJECT”
Action: “android.intent.action.MEDIA_BAD_REMOVAL”
Action: “android.intent.action.MEDIA_REMOVED”
Action: “android.intent.action.MEDIA_UNMOUNTED”
Scheme: “file”
mPriority=2147483647, mHasPartialTypes=false
Non-Data Actions:
android.intent.action.ACTION_POWER_DISCONNECTED:
41f7e898 com.test.demo/.model.PowerStateChangeReceiver filter 41f7e9e0
Action: “android.intent.action.ACTION_POWER_CONNECTED”
Action: “android.intent.action.ACTION_POWER_DISCONNECTED”
Action: “com.test.POWER_OFF”
com.test.POWER_OFF:
41f7e898 com.test.demo/.model.PowerStateChangeReceiver filter 41f7e9e0
Action: “android.intent.action.ACTION_POWER_CONNECTED”
Action: “android.intent.action.ACTION_POWER_DISCONNECTED”
Action: “com.test.POWER_OFF”
android.intent.action.ACTION_POWER_CONNECTED:
41f7e898 com.test.demo/.model.PowerStateChangeReceiver filter 41f7e9e0
Action: “android.intent.action.ACTION_POWER_CONNECTED”
Action: “android.intent.action.ACTION_POWER_DISCONNECTED”
Action: “com.test.POWER_OFF”
Service Resolver Table:
Non-Data Actions:
com.baidu.location.service_v2.2:
41f7f9a8 com.test.demo/com.baidu.location.f filter 41f7fc18
Action: “com.baidu.location.service_v2.2”
Key Set Manager:
[com.test.demo]
Signing KeySets: 6
Packages:
Package [com.test.demo] (41eaf840):
userId=10048 gids=[]
sharedUser=SharedUserSetting{41e9ea38 com.test/10048}
pkg=Package{41f79848 com.test.demo}
codePath=/data/app/com.test.demo-1.apk
resourcePath=/data/app/com.test.demo-1.apk
nativeLibraryPath=/data/app-lib/com.test.demo-1
versionCode=2 targetSdk=19
versionName=2015.10.15-18:12
applicationInfo=ApplicationInfo{41f79900 com.test.demo}
flags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
mtkFlags=[ ]
dataDir=/data/data/com.test.demo
supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
timeStamp=2015-10-15 18:12:52
firstInstallTime=2015-10-14 22:26:03
lastUpdateTime=2015-10-15 18:12:55
signatures=PackageSignatures{41e7b430 [41e7c268]}
permissionsFixed=true haveGids=true installStatus=1
pkgFlags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
User 0: installed=true blocked=false stopped=false notLaunched=false enabled=0
Shared users:
SharedUser [com.test] (41e9ea38):
userId=10048 gids=[3002, 3003, 1028, -1, 1015, 1023]
grantedPermissions:
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.PROCESS_OUTGOING_CALLS
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_COARSE_LOCATION
android.permission.READ_CONTACTS
android.permission.CALL_PHONE
android.permission.READ_PHONE_STATE
android.permission.READ_SMS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.CAMERA
android.permission.ACCESS_FINE_LOCATION
android.permission.BROADCAST_STICKY
android.permission.WAKE_LOCK
android.permission.RECORD_AUDIO
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_MOCK_LOCATION
com.android.launcher.permission.INSTALL_SHORTCUT
android.permission.NFC
android.permission.SEND_SMS
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.KILL_BACKGROUND_PROCESSES
android.permission.DISABLE_KEYGUARD
android.permission.SYSTEM_ALERT_WINDOW
android.permission.WRITE_SETTINGS
android.permission.INTERNET
android.permission.BLUETOOTH
android.permission.CHANGE_WIFI_STATE
android.permission.CHANGE_NETWORK_STATE
dumpsys window用法:
root@zms:/ # dumpsys window -h
dumpsys window -h
Dump time : 2015年10月16日 上午11:14:03
Window manager dump options:
[-a] [-h] [cmd] …
cmd may be one of:
i[input]: input subsystem state
p[policy]: policy state
s[essions]: active sessions
d[isplays]: active display contents
t[okens]: token list
w[indows]: window list
cmd may also be a NAME to dump windows. NAME may
be a partial substring in a window name, a
Window hex object identifier, or
“all” for all windows, or
“visible” for the visible windows.
-a: include all available server state.
-d list list the all of debug zones
-d enable <zone zone …> enable the debug zone
-d disable <zone zone …> disable the debug zone
zone usage :
0 : DEBUG
1 : DEBUG_FOCUS
2 : DEBUG_ANIM
3 : DEBUG_LAYOUT
4 : DEBUG_RESIZE
5 : DEBUG_LAYERS
6 : DEBUG_INPUT
7 : DEBUG_INPUT_METHOD
8 : DEBUG_VISIBILITY
9 : DEBUG_WINDOW_MOVEMENT
10 : DEBUG_ORIENTATION
11 : DEBUG_CONFIGURATION
12 : DEBUG_APP_TRANSITIONS
13 : DEBUG_STARTING_WINDOW
14 : DEBUG_REORDER
15 : DEBUG_WALLPAPER
16 : DEBUG_WALLPAPER_LIGHT
17 : SHOW_TRANSCATIONS
18 : HIDE_STACK_CRAWLS
19 : PROFILE_ORIENTATION
20 : DEBUG_TASK_MOVEMENT
21 : DEBUG_ADD_REMOVE
22 : DEBUG_TOKEN_MOVEMENT
23 : DEBUG_APP_ORIENTATION
24 : DEBUG_DRAG
25 : DEBUG_SCREEN_ON
26 : DEBUG_SCREENSHOT
27 : DEBUG_BOOT
28 : SHOW_SURFACE_ALLOC
29 : SHOW_LIGHT_TRANSACTIONS
30 : DEBUG_LAYOUT_REPEATS
31 : DEBUG_SURFACE_TRACE
32 : DEBUG_WINDOW_TRACE
33 : DEBUG_WINDOW
34 : DEBUG_STACK
执行结果:
Dump time : 2015年10月16日 上午11:18:17
WINDOW MANAGER LAST ANR (dumpsys window lastanr)
WINDOW MANAGER POLICY STATE (dumpsys window policy)
mSafeMode=false mSystemReady=true mSystemBooted=true
mLidState=-1 mLidOpenRotation=-1 mHdmiPlugged=false
mUiMode=1 mDockMode=0 mCarDockRotation=-1 mDeskDockRotation=-1
mUserRotationMode=1 mUserRotation=0 mAllowAllRotations=-1
mCurrentAppOrientation=0
mCarDockEnablesAccelerometer=true mDeskDockEnablesAccelerometer=true
mLidKeyboardAccessibility=0 mLidNavigationAccessibility=0 mLidControlsSleep=false
mLongPressOnPowerBehavior=-1 mHasSoftInput=true
mScreenOnEarly=false mScreenOnFully=false mOrientationSensorEnabled=false
mOverscanScreen=(0,0) 854x480
mRestrictedOverscanScreen=(108,0) 746x480
mUnrestrictedScreen=(108,0) 746x480
mRestrictedScreen=(108,0) 746x480
mStableFullscreen=(108,0)-(854,480)
mStable=(108,0)-(854,480)
mSystem=(108,0)-(854,480)
mCur=(108,0)-(854,480)
mContent=(108,0)-(854,480)
mDock=(108,0)-(854,480)
mDockLayer=268435456 mStatusBarLayer=161000
mShowingLockscreen=false mShowingDream=false mDreamingLockscreen=false
mStatusBar=Window{41ec95f0 u0 StatusBar}
mNavigationBar=Window{41fde108 u0 NavigationBar}
mFocusedWindow=Window{42080d90 u0 com.test.carlauncher/com.test.carlauncher.ui.activity.MainActivity}
mFocusedApp=Token{421f8a10 ActivityRecord{421f8798 u0 com.test.carlauncher/.ui.activity.MainActivity t1}}
mTopFullscreenOpaqueWindowState=Window{42080d90 u0 com.test.carlauncher/com.test.carlauncher.ui.activity.MainActivity}
mTopIsFullscreen=true mHideLockScreen=false
mForceStatusBar=false mForceStatusBarFromKeyguard=false
mDismissKeyguard=0 mWinDismissingKeyguard=null mHomePressed=false
mAllowLockscreenWhenOn=false mLockScreenTimeout=30000 mLockScreenTimerActive=false
mEndcallBehavior=2 mIncallPowerBehavior=1 mLongPressOnHomeBehavior=0
mLandscapeRotation=0 mSeascapeRotation=2
mPortraitRotation=3 mUpsideDownRotation=1
mDemoHdmiRotation=3 mDemoHdmiRotationLock=true
mUndockedHdmiRotation=-1
BarController.StatusBar
mState=WINDOW_STATE_HIDDEN
mTransientBar=TRANSIENT_BAR_NONE
BarController.NavigationBar
mState=WINDOW_STATE_SHOWING
mTransientBar=TRANSIENT_BAR_NONE
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则近万的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:Android)

最后
这里附上上述的技术体系图相关的几十套腾讯、头条、阿里、美团等公司2021年的面试题,把技术点整理成了视频和PDF(实际上比预期多花了不少精力),包含知识脉络 + 诸多细节,由于篇幅有限,这里以图片的形式给大家展示一部分。
相信它会给大家带来很多收获:
当程序员容易,当一个优秀的程序员是需要不断学习的,从初级程序员到高级程序员,从初级架构师到资深架构师,或者走向管理,从技术经理到技术总监,每个阶段都需要掌握不同的能力。早早确定自己的职业方向,才能在工作和能力提升中甩开同龄人。
- 无论你现在水平怎么样一定要 持续学习 没有鸡汤,别人看起来的毫不费力,其实费了很大力,这四个字就是我的建议!!!
- 我希望每一个努力生活的IT工程师,都会得到自己想要的,因为我们很辛苦,我们应得的。
当我们在抱怨环境,抱怨怀才不遇的时候,没有别的原因,一定是你做的还不够好!
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!
auncher/com.test.carlauncher.ui.activity.MainActivity}
mTopIsFullscreen=true mHideLockScreen=false
mForceStatusBar=false mForceStatusBarFromKeyguard=false
mDismissKeyguard=0 mWinDismissingKeyguard=null mHomePressed=false
mAllowLockscreenWhenOn=false mLockScreenTimeout=30000 mLockScreenTimerActive=false
mEndcallBehavior=2 mIncallPowerBehavior=1 mLongPressOnHomeBehavior=0
mLandscapeRotation=0 mSeascapeRotation=2
mPortraitRotation=3 mUpsideDownRotation=1
mDemoHdmiRotation=3 mDemoHdmiRotationLock=true
mUndockedHdmiRotation=-1
BarController.StatusBar
mState=WINDOW_STATE_HIDDEN
mTransientBar=TRANSIENT_BAR_NONE
BarController.NavigationBar
mState=WINDOW_STATE_SHOWING
mTransientBar=TRANSIENT_BAR_NONE
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则近万的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
[外链图片转存中…(img-ZPhZrzbr-1712333871213)]
[外链图片转存中…(img-2mouO5nC-1712333871214)]
[外链图片转存中…(img-SDoQvsnf-1712333871214)]
[外链图片转存中…(img-Xs3kHXQV-1712333871214)]
[外链图片转存中…(img-1Bf3KKfx-1712333871214)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:Android)

最后
这里附上上述的技术体系图相关的几十套腾讯、头条、阿里、美团等公司2021年的面试题,把技术点整理成了视频和PDF(实际上比预期多花了不少精力),包含知识脉络 + 诸多细节,由于篇幅有限,这里以图片的形式给大家展示一部分。
相信它会给大家带来很多收获:
[外链图片转存中…(img-hFcz7baE-1712333871215)]
当程序员容易,当一个优秀的程序员是需要不断学习的,从初级程序员到高级程序员,从初级架构师到资深架构师,或者走向管理,从技术经理到技术总监,每个阶段都需要掌握不同的能力。早早确定自己的职业方向,才能在工作和能力提升中甩开同龄人。
- 无论你现在水平怎么样一定要 持续学习 没有鸡汤,别人看起来的毫不费力,其实费了很大力,这四个字就是我的建议!!!
- 我希望每一个努力生活的IT工程师,都会得到自己想要的,因为我们很辛苦,我们应得的。
当我们在抱怨环境,抱怨怀才不遇的时候,没有别的原因,一定是你做的还不够好!
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!