How to Install CWM Recovery on Xiaomi: A Complete Error Detection Guide

Installing custom CWM (ClockWorkMod Recovery) on Xiaomi smartphones gives access to advanced system management functions: creating full backups, installing unofficial firmware and modifications, and restoring the device after failures. However, the process requires care - errors at the stage of unlocking the bootloader or firmware can lead to a "brick" (inoperability) of the phone.

Unlike the standard Mi Recovery, CWM Recovery supports update scripts (update.zip), work with /data and /system partitions without restrictions, and integration with ADB Sideload. This instruction will be suitable for most Xiaomi, Redmi and POCO models (except for devices on the MediaTek platform with a locked bootloader after 2021).

Preparation of the device: unlocking the loader

Before installing CWM Recovery, you need to unlock the bootloader on Xiaomi. This is an official procedure, but it erases all data from the device. Since 2023, Xiaomi has tightened the requirements: it now requires the binding of the Mi Account to the device at least 72 hours before the request.

Algorithm of action:

  • πŸ”— Connect your device to your Mi Account in settings (Settings β†’ Xiaomi Account). Make sure your account is confirmed by email and phone.
  • πŸ”“ Go to en.miui.com/unlock and download the Mi Unlock Tool (Windows version).
  • πŸ“± Enable Developer Mode: Go to Settings β†’ About Phone and 7 times click on Version MIUI. Then activate OEM- Unlock and Debug at USB in Settings β†’ Additional β†’ For Developers.
  • πŸ–₯️ Connect your phone to your PC, launch the Mi Unlock Tool, and log in to the same Mi Account.

⚠️ Warning: If the utility gives an error "Couldn't unlock" with code 86006 or 86012, this means that the account is not tied to the device for long enough. Wait 3-7 days and try again. Using VPN or changing the account region will not help - Xiaomi blocks such bypasses.

Once you unlock successfully, the phone will restart, and you'll see "Unlocked" when you turn on. You can now start installing CWM Recovery.

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
POCO F3/4/5
Mi 11/12/13
Redmi 9/10
Another model

Selecting a CWM Recovery version for your model

Not all versions of the CWM Recovery are compatible with modern Xiaomi smartphones. For devices based on Qualcomm Snapdragon (most models of Redmi, POCO, Mi) builds from the developer OrangeFox or modified versions of the TWRP with support for CWM- scripts. For older devices (for example, Redmi 4X or Mi A1), you can use the original ClockWorkMod.

Where to download:

  • πŸ” Official OrangeFox repository: orangefox.download (select the version for your model).
  • πŸ“¦ Forum XDA Developers: Search for model themes, such as "Redmi Note 10 Pro CWM Recovery."
  • πŸ› οΈ Developer Telegram channels, such as @OrangeFoxUpdates or @XiaomiFirmwareUpdater.
Xiaomi modelRecommended version of CWMDownload link
Redmi Note 10/11 (mojito/sweet)OrangeFox R11.1 (with support for CWM- scripts)Download
POCO F3 (alioth)TWRP with CWM module (unofficial build)XDA
Mi 11 (venus)OrangeFox R11.0 (A11 only)Download
Redmi 9 (lancelot)CWM 6.0.5.1 (Old but Stable)AFH

Before downloading, check the code name of your device! It is indicated in the settings (Settings β†’ About Phone β†’ Model) or you can find out through the command:

adb shell getprop ro.product.device

πŸ’‘

If you are not sure about the choice of version, download two builds (for example, OrangeFox and TWRP with CWM) and test them through a temporary download in fastboot: fastboot boot recovery.img. This will allow you to check the performance without firmware.

Installation of CWM Recovery via Fastboot

This is the most reliable method, but it requires a PC with ADB/Fastboot drivers installed and an unlocked bootloader. If you've never worked with fastboot, follow the instructions carefully.

Installation steps:

  1. Download the archive from CWM Recovery (recovery.img file) and place it in a folder with fastboot (e.g., C:\platform-tools\).
  2. Connect your phone to your PC in fastboot mode: Turn off the device, then press Power + Vol Down before the Mi Bunny logo appears in the Ushanka hat.
  3. Open the command line in the folder from fastboot (Shift + right mouse button β†’ β€œOpen PowerShell window here”) and execute the command: fastboot flash recovery.img
  4. After a successful firmware reboot to Recovery: fastboot reboot recovery

Loaded right. recovery.img for your model|The device in fastboot mode (the logo of Mi Bunny)|Drivers. ADB/Fastboot fixed|The battery is charged more than 50%-->

⚠️ Warning: On some Xiaomi models (e.g. Redmi Note 12), the standard fastboot flash recovery command may not work due to anti-rollback protection. In this case, use an alternative method with a patch through Magisk or the Fastboot Enhance utility.

If after the reboot the phone automatically replaces CWM Recovery with stock, then MIUI protection is activated.

  • πŸ”§ Install Magisk and activate the Disable Force Encryption module (if encryption is used).
  • πŸ“΅ Turn off automatic recovery updates via the command: adb shell "echo 'BOOT_RECOVERY_FORCE_DISABLE=1' >> /data/.magisk

Installation of CWM Recovery without PC (via RashR)

If you don't have access to your computer, you can flash CWM Recovery directly from your phone through the RashR Flash Tool app, which only works on devices with the bootloader and root rights already unlocked.

Instructions:

  1. Download RashR from XDA Developers and install APK.
  2. Download the recovery.img file (as in the previous section) and place it in the root of the internal memory.
  3. Run RashR, provide root access, and select Flash Recovery.
  4. Specify the path to recovery.img and confirm the firmware. Once the reboot is complete, CWM Recovery will be installed.

Advantages of the method:

  • ⚑ No PC and fastboot required.
  • πŸ”„ You can quickly reflash the recovery when testing different versions.

Disadvantages:

  • 🚫 Works only on rooted devices.
  • πŸ”’ Some versions of RashR may not support new Xiaomi models (check compatibility on XDA).
What if RashR doesn’t see recovery.img?
Make sure the file is called recovery.img (without any additional characters). Check the file permissions through the root file manager (such as Root Explorer). If the problem persists, try moving the file to /sdcard/Download/ and try again.

First Start and Configure CWM Recovery

After installing CWM Recovery, you must perform an initial setup to avoid data encryption problems or scripts malfunctioning.

What to do at the first launch:

  1. Reboot to the recavator: Turn off the phone, then press the Power + Vol Up before the TeamWin or OrangeFox logo appears.
  2. If you request permission to modify ("Swipe to Allow Modifications"), confirm (this will disable the dm-verity signature verification).
  3. Go to Wipe β†’ Format Data and do the formatting (this will remove the encryption if it has been activated). Type yes for confirmation.
  4. Return to the main menu and select Reboot β†’ Recovery to reboot in CWM Recovery with clean settings.

The main functions of CWM Recovery, which will be useful:

  • πŸ“ Backup – Create a complete backup system (including boot, system, data).
  • πŸ”§ Mount – mount partitions for manual editing via ADB.
  • πŸ“₯ Install β€” Install ZIP- firmware (e.g. LineageOS or Pixel Experience).
  • πŸ”„ Advanced β†’ Fix Permissions – fixing access rights after incorrect firmware.

⚠️ Warning: If the phone stopped booting after formatting the data, the cryptographic tag was removed, in which case you need to flash the clean firmware through fastboot or restore the backup from CWM Recovery.

Common mistakes and their solutions

Even with the correct following of the instructions, there can be problems, and let's look at the typical errors and how to fix them.

Mistake.Reason.Decision
"E: Unknown command [log]"Incompatible version of CWM with the core of the device.Download another recaveri build (e.g. OrangeFox instead of TWRP).
"Failed to mount /data (Invalid argument)"Encryption is FBE (File-Based Encryption) enabled.Format data in the Recovery or run Disable Force Encryption through Magisk.
The phone is loaded into the stock recavator after firmware.The MIUI protection (recording of the recavery when loading) is activated.Switch boot.img with avb disabled or use fastboot boot recovery.img for a temporary download.
"E: Signature verification failed"There is no sign-checking disabled.Turn on Disable dm-verity in the Recovery settings or swipe Magisk to bypass the check.

If none of the solutions worked, try:

  • πŸ”„ Return to the stock firmware via the Mi Flash Tool and repeat the process from scratch.
  • πŸ“‘ Use alternative Recovery (e.g., PitchBlack instead of OrangeFox).
  • πŸ’¬ Contact profile forums (XDA, 4PDA) with an error log (it can be obtained through adb logcat).

πŸ’‘

If the phone doesn't turn on after installing CWM Recovery (black screen or logo hover), the problem is most likely incompatibility of the recovery version with the kernel. Solution: run the stock boot.img through fastboot and repeat the process with another build.

Backup and System Recovery with CWM Recovery

One of the key features of CWM Recovery is to create full backups (nandroid backup), which allows you to restore the phone in the event of a crash or failed firmware.

How to make a backup:

  1. Go to Backup in the main menu of the Recaveri.
  2. Select the sections for reservation (it is recommended to note everything: boot, system, data, recovery).
  3. Confirm the start of the process and wait until it is completed (it may take 10–30 minutes).
  4. The backup will be saved to /TWRP/BACKUPS/ (or /clockworkmod/backup/ for older versions).

How to restore the system:

  1. Go to Restore and select the right backup.
  2. Mark the partitions for recovery (usually boot, system, and data are sufficient).
  3. Confirm the action and wait for the completion.

Important nuances:

  • πŸ—ƒοΈ Backups take up a lot of space (5-15 GB) Store them on an external memory card or PC.
  • πŸ”„ Restore the backup to another version MIUI can lead to bootloop. Use backups only for the same firmware.
  • πŸ”’ If the backup is made on an encrypted device, you will need to enter a password to recover.

πŸ’‘

To speed up the backup, connect your phone to charging and turn off checksum checkouts in the Recovery settings (Settings β†’ Disable MD5 check during backup).

FAQ: Frequent questions about CWM Recovery on Xiaomi

Can I install CWM Recovery on Xiaomi with a locked bootloader?
No. Any custom recovery (including CWM Recovery) requires an unlocked bootloader, and you can't get around that limitation -- even root rights can't help you sew the recovery without unlocking it.
How to return stock recavator after installing CWM?
Download the original recovery.img for your model (you can use stock firmware) and run it through fastboot: fastboot flash recovery recovery_stok.img or use the Mi Flash Tool for a full flash flashing of the device.
Why does CWM Recovery not see internal memory?
This is due to: FBE encryption (recovery data formatting); /data partition damage (try firmware reflashing); recovery version incompatibility (update CWM Recovery to the last build).
Can I use CWM Recovery to flash Global firmware to the Chinese Xiaomi model?
Technically yes, but there are risks: πŸ“΅ Possible loss of communication (modems for Chinese and global versions may differ). πŸ”‹ Some features (e.g., NFC or IR-blaster) may not work properly. πŸ”„ For successful firmware, you need to choose a firmware with the same device code name (e.g., ingres for Redmi Note 12 Pro+).
How to upgrade CWM Recovery to a new version?
Just download the new recovery.img and swipe it over the old one via fastboot or RashR. Pre-backup the current recaveri (in case of a rollback).