Skip to content

Switching A/B slots in update.zip #249

Answered by chenxiaolong
pascallj asked this question in Q&A
Discussion options

You must be logged in to vote

When the other system has some form of root access, switching slots is possible when booted inside that system.

This used to be true, but unfortunately no longer is due to virtual A/B. Now, only partitions that are read by the bootloader, like boot and vendor_boot, have distinct _a and _b partitions. The remaining big dm-verity partitions don't.

When flashing an OTA, it takes a snapshot of the current system by setting up some sort of copy-on-write block device for each partition. Any newly written data then gets buffered to files within /data. As soon as the new slot boots successfully, the changes are merged and the old "slot" basically ceases to exist.

The only way to boot back into …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chenxiaolong
Comment options

@pascallj
Comment options

@chenxiaolong
Comment options

@pascallj
Comment options

Answer selected by pascallj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants