adb shell service 命令的用法

1 源码位置:
frameworks/native/cmds/service/
service 是一个C++ 可执行程序。
有哪些功能:
list : 列出系统所有服务。
check s : 服务名称是否已经注册。
call : 调用一个服务。

执行

adb  shell  service  list  

输出如下:

Found 180 services:
0       DockObserver: []
1       SurfaceFlinger: [android.ui.ISurfaceComposer]
2       accessibility: [android.view.accessibility.IAccessibilityManager]
3       account: [android.accounts.IAccountManager]
4       activity: [android.app.IActivityManager]
5       activity_task: [android.app.IActivityTaskManager]
6       adb: [android.debug.IAdbManager]
7       alarm: [android.app.IAlarmManager]
8       android.hardware.light.ILights/default: [android.hardware.light.ILights]
9       android.hardware.power.IPower/default: [android.hardware.power.IPower]
10      android.security.identity: [android.security.identity.ICredentialStoreFactory]
11      android.security.keystore: [android.security.keystore.IKeystoreService]
12      android.service.gatekeeper.IGateKeeperService: [android.service.gatekeeper.IGateKeeperService]
13      app_binding: []
14      app_integrity: [android.content.integrity.IAppIntegrityManager]
15      appops: [com.android.internal.app.IAppOpsService]
16      appwidget: [com.android.internal.appwidget.IAppWidgetService]
17      audio: [android.media.IAudioService]
18      auth: [android.hardware.biometrics.IAuthService]
19      autofill: [android.view.autofill.IAutoFillManager]
20      backup: [android.app.backup.IBackupManager]
21      battery: []
22      batteryproperties: [android.os.IBatteryPropertiesRegistrar]
23      batterystats: [com.android.internal.app.IBatteryStats]
24      binder_calls_stats: []
25      biometric: [android.hardware.biometrics.IBiometricService]
26      blob_store: [android.app.blob.IBlobStoreManager]
27      bluetooth_manager: [android.bluetooth.IBluetoothManager]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值