How to return the official firmware on Xiaomi Redmi 9: 3 working methods + error solving

Repairing stock firmware on Xiaomi Redmi 9 (codenamed lancelot) can be needed in a variety of situations: after a failed installation of custom software, system failures, logo hovers, or just to return to the factory state. The process seems difficult only at first glance β€” in fact, it boils down to choosing the right method and meticulously implementing steps. The main thing is to understand that returning to the original software not only solves performance problems, but also restores access to proprietary MIUI features such as Game Turbo or Second Space.

Many users are afraid of β€œbricks” after manipulating the firmware, but with the right approach, the risks are minimal. In this article, we will discuss three proven ways to return stock firmware β€” through Fastboot, Recovery and Mi Flash Tool β€” and also explain how to avoid typical errors.

Before you start, make sure you have:

  • πŸ”‹ Charged smartphone (minimum 50% – the process can take up to 30 minutes).
  • πŸ’» Windows computer 7/10/11 (For the Mi Flash Tool Methods).
  • πŸ”Œ Original. USB-cable (cheap cables often don’t transmit data to Fastboot).
  • πŸ“ Backup of important data (return to stock firmware erases all user files).
πŸ“Š Why are you restoring your stock firmware?
The device is not switched on.
I want to take down the custom firmware.
Failures and glitches after the update
Selling a phone.
Other

1. Preparation: what files are needed and where to download them

The first step is to download the correct firmware version for your model. - Xiaomi Redmi 9 There are several modifications (for example, lancelot_global, lancelot_eea In Europe, the installation of the wrong version can lead to problems with the network or language packages:

  • 🌍 Official website MIUI β€” The latest stable and beta versions are available here. β†’ Download Full ROM.
  • πŸ”— Xiaomi Firmware Updater – an unofficial archive with firmware for all regions, including older versions.

To restore the stock firmware, you will need:

  1. Fastboot-ROM is a file with the.tgz or.zip extension (for firmware via the Mi Flash Tool).
  2. Recovery-ROM is a.zip file (for installation via Stock Recovery or TWRP).
  3. Drivers: Mi USB Driver (download from the official website) and ADB/Fastboot tools (e.g. Platform Tools from Google).

Note the MIUI version: If your Redmi 9 was running MIUI 12, but you want to roll back on MIUI 11, you may need to unlock the bootloader.

πŸ’‘

If you are not sure about the regional firmware version, check the current one in the settings: Settings β†’ About Phone β†’ MIUI version. The last characters (for example, V12.5.1.0.RJCMIXM) indicate the region: CN – China, EU – Europe, Global – international version.

2. Method 1: Fastboot Recovery (for a locked bootloader)

This is the best way to do this if your Redmi 9 is:

  • πŸ”„ Hanging on the logo. MI or downloaded to Fastboot.
  • πŸ”’ Has a locked bootloader (not unlocked via Mi Unlock Tool).
  • πŸ“± Not responding to attempts to enter Recovery.

For firmware through Fastboot, we use Mi Flash Tool, the official utility from Xiaomi.

  1. Install drivers: Connect your phone to your PC in Fastboot mode (press Power + Volume down when the device is off). Android Bootloader Interface should appear in Device Manager.
  2. Unpack the firmware: Remove the downloaded.tgz archive to a folder without Cyrillic characters (for example, C:\MIUI\lancelot_global).
  3. Launch Mi Flash Tool: Select a Firmware folder, press Refresh (should appear) COM-port).
  4. Select firmware mode: Clean all - complete cleaning (recommended in case of failures); Clean all and lock - cleaning + lock the bootloader (if it was unlocked); Save user data - data storage (does not always work stably).

Start the firmware

Flash

Install Mi. USB Driver|Download the latest Mi Flash Tool version|Unpack the firmware into a folder with a short path|Disable the antivirus (can block the process)|Charge your phone at least 60%-->

Typical errors and decisions:

Mistake.Reason.Decision
Couldn't find deviceIt's unrecognizable. USB-portTry another cable/port, install drivers manually through Device Manager.
Flash is not doneIncompatible version of the firmwareCheck the compliance of the model (lancelot) and the region.
Anti-rollback check failAttempt to roll back on the old versionSweat a newer version or unlock the bootloader.
What if the Mi Flash Tool can't see the phone?
1. Reinstall drivers manually: download Google USB Driver and update via Device Manager. 2. Disable driver signatures in Windows: Run the command line on behalf of the administrator and do: bcdedit /set testsigning on bcdedit /set nointegritychecks on 3. Try another PC – sometimes a problem in conflict with others USB-device.

Method 2: Installation via Stock Recovery (without PC)

If the phone turns on and you have access to Recovery, it's easier and doesn't require a computer.

  • πŸ“² Return to stock firmware after soft mods (e.g., removal of system applications).
  • πŸ”„ Correcting mistakes after a failure OTA-update.
  • πŸ”“ Devices with unlocked or locked boot loader (but without critical failures).

Instructions:

  1. Download Recovery-ROM (.zip file) for your model and rename it to update.zip.
  2. Move the file to the root folder of internal memory (not to folders!).
  3. Turn off your phone and go to Recovery: Press Power + Volume up before the MI logo appears. Select a language (if you have a choice) and go to Install update.zip to System.

Confirm the installation and wait for the completion (5-10 minutes).

⚠️ Note: If there is no Install option in Recovery update.zip, You have a customized recap (for example, TWRP). In this case, select Install. β†’ point the way update.zip β†’ swipe for confirmation.

Advantages of the method:

  • βœ… No need for PC and special knowledge.
  • βœ… Save data (unless you have selected the Wipe Data option).
  • βœ… It works even with a blocked loader.

Limitations:

  • ❌ It won’t help if the phone doesn’t turn on or hangs on the logo.
  • ❌ Not all versions. MIUI Support installation via Stock Recovery (e.g. some beta versions).

πŸ’‘

The method through Stock Recovery is the safest for beginners, but only works if the phone turns on and there is access to a standard recovery.

Method 3: Firmware via TWRP (for unlocked bootloader)

If your Redmi 9 has a custom TWRP recovery, you can run the stock firmware through it, which is more flexible than Stock Recovery, but requires caution:

  • πŸ”“ The bootloader must be unlocked (checked by the fastboot oem device-info command - Device unlocked: true).
  • πŸ“¦ Need firmware in.zip format (suitable as Recovery-ROM and special packages for TWRP).
  • πŸ› οΈ You may need to disable the dm-verity check (otherwise the phone will hang on the boot).

Step-by-step:

  1. Download the firmware (for example, with Xiaomi Firmware Updater) and transfer it to your phone or flash drive.
  2. Go to TWRP (Put Power + Volume Up).
  3. Backup your current system (optional): Go to Backup β†’ select Boot, System, Data β†’ Swipe for confirmation.

Install

It's important!

necessarily

disable_dm-verity_forceencrypt.zip

here

Reboot System

⚠️ Note: If after the scaling of the TWRP phone hangs on the logo MI, So, the DM-verity is not disabled. TWRP (clamp down on power. + Volume up when you're hanging. disable_dm-verity_forceencrypt.zip. Perform a reset via Wipe β†’ Format Data (enter yes to confirm).

Advantages of firmware through TWRP:

  • πŸ”§ Selective installation (e.g., only system without data).
  • πŸ“¦ Support for unofficial firmware and mods.
  • πŸ”„ It is easy to revert to the previous version through the backup.