OSDN Git Service

Cut the static deps from libandroid_runtime to libnativeloader and libnativebridge
authorJiyong Park <jiyong@google.com>
Mon, 28 Jan 2019 15:39:04 +0000 (00:39 +0900)
committerJiyong Park <jiyong@google.com>
Tue, 12 Feb 2019 10:35:45 +0000 (19:35 +0900)
The dependencies are replaced with *_lazy libraries which dynamically
load and links to the real libraries at runtime using dlopen and dlsym.

This allows libandroid_runtime to be used by early processes that are executed
before the activation of the runtime APEX where libnativeloader and
libnativebridge are provided.

Bug: 123403798
Test: m
Test: device boots to the UI
Change-Id: I89a11bd0e9bef77db5da6d80840728b9a6f2a528

core/jni/Android.bp

index c81a77d..08a5789 100644 (file)
@@ -278,8 +278,8 @@ cc_library_shared {
         "libsoundtrigger",
         "libminikin",
         "libprocessgroup",
-        "libnativebridge",
-        "libnativeloader",
+        "libnativebridge_lazy",
+        "libnativeloader_lazy",
         "libmemunreachable",
         "libhidlbase",
         "libhidltransport",