From 94c27c1f166bf06d28871a70aea26f40cf131511 Mon Sep 17 00:00:00 2001 From: Woomymy Date: Mon, 27 Feb 2023 19:36:08 +0100 Subject: [PATCH] X6833B: Add A/B OTA configuration Signed-off-by: Woomymy Change-Id: If5e2f40b6bf55ffa7a62cc67ff3a0b1e8de6d5b3 Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> --- device.mk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/device.mk b/device.mk index 97a630c..09fa15d 100644 --- a/device.mk +++ b/device.mk @@ -7,6 +7,35 @@ # A/B $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) +AB_OTA_UPDATER := true +AB_OTA_PARTITIONS := \ + boot \ + product \ + system \ + vbmeta \ + vbmeta_system \ + vbmeta_vendor \ + vendor \ + vendor_boot + +AB_OTA_POSTINSTALL_CONFIG += \ + RUN_POSTINSTALL_system=true \ + POSTINSTALL_PATH_system=system/bin/otapreopt_script \ + FILESYSTEM_TYPE_system=ext4 \ + POSTINSTALL_OPTIONAL_system=true + +AB_OTA_POSTINSTALL_CONFIG += \ + RUN_POSTINSTALL_vendor=true \ + POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ + FILESYSTEM_TYPE_vendor=ext4 \ + POSTINSTALL_OPTIONAL_vendor=true + +PRODUCT_PACKAGES += \ + update_engine \ + update_verifier \ + otapreopt_script \ + checkpoint_gc + # Dynamic partitions PRODUCT_USE_DYNAMIC_PARTITIONS := true