platform_system_core/rootdir/etc
Jiyong Park fa4971f3c3 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
2019-04-02 02:43:23 +00:00
..
hosts Add ip6-localhost to /system/etc/hosts. 2015-01-13 14:38:21 -08:00
ld.config.legacy.txt Merge "Apply the standard system linker config to all of /data." 2019-03-28 12:37:29 +00:00
ld.config.recovery.txt Shared libs are supported in recovery mode 2018-06-10 08:32:24 +09:00
ld.config.txt Search rs namespace prior to vndk namespace 2019-04-02 02:43:23 +00:00
ld.config.vndk_lite.txt Search rs namespace prior to vndk namespace 2019-04-02 02:43:23 +00:00
OWNERS Add NDK folks to OWNERS for library configuration. 2018-03-19 10:56:07 -07:00
public.libraries.android.txt Add libbinder_ndk to public.libraries.* 2018-09-17 20:05:27 +00:00
public.libraries.iot.txt Add libbinder_ndk to public.libraries.* 2018-09-17 20:05:27 +00:00
public.libraries.wear.txt Add libbinder_ndk to public.libraries.* 2018-09-17 20:05:27 +00:00
TEST_MAPPING Replace bionic-unit-tests with CtsBionicTestCases 2019-02-15 15:20:59 +09:00