Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbe26900 authored by Ethan Chen's avatar Ethan Chen Committed by Rashed Abdel-Tawab
Browse files

dexopt: Only dexopt boot and system server for non-user builds

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: I49a97a75ed050f1f44e7c4c19332f6c7b76dd5db
parent adb17dc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ ifeq ($(HOST_OS),linux)
  WITH_DEXPREOPT ?= true
# For an eng build only pre-opt the boot image and system server. This gives reasonable performance
# and still allows a simple workflow: building in frameworks/base and syncing.
  ifeq (eng,$(TARGET_BUILD_VARIANT))
  ifneq (user,$(TARGET_BUILD_VARIANT))
    WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
  endif
# Add mini-debug-info to the boot classpath unless explicitly asked not to.