Back to Knowledge Base

Install Custom Recovery (TWRP/OrangeFox)

Learn how to flash a custom recovery using fastboot to install ZIP files and make backups.

CRITICAL WARNINGEnsure your bootloader is unlocked before attempting to flash a custom recovery. Flashing the wrong recovery image can cause a soft brick.

Prerequisites

Step-by-Step Instructions

  1. 1
    Download Recovery: Download the recovery `.img` file and place it inside your ADB/Fastboot folder on your PC. Rename it to recovery.img for convenience.
  2. 2
    Enter Fastboot Mode: Power off your phone, then hold Volume Down + Power to enter Fastboot mode. Connect to your PC.
  3. 3
    Open Terminal: Open a command prompt or PowerShell window inside the ADB/Fastboot folder.
  4. 4
    Check Connection: Run fastboot devices. You should see your device serial number.
  5. 5
    Flash Recovery: Run the command: fastboot flash recovery recovery.img
  6. 6
    Boot into Recovery: Before restarting normally, you MUST boot directly into the recovery to prevent MIUI from overwriting it. Hold Volume Up + Power until the Redmi logo appears, then release.