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)
- 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 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“.
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“.
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“.
Step 9. Now type following command and hit Enter key to execute it:
adb reboot bootloader
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.
Step 10. Do the “Hot recovery boot” by typing the command below:
fastboot boot recovery.img
At this stage, your phone shall reboot into Orange Fox recovery.
Step 11. Do the “Swipe to allow modifications“. You shall enter the main menu afterward.
Step 12. You will then see the main menu of Orange Fox recovery. Choose “Install“.
Step 13. Find and select the Orange Fox zip file (e.g:
p.s: Pictures are for references only.
Step 14. Do the “Swipe to Install” action. As soon as you swiped, your phone will flash the zip file of Orange Fox recovery.
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.
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:
Step 6. Now go back to the main menu.
Step 7. Tap the “Wipe” menu. Choose Data, Cache, and Dalvik. This process is going to wipe /data, /cache, and Dalvik.
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.
Step 11. Once the whole process is done, reboot your phone by tapping on the Reboot menu, then choose System.
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?
- Once the system notifies you about new MIUI update being available, simply download the update as usual using MIUI Updater app.
- Update it as usual and allow your phone to reboot automatically. This reboot process will definitely enter Orange Fox recovery.
- 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.
- 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.
Found a broken link? Write a comment below!