OSDN Git Service

use aapt to build jar files instead of the system zip
authorDoug Zongker <dougz@android.com>
Fri, 9 Oct 2009 19:11:30 +0000 (12:11 -0700)
committerDoug Zongker <dougz@android.com>
Fri, 9 Oct 2009 19:14:03 +0000 (12:14 -0700)
By using 'aapt add' instead of whatever 'zip' utility happens to be
installed on the machine, we get files that are imgdiff-friendly,
which makes for smaller incremental OTAs.

core/definitions.mk

index fe61328..06b6201 100644 (file)
@@ -1334,11 +1334,9 @@ $(hide) (cd $(dir $@) && zip -r $(notdir $@) lib)
 $(hide) rm -rf $(dir $@)lib
 endef
 
-#TODO: use aapt instead of zip, once it supports junking the path
-#      (so adding "xxx/yyy/classes.dex" appears as "classes.dex")
 #TODO: update the manifest to point to the dex file
 define add-dex-to-package
-$(hide) zip -qj $@ $(PRIVATE_DEX_FILE)
+$(hide) $(AAPT) add -k $@ $(PRIVATE_DEX_FILE)
 endef
 
 define add-java-resources-to-package