From b00263f96a90c9f77cf7d8d90742a0884290bf60 Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Mon, 13 Jun 2016 16:53:11 -0700 Subject: [PATCH] Skip uses-library check for preopted apps. Bug: 26880306 Change-Id: I97c75cceca30624b5f0c984a5032fdfaf632a90a --- core/dex_preopt_libart.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/dex_preopt_libart.mk b/core/dex_preopt_libart.mk index 2a7ffb7e6..9410c3ccc 100644 --- a/core/dex_preopt_libart.mk +++ b/core/dex_preopt_libart.mk @@ -11,6 +11,10 @@ else DEX2OAT := $(HOST_OUT_EXECUTABLES)/dex2oatd$(HOST_EXECUTABLE_SUFFIX) endif +# Pass special classpath to skip uses library check. +# Should modify build system to pass used libraries properly later. +DEX2OAT_CLASSPATH := "&" + DEX2OAT_DEPENDENCY += $(DEX2OAT) # Use the first preloaded-classes file in PRODUCT_COPY_FILES. @@ -94,6 +98,7 @@ $(hide) rm -f $(2) $(hide) mkdir -p $(dir $(2)) $(hide) ANDROID_LOG_TAGS="*:e" $(DEX2OAT) \ --runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \ + --runtime-arg -classpath --runtime-arg $(DEX2OAT_CLASSPATH) \ --boot-image=$(PRIVATE_DEX_PREOPT_IMAGE_LOCATION) \ --dex-file=$(1) \ --dex-location=$(PRIVATE_DEX_LOCATION) \