15 Steps to Flash Orange Fox TWRP on Redmi 5A

These are irresistible steps to install Orange Fox custom recovery on Xiaomi Redmi 5A (Riva) easily. Hence, you can have a better TWRP on your MIUI device.

We call it better since Orange Fox allows you to survive the official MIUI OTA update while still enjoying the benefits of having a custom recovery.

There are several ported variants of TWRP including Red Wolf and Pitch Black but Orange Fox is our favorite. Its UI style and its features are just perfect.

Some of its awesomeness include the following features:

  • Supports Treble and non-Treble ROMs
  • Up-to-date Oreo and Pie kernel, built from sources
  • Increased compatibility with TWRP
  • Updated with latest TWRP commits
  • Built-in support for installing init.d functionality
  • Built-in support for installing Magisk
  • Built-in support for installing SuperSU (v2.82-201705271822 – non-Treble ROMs only)
  • AromaFM
  • White Flashlight
  • Password, torch, led
  • Support for Miui and Custom ROMs
  • Better language support
  • Optimized versions of community scripts
  • Fox theme engine: choice of theme (black, dark, etc), choice of color scheme, choice of splash screen
  • Alternative lockscreen.

Before we proceed, please bear in mind about the risk of flashing a custom recovery. It should not cause a world war but it can bring your device into a bricked state especially if it was done wrong.

Hence, we strongly suggest you to create a proper backup of all your data and files. We hold no responsibility of any damage nor any risks that might happen to your device.

Please proceed responsibly.

It is always a good practice to read the whole article thoroughly and understand the main points on how to proceed. Attempt to proceed only once you have understood.

How to Install Orange Fox on Redmi 5A

Step 1. Unlock your Redmi 5A bootloader. This is important as it is the main requirement of flashing a custom recovery.

Step 2. Download and install Xiaomi ADB Fastboot Driver on your computer. You don’t need to do this if you already have Mi Flash tool installed (not the portable version).

Step 3. Download Orange Fox TWRP Recovery here. It’s a zip file. You need to download it on both your computer and your phone.

Step 4. On your computer, extract the Orange Fox zip file (OrangeFox-R9.0-riva.zip) you have downloaded. You will get many files including a file named “recovery.img“.

Effortless Root Poco F1 with Orange Fox and Magisk 2

Step 5. Copy that recovery.img file to your ADB folder. Usually, the ADB directory is located at C:\adb\.

Step 6. Enable USB Debugging option. This option is available within Developer Options menu. Hence, you have to enable it at first.

Enabling Developer Options, go to:

Settings >> About phone >> tap the MIUI version 7x >> You are developer!

Enable USB Debugging, go to:

Settings >> Additional Settings >> Developer Options >> USB Debugging >> toggle it on.

A notification will pop up on your screen. Tap “OK“.

Effortless Root Poco F1 with Orange Fox and Magisk 3

Step 7. Now connect your Redmi 5A phone to your computer using its USB cable.

Step 8. On your computer, hold down the Shift key and right-click anywhere inside the ADB folder (C:\adb\). Choose “Open PowerShell window here“.

Effortless Root Poco F1 with Orange Fox and Magisk 4

Step 9. Now type following command and hit Enter key to execute it:

adb devices
adb reboot bootloader
fastboot devices
Effortless Root Poco F1 with Orange Fox and Magisk 5

This instructs your computer to establish ADB connection with your device while verifying any device attached. Second, this also reboots your device into Fastboot mode (bootloader mode). You will see your phone rebooting and you will also see the Mi Bunny Fastboot logo displayed.

Effortless Root Poco F1 with Orange Fox and Magisk 6

Step 10. Do the “Hot recovery boot” by typing the command below:

fastboot boot recovery.img
Effortless Root Poco F1 with Orange Fox and Magisk 7

At this stage, your phone shall reboot into Orange Fox recovery.

Effortless Root Poco F1 with Orange Fox and Magisk 8

Step 11. Do the “Swipe to allow modifications“. You shall enter the main menu afterward.

Effortless Root Poco F1 with Orange Fox and Magisk 9

Step 12. You will then see the main menu of Orange Fox recovery. Choose “Install“.

Effortless Root Poco F1 with Orange Fox and Magisk 10

Step 13. Find and select the Orange Fox zip file (e.g: 
OrangeFox-R9.0-riva.zip).

p.s: Pictures are for references only.

15 Steps to Flash Orange Fox TWRP on Redmi 5A 1

Step 14. Do the “Swipe to Install” action. As soon as you swiped, your phone will flash the zip file of Orange Fox recovery.

15 Steps to Flash Orange Fox TWRP on Redmi 5A 2

Step 15. Your phone will automatically reboot into Orange Fox recovery again. This time is not a hot boot but the actual recovery booting using the one installed on your phone already.

Congratulation! The Orange Fox TWRP has been installed successfully on your Xiaomi Redmi 5A.

At this point, you can exit the recovery by tapping on Reboot then choose System. You’ll be back again to the main MIUI system and you can use your phone as usual.

How to Survive MIUI OTA Update

These steps below are not mandatory. Only do these if your phone is running the official MIUI ROM and if you want to keep the OTA update functionality. You don’t need to do these if you are on a custom ROM.

Step 1. Download the full MIUI Recovery ROM (zip) that will be the basis of your future MIUI experience. For instance, MIUI Global Stable build, MIUI Beta/Developer build, or MIUI China Stable build. If your phone is running MIUI Global Stable, do not download the Beta build or the China Stable build. Copy the zip file to your phone’s storage.

Step 2. Turn off your phone completely.

Step 3. Now press and hold the Power key and the Volume Up key simultaneously until you enter Recovery mode which in this case is Orange Fox TWRP.

Step 4. Go to the Orange Fox settings by tapping on the Cup icon.

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 2

Step 5. Now tap the last tab (also the cup icon) and you’ll see several options. Those are OTA Parameters. Activate all of those options:

  • Support MIUI incremental OTA
  • Include system in OTA survival
  • Incremental OTA signature verification
  • Aggressive stock recovery deactivation
  • Disable boot check
  • Disable DM-Verity
  • Disable Forced Encryption.

See the picture:

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 3

Step 6. Now go back to the main menu.

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 4

Step 7. Tap the “Wipe” menu. Choose DataCache, and Dalvik. This process is going to wipe /data, /cache, and Dalvik.

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 5

Step 8. Go back to the main menu again. Now choose “Install“.

Step 9. Locate the full MIUI Recovery ROM zip file that you have copied earlier. Select it.

Step 10. Do the “Swipe to install” action. Wait for the OrangeFox to finish its job flashing the ROM. It may take a while because Orange Fox also takes “OTA_BAK” backup process. The backup file is located at /sdcard/Fox/OTA/ directory. Do not ever delete that directory and its files, the OTA Update will fail otherwise.

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 6

Step 11. Once the whole process is done, reboot your phone by tapping on the Reboot menu, then choose System.

Surviving MIUI OTA Update with Orange Fox Recovery on Redmi 5 Plus 7

That’s it. The whole settings necessary to update using OTA has finished.

You are required to do the setting process above once. You don’t need to repeat the procedure in the future.

What if an MIUI OTA Update being available?

  1. Once the system notifies you about new MIUI update being available, simply download the update as usual using MIUI Updater app.
  2. Update it as usual and allow your phone to reboot automatically. This reboot process will definitely enter Orange Fox recovery.
  3. OrangeFox will install the OTA update automatically. You don’t need to do anything. Just sit tight and wait since this might take several minutes.
  4. OrangeFox will also reboot the phone automatically upon completion of the installation of the MIUI OTA update.

Voila! Your phone has been updated to the latest MIUI version.

Please have no doubt to ask anything that you don’t understand from the steps above. Also share your experience in the comment section below.

Leave a Reply