Missmatching Image and Device in Mi Flash Tool [Fixed]

When it comes to flashing stock firmware, Xiaomi has perhaps done the best job out there by providing us with a great flashing tool that does this job in just a few clicks [well, it even gives you the option to unlock the device’s bootloader]. However, it isn’t free from its fair share of issues either. The recent and the strangest one to date is the “Missmatching Image and Device” error in the Mi Flash Tool. But what’s strange about this [apart from the spelling mistake that Xiaomi has made!]?

Missmatching Image and Device in Mi Flash Tool - 1

Well, I have been using the same Fastboot ROM for months now on my device, but all of a sudden, the tool decides that that ROM is not made for my device! Still, I decided to double-check the codename, and it was indeed for my device. For the unaware, the Fastboot ROM is named after the device’ codename, not the device’s name. For example, for my Poco F5, the ROM is named marble_in_global_images_version_number. So, how to address this issue? Let’s find out.

Fix Missmatching Image and Device in Mi Flash Tool

Missmatching Image and Device in Mi Flash Tool - 2

Before starting, please take a complete device backup. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

First and foremost, please verify that the Fastboot ROM is indeed made for your device only. You can match the ROM’s codename with your device’s using this guide . If that’s all well and good, then I would advise you to download the Fastboot ROM for your device from any other third-party site and try flashing it via Mi Flash Tool. If you’re still facing this issue, then let’s move over to our final and main fix.

  1. To begin with, head over to the Fastboot ROM. Then open the required batch file via Notepad++ flash_all.bat corresponds to the Clean All option of the Mi Flash Tool flash_all_except_storage.bat corresponds to the Save User Data option of the Mi Flash Tool flash_all_lock.bat corresponds to the Clean All and Lock option of the Mi Flash Tool
  2. Now, comment out the first two lines using the rem keyword. For example,
  3. If the lines are: [marble is the codename for my Poco F5] fastboot %* getvar product 2>&1 | findstr /r /c:"^product: marble" || echo Missmatching image and device fastboot % getvar product 2>&1 | findstr /r /c:"^product: *marble" || exit /B 1
  4. Then they should now look like: [marble is the codename for my Poco F5] rem fastboot %* getvar product 2>&1 | findstr /r /c:"^product: marble" || echo Missmatching image and device rem fastboot % getvar product 2>&1 | findstr /r /c:"^product: *marble" || exit /B 1 Above: Old | Below: New
  5. NOTE: Commenting out the lines is always a better approach than deleting them.
  6. Once you have made the changes, save them via Ctrl+S.
  7. Now launch Mi Flash Tool and choose the same option according to which the file has been modified [clean_all, save user data, or clean all and lock].
  8. Then click Select and load the firmware in the tool. Then boot your device to Fastboot ROM and connect it to the PC.
  9. Now hit Refresh and make sure your device’s ID is shown in the Device section. If that’s all well and good, hit Flash.
  10. The flashing will now start and could take a while [usually 500-700 seconds]. Once done, your device will automatically boot to the OS.
  • Failed to check sparse crc in Mi Flash Tool [Fixed]
  • How to Fix Mi Flash Tool: Flash Crclist Error
  • Mi Flash Tool Error: Erasing boot_ab [Fixed]
  • Fix Mi Flash Tool Cannot Detect Device in Fastboot Mode
  • How to Unbrick any Xiaomi/Redmi/Poco via Mi Flash Tool
Google preferred - 3 Google preferred - 4

(Cancel Reply)

Δ