diff --git a/BoardConfig.mk b/BoardConfig.mk index 0d12c3ae..c3bc0c3d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -67,6 +67,18 @@ QCOM_BOARD_PLATFORMS += msm8998 BOARD_HAVE_BLUETOOTH_QCOM := true BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/wahoo/bluetooth +# Enable dex pre-opt to speed up initial boot +ifeq ($(HOST_OS),linux) + ifeq ($(WITH_DEXPREOPT),) + WITH_DEXPREOPT := true + WITH_DEXPREOPT_PIC := true + ifneq ($(TARGET_BUILD_VARIANT),user) + # Retain classes.dex in APK's for non-user builds + DEX_PREOPT_DEFAULT := nostripping + endif + endif +endif + # Camera TARGET_USES_AOSP := true BOARD_QTI_CAMERA_32BIT_ONLY := true