From 5aa0223c6a355f521b31060de98a32e757498dd4 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Fri, 17 Apr 2015 16:53:15 -0700 Subject: Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs If a prebuilt APK contains shared libraries and the flag LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES := true is set, then uncompress any shared libraries stored within the APK. This allows processes to load the shared library directly from the APK. Bug: 20247329 Bug: 8076853 Bug: 1162500 Change-Id: Iac4db32457d9ce31eb7256410023819b44fda0a6 --- core/prebuilt_internal.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/prebuilt_internal.mk') diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 8595bce..0a0a2ff 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -205,6 +205,9 @@ endif endif $(sign-package) endif +ifeq ($(LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES),true) + $(uncompress-shared-libs) +endif $(align-package) ############################### -- cgit v1.1