I have a Xiaomi Redmi Note 11 phone, and I am planning to install an AOSP GSI from treble_experimentations
.
The documentation for this device in treble_experimentations
states that these are the steps required to install the GSI ROM:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot flash system your_gsi_rom_of_choice.img
fastboot -w
I am guessing, for the vbmeta.img
, I am supposed to generate an empty vbmeta.img
file. And I understand that is required for the system to boot the GSI ROM that I will be installing (otherwise verification will fail).
Looking up on the internet, though, I can see many posts/references about Xiaomi's official unlock tool (which unfortunately only runs on Windows).
My question is: do I need both steps? (i.e.: first unlock with Xiaomi's tool, then flash the empty vbmeta.img
) or are they exclusive? (i.e.: I could flash the empty vbmeta.img
without unlocking with Xiaomi's tool and I should be able to flash the GSI).
Also, if they are not exclusive, what does Xiaomi's tool do or why is it required? If flashing an empty vbmeta.img
is enough, why do people seem to recommend Xiaomi's app in many forums?
vbmeta.img
? I think I still don't understand what the Xiaomi tool is doing and why is it required to either flash thevbmeta.img
or the GSI image.vbmeta.img
).