5

The internal storage of each Android device is separated into partitions such as system and boot. Most devices have only a single copy of each partition, but devices that support seamless updates have two copies of certain partitions—slot A and slot B, hence A/B—so that one copy of the partition lies dormant while the other is in active use. Because each partition is a copy, they can be used interchangeably to boot into Android. This also means that you can update one partition in the background and then swap to it when you reboot—thus your update is seamless!

I need to know more about this for a stock unrooted device:

  1. After OTA system update, does the device install OS to both partitions? Or install to only one partition.

  2. whether the device continues to same(current) android version until reboot manually?(after installing version update). Or whether it updates current to latest version overnight.

  3. When normal reboot(not after update), how can a user identify whether device is booted to which slot (A/B)? Else, will the device continues to current slot on normal reboot(for example if it is A).

  4. If any one slot got corrupted, Is it possible to use other slot only.

1 Answer 1

5

After OTA system update, does the device install OS to both partitions? Or install to only one partition.

and

whether the device continues to same(current) android version until reboot manually?(after installing version update). Or whether it updates current to latest version overnight.

It installs only to the inactive partition, which becomes active on reboot after update. Figure explains clearly

enter image description here

When normal reboot(not after update), how can a user identify whether device is booted to which slot (A/B)? Else, will the device continues to current slot on normal reboot(for example if it is A)

On a normal reboot, it always reboots into the currently active partition. You can verify by running this command pre and post normal reboot

fastboot getvar all | grep “current-slot” (On Linux)

On Windows, fastboot getvar all and search for current-slot

Edit : You can see current slot using apps like Dev check

If any one slot got corrupted, Is it possible to use other slot only.

If you mean by corruption , the update has failed,

....the device will roll back to the working build on the other slot....Your data is kept perfectly intact, even if the update is borked, as there is only one partition (userdata) which houses your data.

From How A/B Partitions and Seamless Updates Affect Custom Development on XDA and for more technical details see A/B (Seamless) System Updates

Edit:

  1. Here is a more detailed picture from Android Police

  2. Also see A/B (Seamless) System Updates from Android developers.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .