summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Sharma <hemantbeast@gmail.com>2018-01-14 20:54:43 +0530
committerHemant Sharma <hemantbeast@gmail.com>2018-01-14 15:58:39 +0000
commit2378545cea2f83f507cbcc4ca582fda4d13809ba (patch)
tree17ab1d82fbeadb677b21a3cb158bc35b03bc9353
parent4ebecf5026301cbb8becaf6c65f08e0aca503bfd (diff)
armani: Enable boot and system server dex-preopt
As stated in https://android.googlesource.com/platform/build/+/418258c this is required in O-MR1 since sepolicy now prevents system server from loading anything from /data making our system extremely slow and janky. Change-Id: I215ec7ebe95981ef0b953fe938e12b83675795ab
-rw-r--r--BoardConfig.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 3557069..45b971d 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -53,6 +53,15 @@ BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_CHARGER_DISABLE_INIT_BLANK := true
WITH_LINEAGE_CHARGER := false
+# Dexpreopt
+ifeq ($(HOST_OS),linux)
+ ifneq ($(TARGET_BUILD_VARIANT),eng)
+ ifeq ($(WITH_DEXPREOPT),)
+ WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := true
+ endif
+ endif
+endif
+
# Encryption
TARGET_HW_DISK_ENCRYPTION := true
TARGET_LEGACY_HW_DISK_ENCRYPTION := true