How to install the downloaded firmware on the Xiaomi smartphone: 2 ways (Fastboot and Recovery)

Installing custom or official firmware on Xiaomi devices is a process that requires care and preparation. Many users face the need to reflash the smartphone due to slow work, lack of updates or the desire to get advanced features. However, the wrong actions can turn the gadget into a β€œbrick”, so it is important to understand all the nuances from unlocking the bootloader to choosing the right version of MIUI.

In this article, we will discuss two main methods of installing firmware: through Fastboot (for full flashing) and Recovery (for upgrades or partial installation), and you will learn how to avoid typical errors, what tools you will need and what to do if something goes wrong. The instructions are relevant for most models Xiaomi, Redmi and POCO, issued after 2018.

⚠️ Warning: Smartphone firmware voids warranty and can lead to data loss.If you are not sure about your actions, contact a specialist. Xiaomi is not responsible for damage caused by self-firmware.

1. Firmware Preparation: What to Do Before Starting

Before you start installing firmware, you need to follow a few critical steps, and neglecting them can lead to locking the device or loss of data without the possibility of recovery.

First, check your smartphone model and its encoding (e.g., the Redmi Note 10 Pro may have a sweet or sweetin version for India) and you can find it in the settings along the Settings route β†’ About Phone β†’ Model or through the fastboot getvar product command in the terminal. Model firmware mismatch is one of the main reasons for the β€œbricking” of devices.

Second, make sure you have:

  • πŸ”‹ Battery charge of at least 60% (better than 100%).
  • πŸ’» Windows computer 10/11 (for Fastboot or any PC (for Recovery).
  • πŸ”Œ Original. USB-cable (poor cables may interrupt the connection).
  • πŸ“ Backup data (photos, contacts, messages) Use Mi Cloud or Google Drive.

Also download the necessary tools:

  • πŸ› οΈ Mi Flash Tool (for Fastboot) – official utility from Xiaomi.
  • πŸ“² ADB Fastboot drivers (install via Minimal) ADB and Fastboot or Platform Tools by Google).
  • πŸ”— Firmware in.tgz (Fastboot) or.zip (Recovery) format from the official website MIUI Downloads or Trusted Forums (for example, XDA Developers).
πŸ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Globally stable
Chinese/European
Another.

2 Unlocking the bootloader (Bootloader) - a mandatory step for Fastboot

Xiaomi blocks the bootloader on all devices by default. Without it, installing firmware via Fastboot is impossible.The process takes 3 to 360 hours (depending on Xiaomi's policy) and requires linking the Mi Account to the device.

To unlock the loader:

  1. Link your Mi Account to your phone in Settings β†’ Xiaomi account.
  2. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  3. Enable OEM unlocking and USB debugging in Settings β†’ Additional β†’ For developers.
  4. Download Mi Unlock Tool from the official website and run it on PC.
  5. Connect your phone in Fastboot mode (press Power + Volume down when the device is off) and follow the program instructions.

⚠️ Note: If you have not previously unlocked the bootloader on this device, Xiaomi may require you to wait up to 15 days (720 hours) before first unlocking.This timer is reset when you change your Mi Account or reset your phone.

What happens if you break the unlock?
If you turn it off USB-cable or close Mi Unlock Tool during the process, the device can be locked during the verification phase of the account, in which case you will need to re-assign the account and wait for a new unlock timer.

3. Install firmware via Fastboot (full firmware reflashing)

Fastboot is suitable for complete flashing of the device, including recovery from crashes or install custom firmware. It erases all data, so be sure to do a backup.

Step-by-step:

  1. Unpack the downloaded firmware (.tgz format) into a folder without Cyrillic characters (for example, C:\MIUI\proshivka).
  2. Run the Mi Flash Tool on behalf of the administrator.
  3. Connect your phone in Fastboot mode (black screen with a hare and the words Fastboot).
  4. In the program, click Select and specify the path to the folder with the firmware.
  5. Select Clean All (Full Cleaning) or Clean All and Lock (Cleaning + Lock bootloader After Firmware).
  6. Press Flash and wait until it is completed (usually 5-10 minutes).

If the process is stuck in the waiting for device phase, check:

  • πŸ”Œ Connection USB (Try another port or cable).
  • πŸ–₯️ Are Fastboot drivers installed (Android Bootloader Interface should be displayed in Device Manager).
  • πŸ”„ Restart your PC and phone, then try again.

Device charged at 100%|

bootloader unlocked |

Installed drivers ADB/Fastboot|

The firmware is unpacked in the root catalog of the disk |

Backup of important data is made-->

4. Install firmware through Recovery (update without loss of data)

Recovery is suitable for updating the current version of MIUI or installing custom firmware (like LineageOS).It does not require unlocking the bootloader if you are updating the official firmware, but does not work for downgrade (switching to an older version).

Instructions:

  1. Download the firmware in.zip format and rename it to update.zip.
  2. Move the file to the root directory of the phone’s internal memory (not to folders!).
  3. Boot in Recovery: Turn off the phone. Press Power + Volume up until the Mi logo appears.

In the Recovery menu, select the language (if you have an option), then:

Install update.zip to System

Reboot to System

⚠️ Note: If you install custom Recovery (for example, TWRP), Check it for compatibility with your model. TWRP may not support data encryption, which will lead to the inability to boot the system.

πŸ’‘

If you have your phone stuck on the Mi logo after you have firmware through Recovery, try resetting the settings via Wipe Data in the Recovery menu, which will delete user data, but restore the system to work.

5. Typical errors and their solutions

Even if you follow the instructions, you can make mistakes, and here are the most common problems and ways to fix them.

Mistake.Reason.Decision
Couldn't unlock the Mi Unlock ToolIt has not been 720 hours since the account was linked.Wait until the time is set or use another Mi Account.
This package is for "sweet" devices; this is a "sweetin"The firmware is not suitable for your model.Download the correct firmware version (check the device code)
The phone does not turn on after the firmwareIncorrectly selected mode in Mi Flash ToolRepeat the firmware in Clean All mode
E: Footer is wrong in RecoveryThe damaged file update.zipDownload the firmware and check the checksum (MD5)

If the device doesn’t respond to buttons and doesn’t boot, try EDL emergency mode:

  1. Turn the phone off the PC.
  2. Hold the Loud up. + Loud down and plug in. USB-cable.
  3. Hold the buttons for 10-15 seconds until the PC identifies the device as Qualcomm HS-USB QDLoader 9008.
  4. Use the Mi Flash Tool for firmware in EDL mode.

πŸ’‘

EDL mode is the last chance to restore the brick. It requires special drivers and firmware in.mbn format. Do not use it unless absolutely necessary, as this can lead to hardware failures.

6. Firmware check and first actions after installation

After successful firmware, several steps must be taken to ensure the stability of the system:

  • πŸ”„ Reset the device 2-3 This helps to stabilize the work of new drivers.
  • πŸ“± Check the basic features: Calls and mobile internet. Wi-Fi and Bluetooth. Camera and sensors (gyroscope, compass).
  • πŸ”’ If you have installed custom firmware, check SafetyNet status through the Magisk app (important for banking applications).
  • πŸ“Š Update apps via Google Play or Mi App Store.

If you notice lags or overheating, reset to factory settings (Settings β†’ Additional β†’ Restore and Reset) This will eliminate possible conflicts between old and new firmware.

To check the firmware version, go to Settings β†’ About Phone β†’ MIUI. Compare it to the one you installed. If the versions don't match, repeat the firmware process.

7.Security and advice from experienced users

Xiaomi’s firmware is a process that requires not only technical skills but also attention to detail. Here are some tips from experts:

  • πŸ” Never use firmware from unverified sources. MIUI Downloads or Trusted Forums (XDA, 4PDA).
  • πŸ“‘ Before you run your firmware, disable Find My Device and Mi Cloud Sync in your account settings.This will prevent your device from being locked after you reset.
  • πŸ”§ If you install custom recovery (TWRP), Check it is compatible with the Android version on your device, TWRP Android 10 may not work for Android 12.
  • πŸ“… Watch out for firmware updates. Xiaomi regularly closes vulnerabilities, so legacy versions may contain critical bugs.

If you are planning to experiment with custom firmware, we recommend:

  • Try Ported ROM (like Pixel Experience) on a secondary device first.
  • Use Magisk to obtain root rights instead of outdated methods like SuperSU.
  • Create a full backup through TWRP before installing any unofficial firmware.

πŸ’‘

For Xiaomi models with a MediaTek processor (like the Redmi 9A), use the SP Flash Tool utility instead of the Mi Flash Tool. The firmware algorithm is different, so pre-examine the guides for your model.

Frequently Asked Questions (FAQ)

Can I use Xiaomi without unlocking the bootloader?
Yes, but only through Recovery if you are updating the official firmware of the same version or higher.Unlocking is mandatory for custom firmware or downgrade installation.
What if the Mi Flash Tool can’t see the device?
Check: Are Fastboot drivers installed (Android Bootloader Interface must be displayed in Device Manager). USB-cable (poor cables may not transmit data) whether the Mi Flash Tool is running on behalf of the administrator. If the problem persists, try connecting the phone to another one USB-port (preferably) USB 2.0).
How to return the official firmware after custom?
Download the official.tgz firmware for your model and run it through Fastboot in Clean All mode. If the bootloader has been unlocked, you can lock it back by selecting Clean all and lock option in the Mi Flash Tool.
Why is the mobile network not working after the firmware?
This is a typical problem when installing firmware for another region (e.g., Chinese firmware on the global model). MIUI (For example, Global instead of China. Manually select the operator in Settings β†’ SIM-maps and mobile networks β†’ Network selection. IMEI through the Engineering Menu (for experienced users only!).
Can I use Xiaomi to help you? OTG-cable?
Yes, but only if you already have custom Recovery installed (TWRP). Connect. OTG-.zip hard drive, boot to Recovery and select Install β†’ Select Storage β†’ USB OTG. For official firmware without unlocked bootloader, this method is not suitable.