Skip to content

Is it possible to switch slots with virtual A/B in AOSP device using fastbootd? #412

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

You must be logged in to vote

It looks like you already found #249, but yes, your understanding is correct.

However, note that even in the non-virtual-A/B case, fastbootd does not allow fastboot set_active while the bootloader is locked: https://cs.android.com/android/platform/superproject/main/+/main:system/core/fastboot/device/commands.cpp;l=325;drc=2cb36706f40a7afac9159126a97421b37e2ef8dc

This is likely due to Android's use of rollback indices. If switching a slot downgrades the OS, it would become unbootable (or permanently bricked if the OEM unlocking toggle was disabled).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jayanth117
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