Go to file
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
adb adbd: wait for FUNCTIONFS_BIND for up to a second, then retry. 2019-03-27 18:04:45 +00:00
base Disallow operator!() on unique_fd 2019-03-28 15:56:07 +09:00
bootstat bootstat: add 4 reboot reasons to known set 2019-03-20 16:53:29 +00:00
cpio Switch from dist-for-goals to dist in Android.bp 2018-11-19 23:06:12 -08:00
debuggerd Add BuildId to frame information. 2019-03-26 08:04:40 -07:00
demangle Build adbd for recovery 2018-05-24 14:11:11 +09:00
deprecated-adf adf: rename. 2019-02-14 16:30:24 -08:00
diagnose_usb Build adbd for recovery 2018-05-24 14:11:11 +09:00
fastboot fastboot: Avoid extra std::string copies 2019-03-26 12:04:05 -07:00
fs_mgr Add the basic config to run through atest 2019-03-28 10:21:02 -07:00
gatekeeperd Use distinct GateKeeper userids when running a GSI. 2019-02-28 08:56:30 -08:00
healthd charger: fix show 0% symptom when start to draw UI 2019-03-29 18:33:00 +08:00
include Move android_filesystem_config.h => fs_config.h 2017-08-02 16:31:19 -07:00
init Merge "Disallow operator!() on unique_fd" 2019-03-29 03:52:46 +00:00
janitors Add the two best build system janitors. 2019-03-25 10:25:13 -07:00
libappfuse use epoll_create1(EPOLL_CLOEXEC) 2018-12-17 09:32:23 -08:00
libasyncio Revert "Mark libs as double_loadable" 2019-03-11 14:10:34 +00:00
libbacktrace [libbacktrace] Modernize code to use override keyword 2019-03-25 02:22:42 -07:00
libbinderwrapper Make libbinderwrapper available in /vendor partition 2018-04-06 08:41:21 +09:00
libcrypto_utils Convert more modules to Android.bp 2018-10-31 21:53:37 -07:00
libcutils Merge "libutils/libcutils: make host more like device" 2019-03-29 23:05:20 +00:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Merge "Build both static and shared lib." 2018-09-25 22:29:31 +00:00
libion libion: cleanup logging 2018-03-07 10:56:06 -08:00
libkeyutils Initialize fs-verity keys in shell script 2019-03-22 09:18:00 -07:00
liblog liblog: don't return 0xFFFFFFFF as an invalid log id. 2019-03-25 16:41:39 -07:00
libmeminfo libmeminfo: librank optimization using maps instead of vectors 2019-03-01 16:17:20 -08:00
libmemtrack Revert "Mark libs as double_loadable" 2019-03-11 14:10:34 +00:00
libmemunreachable Catch SIGBUS in HeapWalker 2019-03-20 16:06:52 -07:00
libmetricslogger DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master 2018-12-11 14:46:12 -08:00
libnativebridge Update OWNERS for libnativebridge 2019-02-13 19:20:59 +09:00
libnativeloader Do not fail when there is no vndk namespace 2019-03-25 13:59:40 +09:00
libnetutils Refactor OWNERS files for Android Core Networking 2019-02-12 13:25:13 +08:00
libpackagelistparser Add versionCode parser for package list. 2019-03-19 17:04:46 +00:00
libpixelflinger Mark gglMulx and gglMulAddx as always_inline 2019-02-14 11:59:48 -08:00
libprocessgroup libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
libprocinfo Merge "Revert "Mark libs as double_loadable"" 2019-03-12 22:11:27 +00:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Convert Android.mk file to Android.bp 2019-01-24 21:16:39 -08:00
libstats Merge "Remove liblog/uio.c and <log/uio.h>" 2019-01-17 17:19:52 +00:00
libsuspend Remove libsuspend from VNDK. 2018-08-14 13:39:55 -07:00
libsync Merge libsync_recovery rules into libsync. 2018-08-07 11:00:50 -07:00
libsystem Freshen libsystem/OWNERS 2019-02-07 10:19:01 -08:00
libsysutils Enlarge cmd buffer size of FrameworkListener 2019-03-21 23:09:16 +08:00
libunwindstack Remove sequential search from DwarfEhFrameWithHdr. 2019-03-29 14:08:37 -07:00
libusbhost Revert "Mark libs as double_loadable" 2019-03-11 14:10:34 +00:00
libutils Merge "libutils/libcutils: make host more like device" 2019-03-29 23:05:20 +00:00
libvndksupport Special case init for android_is_in_vendor_process. 2019-03-11 11:18:06 -07:00
libziparchive zip_writer.cc: update powerof2 and use it unconditionally 2019-03-27 10:24:44 -07:00
llkd llkd: do not call sync() 2019-01-10 12:52:35 -08:00
lmkd lmkd: set PSI_POLL_PERIOD to 10ms 2019-03-27 02:10:10 +00:00
logcat Merge "Logtags for com.android.server.policy" 2019-03-27 14:41:12 +00:00
logd Actually add right instant app boilerplate. 2019-01-29 17:12:35 -08:00
logwrapper Build adbd for recovery 2018-05-24 14:11:11 +09:00
mkbootimg mkbootimg: print addresses and offsets in hex 2019-03-07 05:06:09 +00:00
property_service Add libc_headers to header_libs for libpropertyinfoparser 2019-01-17 21:18:01 +08:00
qemu_pipe Build adbd for recovery 2018-05-24 14:11:11 +09:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir Search rs namespace prior to vndk namespace 2019-04-02 02:43:23 +00:00
run-as run-as: improve diagnostics on failure. 2019-03-13 11:16:03 -07:00
sdcard Allow callers to pass a flag to not link obb dirs of multiple users. 2019-03-05 14:41:54 -08:00
shell_and_utilities install mini-keyctl to /system/bin 2019-01-31 13:48:04 -08:00
storaged Remove liblog's rate limiting 2019-01-16 10:37:14 -08:00
toolbox BSD grep: sync with upstream. 2019-03-28 14:29:00 -07:00
trusty Add support for RPMB over VirtIO Serial 2019-03-05 17:25:57 -08:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
watchdogd Move watchdogd out of init 2018-08-02 12:25:58 -07:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Move clang-formats to build. 2019-01-18 14:26:33 -08:00
.clang-format-4 Move clang-formats to build. 2019-01-18 14:26:33 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.bp Export android_filesystem_config.h as a filegroup 2017-01-17 18:20:28 -08:00
CleanSpec.mk healthd: charger uses shared libraries. 2019-03-06 14:36:59 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00
OWNERS Move per-file OWNERS directives to their directories. 2018-06-06 11:49:40 +09:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00
TEST_MAPPING Add presubmit test for vendor overlay 2019-02-16 08:24:35 +09:00