How to automate slot selection after android AB-Update

wasim_nazir

New member
Dec 24, 2018
2
0
0
I am trying to boot from IMX6 bootloader, but couldn't able to automate the slot selection based on OTA update. I could able to boot using command "boota mmc0 boot_a" or "boota mmc0 boot_b" from uboot.

How to manually do OTA AB-update. After OTA if active partition was _a then it should change to _b. How to do this?

Is is AVB is required for this auto selection of slots?
Is it possible to implement android AB update without AVB?
 
To get the current active slot

adb shell getprop ro.boot.slot_suffix
or
fastboot getvar current-slot
 
Wait - manually OTA? You mean download the file, then update? It's going to be different for each phone, but it's basically use adb to sideload the file. The manufacturer's instructions should cover that. (It probably updates the inactive side during part 1, then switches to it and updates the side that used to be active. (Both sides get updated.) If you don't switch sides, the next time it updates automatically (or you sideload the update file) it will. (Switching sides is just to even out the wear on the eMMC - both of them should be running the same version.)
 

Forum statistics

Threads
956,414
Messages
6,968,108
Members
3,163,539
Latest member
mom1988