Android

Complete Guide to Installing TWRP Recovery on Android

This guide details the process of installing TWRP Recovery on an Android device, enabling custom ROM flashing and backups.

Updated at February 16, 2026
15-30 min
Medium
FixPedia Team
Применимо к:Android 8.0 and above

Introduction

TWRP (Team Win Recovery Project) is a powerful custom recovery for Android devices that replaces the stock recovery and provides access to advanced features: installing custom ROMs, creating full backups, wiping partitions, and much more. In this guide, you will learn how to install TWRP Recovery on your Android device, which will give you full control over the system and expand the capabilities of your phone or tablet.

Requirements and Preparation

Before you begin, make sure you have everything you need:

  • Android device with Android 6.0 or higher (some older models may have special requirements).
  • Computer with Windows, Linux, or macOS.
  • USB cable to connect the device (preferably original or a high-quality equivalent).
  • Device charge of at least 80% — the device must not turn off during the flashing process.
  • Enabled USB debugging:
    1. Go to Settings → About phone.
    2. Tap Build number 7 times until the message "You are now a developer" appears.
    3. Go back to Settings → Developer options and enable USB debugging.
  • Unlocked bootloader: this is a mandatory requirement. If the bootloader is not unlocked, you must first perform the unlock for your specific device (instructions vary by manufacturer: Samsung, Xiaomi, Google Pixel, etc.). Official methods are usually found on the manufacturer's website or in developer settings (OEM unlocking).

You will also need ADB and Fastboot — tools for interacting with the device from the computer. Install Android SDK Platform-Tools:

  1. Download Platform-Tools from the official Android website.
  2. Extract the archive to a convenient folder (e.g., C:\platform-tools on Windows or ~/platform-tools on Linux/macOS).
  3. For Windows: add the path to the platform-tools folder to the system PATH variable (Control Panel → System → Advanced system settings → Environment variables).
  4. For Linux/macOS: open the terminal and run export PATH=$PATH:~/platform-tools (or add it to ~/.bashrc/~/.zshrc).

Verify the installation by opening a terminal or command prompt and running:

adb version
fastboot version

If the commands return versions (e.g., Android Debug Bridge version 1.0.41), the installation was successful.

Step 1: Downloading the TWRP Image

  1. Go to the official TWRP website.
  2. In the Devices section, find your device model. Use the search function if the list is long.
  3. Download the TWRP image in .img format. Usually, the file name contains the device model and TWRP version (e.g., twrp-3.5.2_9-0-angler.img for Google Nexus 6P).
  4. Save the file in the platform-tools folder or a separate folder for easy access.

⚠️ Important: Make sure you download the image for your exact model. Installing the wrong image can cause a soft-brick (non-functional device) that requires recovery.

Step 2: Enabling USB Debugging and Preparing the Device

  1. On the device, go to Settings → Developer options (enabled in the preparation step).
  2. Enable USB debugging.
  3. Also in Developer options, enable OEM unlocking (if this option exists). This is necessary for some devices (e.g., Xiaomi, Huawei).
  4. Connect the device to the computer using a USB cable.
  5. A prompt to allow USB debugging will appear on the device. Allow it and check "Always allow from this computer" to avoid being asked every time.

Step 3: Checking ADB Connection

In the command prompt (Windows) or terminal (Linux/macOS) on the computer, run:

adb devices

You should see your device's serial number in the list, for example:

List of devices attached
0123456789ABCDEF    device

If the device is not listed or the status is unauthorized:

  • Reconnect the cable.
  • Confirm the debugging prompt on the device.
  • For Windows, install ADB drivers (usually included with Platform-Tools or available from the manufacturer's website).
  • Try a different USB port (USB 2.0 is often more reliable).

Step 4: Rebooting into Fastboot Mode

Fastboot mode is the bootloader mode where you can flash images.

  1. Method 1 (via buttons):
    • Disconnect the device from the computer.
    • While holding the Volume Down button (or Volume Up — depends on the model), press and hold the Power button.
    • When a logo or menu appears, release the buttons. You should see the fastboot screen with the manufacturer's logo or the text "Fastboot mode".
    • Connect the device to the computer.
  2. Method 2 (via ADB) — if the device is already on and connected:
    adb reboot bootloader
    

    The device will reboot into fastboot.

Verify the device is in fastboot:

fastboot devices

The serial number should be displayed (e.g., 0123456789ABCDEF fastboot).

Step 5: Flashing TWRP

  1. Navigate to the folder where you saved the TWRP image (e.g., cd C:\platform-tools on Windows or cd ~/platform-tools on Linux/macOS).
  2. Ensure the image file is in that folder. If not, provide the full path to it in the command.
  3. Run the flash command:
    fastboot flash recovery twrp.img
    
    Replace twrp.img with your actual file name. For example:
    fastboot flash recovery twrp-3.5.2_9-0-angler.img
    
  4. Wait for completion. Fastboot will output OKAY or Finished. If an error occurs, check image compatibility and bootloader unlock status.

💡 Tip: Some devices (especially Samsung with Knox) use Download Mode instead of fastboot. For these, TWRP is flashed via Odin. Check the instructions for your model on the TWRP site — a special method or patched image may be required.

Step 6: Booting into TWRP

After flashing, do not reboot into the system immediately — this may overwrite TWRP with the stock recovery.

  1. Method 1 (via fastboot):
    fastboot reboot recovery
    

    The device will reboot directly into TWRP.
  2. Method 2 (via buttons):
    • Disconnect the device from the computer.
    • While holding the key combination to enter recovery (usually Volume Up + Power — depends on the model), turn on the device.
    • The TWRP interface should load with a menu: Install, Wipe, Backup, Restore, Mount, Settings.

If you see the standard Android recovery (blue or white screen with a menu), TWRP was not installed correctly. You may need to:

  • Flash TWRP twice (sometimes required to bypass protection).
  • Use a different (patched) image for your device.
  • Follow special instructions for your model on the TWRP website.

Verifying the Result

A successful TWRP installation is confirmed if, when booting into recovery, you see the TWRP interface with its characteristic menu and the ability to install ZIP files. To verify:

  1. In TWRP, go to WipeFormat Data (warning: this will erase all data!) and enter "yes" to format data (this is sometimes required to enable encryption).
  2. Return to the main menu and select Install.
  3. Navigate to select any ZIP file (e.g., a dummy file) and attempt to install — if TWRP is working, you will see progress and completion.
  4. After verification, you can reboot to the system (Reboot → System).

If all steps are followed, TWRP is ready for use in creating backups, flashing custom ROMs, or installing Magisk for root access.

Troubleshooting Common Issues

  • Device not detected in fastboot:
    • Check drivers (for Windows: install ADB drivers or use a universal ADB driver).
    • Try a different USB port (avoid USB hubs) or cable.
    • On Linux/macOS, a udev rule may be required: create the file /etc/udev/rules.d/51-android.rules with a rule for your manufacturer (see ADB documentation).
    • Ensure the bootloader is unlocked and the device is in fastboot mode.
  • Error "failed to write partition" or "error: device not found":
    • The bootloader may not be fully unlocked (e.g., on Xiaomi, account binding is required).
    • The wrong TWRP image is being used — verify your model on the TWRP site.
    • Some devices (Samsung) require flashing via Odin, not fastboot.
  • TWRP does not boot, only stock recovery appears:
    • Some devices (especially with Knox or bootloader protection) automatically replace TWRP with stock recovery on first boot. In this case:
      • Flash TWRP again from fastboot.
      • Use a patched image (e.g., for Samsung with Knox).
      • Disable automatic restoration (if such an option exists in fastboot).
    • Check the XDA forums for your model — special instructions are often available.
  • Bootloop (stuck on logo) after installation:
    • Try entering fastboot and flashing the stock recovery or stock system image.
    • Perform a data wipe from fastboot (this will erase all data): fastboot erase userdata (caution!).
    • If the device cannot enter fastboot, use the stock Recovery Mode to perform a reset.
  • Buttons not working in TWRP or touchscreen unresponsive:
    • Some devices require installing a separate touch firmware or configuration in TWRP (e.g., clearing Dalvik cache).
    • Check for TWRP updates for your model — the issue may be fixed in a newer version.

If the issue persists, search for solutions on the XDA Developers forum in your device's section or in the TWRP documentation. Be sure to specify your device model, TWRP version, and the exact error description.

F.A.Q.

Is it necessary to unlock the bootloader to install TWRP?
Can I install TWRP on any Android device?
What to do if the device doesn't boot after installing TWRP?
How to update TWRP after installation?

Hints

Unlock the device bootloader
Download the TWRP image
Set up ADB and Fastboot
Reboot the device into Fastboot mode
Flash TWRP using Fastboot
Reboot and verify TWRP

Did this article help you solve the problem?

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