How to Install TWRP Recovery via Fastboot on HTC
In this article
Installing TWRP (Team Win Recovery Project) on an HTC device using fastboot mode replaces the stock recovery with a custom one, letting you flash custom ROMs, back up your system, and root your phone. This guide walks you through the process step by step. Before you start, you must unlock your bootloader (HTC's official unlock process), enable USB debugging, and have the correct TWRP image file for your exact HTC model.
What You'll Need
- An HTC device with an unlocked bootloader (required for fastboot flashing).
- A Windows, macOS, or Linux computer.
- USB data cable (not just a charging cable).
- HTC USB drivers installed on your computer (for Windows; Mac and Linux usually work without).
- Android SDK Platform Tools (includes fastboot and adb) downloaded from the official Android developer site.
- The TWRP image file (.img) for your specific HTC model, downloaded from the official TWRP website (twrp.me).
Step-by-Step
- Back up your data. Flashing recovery itself doesn't wipe data, but unlocking the bootloader (if not already done) does. If your bootloader is already unlocked, a full backup is still wise before making system changes.
- Enable Developer Options and USB debugging. Go to Settings > About phone and tap "Build number" 7 times. Then go to Settings > Developer options and turn on "USB debugging." (Labels may vary slightly by Android version.)
- Install Platform Tools. Download the official Android SDK Platform Tools zip from developer.android.com, extract it to a folder you can easily access (e.g., C:\platform-tools).
- Install HTC USB drivers (Windows only). Download the latest HTC USB driver from HTC's support site and install it. If you already have HTC Sync Manager installed, drivers are likely present.
- Download the correct TWRP image. Go to twrp.me, find your HTC model (e.g., HTC One M8, HTC U11), and download the .img file. Save it in the same folder as platform-tools and rename it to something simple like twrp.img to make typing easier.
- Boot your HTC into fastboot mode. Power off the phone. Then press and hold Volume Down + Power for a few seconds. The bootloader screen will appear. Use volume keys to navigate to "FASTBOOT" and press Power to select it. (On some models, it says "Bootloader" then you select "Fastboot" from a submenu.)
- Connect your phone to the computer. Plug in the USB cable. On the computer, open a command prompt or terminal in the platform-tools folder (Shift+Right-click > "Open command window here" on Windows; on Mac/Linux, cd to the folder).
- Verify fastboot connection. Type
fastboot devicesand press Enter. You should see your device serial number followed by "fastboot". If not, check drivers and USB cable. - Flash TWRP. Type
fastboot flash recovery twrp.img(replace twrp.img with your actual filename) and press Enter. The command will push the image to your phone. Wait for it to finish; you'll see "OKAY" in the output. - Reboot into recovery. After flashing, use the volume keys to select "RECOVERY" on the bootloader screen and press Power. Or, from the command line, type
fastboot reboot recovery. Your phone should boot into TWRP. The first boot may take a little longer; if it asks to keep system read-only, you can swipe to allow modifications.
Common Mistakes
- Using the wrong TWRP image. Flashing a TWRP file meant for a different HTC model can brick your device. Always double-check the model number (e.g., HTC One M8 vs. M9).
- Not unlocking the bootloader first. If your bootloader is locked, fastboot will fail with an error like "FAILED (remote: not allowed)". Unlock via HTC's official bootloader unlock page.
- Incorrect fastboot command. Some guides say
fastboot boot recovery.img(which boots temporarily) instead offastboot flash recovery. For a permanent install, use "flash." - USB cable issues. A charge-only cable won't carry data. Use the original cable or a known data cable.
- Driver conflicts on Windows. If fastboot doesn't see the device, try a different USB port, reinstall HTC drivers, or use the "Android Bootloader Interface" driver from the platform-tools folder.
Tips
- Keep the TWRP image on your phone's internal storage. After booting into TWRP, you can flash ZIPs from the phone itself without needing a computer.
- Make a full backup in TWRP. Once TWRP is running, go to Backup, select all partitions, and store it on an external SD card or USB OTG if possible. This is your safety net.
- Use the latest TWRP version. Older versions may have bugs with newer Android versions. Check the TWRP site for updates.
- Disable automatic reboot in fastboot. Some HTC models reboot automatically after flashing. If you want to go straight to recovery, hold Volume Down + Power again immediately.
Troubleshooting
Fastboot doesn't detect the device
Try a different USB port (preferably a rear port on a desktop), reinstall HTC drivers, or reboot your computer. On Windows, open Device Manager and check for "Android Bootloader Interface" under "Portable Devices" or "Other devices." If it shows a yellow exclamation, update the driver manually using the "Have Disk" option and point to the platform-tools folder.
Flashing fails with "remote: not allowed"
Your bootloader is locked. You must unlock it via HTC's official bootloader unlock tool. This wipes your data, so back up first. Follow HTC's instructions on their unlock website.
Phone boots to stock recovery instead of TWRP
This can happen if the flash didn't stick. Re-run the flash command, and after it says "OKAY", immediately select "RECOVERY" from the bootloader menu without letting the system boot first. Some HTC models overwrite recovery on first boot if you boot to system.
TWRP boots but touchscreen doesn't work
This usually means you flashed the wrong TWRP version for your device. Re-download the correct image from twrp.me and reflash. If it persists, try a different TWRP version (e.g., an older stable release).
Phone stuck in bootloop after flashing
Don't panic. Boot into TWRP (if it's installed) and wipe cache/dalvik. If that doesn't help, restore your backup from TWRP, or flash a stock ROM via RUU (HTC's official ROM update utility) from your computer.
Frequently Asked Questions
Do I need to unlock the bootloader before installing TWRP?
Yes, fastboot flashing recovery is blocked on locked bootloaders. Unlock via HTC's official bootloader unlock page first.
Will installing TWRP void my warranty?
Yes, unlocking the bootloader and flashing custom recovery typically voids HTC's warranty. This is a permanent change, though you can later relock the bootloader (but it may not restore warranty).
Can I install TWRP without a computer?
No, the standard method requires fastboot from a computer. Some devices allow flashing via an app, but that's unofficial and risky. Stick to fastboot.
Will TWRP wipe my data?
Flashing TWRP itself does not wipe data. However, unlocking the bootloader (if you haven't already) will wipe everything. Also, some TWRP operations like factory reset will wipe data, so always back up.
Can I uninstall TWRP later?
Yes, you can flash the stock recovery back using fastboot (download the stock recovery.img for your model) or by running an RUU. This will remove TWRP.
What if I can't find my exact HTC model on TWRP's site?
If TWRP isn't officially listed, it's not supported. Do not flash a TWRP image from another model. Consider using an alternative custom recovery like OrangeFox if it supports your device, but only from its official source.