Merge "Pack META/ab_partitions.txt when using the A/B OTA updater."
diff --git a/core/Makefile b/core/Makefile
index e86831b..7f7aca4 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1568,6 +1568,9 @@
ifeq ($(AB_OTA_UPDATER),true)
@# When using the A/B updater, include the updater config files in the zip.
$(hide) $(ACP) $(TOPDIR)system/update_engine/update_engine.conf $(zip_root)/META/update_engine_config.txt
+ $(hide) for part in $(UPDATE_AB_PARTITIONS); do \
+ echo "$${part}" >> $(zip_root)/META/ab_partitions.txt; \
+ done
endif
ifeq ($(BREAKPAD_GENERATE_SYMBOLS),true)
@# If breakpad symbols have been generated, add them to the zip.