diff --git a/core/config.mk b/core/config.mk index 67ca08ea72..ad128b8feb 100644 --- a/core/config.mk +++ b/core/config.mk @@ -915,6 +915,15 @@ PLATFORM_SEPOLICY_COMPAT_VERSIONS := \ PLATFORM_SEPOLICY_VERSION \ TOT_SEPOLICY_VERSION \ +ifndef USE_LOGICAL_PARTITIONS + USE_LOGICAL_PARTITIONS := $(PRODUCT_USE_LOGICAL_PARTITIONS) +endif +.KATI_READONLY := USE_LOGICAL_PARTITIONS + +ifeq ($(USE_LOGICAL_PARTITIONS),true) + BOARD_KERNEL_CMDLINE += androidboot.lrap=1 +endif + # ############################################################### # Set up final options. # ############################################################### diff --git a/core/product.mk b/core/product.mk index 976c9398d1..95d169c800 100644 --- a/core/product.mk +++ b/core/product.mk @@ -197,6 +197,7 @@ _product_var_list := \ PRODUCT_CFI_EXCLUDE_PATHS \ PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE \ PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE \ + PRODUCT_USE_LOGICAL_PARTITIONS \ define dump-product $(info ==== $(1) ====)\ diff --git a/core/product_config.mk b/core/product_config.mk index 6449b9fd76..3a77d0b2b8 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -500,3 +500,8 @@ PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := \ # Whether the whitelist of actionable compatible properties should be disabled or not PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE := \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE)) + +# Logical and Resizable Partitions feature flag. +PRODUCT_USE_LOGICAL_PARTITIONS := \ + $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_USE_LOGICAL_PARTITIONS)) +.KATI_READONLY := PRODUCT_USE_LOGICAL_PARTITIONS