libhidltransport is using libvndksupport
android_get_exported_namespace is a platform-only API which is not
visible to libs with vendor_available:true. Instead, an alternative API
android_load_sphal_library from the libvndksupport.so is used.
Bug: 37323945
Test: sailfish builds and boots
Test: BOARD_VNDK_VERSION=current m libhidltransport.vendor successful
Change-Id: I3cb2b24d77e38dc616f237ee7ff2592a3f84f694
Merged-In: I3cb2b24d77e38dc616f237ee7ff2592a3f84f694
diff --git a/transport/Android.bp b/transport/Android.bp
index 62aee52..421c7a4 100644
--- a/transport/Android.bp
+++ b/transport/Android.bp
@@ -42,6 +42,7 @@
"libhidlbase",
"libhwbinder",
"libcutils",
+ "libvndksupport",
],
export_shared_lib_headers: [
"libbase",