summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-04-02 09:58:00 +0900
committerJiyong Park <jiyong@google.com>2019-04-02 02:43:23 +0000
commitfa4971f3c366e4c29857228ce14208fbd3ddf47b (patch)
treef6794d631bcb151fbd20348ccd4d78a44a709af8 /libsparse/sparse.cpp
parentdc738093fe3b92198721af4578d8e22bd07f372c (diff)
Search rs namespace prior to vndk namespace
With the recent change that removed get_exported_namespace out of libdl, the RenderScript SP-HAL stopped using android_dlopen_ext which it used to load libRS_internal.so in the "rs" namespace. Instead, it now falls back to the ordinary dlopen() call. The dlopen() call tries to load the lib in the current namespace (which is sphal) and then falls back to the linked namespaces: default, vndk, rs. The problem is that rs is listed as the last namespace and therefore the linker tries the namespace only when it failed to load the library in other namespaces: default and vndk. libRS_internal.so is accessible to both vndk and rs namespaces. So, the dlopen() call always goes into the vndk namespace and there is no chance for the lib to be loaded in the rs namespace. To fix the problem, the rs namespace is placed before vndk so that the namespace is tried first. Bug: 129550847 Test: runtest -x cts/tests/camera/src/android/hardware/ Change-Id: Idafc32f8a309dd12495768931d7ea17a2f791c50
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions