diff options
author | 2024-10-23 19:29:49 +0000 | |
---|---|---|
committer | 2025-01-03 21:37:10 +0000 | |
commit | a3867c739a80d0c8a58dcb00bcae8f98afdc78ef (patch) | |
tree | 5bf41f147391b2bc923398563857c6a4d814c892 /libs/binder/BackendUnifiedServiceManager.h | |
parent | 3c93111ce80d2d7ea3375c39d75bf7dd54f3e15b (diff) |
Add listServices/isDeclared/getDeclaredInstances for Accessors
We associate specific accessors with instance names, so we can get
more information about what is available through the existing service
manager APIs.
Test: atest binderRpcTest
Bug: 358427181
Change-Id: I337430a222b537643351bfc70178ccd1dc06d73b
Diffstat (limited to 'libs/binder/BackendUnifiedServiceManager.h')
-rw-r--r-- | libs/binder/BackendUnifiedServiceManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/BackendUnifiedServiceManager.h b/libs/binder/BackendUnifiedServiceManager.h index 6a0d06a079..2496f62503 100644 --- a/libs/binder/BackendUnifiedServiceManager.h +++ b/libs/binder/BackendUnifiedServiceManager.h @@ -167,5 +167,9 @@ private: sp<BackendUnifiedServiceManager> getBackendUnifiedServiceManager(); android::binder::Status getInjectedAccessor(const std::string& name, android::os::Service* service); +void appendInjectedAccessorServices(std::vector<std::string>* list); +// Do not call any other service manager APIs that might take the accessor +// mutex because this will be holding it! +void forEachInjectedAccessorService(const std::function<void(const std::string&)>& f); } // namespace android |