From 9f581237e3f26fc6c71c018d3903b6257b4494f7 Mon Sep 17 00:00:00 2001 From: Tianjie Date: Mon, 27 Jul 2020 18:22:45 -0700 Subject: Add ro.product.ab_ota_partitions as a build prop The prop list the name of the a/b partitions that are supposed to update via an OTA. The list varies by product, and update engine needs to know these partitions to install the GKI update correctly. Test: build and check the property Change-Id: I5258955a5c3303bdc61b97fc92f5dfa1905f7c37 --- core/main.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/main.mk b/core/main.mk index 90c4cc4081..009e90d371 100644 --- a/core/main.mk +++ b/core/main.mk @@ -320,6 +320,10 @@ endif ADDITIONAL_PRODUCT_PROPERTIES += ro.build.characteristics=$(TARGET_AAPT_CHARACTERISTICS) +ifeq ($(AB_OTA_UPDATER),true) +ADDITIONAL_PRODUCT_PROPERTIES += ro.product.ab_ota_partitions=$(subst $(space),$(comma),$(AB_OTA_PARTITIONS)) +endif + # ----------------------------------------------------------------- ### ### In this section we set up the things that are different -- cgit v1.2.3