Mi Flash Pro
If you don’t know about MiFlashPro software, here’s a short description. This tool will help you to flash and restore your Xiaomi smartphone, you can easily download the required ROM using the software interface, flash from recovery mode without unlocking the bootloader. It will work even if forgot the key lock pattern or fingerprint. In my opinion this is an ultimate tool for flashing and recovering Xiaomi devices.