Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69b20474 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs"

parents b6874440 5aa0223c
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1944,6 +1944,16 @@ $(hide) $(ZIPALIGN) \
$(hide) mv $@.aligned $@
endef

define uncompress-shared-libs
$(hide) rm -rf $(dir $@)/tmpworkdir
$(hide) mv $@ $@.compressed
$(hide) mkdir $(dir $@)/tmpworkdir
$(hide) unzip $@.compressed 'lib/*.so' -d $(dir $@)/tmpworkdir
$(hide) ( cd $(dir $@)/tmpworkdir && zip -D -r -0 ../$(notdir $@).compressed lib )
$(hide) mv $@.compressed $@
$(hide) rm -rf $(dir $@)/tmpworkdir
endef

define install-dex-debug
$(hide) if [ -f "$(PRIVATE_INTERMEDIATES_DIR)/classes.dex" ]; then \
	    mkdir -p $(TOP)/dalvik/DEBUG-FILES; \
+3 −0
Original line number Diff line number Diff line
@@ -204,6 +204,9 @@ ifneq (nostripping,$(LOCAL_DEX_PREOPT))
endif
endif
	$(sign-package)
endif
ifeq ($(LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES),true)
	$(uncompress-shared-libs)
endif
	$(align-package)