Xiaomi Redmi firmware: official and custom methods with unlocking the bootloader

Xiaomi Redmiโ€™s firmware is a process that can both bring the device back to life after crashes and add new features through custom builds. However, the wrong actions often turn the phone into a โ€œbrickโ€, especially if you ignore the features of the Xiaomi bootloader or choose incompatible versions of MIUI. In this article, we will analyze all the current methods of firmware โ€“ from official updates through MIUI Updater to manual installation through Fastboot and TWRP, taking into account the nuances for different models of the Redmi Note, Redmi K and classic series.

Xiaomiโ€™s main difference from other brands is the region-specific firmware binding (Global, China, EEA) and the mandatory unlocking of the bootloader for unofficial builds. Weโ€™ll discuss in detail how to avoid errors like anti-rollback or invalid image, and weโ€™ll give checklists to prepare the device. If your goal is just to upgrade the system, the first two sections will suffice. For custom firmware enthusiasts (LineageOS, Pixel Experience), weโ€™ll give a separate instruction based on the features of Redmi on Qualcomm and Mediatek processors.

1. Firmware preparation: Backup and unlock the bootloader

Before you start firmware, be sure to save all the data. Even an official update via MIUI Updater can cause a reset, and manual firmware via Fastboot erases internal memory completely.

  • ๐Ÿ“ฑ Mi Cloud โ€“ sync contacts, notes and photos (check that the place is not over).
  • ๐Ÿ’พ Local Copy โ€“ Transfer files to a PC or external drive (folders) DCIM, Download, WhatsApp).
  • ๐Ÿ”ง Titanium Backup (requires root) โ€“ to save applications and their data.

If you plan to install custom firmware or Global ROM on a Chinese model, you will need to unlock the bootloader. Xiaomi links this process to the Mi Account, and without unlocking the device will not allow you to flash unofficial files.

  • โณ Wait 7 days โ€“ after linking the account to the device in Mi Unlock Tool, you need to wait a week (up to 30 days for new accounts).
  • ๐Ÿ”— Tethering SIM-cards - on some models (Redmi Note 10 Pro, Redmi) K40) insert SIM same region as the firmware.
  • ๐Ÿšซ Restrictions โ€“ from 2023, Xiaomi will block unlocking for devices under 60 days from the activation date.

โš ๏ธ Warning: Unlocking the bootloader resets the device to factory settings. If you forget the Mi Account password, restore it before the process begins - it will be impossible to log in without it after the reset.

To check the status of the loader:

  1. Turn off the phone.
  2. Press Volume Down + Power before the Fastboot logo appears.
  3. Connect the device to the PC and type in the command line: fastboot oem device-info
  4. If the answer is Device unlocked: false, the bootloader is blocked.

2. Official firmware via MIUI Updater (without unlocking)

The safest way to upgrade to Redmi is to use the built-in MIUI Updater app, which does not require unlocking the bootloader and is suitable for:

  • ๐Ÿ“ฒ Transition to the new version MIUI (for example, MIUI 13 on MIUI 14).
  • ๐Ÿ”„ Removing small bugs without losing data.
  • ๐ŸŒ Changes to regional firmware (if available) OTA-package).

Instructions:

  1. Open Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon ยซโ‹ฎยป (three dots) in the upper right corner and select Select Service Package.
  3. If the update is available over the air (OTA), download it.

โš ๏ธ Warning: Do not interrupt the upgrade process - this may lead to a boot cycle.If after a reboot the phone hangs on the Redmi logo for longer than 10 minutes, force it to restart (Power) + Volume up for 15 seconds and try again.

If the update is not available:

  • ๐Ÿ”Œ Check your internet connection (better to use Wi-Fi).
  • ๐Ÿ“ก Switch to another network (for example, from mobile to Wi-Fi or vice versa).
  • โณ Wait 1-2 days โ€” OTA-packets are gradually distributed.
๐Ÿ“Š What type of firmware method do you use more often?
Officially OTA-update
Fastboot via Mi Flash
Custom firmware through TWRP
Another way.

3. Firmware via Fastboot (Mi Flash Tool)

The Fastboot method is used to:

  • ๐Ÿ†• Complete flashing of the device (for example, in case of system failure).
  • ๐ŸŒ Changes in regional firmware (with China) ROM Globally ROM back and forth).
  • ๐Ÿ”ง Recovery after a failed firmware through TWRP.

Requirements:

  • ๐Ÿ–ฅ๏ธ Windows PC (Mi Flash Tool is not officially supported) macOS/Linux).
  • ๐Ÿ”Œ Cable USB (preferably original).
  • ๐Ÿ“ฆ Firmware in.tgz or.zip format (download from xiaomifirmwareupdater.com).
  • ๐Ÿ”“ Unlocked loader (see section 1).

Step-by-step:

  1. Download and install: Mi Flash Tool. Xiaomi Drivers (or use Mi PC Suite).

non-Cyrillic

C:\redmi_firmware

Fastboot

Loudness down + Nutrition

Mi Flash Tool

Select

Refresh

Redmi

  • Clean all โ€“ complete cleaning (recommended when changing region).
  • Clean all and lock โ€“ cleaning + lock bootloader (only for official firmware!).
  • Save user data โ€“ data retention (not always stable)
  • Press Flash and wait until it is completed (usually 5-10 minutes).

โ˜‘๏ธ Preparation for firmware through Fastboot

Done: 0 / 5

Common mistakes and decisions:

Mistake.Reason.Decision
couldn't load device driversThere are no drivers.Install Mi PC Suite or drivers manually through Device Manager.
invalid sparse file format at headerFirmware file damagedDownload the firmware again, check the checksum (MD5).
anti-rollback check failReverse to the old version of MIUISweep through the new version only (check the build number on Xiaomiโ€™s website).
device is lockedbootloader lockedUnlock the bootloader (Section 1) or use the official firmware through MIUI Updater.

4. Install custom firmware through TWRP

Custom firmware (LineageOS, Pixel Experience, HavocOS) give more options for customization, but require:

  • ๐Ÿ”“ Unlocked loader.
  • ๐Ÿ› ๏ธ Established TWRP Recovery (unofficial for your model).
  • ๐Ÿ“Œ Compatible firmware (check on forums) XDA Developers).

Warning: Castom firmware may:

  • ๐Ÿšซ Deprive warranties (if the device is warranty, use official methods).
  • ๐Ÿ“ต Breaking the camera, NFC or 5G (Especially in the new Redmi models).
  • ๐Ÿ”‹ Increase battery consumption (due to unoptimized core).

Instructions for installing TWRP and firmware:

  1. Download TWRP for your model from twrp.me (.img file).
  2. Transfer your phone to Fastboot and run recovery: fastboot flash recovery twrp-3.7.0-xxx.img fastboot boot twrp-3.7.0-xxx.img
  3. In TWRP, make a backup of the persist partition (important for models with Mediatek!).
  4. Download custom firmware (.zip) and, if necessary, GApps (Google services).
  5. In TWRP, run Wipe โ†’ Advanced Wipe and mark Dalvik / ART Cache System Data Cache

GApps

Reboot. The first launch can take 10 to 15 minutes.

โš ๏ธ Note: On Redmi models with Mediatek processor (e.g. Redmi Note 11, Redmi) 10C) post-stitch ROM mayhem IMEI. It can only be restored through the engineering menu (#3646633##) or specialized utilities like Maui. META.

How to check the compatibility of custom firmware?
Before installing, check: 1. The device model (e.g., Redmi Note 10 Pro has the codename sweet). 2. MIUI version (some firmware requires a specific base version). 3. Forum reviews (look for topics mentioning your model and Android version). 4. Assembly date (old firmware may not support new devices).

5. Firmware through EDL (Emergency Mode)

EDL (Emergency Download Mode) is used to restore Redmi that:

  • ๐Ÿ’€ Not included (brick after failed firmware).
  • ๐Ÿ”„ They are getting stuck on the boot (bootloop).
  • ๐Ÿšซ Not defined in Fastboot.

Important: For firmware through EDL You need an authorized Xiaomi account (for new models) or boxing (UFi Box, EasyJTAG). IMEI.

If you're not a specialist, you should contact the service center.

  1. Download firmware in.mbn format (for example, from xiaomifirmwareupdater.com).
  2. Install the Qualcomm HS-USB QDLoader 9008 (for Qualcomm) or Mediatek Preloader (for Mediatek).
  3. Connect the phone to your PC by clamping Volume Up + Volume Down (for Qualcomm) or closing the Test Point contacts (for Mediatek).
  4. An unknown device should appear in the Device Manager โ€“ update the driver manually for it.
  5. Use the Mi Flash Tool (EDL mode) or QFil for firmware.

๐Ÿ’ก

If the phone is not identified in EDL, Try to use another one. USB-port (preferably) USB 2.0) or disable the driver signature in Windows via the bcdedit command /set nointegritychecks on (requires administrator rights).

6.How to return the official firmware after custom

If custom firmware is unstable or you want to return the warranty, reflash the device to the official MIUI.

  1. Download the full official firmware (.tgz) for your model from the Xiaomi website.
  2. Unlock the bootloader (if it was blocked after custom firmware).
  3. Sweat through Fastboot (Section 3) in Clean All mode.
  4. If the phone doesn't turn on after firmware, try: Swipe again with the Clean all and lock mark. Use EDL (section 5).

Nuances:

  • ๐Ÿ”’ Once you return to the official firmware, the bootloader can be blocked back (via the Mi Flash Tool), but this again requires waiting 7-30 days the next time you unlock.
  • ๐Ÿ“ฑ On some models (Redmi) K50, Redmi Note 12) after returning to the MIUI You may need to reset via Recovery (Wipe Data).

7. Solving errors after firmware

Even with a successful firmware, there can be problems.

Phone not turned on (black screen):

  • ๐Ÿ”‹ Check the battery charge (plug in to charge for 30 minutes).
  • ๐Ÿ”„ Try to go to Recovery (Loudness Up). + Powering) and making Wipe Data.
  • ๐Ÿ“ฅ Refuse the device via Fastboot or EDL.

2. No network (IMEI missing):

  • ๐Ÿ“ก For Qualcomm: Use it QCN Rebuilder or Maui META repair IMEI.
  • ๐Ÿ“ก For Mediatek: Sweep through the file NVRAM through SP Flash Tool.
  • ๐Ÿ”ง Check if the section persists (if you did backup in the TWRP, restore it).

Rapid discharge of battery:

  • ๐Ÿ”‹ Reset your battery statistics in Recovery (Wipe Battery Stats).
  • ๐Ÿ“‰ Calibrate the battery (discharge to 0%, then charge to 100% without interruption).
  • ๐Ÿ”„ Return to official firmware โ€“ custom builds are often optimized worse.

4. sensors do not work (gyroscope, proximity):

  • ๐Ÿ”ง Re-surface the persistent section (if there is a backup).
  • ๐Ÿ“ฅ Install firmware with another core (check on the forum) XDA).

๐Ÿ’ก

If it's gone after the firmware. IMEI, DO NOT restart the phone, it can lock the communication module permanently. IMEI through engineering menus or specialized utilities.

FAQ: Frequent questions about Xiaomi Redmi firmware

โ“ Can I flash Redmi without unlocking the bootloader?
Yes, but only official firmware via MIUI Updater or Recovery. For custom firmware (LineageOS, Pixel Experience) and changing the regional version (China โ†’ Global), unlocking is mandatory.
โ“ How to find out the code name of your Redmi model?
Codename (e.g. surya for Redmi Note 9 Pro) can be found: Settings โ†’ About Phone โ†’ MIUI โ†’ Assembly number (first letters before dash). Through the command in ADB: adb shell getprop ro.product.device On sites like Xiaomi Firmware Updater (select your model).
โ“ Why does the Mi Flash Tool not see the phone?
Causes and solutions: ๐Ÿ”Œ No drivers โ€“ install Mi PC Suite or manual drivers. ๐Ÿ”„ The wrong mode โ€“ the phone should be in Fastboot (screen with a rabbit). ๐Ÿ“ก Problems with USB โ€” Try another cable/port (preferably) USB 2.0). ๐Ÿ”’ bootloader is locked โ€“ unlock it through Mi Unlock Tool.
โ“ How to Reverse to the Old Version MIUI?
You can only roll back within one anti-rollback index. If you try to flash an older version, you get an anti-rollback check fail error and a brick. Check the current index: Download the firmware archive and open the file. flash_all.sh (for Linux/macOS) or flash_all.bat (For Windows, find the line anti.=X (where X is a number, for example, 4 or 5). Compare it to the current firmware, you can only roll back on the same or higher index version. If the index is lower, you can only return the old version through the same or higher index. EDL with an authorized Xiaomi account.
โ“ Which firmware to choose: Global, China or EEA?
Depending on your region and needs: Firmware Region Pros minuses Global World (except China and EU) Google support, many languages Updates later than China China The most recent updates, more stable No Google, many Chinese services EEA Europe GDPR compliance, no Chinese services Less features (for example, no themes design) For Russia and the CIS usually choose Global. If you want maximum functionality - China + manual installation GApps.