Good, with miui 11 you have to be very careful with what is done because you can leave the xiaomi brickened or in bootloop, it is recommended or downgrade to miui 10 or unlock the bootloader and do it by the TWRP method, it also depends on the xiaomi model old or new, hope it helps you.