Android

Installing TWRP Recovery: Step-by-Step Guide for Android

This guide explains how to install custom TWRP recovery on your Android device. You'll learn to unlock the bootloader, prepare your computer, and flash the recovery image, enabling custom ROMs, backups, and system tweaks.

Updated at February 14, 2026
15-30 min
Hard
FixPedia Team
Применимо к:Android 6.0+Devices with TWRP support

What is TWRP Recovery and Why Do You Need It?

TWRP (Team Win Recovery Project) is a popular custom recovery mode for Android devices. Unlike the standard stock recovery, TWRP provides advanced features through a graphical interface, touch controls, and theme support.

With it, you can:

  • Create full backups (Nandroid backup) of the entire system, including system partitions, which is critical before experimenting with firmware.
  • Flash custom ROMs (LineageOS, Pixel Experience, etc.), Magisk modules, and ZIP archives.
  • Mount and manage files directly from recovery.
  • Wipe partitions (Dalvik/Cache, System, Data) to resolve performance issues or conflicts.

Installing TWRP is the first and key step to deep customization of your Android device, but the process requires attention and precision, as it involves bootloader unlocking and carries risks.

Preparation for Installation: Mandatory Steps

Before proceeding with the flashing, preparation is necessary. Skipping any of these steps will likely result in errors.

1. Unlock the Bootloader

This is the main and inevitable requirement. Manufacturers (Samsung, Xiaomi, OnePlus, Google, etc.) lock the bootloader by default for security.

  • Find instructions for your specific model. The process varies greatly: from simple confirmation in settings (Pixel, OnePlus) to using special utilities and waiting periods (Xiaomi, Huawei).
  • Enable Developer Options and USB Debugging. Go to Settings → About phone → Build number (tap seven times). Then in Developer options, enable USB debugging and OEM unlocking.
  • Follow the official method. Use only verified guides from your manufacturer or XDA Developers. Important: Unlocking typically erases all data on the device (factory reset).

2. Install ADB and Fastboot on Your Computer

These utilities are your primary tools for communicating with the device in bootloader mode.

  • Windows: Download Minimal ADB and Fastboot or install via Platform-Tools from Google.
  • macOS/Linux: Install via Homebrew (brew install android-platform-tools) or your distribution's package manager.
  • Verify installation: Open a terminal/command prompt and run adb version and fastboot --version. The versions should be displayed.

3. Download the Correct TWRP Image

  • Go to the official TWRP website.
  • Enter your device's exact model name in the search (e.g., redmi note 12 pro 5G, not just redmi note 12).
  • Download the file with the .img extension. Do not download the .zip file for installation from within recovery—that's a different process.
  • Save the file to a convenient folder, such as C:\twrp\ or ~/Downloads/twrp/.

4. Prepare the Device

  • Charge your phone to at least 60-70% to prevent it from shutting down during the process.
  • Enable USB debugging (already done in step 1).
  • Prepare the USB cable. Use a high-quality cable that definitely supports data transfer (not charge-only). Prefer connecting directly to a PC port rather than through a USB hub.

⚠️ Important: Ensure the proper drivers for your device are installed on the computer. On Windows, this is often resolved by installing ADB drivers (included in the Minimal ADB package) or manually via Device Manager. If fastboot devices does not detect your device, the issue is with the drivers.

The TWRP Installation Process via Fastboot

Now that everything is ready, let's proceed with the actual flashing.

Step 1: Boot the Device into Fastboot Mode

  1. Completely power off the phone.
  2. Hold the key combination to enter Fastboot/Bootloader Mode. Standard combinations:
    • The vast majority: Volume Down + Power
    • Some older/Chinese models: Volume Up + Power
    • Pixel: Volume Down + Power (while powered off)
  3. The screen will show an Android logo or text like FASTBOOT/START. The device is ready.

Step 2: Verify Connection

  1. Connect the phone to the computer via USB cable.
  2. Open a command prompt (Windows) or terminal (macOS/Linux).
  3. Navigate to the folder where you saved the TWRP image (e.g., cd C:\twrp\).
  4. Run the command:
    fastboot devices
    
  5. Your device's serial number should appear in the output. If the list is empty or shows no devices, refer back to the section about drivers and cables.

Step 3: Flash the Image

  1. In the same folder as the image, run the flashing command:
    fastboot flash recovery twrp.img
    
    Replace twrp.img with the actual name of the downloaded file (e.g., twrp-3.7.0_9-0-begonia.img).
  2. Wait for completion. A successful flash will end with a line containing OKAY and finished. Do not interrupt the process!
  3. After success, run the command to boot into the newly installed recovery:
    fastboot boot twrp.img
    
    Alternatively, simply power off the device and hold the key combination to enter recovery (usually Volume Up + Power).

Step 4: Initial TWRP Setup

On first launch, TWRP may show a warning that the system partition is encrypted or corrupted.

  1. Perform a full backup (Nandroid backup) immediately! This is the most important step. In the main TWRP menu, select Backup, check all partitions (Boot, System, Data, Cache, EFS), and swipe to start. Save the backup to an external SD card or to your PC via MTP.
  2. If TWRP asks for a decryption password and you didn't set one, try leaving the field empty or entering the default password 1234. Sometimes resetting the password via Wipe → Format Data helps (this erases all data!).

💡 Tip: After successfully booting TWRP, it's recommended to immediately flash the official Magisk image (if the goal is root) or leave it as is for subsequent installation of a custom ROM.

Verification and First Boot

After flashing and rebooting into TWRP:

  • Ensure the interface responds to touches.
  • Check for the RebootSystem option to exit to Android.
  • Connect to a PC via MTP (available in TWRP) and confirm you can see the internal storage.
  • Perform a wipe only if you are sure! Typically, after a clean custom ROM installation, Wipe → Format Data and Wipe → Advanced Wipe (Dalvik/Cache, System, Data) are required. Do not wipe Internal Storage unless you want to lose backups and media files.

Common Issues and Solutions

ProblemPossible CauseSolution
fastboot: command not foundADB/Fastboot not in PATH or not installedSpecify the full path to fastboot.exe or navigate to the utility's folder before running the command.
Device not detected in fastboot (<serial> unauthorized or empty)Drivers, cable, USB debugging not enabledReinstall ADB drivers, check the cable, ensure a USB debugging permission prompt appeared on the phone (tap "Allow").
TWRP boots in a loop ("bootloop") or shows a black screenIncompatible TWRP image (wrong model/build)Download a different TWRP version (try both stable and nightly). Check for exact model code match (e.g., begonia vs begoniain).
TWRP doesn't persist after reboot, stock recovery loadsFlashed to wrong partition or bootloader overwrites itEnsure the command was fastboot flash recovery. Some firmware (especially Samsung with Knox) may automatically restore stock recovery on boot.
MTP doesn't work in TWRP (files not visible on PC)Missing MTP drivers on PC or TWRP issueTry switching modes in TWRP: Mount → enable MTP. Reboot TWRP. The PC may require manual MTP driver installation.

Final Recommendations

Once TWRP is installed, you have a powerful tool. Don't forget about security:

  1. Always create backups before any system modifications.
  2. Keep the original stock recovery (if you saved it before unlocking) and the Factory Image from the manufacturer to return to stock.
  3. Research your specific model on forums (XDA Developers). Nuances often exist: unlocking quirks, known TWRP bugs, required patches.
  4. Never interrupt the flashing process or disconnect the device from the PC until it's complete.

TWRP opens the door to custom ROMs, root access, and fine-tuning. Act consciously, and your Android device will gain new capabilities.

F.A.Q.

Can I install TWRP without unlocking the bootloader?
How do I know if my device model supports TWRP?
What to do if TWRP doesn't boot after installation?
Does installing TWRP void the warranty?

Hints

Unlock the device bootloader
Prepare your computer and download TWRP
Reboot into Fastboot Mode
Flash the TWRP image
Verify the installation
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community