summaryrefslogtreecommitdiffstats
path: root/core/prebuilt_internal.mk
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-04-17 16:53:15 -0700
committerNick Kralevich <nnk@google.com>2015-04-17 16:53:15 -0700
commit5aa0223c6a355f521b31060de98a32e757498dd4 (patch)
tree8ba6687b9bb2b953f68dbfbfdb2168088b2a13a0 /core/prebuilt_internal.mk
parentb68744405129867b6f48e37fdf5f91102f2aba3f (diff)
downloadbuild-5aa0223c6a355f521b31060de98a32e757498dd4.zip
build-5aa0223c6a355f521b31060de98a32e757498dd4.tar.gz
build-5aa0223c6a355f521b31060de98a32e757498dd4.tar.bz2
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
Diffstat (limited to 'core/prebuilt_internal.mk')
-rw-r--r--core/prebuilt_internal.mk3
1 files changed, 3 insertions, 0 deletions
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)
###############################