Use WITH_DEXPREOPT_BOOT_IMG_ONLY

Don't dex preopt apps to avoid I/O congestion due to paging larger sized
pre-compiled .odex files as opposed to background generated
interpret-only odex files.

BUG: 29759285
BUG: 28904641
BUG: 29389829

Change-Id: Ia67117cde3521fc4ec4e79685d0e0f4b51b6d6df
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
diff --git a/BoardConfig.mk b/BoardConfig.mk
index eb8fb0e..16d6379 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -105,14 +105,10 @@
 TARGET_SUPPORTS_64_BIT_APPS := true
 endif
 
-# Enable dex-preoptimization to speed up first boot sequence
-ifeq ($(HOST_OS),linux)
-  ifeq ($(TARGET_BUILD_VARIANT),user)
-    ifeq ($(WITH_DEXPREOPT),)
-      WITH_DEXPREOPT := true
-    endif
-  endif
-endif
+# Don't dex preopt apps to avoid I/O congestion due to paging larger sized
+# pre-compiled .odex files as opposed to background generated interpret-only
+# odex files.
+WITH_DEXPREOPT_BOOT_IMG_ONLY := true
 
 TARGET_RELEASETOOLS_EXTENSIONS := device/htc/flounder