How to reinstall firmware on Xiaomi Redmi: 3 proven ways

Introduction: Why reinstall MIUI on Redmi?

Xiaomi Redmi smartphones are known for their stability, but even they eventually start to slow down, give out errors or pick up viruses. Reinstalling the firmware is a radical but effective way to return the device to its previous performance.

Youโ€™ve bought a used device with junk from the previous owner, experienced a cyclical reboot after a failed update, or just want to install a clean version of MIUI without unnecessary applications. Unlike a regular reset via settings, full firmware removes all system files and replaces them with the original ones, which ensures that there are no hidden bugs.

Itโ€™s important to understand the difference between methods: Recovery resets the current version of MIUI but clears user data, and Fastboot completely overwrites the system partition. The choice of method depends on your purpose and the condition of the phone.

Method 1: Reset to factory settings via Recovery

The simplest method, which doesn't require a computer, is if the phone turns on but is unstable, and it takes 5-10 minutes to delete all user data, but it keeps the current version of MIUI.

Turn off your smartphone first. Then press Volume Up + Power for 10-15 seconds until the Mi logo and Mi Recovery menu appear. Some models (Redmi Note 10 Pro, Redmi 9T) may need to first press Volume Up + Power, and after vibration release the power button, holding the volume.

  • ๐Ÿ”„ Select Wipe Data (use volume buttons for navigation, power to confirm)
  • ๐Ÿงน Confirm Wipe All Data โ€“ it will remove all apps, photos and settings
  • ๐Ÿ”™ Go back to the main menu and select Reboot. โ†’ Reboot to System
  • โณ The first switch on after the reset will take 3-5 minutes - do not interrupt the process

โš ๏ธ Note: If the phone is stuck on the Mi logo for longer than 15 minutes after reset, the system files are damaged).

Save important data on a PC or cloud

Charge your phone to at least 50%

Make sure you know your Mi Account (if you have been linked)

Get out. SIM-card and memory card (optional)-->

Method 2: Fastboot Firmware (complete reinstallation)

This method is suitable for โ€œbrickโ€ devices that do not turn on or boot only in Fastboot Mode. You will need a computer with Xiaomi drivers installed and the official firmware for your model.

First, download the correct version of the firmware from the site. MIUI Download. Pay attention to the region (Global, China, EEA) and the code name of the device (e.g. mojito for Redmi Note) 10). Unblock the file to a short-cut folder (for example, C:\MIUI\).

  • ๐Ÿ–ฅ๏ธ Install the QDLoader driver for Qualcomm or ADB-drivers for Mediatek
  • ๐Ÿ“ฑ Turn off the phone and press the volume down. + Power to enter the Fastboot Mode
  • ๐Ÿ”Œ Connect the device to the PC through USB-cable (preferably original)
  • ๐Ÿ’ป Run MiFlash.exe from the firmware folder, press Refresh โ€“ your Redmi should be determined
  • ๐Ÿ“ In the Select field, specify the path to the folder with unarched firmware
  • โš™๏ธ At the bottom, select Clean All (Full Cleaning) or Clean All and Lock (Locking bootloader) mode)
  • ๐Ÿš€ Press Flash and wait until the process is complete. 5-15 minute)
Firmware modeDescriptionEffects of consequences
clean allComplete cleaning and firmwareDeletes all data, unlocks the bootloader
clean all and lockFirmware with loader lockDeletes the data. + Block the loader (needed to be used) OTA-update)
save user dataFirmware without data cleaningIt saves user files but can cause errors

โš ๏ธ Warning: If you choose clean all and lock on a device with an unlocked bootloader, after firmware, the phone may require authorization to the Mi Account that was tied before unlocking. Without this data, the device will become a brick".

What if MiFlash can't see the phone?
1. Check if the device in Windows Device Manager is defined as Android Bootloader Interface or QHSUSB_BULK 2. Try another one. USB-cable (preferably original) and port USB 2.0 (blue!) 3. Disable driver signature in Windows: run the command line from the administrator and execute bcdedit /set nointegritychecks on 4. Reinstall drivers manually through Device Manager, specifying the folder with unpacked QDLoader drivers

Method 3: Update via OTA with data storage

If your Redmi is stable, but you want to upgrade MIUI until the latest version without data loss, use the built-in mechanism OTA (Over-the-Air is safer than hand firmware because it passes compatibility tests.

Go to Settings โ†’ About Phone โ†’ System Update. If a new version is available, download it (preferably via Wi-Fi). After download, click Reboot and Update. The process will take 10-20 minutes, depending on the size of the update.

To force the updates to check, you can use a hidden menu: enter the code ##542## in the Phone application - this will open the test menu, where you can manually initiate an OTA search in the Software Update section.

  • ๐Ÿ”„ If the update is stuck during the Preparation Update phase, restart your phone and try again.
  • ๐Ÿ“ถ To speed up downloads, connect to a 5 GHz network (if supported)
  • ๐Ÿ”‹ Make sure your battery is over 30% or the system will block the update.
  • ๐Ÿ›‘ If you have a bug after the update, reset the cache in Recovery (Wipe Cache)

Once a month, when a new version comes out.

Only when critical bugs appear

Never update โ€“ everything works.

Only six months after the release of the new MIUI-->

Solving Typical Reinstallation Errors

Even if you follow the instructions, you can have problems, and let's look at some of the most common mistakes and how to fix them.

The error "This package is for xxx devices" appears if you are trying to flash the firmware for a different model. Check the code name of the device in Settings โ†’ About Phone โ†’ MIUI version (e.g. ginkgo for Redmi Note 8).

Fastboot firmware ends in error "flash_preloader "Failed" means you're trying to flash the firmware with a newer version of anti-rollback. Solution: Find firmware with the same or older version of anti as the current one.

Mistake.Reason.Decision
Couldn't unlock in MiFlashbootloader lockedUnlock with the Mi Unlock Tool
Invalid image formatDamaged firmware filesDownload the firmware again, check the checksum MD5
Hanging on the logo after firmwareThe incompatible version of MIUICreate a stable global version for your region
E:Unknown command in RecoveryDamaged Recovery menuFastboot: Fastboot Flash Recovery recovery.img

๐Ÿ’ก

If your IMEI is missing or your mobile network is not working, restore it using the engineering menu. Enter in the phone application ##4636##, select Phone Information and click Select SIM โ†’ Restore IMEI.

How to save data before reinstallation

Flashing inevitably leads to loss of user data, but you can save the most important thing. For contacts and messages, use the built-in sync functions with Mi Account:

Go to Settings โ†’ Xiaomi Account โ†’ Mi Cloud and enable sync for Contacts, Messages, Notes and Photos. Use Settings โ†’ Additional โ†’ Backup and Reset โ†’ Local Backup to back up apps.

To transfer files to the PC:

  • ๐Ÿ“ Put the phone on. USB file transfer (MTP)
  • ๐Ÿ–ฅ๏ธ Copy the folders. DCIM (Photos, Download (downloads), WhatsApp (chat backups)
  • ๐Ÿ” Export passwords from the browser through Settings โ†’ Passwords.
  • ๐ŸŽฎ For games, use cloud saves (Google Play Games or built-in game features)

โš ๏ธ Warning: Do not copy the folder MIUI Or Android to a memory card are system files that can cause conflicts after firmware. Also avoid backing up through Titanum Backup on devices with a computer. MIUI 12+ โ€” This often leads to errors in recovery.

Frequently asked questions

Can I reinstall MIUI without a computer?
Yes, if the phone turns on, you can reset via Recovery (method 1) or upgrade via OTA (method 3). However, a computer and a Fastboot are still required to completely reflash (for example, when changing region or recovering from a soft breech).
Will I lose my warranty after I re-flash it?
The official firmware through MiFlash with a lock bootloader (clean all and lock) does not affect the warranty. However, unlocking the bootloader or installing custom firmware (for example, Xiaomi.eu) will void the warranty. In Redmi with a locked bootloader, check the status by command fastboot oem device-info - if Device unlocked: false, the warranty is maintained.
How do I know my Redmi code name?
There are several ways: In Settings โ†’ About Phone โ†’ MIUI โ†’ Model line (e.g. M2003J15SC for Redmi Note 9 Pro) Through ADB: connect your phone to your PC and run adb shell getprop ro.product.device On the label under the battery (for models with removable battery) The code name is needed to select the correct firmware on the Xiaomi site. For example, Redmi Note 8 Pro has the code begonia, and Redmi 9A is dandelion.
What if the touchscreen doesnโ€™t work after the firmware?
This is a common problem when running an incompatible version. MIUI (Solution: Solution: Sweat the right firmware version for your region (Global/China/EEA). If the sensor doesnโ€™t work in Recovery, try connecting. OTG-Mouse for navigation. Mediatek devices (Redmi) 9, 10A) It can only help to use the touch section through SP If the problem persists, check the touchscreen plume, it may have moved away when the device is disassembled.
How to return root rights after reflashing?
Once fully flashed through Fastboot root, the rights are removed. To reclaim them: Unlock the bootloader via Mi Unlock Tool (Mi Account binding is required). Install custom Recovery (TWRP) via Fastboot: fastboot flash recovery twrp.img Boot to TWRP and Magisk pass (download from GitHub). Reboot and check root through the Root Checker app. On MIUI 13/14 with Android 12/13, you may need to disable AVB 2.0 (Android Verid) for a successful Boot root.

๐Ÿ’ก

Before any firmware reflash, check the firmware compatibility with your model by codename. Using firmware for another version of Redmi (for example, the Redmi Note 9 Pro firmware on the Redmi Note 9S) will cause the device to fail.