diff --git a/core/board_config.mk b/core/board_config.mk index 1b08f9a0b4..53dbb92c19 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -766,8 +766,8 @@ ifeq ($(PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY),true) endif ########################################### -# APEXes are by default flattened, i.e. non-updatable. -# It can be unflattened (and updatable) by inheriting from +# APEXes are by default flattened, i.e. non-updatable, if not building unbundled +# apps. It can be unflattened (and updatable) by inheriting from # updatable_apex.mk # # APEX flattening can also be forcibly enabled (resp. disabled) by @@ -776,7 +776,7 @@ endif ifdef OVERRIDE_TARGET_FLATTEN_APEX TARGET_FLATTEN_APEX := $(OVERRIDE_TARGET_FLATTEN_APEX) else - ifeq (,$(TARGET_FLATTEN_APEX)) + ifeq (,$(TARGET_BUILD_APPS)$(TARGET_FLATTEN_APEX)) TARGET_FLATTEN_APEX := true endif endif