From 13e5965306212a9051772ff1d5bc3a88e5fb519a Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Wed, 23 Jul 2014 15:27:21 -0700 Subject: Store native libs aligned to PAGE_SIZE - Add a new flag to zipalign (-p) that page aligns shared libraries (zip entries ending with ".so") in the archive. - Add a new build variable LOCAL_PAGE_ALIGN_SHARED_LIBRARIES to turn on this behaviour in zipalign. - Add a new LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS to control zip behaviour. Bug: 8076853 Bug: 19330157 Co-Authored-By: Simon Baldwin Co-Authored-By: Dimitry Ivanov Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1 --- core/prebuilt_internal.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'core/prebuilt_internal.mk') diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 2e0d2ef..7359513 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -170,6 +170,7 @@ endif include $(BUILD_SYSTEM)/dex_preopt_odex_install.mk ####################################### # Sign and align non-presigned .apks. +$(built_module) : PRIVATE_PAGE_ALIGN_JNI_SHARED_LIBRARIES := $(LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES) $(built_module) : $(my_prebuilt_src_file) | $(ACP) $(ZIPALIGN) $(SIGNAPK_JAR) $(transform-prebuilt-to-target) ifdef extracted_jni_libs -- cgit v1.1