使用adb获取android设备中的服务列表
分类:Android, Java
阅读 (4,931)
Add comments
9月 152017
我们可以使用adb shell dumpsys 来查看android设备中的相关服务信息,dumpsys后的参数为相关服务的名称。
比较常用的如:
1 2 3 |
adb shell dumpsys activity adb shell dumpsys alarm |
那么我们如何查看其他我们可以dump的服务名称呢?答案是使用如下的命令即可获得android设备中的所有运行的服务列表
1 |
adb shell service list |
如下,是在我三星手机上运行命令获得的服务列表:
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
0 penableservice: [] 1 hermesservice: [com.samsung.android.hermes.IKerykeion] 2 sip: [android.net.sip.ISipService] 3 phone: [com.android.internal.telephony.ITelephony] 4 isms: [com.android.internal.telephony.ISms] 5 iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo] 6 simphonebook: [com.android.internal.telephony.IIccPhoneBook] 7 handset: [com.gsma.services.utils.IHandset] 8 offhostservice: [com.gsma.services.nfc.IOffHostService] 9 secontroller: [com.gsma.services.nfc.ISEController] 10 nfccontroller: [com.gsma.services.nfc.INfcController] 11 com.broadcom.nfc.Factory: [com.broadcom.nfc.INfcFactory] 12 nfc: [android.nfc.INfcAdapter] 13 telecom: [com.android.internal.telecom.ITelecomService] 14 isub: [com.android.internal.telephony.ISub] 15 sec_analytics: [com.sec.analytics.data.collection.serviceif.IDataCollectionManager] 16 edmnativehelper: [mdm.edmnativehelperservice] 17 imms: [com.android.internal.telephony.IMms] 18 lpnet: [android.os.ILpnetManager] 19 media_projection: [android.media.projection.IMediaProjectionManager] 20 voip: [android.os.IVoIPInterface] 21 launcherapps: [android.content.pm.ILauncherApps] 22 fingerprint: [android.service.fingerprint.IFingerprintService] 23 trust: [android.app.trust.ITrustManager] 24 media_router: [android.media.IMediaRouterService] 25 media_session: [android.media.session.ISessionManager] 26 restrictions: [android.content.IRestrictionsManager] 27 print: [android.print.IPrintManager] 28 assetatlas: [android.view.IAssetAtlas] 29 dreams: [android.service.dreams.IDreamManager] 30 commontime_management: [] 31 samplingprofiler: [] 32 quickconnect: [com.samsung.android.quickconnect.IQuickConnectManager] 33 spengestureservice: [com.samsung.android.smartclip.ISpenGestureService] 34 mDNIe: [com.samsung.android.mdnie.IMdnieManager] 35 diskstats: [] 36 SecExternalDisplayService: [android.os.ISecExternalDisplayService] 37 voiceinteraction: [com.android.internal.app.IVoiceInteractionManagerService] 38 appwidget: [com.android.internal.appwidget.IAppWidgetService] 39 backup: [android.app.backup.IBackupManager] 40 jobscheduler: [android.app.job.IJobScheduler] 41 uimode: [android.app.IUiModeManager] 42 serial: [android.hardware.ISerialManager] 43 usb: [android.hardware.usb.IUsbManager] 44 DockObserver: [] 45 audio: [android.media.IAudioService] 46 wallpaper: [android.app.IWallpaperManager] 47 dropbox: [com.android.internal.os.IDropBoxManagerService] 48 search: [android.app.ISearchManager] 49 country_detector: [android.location.ICountryDetector] 50 location: [android.location.ILocationManager] 51 devicestoragemonitor: [] 52 notification: [android.app.INotificationManager] 53 updatelock: [android.os.IUpdateLock] 54 servicediscovery: [android.net.nsd.INsdManager] 55 sb_service: [com.samsung.android.smartbonding.ISmartBondingService] 56 connectivity: [android.net.IConnectivityManager] 57 rttmanager: [android.net.wifi.IRttManager] 58 wifiscanner: [android.net.wifi.IWifiScanner] 59 msapwifi: [android.net.wifi.IMsapWifiManager] 60 wifi: [android.net.wifi.IWifiManager] 61 wifip2p: [android.net.wifi.p2p.IWifiP2pManager] 62 netpolicy: [android.net.INetworkPolicyManager] 63 netstats: [android.net.INetworkStatsService] 64 network_score: [android.net.INetworkScoreService] 65 textservices: [com.android.internal.textservice.ITextServicesManager] 66 ABTPersistenceService: [com.absolute.android.persistence.IABTPersistence] 67 network_management: [android.os.INetworkManagementService] 68 clipboardEx: [android.sec.clipboard.IClipboardService] 69 clipboard: [android.content.IClipboard] 70 statusbar: [com.android.internal.statusbar.IStatusBarService] 71 enterprise_policy: [android.app.enterprise.IEnterpriseDeviceManager] 72 knox_timakeystore_policy: [com.sec.enterprise.knox.keystore.ITimaKeystore] 73 enterprise_billing_policy: [com.sec.enterprise.knox.billing.IEnterpriseBillingPolicy] 74 mum_container_policy: [com.sec.enterprise.knox.container.IKnoxContainerManager] 75 remoteinjection: [android.app.enterprise.remotecontrol.IRemoteInjection] 76 phone_restriction_policy: [android.app.enterprise.IPhoneRestrictionPolicy] 77 wifi_policy: [android.app.enterprise.IWifiPolicy] 78 application_policy: [android.app.enterprise.IApplicationPolicy] 79 enterprise_license_policy: [android.app.enterprise.license.IEnterpriseLicense] 80 log_manager_service: [android.app.enterprise.ILogManager] 81 sdp: [android.service.sdp.ISdpManagerService] 82 harmony_eas_service: [android.content.IHarmonyEAS] 83 device_policy: [android.app.admin.IDevicePolicyManager] 84 lock_settings: [com.android.internal.widget.ILockSettings] 85 mount: [IMountService] 86 cover: [com.samsung.android.cover.ICoverManager] 87 motion_recognition: [com.samsung.android.motion.IMotionRecognitionService] 88 accessibility: [android.view.accessibility.IAccessibilityManager] 89 input_method: [com.android.internal.view.IInputMethodManager] 90 rcp: [android.os.IRCPManager] 91 bluetooth_secure_mode_manager: [android.bluetooth.IBluetoothSecureManagerService] 92 bluetooth_manager: [android.bluetooth.IBluetoothManager] 93 tactileassist: [android.os.ITactileAssistService] 94 input: [android.hardware.input.IInputManager] 95 window: [android.view.IWindowManager] 96 multiwindow_facade: [com.samsung.android.multiwindow.IMultiWindowFacade] 97 barbeam: [android.app.IBarBeamService] 98 scontext: [android.hardware.scontext.ISContextService] 99 context_aware: [com.samsung.android.contextaware.manager.IContextAwareService] 100 alarm: [android.app.IAlarmManager] 101 consumer_ir: [android.hardware.IConsumerIrService] 102 samsung.smartfaceservice: [com.samsung.android.smartface.ISmartFaceService] 103 CustomFrequencyManagerService: [android.os.ICustomFrequencyManager] 104 CCM: [] 105 cepproxyks: [com.samsung.android.cepproxyks.ISCEPKeystoreService] 106 TUI: [] 107 tima: [android.service.tima.ITimaService] 108 vibrator: [android.os.IVibratorService] 109 sedenial: [android.service.ISEDenialService] 110 ReactiveService: [com.samsung.android.service.reactive.IReactiveService] 111 DirEncryptService: [IDirEncryptService] 112 content: [android.content.IContentService] 113 account: [android.accounts.IAccountManager] 114 persona: [android.os.IPersonaManager] 115 SEAMService: [com.sec.enterprise.knox.seams.ISEAMS] 116 entropy: [] 117 telephony.registry: [com.android.internal.telephony.ITelephonyRegistry] 118 scheduling_policy: [android.os.ISchedulingPolicyService] 119 webviewupdate: [android.webkit.IWebViewUpdateService] 120 usagestats: [android.app.usage.IUsageStatsManager] 121 battery: [] 122 hardware: [android.os.IHardwareService] 123 permission: [android.os.IPermissionController] 124 cpuinfo: [] 125 dbinfo: [] 126 gfxinfo: [] 127 meminfo: [] 128 procstats: [com.android.internal.app.IProcessStats] 129 activity: [android.app.IActivityManager] 130 user: [android.os.IUserManager] 131 package: [android.content.pm.IPackageManager] 132 persona_policy: [android.content.pm.IPersonaPolicyManager] 133 display: [android.hardware.display.IDisplayManager] 134 power: [android.os.IPowerManager] 135 appops: [com.android.internal.app.IAppOpsService] 136 batterystats: [com.android.internal.app.IBatteryStats] 137 sensorservice: [android.gui.SensorServer] 138 mdm.remotedesktop: [mdm.samsung.IRemoteDesktopService] 139 media.sound_trigger_hw: [android.hardware.ISoundTriggerHwService] 140 media.transcoder: [android.media.ITranscoderService] 141 media.audio_policy: [android.media.IAudioPolicyService] 142 listen.service: [com.qualcomm.listen.IListenService] 143 media.camera: [android.hardware.ICameraService] 144 media.player: [android.media.IMediaPlayerService] 145 media.audio_flinger: [android.media.IAudioFlinger] 146 android.security.keystore: [android.security.keystore] 147 SurfaceFlinger: [android.ui.ISurfaceComposer] 148 sensorhubservice: [android.gui.SensorHubServer] 149 display.qservice: [android.display.IQService] 150 drm.drmManager: [drm.IDrmManagerService] 151 batteryproperties: [android.os.IBatteryPropertiesRegistrar] 152 com.samsung.android.jam.IAndroidShm: [com.samsung.android.jam.IAndroidShm] 153 com.samsung.android.jam.IAPAService: [com.samsung.android.jam.IAPAService] 154 com.samsung.android.jam.IJackService: [com.samsung.android.jam.IJackService] 155 TvoutService_C: [android.hardware.ISecExternalDisplayService] |