Create an empty zip file if no dict file found.

Instead of touch an empty file.

Change-Id: Ifa8bb04cea6fc0fc3165337f6815d5976bac677d
(cherry picked from commit c62c92c3d737304cbd38e99e92f29e193b15b7c8)
diff --git a/core/Makefile b/core/Makefile
index 6c57a49..299fbf8 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1396,7 +1396,7 @@
 # Only for apps_only build.
 #
 ifdef TARGET_BUILD_APPS
-PROGUARD_DICT_ZIP := $(PRODUCT_OUT)/proguard-dict-$(FILE_NAME_TAG).zip
+PROGUARD_DICT_ZIP := $(PRODUCT_OUT)/$(TARGET_PRODUCT)-proguard-dict-$(FILE_NAME_TAG).zip
 # the dependency will be set up later in build/core/main.mk.
 $(PROGUARD_DICT_ZIP) :
 	@echo "Packaging Proguard obfuscation dictionary files."
@@ -1404,7 +1404,10 @@
 		if [ -n "$$dict_files" ]; then \
 		  zip -q $@ $$dict_files; \
 		else \
-		  touch $@; \
+		  touch $(dir $@)/dummy; \
+		  (cd $(dir $@) && zip -q $(notdir $@) dummy); \
+		  zip -qd $@ dummy; \
+		  rm $(dir $@)/dummy; \
 		fi
 
 endif # TARGET_BUILD_APPS