From 62fb8a1f5591d1b664ba6ee3bad5bb8c83c5eaef Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 8 Oct 2014 14:48:07 -0700 Subject: [PATCH] Check $(built_dex) to determine if we can run dex-preopt. Change-Id: Icfed37f50671ec041f2cfdcec9175cb094b572fc --- core/dex_preopt_odex_install.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index 28282ec78..741f9a3ac 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -25,7 +25,7 @@ endif ifdef LOCAL_UNINSTALLABLE_MODULE LOCAL_DEX_PREOPT := endif -ifeq (,$(strip $(all_java_sources)$(full_static_java_libs)$(my_prebuilt_src_file))) # contains no java code +ifeq (,$(strip $(built_dex)$(my_prebuilt_src_file))) # contains no java code LOCAL_DEX_PREOPT := endif # if module oat file requested in data, disable LOCAL_DEX_PREOPT, will default location to dalvik-cache