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.
Pre-Flight Checklist
Complete ALL items before proceeding. Skipping any step increases the risk of bricking your device.
-
Unlocked BootloaderTWRP must be flashed via fastboot, which requires an unlocked bootloader. Unlocking the bootloader wipes all data — back up everything before proceeding. Follow your manufacturer's official unlock process.
-
ADB & Fastboot InstalledDownload Android Platform Tools from developer.android.com/tools/releases/platform-tools. Add the folder to your system PATH and verify with <code>fastboot --version</code>.
-
Correct TWRP Image for Your DeviceDownload the device-specific TWRP <code>.img</code> file from twrp.me/Devices. TWRP is device-specific — using the wrong image will fail or brick your device. Match the exact model number (e.g. OP6T, not just "OnePlus").
-
USB Debugging EnabledEnable USB Debugging in Settings → Developer Options. Accept the RSA fingerprint prompt when connecting to your PC for the first time.
-
Battery ≥ 60%Higher battery ensures the device doesn't power off during the flashing process.
-
Full Data BackupIf you haven't already unlocked the bootloader, doing so will factory reset the device. Back up all data now.
-
Disable Automatic System UpdatesOn Pixel devices and others with A/B partitions, automatic OTA updates can overwrite TWRP. Disable auto-update in Settings before and after installing TWRP.
Guide Steps
Connect your device to the PC with USB Debugging on. Open a terminal and run:
adb devicesYour 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 devicesYour 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-infoor
fastboot flashing get_unlock_abilityIf 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.imgFor A/B partition devices (Pixel, some Samsung), use:
fastboot flash boot twrp-x.x.x-devicename.imgYou 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.imgOr 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.
Congratulations! Flash Successful!
You've successfully completed all steps. Your device should now be running the new firmware. If it's booting normally — you're done! Check the troubleshooting section below if you encounter any issues.
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.
Reference screenshots for this guide. Click any image to view full size.
Prioritize our guides in your Google search results.
No comments yet. Be the first to share your experience with this guide!