MI 10s TWRP and Magisk installation



I tried flash recovery partation and it failed.

I tried flash boot partation, but it stays in recovery mode endlessly.

Maybe there is something wrong with my method.
Short explanation:

Devices with A/B partition scheme don't have a recovery partition so you cant "flash recovery twrp.img"
You can only boot in recovery mode with "fastboot boot twrp.img"

To permanently flash recovery to A/B devices, you need to unpack both boot.img (A/B) from device
Replace the ramdisk with the one extracted from twrp.img and repack then flash boot.imgs back to device ...

Do this to start twrp
# fastboot boot twrp.img

Dont do this to start twrp on A/B devices
# fastboot flash recovery twrp.img

If you flashed it into boot partition, then extract boot.img from rom-version and flash it
fastboot flash boot boot.img

Install Magisk without TWRP