Install TWRP Recovery via Fastboot: Step-by-Step
In this article
Installing TWRP (Team Win Recovery Project) via fastboot replaces your device's stock recovery with a custom one, letting you flash ROMs, create full backups, and wipe data more thoroughly. This guide walks you through the process using fastboot commands. Before starting, unlock your bootloader (required on most devices), enable USB debugging, and back up all data — the process wipes your device.
What You'll Need
- A Windows, macOS, or Linux computer with ADB and fastboot installed (download from the official Android developer site).
- A USB cable (preferably the original) and a working USB port.
- The TWRP image file (.img) for your exact device model — download only from the official TWRP site or your device's recognized developer.
- Your device's bootloader unlocked (check manufacturer's instructions).
- Backup of all personal data — this process wipes your phone.
Step-by-Step
- Enable Developer Options and USB Debugging: On your phone, go to Settings > About Phone and tap “Build Number” 7 times. Then go to Settings > Developer Options and enable “USB Debugging” and “OEM Unlocking” (if present).
- Install ADB and fastboot on your computer: Download the platform-tools zip from the Android developer site, extract it to a folder (e.g., C:\adb), and note the path. On Windows, you may need to install the proper USB drivers for your device.
- Connect your phone to the computer: Plug in your phone via USB. On the phone, when prompted, allow USB debugging (check “Always allow”).
- Verify ADB connection: Open a command prompt or terminal in the platform-tools folder (Shift+right-click > “Open command window here” on Windows). Type
adb devicesand press Enter. Your device should appear with “device” status. If not, reinstall drivers or try a different USB port. - Boot into fastboot mode: Type
adb reboot bootloaderand press Enter. Your phone will reboot into the bootloader (fastboot) screen. Alternatively, turn off the phone and hold Volume Down + Power (varies by device). - Verify fastboot connection: Type
fastboot devices. Your device should appear with a serial number. If it says “waiting for device,” check drivers or USB connection. - Flash TWRP (temporary boot): To test TWRP without permanently installing it, type
fastboot boot twrp.img(replace “twrp.img” with your actual file name). Your phone will boot into TWRP temporarily. This is a safe way to verify the image works. - Flash TWRP permanently: If the temporary boot works, reboot back to fastboot (from TWRP, select Reboot > Bootloader). Then type
fastboot flash recovery twrp.imgand press Enter. - Reboot into TWRP: After flashing, use the volume keys to select “Recovery mode” and press Power, or type
fastboot rebootand then immediately hold the recovery key combo (often Volume Up + Power) to boot into recovery. Some devices require you to boot into recovery directly from fastboot to avoid the stock recovery overwriting TWRP. - First boot into TWRP: When TWRP loads, it may ask to keep system read-only — swipe to allow modifications. You're now in TWRP.
Common Mistakes
- Using the wrong TWRP image for your device model — always double-check the exact codename.
- Forgetting to unlock the bootloader — fastboot flash will fail with “FAILED (remote: not allowed)” or similar.
- Not having USB debugging enabled before booting to fastboot.
- Flashing TWRP as a boot image instead of a recovery image (using
fastboot flash bootinstead offastboot flash recovery). - Rebooting directly into the system after flashing — stock recovery may overwrite TWRP on some devices. Always boot into recovery first.
Tips
- Keep the TWRP image file in the same folder as fastboot.exe to avoid path issues.
- Use a short file name like “twrp.img” to simplify commands.
- After flashing, back up your current ROM in TWRP before making any changes.
- If you're on a device with A/B partitions, you may need to flash TWRP to both slots or use the “fastboot boot” method each time.
- Write down your device's key combination to enter recovery mode — it varies by manufacturer.
Troubleshooting
“fastboot devices” shows nothing: Install the correct USB drivers for your device (check the manufacturer's website). Try a different USB port (preferably USB 2.0), and ensure the phone is in fastboot mode (not just plugged in). On Windows, open Device Manager and update the driver for the “Android” device.
“FAILED (remote: not allowed)” during flash: Your bootloader is likely locked. Unlock it via the manufacturer's official method (e.g., `fastboot oem unlock` on some devices, but check your device's instructions). This wipes your data.
Phone boots to stock recovery instead of TWRP: Some devices overwrite TWRP on first boot. After flashing, immediately boot into recovery using the hardware key combo (often Volume Up + Power) instead of letting it boot normally.
TWRP boots but touchscreen doesn't work: This is rare but can happen if the image is for a different variant. Download the correct image for your exact model and try again.
Stuck in bootloop after flashing: If your device loops, boot back into fastboot and flash the stock boot or recovery image from your manufacturer. If you have a backup, restore it via fastboot.
Frequently Asked Questions
Do I need to unlock the bootloader before installing TWRP?
Yes, almost all devices require an unlocked bootloader to flash a custom recovery. Unlocking typically wipes your data and may void warranty.
Will installing TWRP void my warranty?
It can, depending on the manufacturer. Some allow relocking the bootloader, but that may still leave traces. Check your device's policy.
Can I uninstall TWRP later?
Yes, you can flash the stock recovery image using fastboot (download it from your manufacturer) or by flashing a stock ROM via fastboot or the manufacturer's tool.
Is it safe to use TWRP on my daily driver?
Generally yes, but be careful — TWRP gives you access to system partitions, and a wrong wipe or flash can brick your device. Always make a full backup first.
What's the difference between “fastboot boot” and “fastboot flash recovery”?
fastboot boot runs TWRP temporarily without installing it — great for testing. fastboot flash recovery permanently replaces your recovery partition.
Why does my device show “No OS installed” after wiping?
You likely wiped the system partition without having a ROM to install. In TWRP, mount system and check if it's empty. To fix, sideload a ROM via adb sideload or restore a backup.