Connect the device to your PC using a high-quality USB cable. 3. Using the Mi Flash Tool
Requires an authorized Mi Account or specialized "credits" to bypass Xiaomi's security server. Xiaomi Authorized Flash Tool 6.1.1 Download
flash_all_lock.bat : Installs stock factory software and re-locks the bootloader state securely. Prerequisites Before Downloading and Using Connect the device to your PC using a high-quality USB cable