📱 Flashing Guides

TWRP – How to Install Team Win Recovery Project on Any Android Device

Learn how to install TWRP (Team Win Recovery Project) on any Android device using fastboot. This guide covers bootloader unlock verification, device-specific image selection, A/B partition flashing, making TWRP permanent, and how to use Magisk for root after installation.

Difficulty: 🟡 Intermediate
Read time: 10 min
Updated: June 28, 2026
Tool Version: v3.7.1
Medium Risk
🪟 Windows 🍎 macOS 🐧 Linux

Pre-Flight Checklist

Complete ALL items before proceeding. Skipping any step increases the risk of bricking your device.

Requirements met 0 / 7

Guide Steps

Guide Progress
0/7 steps

Connect your device to the PC with USB Debugging on. Open a terminal and run:

adb devices

Your device should appear as XXXXXXXX device. If it shows "unauthorized", unlock your phone screen and tap "Allow" on the RSA key popup. Then verify fastboot by rebooting to bootloader:

adb reboot bootloader\nfastboot devices

Your device should appear in fastboot mode.

If not already in fastboot mode:
Via ADB: adb reboot bootloader
Manual: Power off → hold Power + Volume Down (varies by device — check your device's key combo)
The bootloader screen typically shows the Android mascot with "FASTBOOT MODE" or "BOOTLOADER UNLOCKED" text.

On the fastboot screen, look for "LOCK STATE – unlocked" or similar text. You can also run:

fastboot oem device-info

or

fastboot flashing get_unlock_ability

If the bootloader is locked, you must unlock it first. The unlock command varies by manufacturer — check your device's specific instructions.

Navigate your terminal to the folder containing the TWRP .img file and run:

fastboot flash recovery twrp-x.x.x-devicename.img

For A/B partition devices (Pixel, some Samsung), use:

fastboot flash boot twrp-x.x.x-devicename.img

You should see: Sending 'recovery'... OKAY\nWriting 'recovery'... OKAY\nFinished. Total time: X.Xs

Immediately after flashing, boot directly into TWRP without rebooting to the system first (on some devices, the system will restore the stock recovery on first boot):

fastboot boot twrp-x.x.x-devicename.img

Or use the hardware keys to navigate the bootloader menu to "Recovery Mode". TWRP's blue interface should appear on the device screen.

Inside TWRP, go to Advanced → Flash Current TWRP to write TWRP to the recovery partition from within TWRP itself. This step makes it permanent on many devices.

Alternatively, in TWRP terminal (Advanced → Terminal):
dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery

Some Pixel / A/B devices require installing the TWRP App (via TWRP install zip) to prevent stock recovery restore.

From the TWRP main screen, test that key features work:
Backup: Go to Backup → select partitions → swipe to back up. This confirms storage access.
File Manager: Confirms internal storage is mounted.
ADB: Run adb devices from PC while in TWRP — device should appear as "recovery".
Once verified, tap Reboot → System. TWRP may ask to install the Magisk root package — swipe to deny if you don't want root yet.

Troubleshooting & FAQ

Common errors and their solutions. Read this before asking for help.

Check XDA Developers (xda-developers.com) for your device forum — community-built TWRP ports are often available even when the official build isn't. Search "[device name] TWRP" on XDA. Only use builds from trusted, high-post-count developers with positive reviews.

Your device is running stock Android which restores the official recovery on every boot. Solutions: (1) Use fastboot boot twrp.img (boots TWRP without installing), (2) install the TWRP app from within TWRP to permanently disable recovery restoration, (3) for A/B devices, flash TWRP to both slots: fastboot flash recovery_a twrp.img && fastboot flash recovery_b twrp.img.

TWRP is asking for your Android lock screen password/PIN to decrypt your encrypted internal storage. Enter your device unlock password (not a TWRP-specific password). If you set up a complex password, you may need to enter it. If you've just wiped the device, swipe to format data to remove encryption.

Flashing the wrong TWRP image for a different device model can softbrick (unbootable recovery). This is recoverable by re-flashing the correct image via fastboot. TWRP itself cannot cause a hard brick — that requires flashing incorrect firmware to critical partitions like the bootloader.

No. TWRP is a recovery replacement — it does not grant root access to the Android system. To root your device, use TWRP to flash a root package like Magisk (magisk.zip) after installing TWRP.

Never miss a fix.

Prioritize our guides in your Google search results.

Set as Preferred

No comments yet. Be the first to share your experience with this guide!

Leave a Comment —

Your email address will not be published. Required fields are marked *