diff --git a/core/Makefile b/core/Makefile index 40e927488..107cab989 100644 --- a/core/Makefile +++ b/core/Makefile @@ -4534,6 +4534,8 @@ define dump-dynamic-partitions-info echo "super_partition_error_limit=$(BOARD_SUPER_PARTITION_ERROR_LIMIT)" >> $(1)) $(if $(filter true,$(PRODUCT_VIRTUAL_AB_OTA)), \ echo "virtual_ab=true" >> $(1)) + $(if $(filter true,$(PRODUCT_VIRTUAL_AB_COMPRESSION)), \ + echo "virtual_ab_compression=true" >> $(1)) $(if $(filter true,$(PRODUCT_VIRTUAL_AB_OTA_RETROFIT)), \ echo "virtual_ab_retrofit=true" >> $(1)) endef diff --git a/core/product.mk b/core/product.mk index f5e81e7d4..2ab4b0613 100644 --- a/core/product.mk +++ b/core/product.mk @@ -389,6 +389,9 @@ _product_single_value_vars += PRODUCT_CHECK_ELF_FILES # If set, device uses virtual A/B. _product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA +# If set, device uses virtual A/B Compression. +_product_single_value_vars += PRODUCT_VIRTUAL_AB_COMPRESSION + # If set, device retrofits virtual A/B. _product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA_RETROFIT diff --git a/target/product/virtual_ab_ota/compression.mk b/target/product/virtual_ab_ota/compression.mk index b9f3fc8ab..830104708 100644 --- a/target/product/virtual_ab_ota/compression.mk +++ b/target/product/virtual_ab_ota/compression.mk @@ -17,7 +17,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.enabled=true - +PRODUCT_VIRTUAL_AB_COMPRESSION := true PRODUCT_PACKAGES += \ snapuserd.vendor_ramdisk \ snapuserd \ diff --git a/target/product/virtual_ab_ota/compression_retrofit.mk b/target/product/virtual_ab_ota/compression_retrofit.mk index 5da8b5426..6c29cba6e 100644 --- a/target/product/virtual_ab_ota/compression_retrofit.mk +++ b/target/product/virtual_ab_ota/compression_retrofit.mk @@ -15,6 +15,7 @@ # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.enabled=true +PRODUCT_VIRTUAL_AB_COMPRESSION := true # For devices that are not GKI-capable (eg do not have vendor_boot), # snapuserd.ramdisk is included rather than snapuserd.vendor_ramdisk.