Click the button. Your device should appear in the list under a random device ID string. Click the Flash button.
To get the flash_all.bat script, you must download the correct for your specific device model. Do not download a "Recovery ROM" (which comes as a .zip file), as Recovery ROMs do not contain the batch files required for command-line or Mi Flash Tool installation. Step 1: Identify Your Device Code Name
Your bootloader is either still locked, or you need to execute a specialized fastboot command first ( fastboot flashing unlock_critical ) which is common on older MediaTek-powered Xiaomi devices. Verify your bootloader status in developer options.
System, Boot, Recovery, and Vendor partitions are restored to factory defaults. flash all bat xiaomi link
How to Install Fastboot ROM via Mi Flash Tool on Xiaomi/Redmi/Poco
Add :: at the beginning of each line to comment them out. Save the file and rerun MiFlash.
Once in EDL mode, Device Manager should show "Qualcomm HS-USB QDLoader 9008" under Ports. Click the button
Download and install the (Version 20200314 or newer is highly recommended for modern devices). Install the driver prompt pop-ups that appear during installation.
Look at the bottom right corner of the Mi Flash Tool window. You will see three radio buttons:
Xiaomi Firmware Updater or Miui Rom Official Repository To get the flash_all
If you encounter issues during the process, consider seeking help from Xiaomi forums or communities dedicated to Xiaomi and Android development.
The most reliable, automated community database tracking Global, EEA, India, and China streams.
Wipes all data, installs the fresh factory firmware, and completely re-locks the bootloader .