How to install stock recavator on Xiaomi: the complete guide

Owning a Xiaomi-branded device often involves wanting to experiment with software. Many users install custom recovery menus, such as TWRP, to gain advanced rights or install modified firmware. However, when using a smartphone, you may have to go back to factory settings.

Restoration of stock Recovery is required not only when selling the device, but also for the successful passage of official updates through the air (OTA). Security system MIUI or HyperOS can block updates if it detects a modified boot partition, and a standard menu is required for the device search function and some banking applications to function properly.

The process of returning the original software requires careful and strict adherence to the sequence of actions. Any error when working with low-level partitions of memory can lead to malfunction of the gadget. In this article, we will discuss in detail how to restore the regular recovery menu for various models of the Chinese manufacturer.

Why You Should Return the Factory Recovery Menu

The main reason smartphone owners are eager to return Stock Recovery is that they can't get official updates. OTA checks the integrity of system partitions, and having a modified bootloader or recovery interrupts the installation process. Without going back to the drain, you'll have to wait for the global firmware version to come out and refashion the machine through the computer.

Another important aspect is data security: Custom recaps, especially older versions, can have vulnerabilities that theoretically allow access to device data on physical contact. Xiaomi’s regular recovery menu lacks features that make it easy to copy user data without a password, which increases privacy.

Warranty obligations are also worth mentioning. While software modifications are often difficult to track remotely, when you drop a device at a service center, the presence of TWRP is immediately evident. Returning stock software minimizes the risks of denial of warranty service, since the device will look like factory software.

πŸ“Š What is your main reason for returning the drain?
No OTA updates coming
Selling the device
Guarantee case
I just want a clean system.

⚠️ Warning: Before you start any manipulation of memory partitions, make sure that the battery is at least 60% charged. interruption of the data writing process due to battery discharge can damage the boot sector.

Necessary tools and device preparation

To successfully perform the procedure, you will need a personal computer or laptop running the Windows operating system. Using macOS or Linux is possible, but requires additional driver and command line settings, which can complicate the process for an inexperienced user. Stable. USB-Connection is critical for transferring firmware files.

The second mandatory element is the original or quality certified USB-Cheap charging cables are not capable of transmitting data and can cause a connection to break at a critical moment.

You also need to download and install the current ADB and Fastboot drivers, and without them, your computer won't be able to recognize your smartphone in bootloader mode. Often, these drivers come bundled with Google's platform tools, which are the standard in the indie market.

β˜‘οΈ Firmware readiness check

Done: 0 / 5
  • πŸ“± Smartphone Xiaomi, Redmi or POCO loader-free.
  • πŸ’» PC with installed drivers ADB and Fastboot.
  • πŸ”Œ Correct. USB-data-line.
  • πŸ’Ύ Image file recovery.img, matching your firmware version.

Search and download the original Recovery image

The most difficult step is often to find the correct recovery.img file. Using an image from another model or another version of Android can lead to a bootloop (cyclic reboot) or complete sensor and display inoperability.

Official images can be extracted from full firmware available on miui.com or specialized resources such as XiaomiFirmware. You will need to download the firmware archive, unpack it and find the file. recovery.img inside the image folder. To extract files from the format payload.bin (In newer firmware, you may need a utility payload_dumper.

An alternative, but less reliable way is to search for ready-made dumps on forums like 4PDA or XDA Developers. When downloading, pay attention to the date of publication and device model in the title of the theme. Do not use files with the.zip extension to direct firmware through Fastboot if there is no clean.img file inside.

Where exactly can not take recovery files?
Never download recovery files from questionable file sharing sites without checking hash amounts or user comments.The file can be modified by attackers to inject malicious code at the bootloader level, making the device vulnerable even after a reset.

Firmware stock Recovery via Fastboot

Fastboot is the most versatile and reliable way to replace the recovery menu. It works at the bootloader level and doesn't require a working operating system. First, put your smartphone into Fastboot mode by slamming the volume button when the device is off and connecting it to your PC.

Once connected, open the command line in the ADB tool folder. Make sure your computer sees the device by entering the fastboot device command. Your gadget's serial number should be displayed in response. If an empty line is displayed, check the drivers.

To record a new image, use the command:

fastboot flash recovery recovery.img

After successfully completing a command that takes a few seconds, you immediately reboot to the new menu. To do this, press the combination of the buttons "Loudness Up + Power" and hold them until the Mi or Redmi logo appears. If you just reboot the device to normal mode, custom recovery can automatically overwrite the stock.

Fastboot TeamDescription of actionThe result
fastboot devicesConnection checkDisplay of the serial number
fastboot flash recovery recovery.imgRecording of recovery imageSuccessful section replacement
fastboot rebootA normal reboot.Android launch
fastboot reboot recoveryReboot to RecoveryLaunching the Recovery Menu

⚠️ Note: On devices with activated function A/B Partition may be different, you may need to specify the slot explicitly, for example: fastboot flash recovery_a recovery.img. Refine the structure of your model’s partitions before firmware.

Alternative method through ADB Sideload

If for some reason the Fastboot mode is unavailable or blocked, you can try the update method through the ADB Sideload. This is a way of working from inside a custom Recovery (e.g., a custom recaveri, TWRP) allows you to establish an official ZIP-archive with an update, which contains stock recavery.

To do this, download the full ZIP firmware for your model. Go to the TWRP menu, select "Install" and find the downloaded archive. However, to update the recovery section, you often need to use the ADB command from your computer.

When you are in Recovery mode on your phone, select "Apply update from" ADB" (Apply the update through ADB). On the computer in the command line enter:

adb sideload update_package.zip

This method is less predictable.