From 10846f99fbaefca293f6f9c6aa8e043437169f7c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 14 Dec 2018 11:45:47 -0800 Subject: [PATCH] Revert "Correctly create directories before unzipping dexpreopt zip" This reverts commit 2bb1f518fdf8b1483ecb876e9acb9431f93eb8e6. Test: none Bug: 119412419 --- CleanSpec.mk | 3 --- core/dex_preopt_odex_install.mk | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 45ca7c18f..91e6e6605 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -525,9 +525,6 @@ $(call add-clean-step, rm -f $(HOST_OUT)/bin/aidegen) # Remove perfprofd $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/perfprofd) -# Remove incorrectly created directories in the source tree -$(call add-clean-step, find system/app system/priv-app system/framework system_other -depth -type d -print0 | xargs -0 rmdir) - # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index d13e3153c..097f84a2b 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -253,7 +253,7 @@ ifdef LOCAL_DEX_PREOPT LOCAL_POST_INSTALL_CMD += && endif - LOCAL_POST_INSTALL_CMD += for i in $$(zipinfo -1 $(my_dexpreopt_zip)); do mkdir -p $(PRODUCT_OUT)/$$(dirname $$i); done && unzip -qo -d $(PRODUCT_OUT) $(my_dexpreopt_zip) + LOCAL_POST_INSTALL_CMD += for i in $$(zipinfo -1 $(my_dexpreopt_zip)); do mkdir -p $$(dirname $$i); done && unzip -qo -d $(PRODUCT_OUT) $(my_dexpreopt_zip) $(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD) $(LOCAL_INSTALLED_MODULE): $(my_dexpreopt_zip)