From 03ab249d1b78261230920bedbd722190d0078033 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 2 Oct 2019 16:01:35 +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 runtime namespace. Bug: 141847343 Test: m, device boots Change-Id: Ie1e17a433fb64cc31d1bbc7fa8945fa36c82aea8 --- contents/namespace/runtime.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contents/namespace/runtime.cc b/contents/namespace/runtime.cc index 493c288..3ec93ab 100644 --- a/contents/namespace/runtime.cc +++ b/contents/namespace/runtime.cc @@ -31,6 +31,8 @@ Namespace BuildRuntimeNamespace([[maybe_unused]] const Context& ctx) { // library when it exists. ns.CreateLink(ctx.IsVendorSection() ? "system" : "default", true); + ns.CreateLink("neuralnetworks").AddSharedLib("libneuralnetworks.so"); + return ns; } } // namespace contents -- 2.11.0