summaryrefslogtreecommitdiff
path: root/libs/fakeservicemanager/ServiceManager.cpp
diff options
context:
space:
mode:
author Devin Moore <devinmoore@google.com> 2021-09-09 22:36:33 +0000
committer Devin Moore <devinmoore@google.com> 2021-09-21 21:34:52 +0000
commit5e4c2f1f0958d29b549f08e2c8e7ee7f5b493384 (patch)
tree8c993bed71975a43a342291febd77d5e687245e7 /libs/fakeservicemanager/ServiceManager.cpp
parent20f5a270658bcdff7a4cc4f9f0059c572ca123eb (diff)
Add getConnectionInfo API to service manager
This gets connection info from the vintf manifest for AIDL hals that report it. The hals will have new "ip" and "port" fields in their entries if they are serving the interface from a remote device at that ip address/port combo. Test: tested the IServiceManager API with an internal POC using a remote HAL Test: atest binderStabilityTest Bug: 198207801 Change-Id: I334bebe62afb40e9710b57257f95e37a9c2b8226
Diffstat (limited to 'libs/fakeservicemanager/ServiceManager.cpp')
-rw-r--r--libs/fakeservicemanager/ServiceManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/fakeservicemanager/ServiceManager.cpp b/libs/fakeservicemanager/ServiceManager.cpp
index 761e45c967..9f0754b891 100644
--- a/libs/fakeservicemanager/ServiceManager.cpp
+++ b/libs/fakeservicemanager/ServiceManager.cpp
@@ -78,4 +78,10 @@ std::optional<String16> ServiceManager::updatableViaApex(const String16& name) {
return std::nullopt;
}
+std::optional<IServiceManager::ConnectionInfo> ServiceManager::getConnectionInfo(
+ const String16& name) {
+ (void)name;
+ return std::nullopt;
+}
+
} // namespace android