Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install TWRP on Pixel 4 & 4 XL: Step-by-Step

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Installing TWRP (Team Win Recovery Project) on your Pixel 4 or 4 XL replaces the stock recovery with a custom one that lets you flash ZIP files, create full backups, and install custom ROMs or kernels. This guide walks you through the official method using your computer. You'll need an unlocked bootloader, the Android SDK platform tools, and the correct TWRP image for your exact model (coral for Pixel 4, flame for Pixel 4 XL). The process wipes your device, so back up everything first.

What You'll Need

  • A Windows, macOS, or Linux computer
  • USB cable (use the original or a high-quality data cable)
  • Pixel 4 or Pixel 4 XL with an unlocked bootloader (see step 1)
  • Official TWRP image file for your model from the TWRP official website (twrp.me)
  • Android SDK Platform Tools (adb and fastboot) installed on your computer
  • USB drivers for Pixel devices installed on Windows (most Mac/Linux systems work without extra drivers)

Step-by-Step

  1. Back up your data. Unlocking the bootloader and installing TWRP wipes your phone. Copy photos, documents, and anything else to a computer or cloud storage.
  2. Unlock the bootloader (if not already done). On your phone, go to Settings > About phone and tap Build number seven times to enable Developer options. Then go to Settings > System > Developer options and turn on OEM unlocking. Connect your phone to the computer, open a command prompt/terminal, and run adb reboot bootloader. Once in the bootloader, run fastboot flashing unlock and confirm on your phone. This wipes your device.
  3. Download the correct TWRP image. Go to the official TWRP website, find your device (Pixel 4 or Pixel 4 XL), and download the latest .img file. Make sure it matches your exact model.
  4. Enable USB debugging. After unlocking, reboot your phone, go back to Developer options, and turn on USB debugging.
  5. Boot into the bootloader. Connect your phone to the computer and run adb reboot bootloader. Your phone will show the bootloader menu.
  6. Temporarily boot TWRP (first time). In the bootloader, run fastboot boot twrp--.img (replace with the actual filename). This loads TWRP into memory without installing it permanently. Your phone will reboot into TWRP.
  7. Install TWRP permanently. In TWRP, tap Advanced and then Install Recovery Ramdisk. Select the same TWRP image file you downloaded. Swipe to confirm the flash. This writes TWRP to the recovery partition.
  8. Reboot to recovery. Tap Reboot and then Recovery. Your phone will restart into TWRP. You can now use TWRP to flash ZIP files, make backups, and more.
  9. Optional: Format data (if you plan to install a custom ROM). If you're moving to a custom ROM, go to Wipe and tap Format Data, then type yes to confirm. This removes encryption and is required for many ROMs. This wipes your internal storage completely.

Common Mistakes

  • Downloading the wrong TWRP image. Using the Pixel 4 image on a Pixel 4 XL (or vice versa) will fail or cause boot issues. Always match your exact model.
  • Not unlocking the bootloader first. If you skip the unlock, fastboot commands will fail with "cannot load" or "not allowed" errors.
  • Using an outdated adb/fastboot. Old versions may not support newer devices. Update to the latest platform tools.
  • Forgetting to enable USB debugging. Without it, adb can't communicate with your phone.
  • Flashing TWRP directly with fastboot instead of using the ramdisk method. On Pixel 4 series, you must boot TWRP first and then install the recovery ramdisk from within TWRP. Running fastboot flash recovery directly may not work correctly.

Tips

  • Keep your phone charged above 70% before starting to avoid a shutdown mid-process.
  • Use a short, high-quality USB cable to avoid connection drops.
  • After installing TWRP, make a full backup (Nandroid) before flashing anything else. It saves you if something goes wrong.
  • If you ever want to go back to stock, download the factory image from Google's developer site and flash it with flash-all.bat (Windows) or flash-all.sh (Mac/Linux).
  • Note: TWRP may not support the latest Android version immediately. Check the TWRP website for compatibility before updating your phone's OS.

Troubleshooting

If your phone won't boot into TWRP after installation: Reboot to the bootloader (hold Power + Volume Down) and run fastboot boot twrp-.img again. If that works, redo the ramdisk install step.

If fastboot doesn't detect your device: Make sure USB debugging is on, the phone is in bootloader mode, and drivers are installed. On Windows, try a different USB port or reinstall the Google USB driver.

If you get a "FAILED (remote: not allowed)" error: Your bootloader is likely still locked. Re-check that OEM unlocking is enabled and complete the unlock process.

If TWRP shows a black screen or freezes: Force reboot by holding Power + Volume Down for 10 seconds. Then try booting TWRP again with fastboot boot. If it persists, re-download the TWRP image and verify its SHA-256 checksum.

If your phone is stuck in a boot loop after flashing: Boot into TWRP, go to Wipe, and do a Factory Reset. If that doesn't help, format data (this wipes internal storage). If the problem continues, restore your stock backup or flash the factory image.

Frequently Asked Questions

Does installing TWRP void my warranty?

Yes, unlocking the bootloader and installing custom recovery typically voids the manufacturer warranty. You can restore stock to regain warranty eligibility, but the unlock status may remain visible.

Will TWRP work with the latest Android update?

Not always. TWRP needs to be updated for each new Android version. Check the TWRP website for your device to see if the latest build supports your current OS.

Can I install TWRP without unlocking the bootloader?

No. Unlocking the bootloader is mandatory because it allows flashing to the recovery partition. Without it, fastboot commands are blocked.

Is it safe to install TWRP?

It's safe if you follow the steps carefully and use the correct files. There's always a small risk of bricking your device if you flash the wrong image or interrupt the process. Having a backup of your data and a stock factory image helps.

Do I need root to use TWRP?

No. TWRP works independently of root. You can use it to flash Magisk (for root) or other ZIPs, but it doesn't require root itself.

Can I keep my data after installing TWRP?

If your bootloader is already unlocked, you can install TWRP without wiping data (just skip the format data step). However, the initial bootloader unlock wipes everything. If you haven't unlocked yet, you'll lose all data during that step.