summaryrefslogtreecommitdiff
path: root/transport
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2020-07-17 15:01:19 +0900
committerJooyung Han <jooyung@google.com>2020-07-23 00:54:53 +0000
commitc12f9b9aa5a87e996f5e69f3988f417aab8dd01b (patch)
tree67d5440b98b01c67f07cfebe5b0c56f2dd2f6de6 /transport
parente282ce52a78891c1101c63ca118033671c20d999 (diff)
downloadlibhidl-c12f9b9aa5a87e996f5e69f3988f417aab8dd01b.tar.gz
This reverts commit 91b5e43e2274dadeb22c393b56f01f022e5c888d. -- copied from original -- libhidlbase supports API level(29) libhidlbase searches impl libs of passthrough HALs from various paths including VNDK-sp /hw. VNDK-sp path differs in R and Q. Bug: 158564319 Test: install R-built media apex on Q device atest android.media.cts.MediaDrmClearkeyTest => see logcat if there's an error to load libmpeg2extractor Merged-In: I131d903c43aaaf1ba934933ac89aba5e09a34269 Change-Id: I131d903c43aaaf1ba934933ac89aba5e09a34269 (cherry picked from commit 219106c3719284c8621825a12add22c02e7cd2db)
Diffstat (limited to 'transport')
-rw-r--r--transport/ServiceManagement.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/transport/ServiceManagement.cpp b/transport/ServiceManagement.cpp
index d7faa6d..8f59f38 100644
--- a/transport/ServiceManagement.cpp
+++ b/transport/ServiceManagement.cpp
@@ -363,8 +363,7 @@ struct PassthroughServiceManager : IServiceManager1_1 {
dlerror(); // clear
- static std::string halLibPathVndkSp = android::base::StringPrintf(
- HAL_LIBRARY_PATH_VNDK_SP_FOR_VERSION, details::getVndkVersionStr().c_str());
+ static std::string halLibPathVndkSp = details::getVndkSpHwPath();
std::vector<std::string> paths = {
HAL_LIBRARY_PATH_ODM, HAL_LIBRARY_PATH_VENDOR, halLibPathVndkSp,
#ifndef __ANDROID_VNDK__
@@ -485,10 +484,8 @@ struct PassthroughServiceManager : IServiceManager1_1 {
Return<void> debugDump(debugDump_cb _hidl_cb) override {
using Arch = ::android::hidl::base::V1_0::DebugInfo::Architecture;
using std::literals::string_literals::operator""s;
- static std::string halLibPathVndkSp64 = android::base::StringPrintf(
- HAL_LIBRARY_PATH_VNDK_SP_64BIT_FOR_VERSION, details::getVndkVersionStr().c_str());
- static std::string halLibPathVndkSp32 = android::base::StringPrintf(
- HAL_LIBRARY_PATH_VNDK_SP_32BIT_FOR_VERSION, details::getVndkVersionStr().c_str());
+ static std::string halLibPathVndkSp64 = details::getVndkSpHwPath("lib64");
+ static std::string halLibPathVndkSp32 = details::getVndkSpHwPath("lib");
static std::vector<std::pair<Arch, std::vector<const char*>>> sAllPaths{
{Arch::IS_64BIT,
{