Installation of the system on Xiaomi Redmi: from unlocking the bootloader to firmware

Installing or reinstalling the operating system on Xiaomi Redmi smartphones is a challenge for both beginners and experienced users. The reasons can be different: from wanting to switch from the Chinese version. MIUI But the process requires care, because a mistake at any stage can turn a phone into a brick. In this article, we'll look at all the ways you can install a system: From official methods via Fastboot and Recovery to alternative firmware like Pixel Experience or LineageOS.

It's important to understand that Redmi is not just one model, but a whole line of devices with different processors (Snapdragon, Mediatek, Dimensity) and bootloader versions. For example, the instruction manual for Redmi Note 10 Pro (2021) will not work for Redmi 12 (2023) because of the differences in architecture, and we will take these nuances and give universal recommendations, and also indicate where to find the current firmware files for your model.

Before you start, answer three key questions:

  1. What version of the system you need: official MIUI (stable/beta, global ROM (EEA, Global) or custom firmware?
  2. Are you ready for data loss? (In 90% of cases, installing a system requires a complete reset.)
  3. Do you have a backup of important files and access to your PC?
๐Ÿ“Š Why do you want to re-interview your Redmi?
I want to remove Chinese apps
I need the latest version. MIUI
The device is glitching, restoration is required
I want custom firmware (AOSP)
Another option

1. Preparation for installation: Backup and unlocking of the bootloader

The first and most critical stage is preparation. Without an unlocked bootloader, you wonโ€™t be able to install custom software or even official firmware through Fastboot. Xiaomi has a strict policy: unlocking requires a Mi Account account and waiting (3 to 30 days depending on the model).

What to do before you start:

  • ๐Ÿ“ฑ Create a backup: Use Settings โ†’ Additionally. โ†’ Backup and reset or third-party utilities like Swift Backup (requires root). Especially save: Contacts (export to.vcf) Photos and videos (copy to PC or cloud) SMS and call logs (applications like.vcf) SMS Backup & Restore)
  • ๐Ÿ”“ Unlock the bootloader: Link Mi Account to the device in Settings โ†’ Xiaomi account. Enable Developer Options (7 times tap on the version) MIUI In Settings โ†’ On the phone. Activate Unlock. OEM and debugging. USB Download Mi Unlock Tool (the official utility from Xiaomi) and follow the instructions.
  • ๐Ÿ’ป Prepare a PC: Install drivers ADB/Fastboot (For example, through Minimal ADB and Fastboot) and download the firmware for your model.

โš ๏ธ Note: If you unlocked the bootloader but haven't installed a new firmware within 30 days, the device may automatically lock again.This rule applies to models released after 2021.

Where to look for firmware:

Type of firmwareSourceNotes
Official MIUI (Stable/Beta)Official Xiaomi websiteChoose a version for your model (for example, Redmi Note 11 Pro)+ 5G = veux).
Global ROM (EEA/Global)Xiaomi Firmware UpdaterCheck the region! Firmware for India (IN) may not support NFC Europe.
Castom firmware (AOSP)XDA DevelopersPopular options: Pixel Experience, LineageOS, ArrowOS.
Stockware (for recovery)MIUI ROMSuitable if you need to return the phone to the factory settings.

โ˜‘๏ธ Checklist before firmware

Done: 0 / 5

2. System installation methods: Fastboot vs Recovery

There are two main methods of firmware Redmi: through Fastboot (boot mode) and Recovery (recovery mode).

Method 1: Installation via Fastboot (recommended for official firmware)

  • โœ… Suitable for: change of region (c) CN on Global), recovery after failure, installation of official updates.
  • โŒ Not suitable for: custom firmware (requires pre-installation of custom Recovery).
  • ๐Ÿ”ง Instructions: Unpack the downloaded firmware (.tgz or.zip format) into a folder on your PC. Connect your phone to your PC in Fastboot mode. + Volume down when turned on. Launch the file flash_all.bat (Windows or flash_all.sh (Linux/Mac). Wait until the process is completed (the process will take place) 5โ€“15 minute).

Method 2: Installation through Recovery (for custom firmware)

  • โœ… Suitable for: Pixel Experience, LineageOS, modified cores.
  • โŒ Risks: Wrong firmware choices can lead to loss IMEI or a broken camera (especially on models with Mediatek).
  • ๐Ÿ”ง Instructions: Install custom Recovery (for example, TWRP) Fastboot: Fastboot Flash Recovery twrp.img fastboot boot twrp.img Copy the firmware (.zip format) on your phone or flash drive. TWRP Choose Install โ†’ Select a file โ†’ Swipe to Confirm Flash. After installation, run Wipe โ†’ Format Data (required for the AOSP-firmware!).

โš ๏ธ Note: Some Redmi models (e.g. Note 12 Pro)+) custom Recovery is blocked by anti-rollback, in which case a patch is required to bypass the protection (see on the XDA device-coded).

๐Ÿ’ก

If after firmware through Fastboot the phone is stuck on the logo MI, Try to clamping the power. + Volume up 20 seconds for forced reboot. If it doesn't work, repeat the full format firmware (fastboot erase userdata).

3. Setting a global ROM on the Chinese version of Redmi

Many users buy Redmi in Chinese stores (for example, on AliExpress or Gearbest) and face a problem: the device runs on Chinese firmware (CN) With a bunch of unnecessary apps and no support for Google Services. EEA) It solves these problems, but requires caution.

Step-by-step:

  1. Check the device model and code: Go to Settings โ†’ The phone. โ†’ Version. MIUI. Find the Model string (for example, M2101K6G For Redmi Note 10 Pro, define the region by code: C โ€“ China, G โ€“ Global, R โ€“ Russia.

Download the correct firmware

  • For the Redmi Note 11 (spes) global firmware will have a name spes_global_images_....
  • Use the firmware archive to find a stable version.
  • Fastboot: Fastboot Flash boot boot.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash dtbo dtbo.img fastboot reboot If the firmware is in.tgz format, use flash_all.bat (see section 2).

Frequent mistakes and decisions:

  • ๐Ÿšซ Anti-rollback error: means you are trying to install the old version of the software on a new one. The solution is to download the firmware with the same or newer Anti-rollback number (indicated in the file name).
  • ๐Ÿšซ No network after firmware: check if the firmware region matches the modem region. 9 may need to be sewn modem.img separately.
  • ๐Ÿšซ Freeze: Reset with Recovery (Wipe Data).
How to check the Anti-rollback version?
Open the file. flash_all.bat In the notebook and find the line with anti=X, where X is the version number. For example, anti=4 This means that the firmware with anti=3 won't fit.

4. Installation of custom firmware (AOSP, Pixel Experience and others.)

Custom firmware like Pixel Experience or LineageOS allows you to get a โ€œcleanโ€ Android without a shell MIUI, However, installation requires an unlocked bootloader and custom Recovery (usually) TWRP).

Detailed instructions for the Redmi Note 10 Pro (sweet):

  1. Install. TWRP: Download the current version TWRP For your model from the official website.Swipe through Fastboot: fastboot flash recovery twrp-3.7.0_sweet.img fastboot boot twrp-3.7.0_sweet.img

Prepare the firmware.

  • Download Pixel Experience or LineageOS for Sweet C XDA.
  • Additionally, download NikGApps (Google Apps package) and Magisk (for root).
  • Let's go in. TWRP: V TWRP Choose the Wipe โ†’ Advanced Wipe and mark Dalvik, Cache, System, Data. Install the firmware (Install) โ†’ Choose. ZIP), Then GApps and Magisk. Reboot System. It can take up to 10 minutes to turn on.

Problems and solutions for custom firmware:

Problem.Reason.Decision
The camera's not working.No drivers for Mediatek or SnapdragonSweep the patch. ANX_Camera Or use GCam with config for your model.
No sound in the speaker.Incompatibility with the kernelInstall an alternative core (e.g., FrancoKernel).
Not defined SIM-mapAbsent. modem.img erroneousSweat the stock modem from the official firmware.

โš ๏ธ Note: On devices with Dynamic Partition (e.g. Redmi) K50) Installation of custom firmware can lead to loss of data in the userdata section. Before firmware, make a full backup via adb backup.

5. System Recovery After Failed Firmware

If you don't turn on your phone after you've installed it, you freeze it on your logo, or you go to a bootloop, don't panic. 90 percent of the time, you can restore it, and the key is to diagnose the problem correctly.

Algorithm of action:

  1. Identify the symptom: ๐Ÿ”„ Bootloop (permanent restart) โ€“ usually caused by incompatible firmware or interrupted process. ๐Ÿ“ต Black screen โ€“ can be a hardware problem (check charging) or damage boot.img. ๐Ÿค– Hanging on the logo MI โ€” Often associated with an incorrect vendor or system.
  2. Try to enter Recovery: Click the Power + Volume up for 10 to 15 seconds. If stock Recovery appears, select Wipe Data. TWRP โ€” Try to re-flash the system.
  3. Fastboot: Download the stock firmware for your model. Use the command to clean it completely: fastboot erase boot fastboot erase system fastboot erase userdata fastboot flash_all.bat

If nothing helps

  • Check if the Anti-rollback has been activated (see spoiler section 3).
  • Contact the service center if the problem is hardware (for example, damaged eMMC chip).

๐Ÿ’ก

If the phone doesnโ€™t respond to any combination of buttons, try plugging it into charging for 30 minutes โ€“ sometimes a dead battery blocks access to the Fastboot.

6. System optimization after installation

Once successful, the firmware remains to configure the system for maximum performance and stability, which is especially important for custom firmware, where optimizations from Xiaomi may not be available.

Checklist for optimization:

  • โšก Disable unnecessary services: In Settings โ†’ Apps disable autorun for Mi Browser, Mi Video, Cleaner. ADB Deactivation of system applications: adb shell pm uninstall --user 0 com.miui.cleanmaster
  • ๐Ÿ”‹ Configure the battery: Activate Adaptive Charging in Settings โ†’ Battery. For custom firmware, install AccA (battery calibration app).
  • ๐Ÿ“ก Improve communication: In Settings โ†’ SIM-Maps and mobile networks turn on 4G+ For a weak signal, run an alternative modem (see on the 4PDA model).
  • ๐ŸŽฎ For gamers: Enable Performance Mode in Settings โ†’ Additionally. โ†’ Install Game Turbo (available in the MIUI default).

For custom firmware (Pixel Experience, LineageOS):

  • Install Magisk for root rights and modules (e.g, ViPER4Android sound-wise).
  • Set up Kernel Adiutor to fine tune the kernel (frequency) CPU, input-output planner).
  • Use GCam with config for your model (e.g, BSG For the Redmi Note 11 Pro+).

๐Ÿ’ก

If the swipe gesture does not work after the Pixel Experience firmware, install the Fluid Navigation Gestures module via Magisk.

7. Frequent mistakes and how to avoid them

Even experienced users have experienced errors when running Redmi, and we've collected some of the most common problems and solutions.

Mistake.Reason.Decision
Invalid sparse file format at headerA firmware file or incompatible version of TWRP is damagedDownload the firmware again and check the checksum (MD5). Update. TWRP.
This package is for "sweet" devices; this is a "veux".The firmware is not suitable for your model.Check the device code in Fastboot with the fastboot getvar product command.
Phone is not defined in FastbootLack of drivers or faulty cableInstall the Mi Flash Tool (includes drivers) or try another one USB-port (preferably) USB 2.0).
Loss of IMEI after firmwareThe nvram or modem partition is damagedRestore. IMEI via MauiMeta (for Mediatek) or QCN (for Snapdragon).
Anti-rollback check fail!Attempt to roll back on the old version of the softwareFind firmware with the same or newer Anti-rollback (see Section 3).

If you have an error that is not in the table:

  1. Take a picture of the screen with the error.
  2. Find the error text in Google or forum 4PDA (partition).
  3. Enter the device code (e.g. Redmi Note 10 Pro sweet).
๐Ÿ”น Can we determine MIUI Redmi without unlocking the bootloader?
Yes, but only through Recovery (air update or local package). To do this: Download the firmware in.zip (not.tgz!). update.zip And put it in the root of the memory. + Volume up, select Install update.zip. This method does not work for the change of region (c) CN on Global) or custom firmware installations.
๐Ÿ”น How to return the stock firmware if the phone does not turn on?
If the device doesn't respond but is determined in Fastboot: Download the stock firmware for your model from miuirom.org. Unpack the archive and launch flash_all.bat. If the process is interrupted, use the Mi Flash Tool with the Clean All option. If the Fastboot is not available, contact the service center - perhaps damaged eMMC chip.
๐Ÿ”น Which firmware to choose for maximum performance?
Depending on your goals: Stability: Official MIUI Global Stable. Speed and clean Android: Pixel Experience or LineageOS. Games: MIUI China (less optimized for the background but with better gaming performance) + Perseus core.Camera: stock MIUI It's a ported GCam for the Redmi Note 12 Pro.+ (Dimensity 1080 is recommended by ArrowOS โ€“ itโ€™s better optimized for Mediatek.
๐Ÿ”น How to Bypass Waiting to Unlock the bootloader?
It is impossible to get around the wait (3-30 days) officially, but there are unofficial methods (risk of blocking the account!): Use XiaomiTool V2 (Link the device to an account that has already unlocked the bootloader on another phone, turn to โ€œgrayโ€ services that offer unlocking for a fee (risk of fraud!). Since 2023, Xiaomi has tightened its policy: Attempt to cheat can lead to permanent blocking of Mi Account.
๐Ÿ”น Why Google Pay doesnโ€™t work after the firmware?
The problem is related to: Unlocked bootloader: Google Pay does not work on devices with unlocked bootloader (security requirement). Castile firmware: no Google certification. Root rights: Magisk interferes with SafetyNet. Solutions: For MIUI: Return stock Recovery and lock the bootloader back (fastboot oem lock command). For custom firmware: install MagiskHide Props module