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

Commit fca81455 authored by Brian Carlstrom's avatar Brian Carlstrom
Browse files

Strip all multidex files, not just classes.dex

Bug: 10447095
Change-Id: I6053ca97cb0e28621262a385d57c0996e7c1aaab
parent 4b539d15
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -18,7 +18,11 @@ DEXPREOPT_BOOT_JAR_DIR_FULL_PATH := $(DEXPREOPT_PRODUCT_DIR_FULL_PATH)/$(DEXPREO

# $(1): the .jar or .apk to remove classes.dex
define dexpreopt-remove-classes.dex
$(hide) $(AAPT) remove $(1) classes.dex
$(hide) zip --quiet --delete $(1) classes.dex; \
dex_index=2; \
while zip --quiet --delete $(1) classes$${dex_index}.dex > /dev/null; do \
  let dex_index=dex_index+1; \
done
endef

# Special rules for building stripped boot jars that override java_library.mk rules