adb shell dumpsys显示的结果比较长,有的时候我们只想看某一个服务的dump信息,在后面加上那个服务的名字就可以了。我们执行完adb shell dumpsys后,最顶部显示的是当前运行的服务列表,这个列表就是可以细项输出的每个服务名称的列表。
比如:adb shell dumpsys alarm输出的就只有SurfaceFlinger服务的输出信息。
对于某些服务,还能指定更小的分类,比如adb shell dumpsys activity还有更细的输出adb shell dumpsys activity broadcasts,这个我们通过adb shell dumpsys activity -h打印帮助信息就能看到子分类的参数说明了。
adb shell dumpsys生成的列表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
Currently running services: DockObserver SurfaceFlinger accessibility activity alarm android.security.keystore android.service.gatekeeper.IGateKeeperService appops appwidget audio autofill backup battery batteryproperties batterystats carrier_config clipboard commontime_management companiondevice connectivity connmetrics content contexthub country_detector cpuinfo dbinfo device_identifiers device_policy deviceidle devicestoragemonitor display dreams drm.drmManager dropbox gfxinfo gpu graphicsstats hardware_properties input input_method installd iphonesubinfo isms isub jobscheduler launcherapps location lock_settings media.audio_flinger media.audio_policy media.camera media.camera.proxy media.drm media.extractor media.metrics media.player media.resource_manager media.sound_trigger_hw media_projection media_resource_monitor media_router media_session meminfo mount netd netd_listener netpolicy netstats network_management network_score network_time_update_service notification otadexopt overlay package package_native permission phone pinner power processinfo procstats recovery restrictions rttmanager scheduling_policy search sec_key_att_app_id_provider sensorservice serial servicediscovery settings shortcut simphonebook soundtrigger statusbar storaged storagestats telecom telephony.registry textservices thermalservice trust uimode updatelock usagestats usb user voiceinteraction vrmanager wallpaper webviewupdate wifi wificond wifiscanner window |