From e76c0d281660f04aa0f3b8778bea351f87dc81fc Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Wed, 9 Oct 2019 16:40:15 +0900 Subject: [PATCH] Add a link from runtime ns to the neuralnetworks ns libneuralnetworks.so could be preloaded. In that case, it should be accessible from libnativeloader which runs in the art namespace. Bug: 141847343 Bug: 142089311 Test: m, cheets2 boots Change-Id: I8710b624dff131f5cb797d53915f6597e3017c34 --- rootdir/etc/ld.config.legacy.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/ld.config.legacy.txt b/rootdir/etc/ld.config.legacy.txt index b7b0b2a4c..a99756a5c 100644 --- a/rootdir/etc/ld.config.legacy.txt +++ b/rootdir/etc/ld.config.legacy.txt @@ -87,12 +87,13 @@ namespace.art.visible = true namespace.art.search.paths = /apex/com.android.art/${LIB} namespace.art.asan.search.paths = /apex/com.android.art/${LIB} -namespace.art.links = default +namespace.art.links = default,neuralnetworks # Need allow_all_shared_libs because libart.so can dlopen oat files in # /system/framework and /data. # TODO(b/130340935): Use a dynamically created linker namespace similar to # classloader-namespace for oat files, and tighten this up. namespace.art.link.default.allow_all_shared_libs = true +namespace.art.link.neuralnetworks.shared_libs = libneuralnetworks.so ############################################################################### # "media" APEX namespace