Do not compress resources.arsc in android.jar
In framework-res.apk and in applications, resources are always stored in zip files instead of compressed so that they may be accessed via mmap() instead of needing to decompress them first. This change makes sure the SDK's android.jar has the same behavior. Change-Id: Ied881c34dca86ff5b5bd2ccfa4e316ae590ca473
This commit is contained in:
@@ -42,6 +42,7 @@ $(full_target): $(OUT_DOCS)/api-stubs-timestamp $(framework_res_package)
|
|||||||
$(hide) (cd $(PRIVATE_CLASS_INTERMEDIATES_DIR) && rm -rf classes.dex META-INF)
|
$(hide) (cd $(PRIVATE_CLASS_INTERMEDIATES_DIR) && rm -rf classes.dex META-INF)
|
||||||
$(hide) mkdir -p $(dir $@)
|
$(hide) mkdir -p $(dir $@)
|
||||||
$(hide) jar -cf $@ -C $(PRIVATE_CLASS_INTERMEDIATES_DIR) .
|
$(hide) jar -cf $@ -C $(PRIVATE_CLASS_INTERMEDIATES_DIR) .
|
||||||
|
$(hide) jar -u0f $@ -C $(PRIVATE_CLASS_INTERMEDIATES_DIR) resources.arsc
|
||||||
|
|
||||||
.PHONY: android_stubs
|
.PHONY: android_stubs
|
||||||
android_stubs: $(full_target)
|
android_stubs: $(full_target)
|
||||||
|
|||||||
Reference in New Issue
Block a user