summaryrefslogtreecommitdiff
path: root/base/HidlSupport.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2017-03-09 02:52:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-09 02:52:13 +0000
commitc2c91e63d7ca4c7db0365a9ee69afb1d214ba22b (patch)
tree46beeb3c475473841c00052fb532e517eb0dce5d /base/HidlSupport.cpp
parenta8aefcec0b94de0f07f8df4774b9ea383736fe3d (diff)
parent77012290766c5a4ed9801c185171ba96c0c44fe4 (diff)
downloadlibhidl-c2c91e63d7ca4c7db0365a9ee69afb1d214ba22b.tar.gz
Disable getDebugInfo address leak for production builds. am: 24332ef104 am: 3dfc848cc7
am: 7701229076 Change-Id: I8a07783d18242f91e386b9bcbd54361bce6aa831
Diffstat (limited to 'base/HidlSupport.cpp')
-rw-r--r--base/HidlSupport.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp
index 6e4b103..bacb3d4 100644
--- a/base/HidlSupport.cpp
+++ b/base/HidlSupport.cpp
@@ -77,6 +77,16 @@ vintf::Transport getTransport(const std::string &interfaceName, const std::strin
vintf::VintfObject::GetDeviceHalManifest());
}
+namespace details {
+bool debuggable() {
+#ifdef LIBHIDL_TARGET_DEBUGGABLE
+ return true;
+#else
+ return false;
+#endif
+}
+} // namespace details
+
hidl_handle::hidl_handle() {
mHandle = nullptr;
mOwnsHandle = false;