summaryrefslogtreecommitdiff
path: root/libs/fakeservicemanager/ServiceManager.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-04-21 00:27:29 +0000
committer Steven Moreland <smoreland@google.com> 2021-04-21 01:16:09 +0000
commitedd4e07d463b2fa59e9a5312a0626e3d9b6339a3 (patch)
tree09dc7592e369d61d6485d6b201938cfd3a18d250 /libs/fakeservicemanager/ServiceManager.cpp
parent7e4fb7ca278407136a2caf31bcbead87631e79a6 (diff)
servicemanager: expose updatable-via-apex
Service manager is already reading VINTF, so processes that need this information can access this information w/o needing more permissions. Bug: 185832616 Test: two added tests + manually specifying updatable-via-apex on a service and checking the result Change-Id: Id86a72d49466048a3e2173e40526981abb6f3123
Diffstat (limited to 'libs/fakeservicemanager/ServiceManager.cpp')
-rw-r--r--libs/fakeservicemanager/ServiceManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/fakeservicemanager/ServiceManager.cpp b/libs/fakeservicemanager/ServiceManager.cpp
index 4ecbe531c2..761e45c967 100644
--- a/libs/fakeservicemanager/ServiceManager.cpp
+++ b/libs/fakeservicemanager/ServiceManager.cpp
@@ -73,4 +73,9 @@ Vector<String16> ServiceManager::getDeclaredInstances(const String16& name) {
return out;
}
+std::optional<String16> ServiceManager::updatableViaApex(const String16& name) {
+ (void)name;
+ return std::nullopt;
+}
+
} // namespace android