summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2021-02-24 03:01:23 +0000
committerSteven Moreland <smoreland@google.com>2021-02-24 20:57:13 +0000
commit8b9e383583c6954151e707167ca1eb4dff6ffdf6 (patch)
tree7f906d7b6131662fee12de5ac4f6f3accec778f2
parentedd49128bc6028792314ad12779678310967e343 (diff)
downloadlibhidl-8b9e383583c6954151e707167ca1eb4dff6ffdf6.tar.gz
libhidlbase: PID is always sharable.
This is useful for debugging, at parity with AIDL, and the information is already exposed via hwservicemanager. The client of audio HAL (audio server) needs to know the PID of it in order to adjust the priority of HAL threads (b/181148259). Bug: 180991044 Test: N/A Change-Id: I50803e60bb1d8ba8892e40be762162ef9c5ff7c1
-rw-r--r--transport/HidlTransportSupport.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/transport/HidlTransportSupport.cpp b/transport/HidlTransportSupport.cpp
index e645cd0..d0ac243 100644
--- a/transport/HidlTransportSupport.cpp
+++ b/transport/HidlTransportSupport.cpp
@@ -128,12 +128,7 @@ bool interfacesEqual(const sp<IBase>& left, const sp<IBase>& right) {
namespace details {
int32_t getPidIfSharable() {
-#if LIBHIDL_TARGET_DEBUGGABLE
return getpid();
-#else
- using android::hidl::manager::V1_0::IServiceManager;
- return static_cast<int32_t>(IServiceManager::PidConstant::NO_PID);
-#endif
}
} // namespace details