OSDN Git Service

Update re hwservicemanager debugDump semantics.
authorSteven Moreland <smoreland@google.com>
Tue, 21 Mar 2017 19:17:55 +0000 (12:17 -0700)
committerSteven Moreland <smoreland@google.com>
Tue, 21 Mar 2017 20:01:19 +0000 (13:01 -0700)
Test: internal boots, hidl_test, lshal works
Bug: 36414311
Change-Id: I572269a679dea3b6e985227f6727850f7dd33b58

cmds/lshal/Lshal.cpp

index 8750147..51a8682 100644 (file)
@@ -456,6 +456,9 @@ Status Lshal::fetchPassthrough(const sp<IServiceManager> &manager) {
     using namespace ::android::hidl::base::V1_0;
     auto ret = timeoutIPC(manager, &IServiceManager::debugDump, [&] (const auto &infos) {
         for (const auto &info : infos) {
+            if (info.clientPids.size() <= 0) {
+                continue;
+            }
             putEntry(PTSERVICEMANAGER_REG_CLIENT, {
                 .interfaceName =
                         std::string{info.interfaceName.c_str()} + "/" +