Flashing RWRP on Redmi Note 5 Whyred and Survive OTA

Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 1

Follow all the steps we have done below to flash Red Wolf Recovery on Xiaomi Redmi Note 5 Pro/Global (whyred) running any version of MIUI (ARB/Non-ARB). This recovery is also compatible with custom ROMs such as LineageOS, MIUI Xiaomi.eu, Pixel Experience, and so on.

RedWolf Recovery Project (RWRP) is a modified build of the original TWRP with some additional twists. RWRP sports custom features such as password protection. Flashing a custom recovery needs an unlocked bootloader. This makes your phone less secure. Anyone with access on your phone can easily boot into recovery and flash anything including malicious binaries. RWRP adds password protection feature to prevent illegal access over your phone’s recovery mode.

Moreover, RWRP supports the official MIUI incremental OTA update. It means you can easily and conveniently upgrade your phone to the latest version of MIUI just like usual. There is no need to download the full ROM package just because you run a custom recovery on your device. RWRP won’t break the OTA Update. However, there is an additional trick you will need to accomplish before enjoying this feature.

Some other features of RWRP include built-in with latest Magisk root, Tap to wake, and DM-Verity / Force Encryption Disabler. Not to mention some cool stuff added by its community such as Substratum Rescue, Remove ROM Security, FGO Patch, Fix fingerprint scanner, Ramdisk cleaner, and so on.

Anti-rollback Protection

Xiaomi has rolled out newer versions of MIUI for Redmi Note 5 Pro/Global/China/AI (Whyred) that features Android Oreo Anti-rollback Protection mechanism. The feature wants to prevent bad things to happen if users downgrade their device to older MIUI versions. However, this feature is not without a catch.

The implemented ARB Protection since MIUI has changed the way users can install a custom recovery. Based on this side effect, you cannot just do the fastboot flash recovery as usual. It requires more steps to accomplish the mission.

Moreover, forcing to do the old-school way on flashing recovery will deactivate fastboot. Luckily, there is a patch capable to re-activate fastboot.

Read more about ARB here:

Steps to Flash RWRP


You will need these:


You need to accomplish the following tasks prior to rooting your MIUI device:

  1. Unlock your phone bootloader officially. This is particularly easy but it may take some time. Read our full guide on how to do this here.
  2. Disable Driver Signature Enforcement on your Windows computer. This allows smooth installation process, or else, you will end up fail on installing the necessary driver. The full tutorial is here.
  3. Install Xiaomi ADB-Fastboot USB driver software you have downloaded it from the above link. This allows your computer to recognize your Android device properly. On top of that, this makes sure you can establish both ADB and Fastboot connection while the phone is in Bootloader mode and USB Debugging enabled. Choose site-wide installation during the process. Once installed, you will have it in your drive C:\adb\. You may also use Mi Flash tool instead. The tool bundles all required drivers within its installation.
  4. Download the latest version of the Magisk zip file or DM Verity Disabler zip file directly to your phone (link available above). You may copy the zip file from the Downloads folder to the root directory of your phone storage for an easier access.
  5. Backup your important data. We hold no responsibility for any potential damage of following this article. Please proceed with caution.


Follow all the steps below to install TWRP on your phone:

  1. Download the RWRP image file from the above link to your computer and rename the file to recovery.img.
  2. Download the ARB Bypasser zip file and extract the image file.
  3. Copy the recovery.img and dummy.img files to the C:\adb\ folder.
  4. Enable Developer Options. Go to Settings > About phone > tap the MIUI version several times until the developer options being enabled.
  5. Also, enable USB Debugging through Settings > Additional Settings > Developer Options > USB Debugging > toggle it on.
  6. Reboot your phone into bootloader/fastboot mode. You can either use the button combination method or use the ADB method. Read our full guide about Redmi Note 5 bootloader mode here.
  7. Connect your phone to your computer using its USB cable.
  8. On your computer, go to the ADB folder in Windows Explorer. This is usually located at C:\adb\.
  9. Type “cmd” – without quotes – in the Address bar of Windows Explorer, then hit Enter. This will launch Command Prompt window right in the current location.
  10. Type “fastboot getvar anti” and hit Enter. This instructs your computer to check for ARB index of your phone.
ALSO READ:  Redmi Note 5 MIUI Global Stable Recovery ROM (All Versions)

Steps to Flash RWRP

  1. If your ARB index is 4 or greater, type “fastboot flash antirbpass dummy.img” and hit Enter. The command orders your computer to flash dummy.img file to your device through the Fastboot interface. Skip this step and use Step 2 below if your ARB index is 3.
  2. Type “fastboot flash recovery recovery.img” and hit Enter. This instructs the computer to flash RWRP image file to the phone through the fastboot interface. The process should finish within seconds.
  3. Type “fastboot reboot recovery” and hit Enter. This will boot your device into RWRP. Alternatively, you can also use this command: “fastboot boot recovery.img
  4. Your phone will now reboot into RWRP recovery mode.

Recommended reading:


  1. The first time you boot into RWRP, you will need to do the “Swipe to allow system modification“. By doing this, it will trigger the MIUI DM-Verity security check. Without flashing Magisk or its disabler module, your phone will fail to boot.
  2. Choose “Install” from the main menu.
  3. If you want to flash TWRP without rooting, flash the Lazyflasher DM-Verity Disabler zip file. Locate the file, tap on it to select it, and do the “Slide to confirm flash“.
  4. Otherwise, flash Magisk if you want to have full root access on your phone. Locate the Magisk zip file, tap on it to select it, and do the “Slide to confirm flash“.
  5. Wait for a few seconds for RWRP to finish its job.
  6. Once done, tap Reboot.

How to Survive MIUI OTA

  1. Copy the downloaded MIUI Recovery ROM (zip) file to your phone storage. Check and download the latest Global Stable Recovery ROM here or here for the China Stable ROM.
  2. Reboot your phone into RWRP Recovery mode. You can turn off your phone completely, then press the Power and Volume Up (+) button simultaneously to achieve this.
  3. Once you are in RWRP Menu, tap the second icon from the left.
    Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 2
  4. Here you need to modify the OTA survival trigger path. Change the OTA Survival trigger path from to “META-INF/com/miui_miui_update” to “META-INF/com/google/android/update-binary“.
    Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 3
  5. Next, tap on the third icon from the left with RedWolf specific settings.
    Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 4
  6. Now find and enable this checkbox: “Support OTA Survival trigger package“.
    Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 5
  7. Go back to the RWRP main menu and choose Install.
    Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 6
  8. Locate the full MIUI Recovery zip file. Tap on it to select it.
  9. Flash the MIUI ROM file by doing the “Swipe to confirm flash“.
  10. Wait for it to accomplish the task. Once done, reboot to system.
  11. Now every time you get OTA update, simply download it using the updater app.
  12. Once the download is complete, just let it automatically reboot into the Recovery which in this case is handled by RedWolf.
  13. RedWolf will automatically install it and reboot back to the system.

RWRP is processing OTA update:

Flashing RWRP on Redmi Note 5 Whyred and Survive OTA 7

That’s all. You only need to do the Step 1 until Step 1o in the last section above once. You don’t need to flash the full ROM anymore. Simply let the Updater app fetch the OTA update and let it reboot into recovery. RWRP will handle the rest.

Thanks to Red Wolf Recovery! You can flash Magisk for systemless root and can get the incremental OTA easily.

Credits: ATG Droid and Dadi11 (RWRP Developers)


4 thoughts on “Flashing RWRP on Redmi Note 5 Whyred and Survive OTA”

  1. When trying to flash rwrp on my reminder note 5 China, I get this error message “cannot find recovery.img. Could anyone help?.

    1. make sure you placed the file in the same folder. Also, make sure the file is “recovery.img” and not “recovery.img.img”, sometimes you need to simply rename it as “recover” since the .img extension is hidden by Windows.

  2. /data has to be decrypted before installing the full ROM zip. How to do it? I wiped it using ext4. (Also, the default wipe of /data in RWRP is f2fs, which is not supported by whyred.) Is this the correct way? Is the original FS ext4? Thank you! Great blog! Help a lot when rooting & flashing mi phones.

Leave a Reply

Your email address will not be published.