OSDN Git Service

Add a link from runtime ns to the neuralnetworks ns
authorJiyong Park <jiyong@google.com>
Wed, 2 Oct 2019 07:01:35 +0000 (16:01 +0900)
committerJiyong Park <jiyong@google.com>
Wed, 2 Oct 2019 07:01:35 +0000 (16:01 +0900)
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

index 493c288..3ec93ab 100644 (file)
@@ -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