diff options
author | 2022-10-25 17:02:45 +0900 | |
---|---|---|
committer | 2022-10-26 09:42:59 +0900 | |
commit | 76944fee1a642cdfbabaa72ef7d29e53af1d50db (patch) | |
tree | 3b0d45fa894dc8b3d9f7d2677e6a74d99323ba25 /libs/fakeservicemanager/ServiceManager.cpp | |
parent | 4e84148059c54ccbf64740c6841fdae46ce64b30 (diff) |
servicemanager: getUpdatableNames()
This new method is a reverse of updatableViaApex(). It returns the list
of declared instances which can be updated via the passed APEX.
Updatable vendor apexes are supposed to be used only to update HAL
services. APEXd can use this method to see if the target APEX is
actually to updating HALs.
It's not exposed to NDK/Java yet because there's no clients.
Bug: 254201177
Test: TBD
Change-Id: I7b5aa7d00a3ddeb13855816006a9561dfa601529
Diffstat (limited to 'libs/fakeservicemanager/ServiceManager.cpp')
-rw-r--r-- | libs/fakeservicemanager/ServiceManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/fakeservicemanager/ServiceManager.cpp b/libs/fakeservicemanager/ServiceManager.cpp index 6c6d7f3641..480ec79725 100644 --- a/libs/fakeservicemanager/ServiceManager.cpp +++ b/libs/fakeservicemanager/ServiceManager.cpp @@ -78,6 +78,11 @@ std::optional<String16> ServiceManager::updatableViaApex(const String16& name) { return std::nullopt; } +Vector<String16> ServiceManager::getUpdatableNames(const String16& apexName) { + (void)apexName; + return {}; +} + std::optional<IServiceManager::ConnectionInfo> ServiceManager::getConnectionInfo( const String16& name) { (void)name; |