Android12之如何查看hidl服务(一百五十五)

简介: CSDN博客专家,专注Android/Linux系统,分享多mic语音方案、音视频、编解码等技术,与大家一起成长!

优质专栏:Audio工程师进阶系列原创干货持续更新中……

人生格言: 人生从来没有捷径,只有行动才是治疗恐惧和懒惰的唯一良药.

更多原创,欢迎关注:Android系统攻城狮

欢迎关注Android系统攻城狮

1.前言

本篇目的:在Android源码中提供了cmd、service、dumpsys来获取Binder服务的工具,但是Android8.0以后推出HIDL服务, 前边三个工具是无法获取到的,下面我们如何获取HIDL服务呢?

注意:Android13开始,Camera将使用AIDL替代HIDL。

2.解决方式

Google为我们提供了一个脚lshal的工具,下面来看下它的用法。

<1>.lshal用法

在system/tools/hidl/test/hidl_test/hidl_test_servers.cpp是一个创建HIDL服务的demo,可以编译以后运行查看

ForkServer<IBaz>::run("dyingBaz");
static void run(const std::string& serviceName){
	defaultPassthroughServiceImplementation<T>(serviceName);
}
注意:HIDL服务名为:dyingBaz

启动服务hidl_test_servers64向hwservicemanager注册HIDL服务"dyingBaz"
# ./hidl_test_servers64

# lshal |grep dyingBaz                                                                                                                                                                                           
X     ? [email protected]::IBaz/dyingBaz                                 N/A        N/A

<2>.查看系统所有HIDL服务

1.binderized模式

HIDL向hwservicemanager(/dev/hwbinder)注册binder服务。

2.直通模式

HIDL passthrough implementations
# lshal
| All HIDL binderized services (registered with hwservicemanager)
VINTF R Interface                                                                                 Thread Use Server Clients
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::IDisplayService/default                            0/1        721    674
DC,FM Y [email protected]::ISchedulingPolicyService/default                 0/5        1753   674
DC,FM Y [email protected]::ISensorManager/default                              0/5        1753   1198 674
FM    Y [email protected]::IStats/default                                              0/5        1753   674
DM,FC Y [email protected]::IEffectsFactory/default                                0/5        1074   1128 674
DM,FC Y [email protected]::IDevicesFactory/default                                       0/5        1074   1128 674
DM,FC Y [email protected]::IAuthSecret/default                                      0/2        1096   1753 674
DM,FC Y [email protected]::IBiometricsFingerprint/default               0/1        1353   1753 674
DM,FC Y [email protected]::IBiometricsFingerprint/default               0/1        1353   1753 674
DM,FC Y [email protected]::IBluetoothAudioProvidersFactory/default             0/5        1074   674
DM,FC Y [email protected]::IBluetoothHci/default                                     0/1        1075   674
DM,FC Y [email protected]::IBootControl/default                                           0/1        716    1348 691 674
DM,FC Y [email protected]::ICameraProvider/legacy/0                            0/3        1076   1293 674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::ISurfaceFlingerConfigs/default                          0/2        724    721 674
DM,FC Y [email protected]::ISurfaceFlingerConfigs/default                          0/2        724    721 674
DM,FC Y [email protected]::IConfirmationUI/default                              0/1        1079   674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/default                                          0/3        1082   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/default                                             0/3        1082   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IGatekeeper/default                                      0/1        717    1344 674
DM,FC Y [email protected]::IGnss/default                                                  0/1        1085   1753 674
DM,FC Y [email protected]::IGnss/default                                                  0/1        1085   1753 674
DM,FC Y [email protected]::IAllocator/default                               0/3        726    2553 2148 721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IHealth/default                                              1/1        1086   1753 1319 674
DM,FC Y [email protected]::IKeymasterDevice/default                                  0/1        678    1010 715 674
DM,FC Y [email protected]::IKeymasterDevice/strongbox                                0/1        680    715 674
DM,FC Y [email protected]::IKeymasterDevice/strongbox                                0/1        680    715 674
DM,FC Y [email protected]::ILight/default                                                0/1        727    1753 723 674
DM,FC Y [email protected]::IComponentStore/default                                    0/6        1120   2758 2148 1753 1315 1330 674
FM,FC Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
FM    Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
FM    Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
DM,FC Y [email protected]::IOmx/default                                              0/3        1324   674
DM,FC Y [email protected]::IOmxStore/default                                         0/6        1120   674
DM,FC Y [email protected]::IMemtrack/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IDevice/paintbox                                     0/2        1069   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM    Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::IOemLock/default                                            0/2        1096   1753 674
DM,FC Y [email protected]::IPowerStats/default                                     0/1        1091   1753 674
DM,FC Y [email protected]::IRadioConfig/default                                   0/2        1328   2397 674
DM,FC Y [email protected]::IRadioConfig/default                                   0/2        1328   2397 674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISecureElement/SIM1                                  0/2        1328   2393 674
DM,FC Y [email protected]::ISensors/default                                            0/1        1093   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::IOffloadConfig/default                         0/1        1291   674
DM,FC Y [email protected]::IOffloadControl/default                       0/1        1291   674
DM,FC Y [email protected]::IThermal/default                                            0/1        1770   1753 674
DM,FC Y [email protected]::IThermal/default                                            0/1        1770   1753 674
DM,FC Y [email protected]::IUsbGadget/default                                       0/2        1095   1753 674
DM,FC Y [email protected]::IUsbGadget/default                                       0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IWeaver/default                                              0/2        1096   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DC,FM Y [email protected]::IAllocator/ashmem                                             0/1        1062   674
X     Y [email protected]::IBase/SIM1                                                         0/2        1328   2393 674
X     Y [email protected]::IBase/UimLpa0                                                      0/2        1328   674
X     Y [email protected]::IBase/ashmem                                                       0/1        1062   674
X     Y [email protected]::IBase/clearkey                                                     0/3        1084   674
X     Y [email protected]::IBase/cnd                                                          0/1        1283   674
X     Y [email protected]::IBase/com.qualcomm.qti.uceservice                                  0/1        3278   674
X     Y [email protected]::IBase/imsradio0                                                    0/2        1328   2397 674
X     Y [email protected]::IBase/imsrtpservice                                                0/2        3276   674
X     Y [email protected]::IBase/legacy/0                                                     0/3        1076   1293 674
X     Y [email protected]::IBase/oemhook0                                                     0/2        1328   674
X     Y [email protected]::IBase/paintbox                                                     0/2        1069   674
X     Y [email protected]::IBase/qti-default                                                  0/2        1088   674
X     Y [email protected]::IBase/qti-dsp                                                      0/2        1088   674
X     Y [email protected]::IBase/qti-gpu                                                      0/2        1088   674
X     Y [email protected]::IBase/slot1                                                        0/2        1328   2397 674
X     Y [email protected]::IBase/software                                                     0/8        1330   2758 2148 1753 1315 674
X     Y [email protected]::IBase/strongbox                                                    0/1        680    715 674
X     Y [email protected]::IBase/uimRemoteClient0                                             0/2        1328   674
X     Y [email protected]::IBase/uimRemoteServer0                                             0/2        1328   674
X     Y [email protected]::IBase/widevine                                                     0/3        1083   674
DC,FM Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
FM    Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
FM    Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
DC,FM Y [email protected]::ITokenManager/default                                             1/1        674    
FM    Y [email protected]::INetd/default                                                0/1        1009   1288 674
FM    Y [email protected]::INetd/default                                                0/1        1009   1288 674
FM    Y [email protected]::ISystemSuspend/default                                        0/1        714    1288 1753 1124 1328 1128 674
DC,FM Y [email protected]::IKeystore/default                                       0/1        1321   674
DM,FC Y [email protected]::IUceService/com.qualcomm.qti.uceservice                  0/1        3278   674
DM    Y [email protected]::IApiService/cnd                                                  0/1        1283   674
DM,FC Y [email protected]::IApiService/cnd                                                  0/1        1283   674
DM    Y [email protected]::IServer/cnd                                                   0/1        1283   674
DM,FC Y [email protected]::IServer/cnd                                                   0/1        1283   674
DM,FC Y [email protected]::ILight/default                                                 0/1        727    1753 723 674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM,FC Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM    Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM,FC Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM,FC Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM,FC Y [email protected]::IManagerService/default                                       0/1        1327   674
DM,FC Y [email protected]::INxpNfc/default                                                    0/1        1089   674
DM,FC Y [email protected]::IQcRilAudio/slot1                                       0/2        1328   2258 674
DM    Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM    Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM,FC Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM,FC Y [email protected]::IUimLpa/UimLpa0                                        0/2        1328   674
DM,FC Y [email protected]::IQtiOemHook/oemhook0                             0/2        1328   674
DM,FC Y [email protected]::IUimRemoteServiceClient/uimRemoteClient0 0/2        1328   674
DM,FC Y [email protected]::IUimRemoteServiceServer/uimRemoteServer0 0/2        1328   674
DM,FC Y [email protected]::ITuiComm/default                                        0/1        1119   674
DM,FC Y [email protected]::IService/default                                             0/1        3278   674
DM,FC Y [email protected]::IRTPService/imsrtpservice                                   0/2        3276   674

| All HIDL interfaces getService() has ever returned as a passthrough interface;
| PIDs / processes shown below might be inaccurate because the process
| might have relinquished the interface or might have died.
| The Server / Server CMD column can be ignored.
| The Clients / Clients CMD column shows all process that have ever dlopen'ed 
| the library and successfully fetched the passthrough implementation.
VINTF R Interface                                                                     Thread Use Server Clients
FC    ? [email protected]::IEffectsFactory/default                    N/A        1074   1074
FC    ? [email protected]::IDevicesFactory/default                           N/A        1074   1074
FC    ? [email protected]::IBluetoothAudioProvidersFactory/default N/A        1074   1074
FC    ? [email protected]::IBluetoothHci/default                         N/A        1075   1075
FC    ? [email protected]::IBootControl/default                               N/A        716    716
FC    ? [email protected]::ICameraProvider/legacy/0                N/A        1076   1076
FC    ? [email protected]::ICryptoFactory/default                              N/A        1082   1082
FC    ? [email protected]::IDrmFactory/default                                 N/A        1082   1082
FC    ? [email protected]::IGatekeeper/default                          N/A        717    717
FC    ? [email protected]::IGnss/default                                      N/A        1085   1085
DM,FC ? [email protected]::IMapper/default                         N/A        N/A    721 723 2148 2553
FC    ? [email protected]::IMemtrack/default                              N/A        1105   1105
FC    ? [email protected]::ISoundTriggerHw/default                    N/A        1074   1074
X     ? [email protected]::IBar/foo                                      N/A        N/A    
X     ? [email protected]::IBaz/baz                                      N/A        N/A    
X     ? [email protected]::IBaz/dyingBaz                                 N/A        N/A    
X     ? [email protected]::IHash/default                                N/A        N/A    
X     ? [email protected]::IChild/child                          N/A        N/A    
X     ? [email protected]::IChild/local child                    N/A        N/A    
X     ? [email protected]::IFetcher/fetcher                      N/A        N/A    
X     ? [email protected]::IParent/parent                        N/A        N/A    
X     ? [email protected]::IMemoryTest/memory                         N/A        N/A    
X     ? [email protected]::IMultithread/multithread              N/A        N/A    
X     ? [email protected]::ICppSafeUnion/default               N/A        N/A    
X     ? [email protected]::ISafeUnion/safeunion                    N/A        N/A    
X     ? [email protected]::ITrie/trie                                   N/A        N/A    
FC    ? [email protected]::IVibrator/default                              N/A        1105   1105

| All available HIDL passthrough implementations (all -impl.so files).
| These may return subclasses through their respective HIDL_FETCH_I* functions.
VINTF R Interface                                                                     Thread Use Server Clients
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib/hw/)                            N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib/hw/)                  N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                 N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)               N/A        N/A    1075
X     ? [email protected]::I*/* (/vendor/lib/hw/)                             N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                           N/A        N/A    716
X     ? [email protected]::I*/* (/vendor/lib/hw/)                  N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                N/A        N/A    1076
X     ? [email protected]::I*/* (/vendor/lib/hw/)                              N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                            N/A        N/A    1082
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)              N/A        N/A    717
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                      N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)                    N/A        N/A    1085
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti-display)   N/A        N/A    1046 2317
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti-display) N/A        N/A    721 723 1044 1753 2148 2239 2258 2393 2397 2434 2553 2672 2758 2810 2946 3001 3141 3194 3241 3261 3299 3320 3340 3357 3400 3495 3526 3558
X     ? [email protected]::I*/* (/vendor/lib/hw/)                         N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                       N/A        N/A    1105
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                   N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                   N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/) (.crosshatch)           N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (.crosshatch)         N/A        N/A    1105
X     ? [email protected]::I*/* (/apex/com.android.vndk.v31/lib/hw/)            N/A        N/A    
X     ? [email protected]::I*/* (/apex/com.android.vndk.v31/lib64/hw/)          N/A        N/A    
X     ? [email protected]::I*/* (/system/lib/hw/)                               N/A        N/A    
X     ? [email protected]::I*/* (/system/lib64/hw/)                             N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/)                 N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)               N/A        N/A

<2>.service和lshal命令对比

 # service list|grep ICameraProvider
注意:service命令什么也没找到,为空。

# lshal |grep ICameraProvider                                                                                                                                                                                  
DM,FC Y [email protected]::ICameraProvider/legacy/0       0/3        1076   1293 674
FC    ? [email protected]::ICameraProvider/legacy/0       N/A        1076   1076

<3>.查看manifest清单

# lshal --init-vintf
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.amname>
        <transport>hwbindertransport>
        <fqname>@1.0::IQcRilAudio/slot1fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.imsname>
        <transport>hwbindertransport>
        <fqname>@1.2::IImsRadio/imsradio0fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.lpaname>
        <transport>hwbindertransport>
        <fqname>@1.0::IUimLpa/UimLpa0fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.qcrilhookname>
        <transport>hwbindertransport>
        <fqname>@1.0::IQtiOemHook/oemhook0fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.uim_remote_clientname>
        <transport>hwbindertransport>
        <fqname>@1.0::IUimRemoteServiceClient/uimRemoteClient0fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.radio.uim_remote_servername>
        <transport>hwbindertransport>
        <fqname>@1.0::IUimRemoteServiceServer/uimRemoteServer0fqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.hardware.tui_commname>
        <transport>hwbindertransport>
        <fqname>@1.0::ITuiComm/defaultfqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.ims.callinfoname>
        <transport>hwbindertransport>
        <fqname>@1.0::IService/defaultfqname>
    hal>
    <hal format="hidl">
        <name>vendor.qti.imsrtpservicename>
        <transport>hwbindertransport>
        <fqname>@1.0::IRTPService/imsrtpservicefqname>
    hal>
manifest>

<4>.查看HIDL服务名、线程数量和客户端梳理

# lshal list -Vliepc                                                                                                                                                                                       
| All HIDL binderized services (registered with hwservicemanager)
VINTF R Interface                                                                                 Thread Use Server Clients
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::ICameraService/default                      0/2        1293   674
FM    Y [email protected]::IDisplayService/default                            0/1        721    674
DC,FM Y [email protected]::ISchedulingPolicyService/default                 0/5        1753   674
DC,FM Y [email protected]::ISensorManager/default                              0/5        1753   1198 674
FM    Y [email protected]::IStats/default                                              0/5        1753   674
DM,FC Y [email protected]::IEffectsFactory/default                                0/5        1074   1128 674
DM,FC Y [email protected]::IDevicesFactory/default                                       0/5        1074   1128 674
DM,FC Y [email protected]::IAuthSecret/default                                      0/2        1096   1753 674
DM,FC Y [email protected]::IBiometricsFingerprint/default               0/1        1353   1753 674
DM,FC Y [email protected]::IBiometricsFingerprint/default               0/1        1353   1753 674
DM,FC Y [email protected]::IBluetoothAudioProvidersFactory/default             0/5        1074   674
DM,FC Y [email protected]::IBluetoothHci/default                                     0/1        1075   674
DM,FC Y [email protected]::IBootControl/default                                           0/1        716    1348 691 674
DM,FC Y [email protected]::ICameraProvider/legacy/0                            0/3        1076   1293 674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::IMediaCasService/default                                        0/2        1078   674
DM,FC Y [email protected]::ISurfaceFlingerConfigs/default                          0/2        724    721 674
DM,FC Y [email protected]::ISurfaceFlingerConfigs/default                          0/2        724    721 674
DM,FC Y [email protected]::IConfirmationUI/default                              0/1        1079   674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::IContexthub/default                                      0/1        1081   1753 674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/default                                          0/3        1082   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/default                                             0/3        1082   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::ICryptoFactory/widevine                                         0/3        1083   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/widevine                                            0/3        1083   674
DM,FC Y [email protected]::ICryptoFactory/clearkey                                         0/3        1084   674
DM,FC Y [email protected]::IDrmFactory/clearkey                                            0/3        1084   674
DM,FC Y [email protected]::IGatekeeper/default                                      0/1        717    1344 674
DM,FC Y [email protected]::IGnss/default                                                  0/1        1085   1753 674
DM,FC Y [email protected]::IGnss/default                                                  0/1        1085   1753 674
DM,FC Y [email protected]::IAllocator/default                               0/3        726    1753 2553 2148 721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IComposer/default                                 0/3        723    721 674
DM,FC Y [email protected]::IHealth/default                                              1/1        1086   1753 1319 674
DM,FC Y [email protected]::IKeymasterDevice/default                                  0/1        678    1010 715 674
DM,FC Y [email protected]::IKeymasterDevice/strongbox                                0/1        680    715 674
DM,FC Y [email protected]::IKeymasterDevice/strongbox                                0/1        680    715 674
DM,FC Y [email protected]::ILight/default                                                0/1        727    1753 723 674
DM,FC Y [email protected]::IComponentStore/default                                    0/6        1120   2758 2148 1753 1315 1330 674
FM,FC Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
FM    Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
FM    Y [email protected]::IComponentStore/software                                   0/8        1330   2758 2148 1753 1315 674
DM,FC Y [email protected]::IOmx/default                                              0/3        1324   674
DM,FC Y [email protected]::IOmxStore/default                                         0/6        1120   674
DM,FC Y [email protected]::IMemtrack/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IDevice/paintbox                                     0/2        1069   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-default                                  0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-dsp                                      0/2        1088   674
DM,FC Y [email protected]::IDevice/qti-gpu                                      0/2        1088   674
DM    Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::INfc/default                                                    0/1        1089   2758 674
DM,FC Y [email protected]::IOemLock/default                                            0/2        1096   1753 674
DM,FC Y [email protected]::IPowerStats/default                                     0/1        1091   1753 674
DM,FC Y [email protected]::IRadioConfig/default                                   0/2        1328   2397 674
DM,FC Y [email protected]::IRadioConfig/default                                   0/2        1328   2397 674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISap/slot1                                                    0/2        1328   674
DM,FC Y [email protected]::IRadio/slot1                                                  0/2        1328   2397 674
DM,FC Y [email protected]::ISecureElement/SIM1                                  0/2        1328   2393 674
DM,FC Y [email protected]::ISensors/default                                            0/1        1093   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::ISoundTriggerHw/default                                0/5        1074   1753 674
DM,FC Y [email protected]::IOffloadConfig/default                         0/1        1291   674
DM,FC Y [email protected]::IOffloadControl/default                       0/1        1291   674
DM,FC Y [email protected]::IThermal/default                                            0/1        1770   1753 674
DM,FC Y [email protected]::IThermal/default                                            0/1        1770   1753 674
DM,FC Y [email protected]::IUsbGadget/default                                       0/2        1095   1753 674
DM,FC Y [email protected]::IUsbGadget/default                                       0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IUsb/default                                                    0/2        1095   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IVibrator/default                                          0/1        1105   1753 674
DM,FC Y [email protected]::IWeaver/default                                              0/2        1096   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DM,FC Y [email protected]::IWifi/default                                                  0/1        1115   1753 674
DC,FM Y [email protected]::IAllocator/ashmem                                             0/1        1062   674
X     Y [email protected]::IBase/SIM1                                                         0/2        1328   2393 674
X     Y [email protected]::IBase/UimLpa0                                                      0/2        1328   674
X     Y [email protected]::IBase/ashmem                                                       0/1        1062   674
X     Y [email protected]::IBase/clearkey                                                     0/3        1084   674
X     Y [email protected]::IBase/cnd                                                          0/1        1283   674
X     Y [email protected]::IBase/com.qualcomm.qti.uceservice                                  0/1        3278   674
X     Y [email protected]::IBase/imsradio0                                                    0/2        1328   2397 674
X     Y [email protected]::IBase/imsrtpservice                                                0/2        3276   674
X     Y [email protected]::IBase/legacy/0                                                     0/3        1076   1293 674
X     Y [email protected]::IBase/oemhook0                                                     0/2        1328   674
X     Y [email protected]::IBase/paintbox                                                     0/2        1069   674
X     Y [email protected]::IBase/qti-default                                                  0/2        1088   674
X     Y [email protected]::IBase/qti-dsp                                                      0/2        1088   674
X     Y [email protected]::IBase/qti-gpu                                                      0/2        1088   674
X     Y [email protected]::IBase/slot1                                                        0/2        1328   2397 674
X     Y [email protected]::IBase/software                                                     0/8        1330   2758 2148 1753 1315 674
X     Y [email protected]::IBase/strongbox                                                    0/1        680    715 674
X     Y [email protected]::IBase/uimRemoteClient0                                             0/2        1328   674
X     Y [email protected]::IBase/uimRemoteServer0                                             0/2        1328   674
X     Y [email protected]::IBase/widevine                                                     0/3        1083   674
DC,FM Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
FM    Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
FM    Y [email protected]::IServiceManager/default                                         1/1        674    2258 2397 1753
DC,FM Y [email protected]::ITokenManager/default                                             1/1        674    
FM    Y [email protected]::INetd/default                                                0/1        1009   1288 674
FM    Y [email protected]::INetd/default                                                0/1        1009   1288 674
FM    Y [email protected]::ISystemSuspend/default                                        0/1        714    1288 1753 1124 1328 1128 674
DC,FM Y [email protected]::IKeystore/default                                       0/1        1321   674
DM,FC Y [email protected]::IUceService/com.qualcomm.qti.uceservice                  0/1        3278   674
DM    Y [email protected]::IApiService/cnd                                                  0/1        1283   674
DM,FC Y [email protected]::IApiService/cnd                                                  0/1        1283   674
DM    Y [email protected]::IServer/cnd                                                   0/1        1283   674
DM,FC Y [email protected]::IServer/cnd                                                   0/1        1283   674
DM,FC Y [email protected]::ILight/default                                                 0/1        727    1753 723 674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM,FC Y [email protected]::IDisplayConfig/default                                         0/3        723    674
DM    Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM    Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM,FC Y [email protected]::IWifiExt/default                                              0/1        1115   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM    Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM,FC Y [email protected]::IWirelessCharger/default                              0/1        1116   674
DM,FC Y [email protected]::IManagerService/default                                       0/1        1327   674
DM,FC Y [email protected]::INxpNfc/default                                                    0/1        1089   674
DM,FC Y [email protected]::IQcRilAudio/slot1                                       0/2        1328   2258 674
DM    Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM    Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM,FC Y [email protected]::IImsRadio/imsradio0                                    0/2        1328   2397 674
DM,FC Y [email protected]::IUimLpa/UimLpa0                                        0/2        1328   674
DM,FC Y [email protected]::IQtiOemHook/oemhook0                             0/2        1328   674
DM,FC Y [email protected]::IUimRemoteServiceClient/uimRemoteClient0 0/2        1328   674
DM,FC Y [email protected]::IUimRemoteServiceServer/uimRemoteServer0 0/2        1328   674
DM,FC Y [email protected]::ITuiComm/default                                        0/1        1119   674
DM,FC Y [email protected]::IService/default                                             0/1        3278   674
DM,FC Y [email protected]::IRTPService/imsrtpservice                                   0/2        3276   674

| All HIDL interfaces getService() has ever returned as a passthrough interface;
| PIDs / processes shown below might be inaccurate because the process
| might have relinquished the interface or might have died.
| The Server / Server CMD column can be ignored.
| The Clients / Clients CMD column shows all process that have ever dlopen'ed 
| the library and successfully fetched the passthrough implementation.
VINTF R Interface                                                                     Thread Use Server Clients
FC    ? [email protected]::IEffectsFactory/default                    N/A        1074   1074
FC    ? [email protected]::IDevicesFactory/default                           N/A        1074   1074
FC    ? [email protected]::IBluetoothAudioProvidersFactory/default N/A        1074   1074
FC    ? [email protected]::IBluetoothHci/default                         N/A        1075   1075
FC    ? [email protected]::IBootControl/default                               N/A        716    716
FC    ? [email protected]::ICameraProvider/legacy/0                N/A        1076   1076
FC    ? [email protected]::ICryptoFactory/default                              N/A        1082   1082
FC    ? [email protected]::IDrmFactory/default                                 N/A        1082   1082
FC    ? [email protected]::IGatekeeper/default                          N/A        717    717
FC    ? [email protected]::IGnss/default                                      N/A        1085   1085
DM,FC ? [email protected]::IMapper/default                         N/A        N/A    721 723 1753 2148 2553
FC    ? [email protected]::IMemtrack/default                              N/A        1105   1105
FC    ? [email protected]::ISoundTriggerHw/default                    N/A        1074   1074
X     ? [email protected]::IBar/foo                                      N/A        N/A    
X     ? [email protected]::IBaz/baz                                      N/A        N/A    
X     ? [email protected]::IBaz/dyingBaz                                 N/A        N/A    
X     ? [email protected]::IHash/default                                N/A        N/A    
X     ? [email protected]::IChild/child                          N/A        N/A    
X     ? [email protected]::IChild/local child                    N/A        N/A    
X     ? [email protected]::IFetcher/fetcher                      N/A        N/A    
X     ? [email protected]::IParent/parent                        N/A        N/A    
X     ? [email protected]::IMemoryTest/memory                         N/A        N/A    
X     ? [email protected]::IMultithread/multithread              N/A        N/A    
X     ? [email protected]::ICppSafeUnion/default               N/A        N/A    
X     ? [email protected]::ISafeUnion/safeunion                    N/A        N/A    
X     ? [email protected]::ITrie/trie                                   N/A        N/A    
FC    ? [email protected]::IVibrator/default                              N/A        1105   1105

| All available HIDL passthrough implementations (all -impl.so files).
| These may return subclasses through their respective HIDL_FETCH_I* functions.
VINTF R Interface                                                                     Thread Use Server Clients
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib/hw/)                            N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib/hw/)                  N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                 N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)               N/A        N/A    1075
X     ? [email protected]::I*/* (/vendor/lib/hw/)                             N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                           N/A        N/A    716
X     ? [email protected]::I*/* (/vendor/lib/hw/)                  N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                N/A        N/A    1076
X     ? [email protected]::I*/* (/vendor/lib/hw/)                              N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                            N/A        N/A    1082
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)              N/A        N/A    717
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti)                      N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti)                    N/A        N/A    1085
X     ? [email protected]::I*/* (/vendor/lib/hw/) (-qti-display)   N/A        N/A    1046 2317
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (-qti-display) N/A        N/A    721 723 1044 1753 2148 2239 2258 2393 2397 2434 2553 2672 2758 2810 2946 3001 3141 3194 3261 3299 3495 3526 3558
X     ? [email protected]::I*/* (/vendor/lib/hw/)                         N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                       N/A        N/A    1105
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                   N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/)                     N/A        N/A    1074
X     ? [email protected]::I*/* (/vendor/lib64/hw/)                   N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/) (.crosshatch)           N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/) (.crosshatch)         N/A        N/A    1105
X     ? [email protected]::I*/* (/apex/com.android.vndk.v31/lib/hw/)            N/A        N/A    
X     ? [email protected]::I*/* (/apex/com.android.vndk.v31/lib64/hw/)          N/A        N/A    
X     ? [email protected]::I*/* (/system/lib/hw/)                               N/A        N/A    
X     ? [email protected]::I*/* (/system/lib64/hw/)                             N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib/hw/)                 N/A        N/A    
X     ? [email protected]::I*/* (/vendor/lib64/hw/)               N/A        N/A

你可能感兴趣的:(Android系统调试系列,android,java,开发语言)