Android OTA [Seamless] Update Overview [Part2] - Detailed Analysis of OTA[A/B] Update
Detailed Analysis In the previous tutorial we saw an overviw of the OTA [A/B Based] Update mechanism introduced by Android and mandated after Android 11. Changes to Android Makefiles for enabling Android A/B OTA Updates With the introduction of A/B style of updates, The device manufacturers must make changes to the existing Compilation and Flashing steps. Let us have a look at them below. For the present analysis, Let us use the Google’s Marlin device as an example. https://android.googlesource.com/device/google/marlin/+/android-7.1.1_r6/marlin/BoardConfig.mk A/B MUST Define Flags Variables that the system must define AB_OTA_UPDATER := true AB_OTA_PARTITIONS := boot system vendor BOARD_BUILD_SYSTEM_ROOT_IMAGE := true #Put the boot ramdisk in the system partition TARGET_NO_RECOVERY := true BOARD_USES_RECOVERY_AS_BOOT := true #Put the recovery ramdisk in the boot.img file PRODUCT_PACKAGES += update_engine update_verifier ...