Smart Systems for Home

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

Install TWRP Recovery on Sony Xperia Z3

· 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 Sony Xperia Z3 replaces the stock recovery with a custom one, letting you flash custom ROMs, make full backups, and wipe data more thoroughly. This guide works for the Xperia Z3 (D6603, D6653, and most variants) with an unlocked bootloader. If your bootloader is locked, you must unlock it first — Sony's official unlocking tool is the only safe way. This process wipes your device data, so back up everything before starting.

What You'll Need

  • A Sony Xperia Z3 with an unlocked bootloader (check in Settings > About phone > Status; if it says "Bootloader unlock allowed: Yes," you can proceed).
  • A USB cable and a Windows PC (macOS/Linux steps differ slightly; this guide covers Windows).
  • ADB and Fastboot tools installed on your PC. The official Android SDK Platform-Tools is recommended — download from the Android developer site.
  • The TWRP image file for the Z3 (download from the official TWRP website, choose the "z3" variant). Make sure it's the .img file, not a .tar.
  • USB drivers for the Xperia Z3 (Sony's Flashtool drivers or the official Sony PC Companion can help).
  • Enable Developer options: 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).

Step-by-Step

  1. Back up your data. This process erases everything on the phone. Use Sony's backup app or copy files to a computer.
  2. Install ADB and Fastboot. Download the Platform-Tools zip from the Android developer site, extract it to a folder like C:\adb, and note the path. Add that folder to your system PATH or open a command prompt inside it (Shift+right-click > "Open command window here").
  3. Install USB drivers. Connect your Z3 to the PC, and if Windows doesn't recognize it, install Sony's drivers from the official Sony support page or use the driver installer in Flashtool.
  4. Enable USB debugging. On the phone, go to Settings > Developer options and turn on "USB debugging." Connect the phone to the PC and accept the RSA fingerprint prompt on the phone.
  5. Verify ADB connection. In the command prompt, type adb devices. You should see your device listed as "device" (not "unauthorized"). If not, reconnect and accept the prompt.
  6. Reboot to bootloader. Type adb reboot bootloader. The phone will restart into fastboot mode (a black screen with blue text).
  7. Check fastboot connection. Type fastboot devices. You should see your device listed. If not, reinstall drivers or try a different USB port (use a rear port, not a hub).
  8. Flash TWRP. Place the TWRP .img file in the same folder as fastboot. Then type: fastboot flash recovery twrp-3.x.x-x-z3.img (replace the filename with the exact one you downloaded). Wait for it to say "OKAY" or "finished."
  9. Reboot into recovery. Type fastboot reboot or use the hardware button combo (volume down + power) to boot directly into recovery. If you just reboot normally, the stock recovery may overwrite TWRP on first boot — so boot straight into recovery.
  10. First boot into TWRP. When TWRP loads, it may ask if you want to keep system read-only. Swipe to allow modifications. You'll see the TWRP main menu. That's it — installation is complete.

Common Mistakes

  • Using the wrong TWRP image. The Z3 has multiple variants (D6603, D6653, etc.), but the official TWRP "z3" image works for all. Don't download a Z3 Compact or Z3+ image — they're different devices.
  • Not unlocking the bootloader. If you skip this, fastboot will fail with "FAILED (remote: Command not allowed)". Unlock via Sony's official site first.
  • Flashing the recovery as "boot" instead of "recovery." The command must be fastboot flash recovery, not fastboot flash boot.
  • Letting the phone boot normally before entering recovery. On some Android versions, the stock recovery replaces TWRP on first boot. Always boot straight into recovery after flashing.
  • Using a USB 3.0 port or hub. Fastboot can be flaky; use a USB 2.0 port directly on the PC.

Tips

  • After TWRP is installed, make a full backup (including EFS and modem partitions) before flashing any ROMs. That way you can restore if something goes wrong.
  • Keep the TWRP .img file in a safe place on your PC — you may need to reflash it if you ever restore stock firmware.
  • If you want to go back to stock, you can use Sony's official Flashtool to flash a stock firmware, which will also remove TWRP.
  • Always download TWRP from the official site (twrp.me) to avoid malicious files.

Troubleshooting

If something goes wrong, here's what to try in order:

  1. "FAILED (remote: Command not allowed)" — Your bootloader is locked. Unlock it via Sony's official unlock page, then redo the fastboot flash.
  2. fastboot devices shows nothing — Reinstall drivers, try a different USB port, and make sure the phone is actually in fastboot mode (black screen with blue text). Restart the PC and phone.
  3. TWRP doesn't boot after flash — Reboot to bootloader again and reflash the recovery. If it still fails, try a different TWRP version (older or newer) from the official site.
  4. Phone boots to a black screen or bootloop — Don't panic. Hold power + volume up for 10 seconds to force restart. If it still loops, boot into fastboot (power + volume down) and reflash TWRP, then wipe cache and dalvik from recovery.
  5. ADB says "unauthorized" — Revoke USB debugging authorizations in Developer options, then reconnect and accept the prompt again.
  6. If all else fails — Use Sony's Flashtool to flash a stock firmware (this will wipe everything and restore the phone to factory state). Then start the process again, ensuring bootloader is unlocked.

Frequently Asked Questions

Do I need to unlock the bootloader to install TWRP?

Yes, absolutely. Without an unlocked bootloader, fastboot will reject the flash command. Unlocking wipes your data and voids your warranty.

Will installing TWRP void my warranty?

Yes, unlocking the bootloader and installing custom recovery voids Sony's warranty. You can restore the stock firmware later, but the bootloader unlock status remains.

Can I install TWRP without a PC?

No, the standard method requires a PC with fastboot. There are no reliable on-device methods for the Z3.

Will TWRP affect my phone's performance or battery life?

No, TWRP only runs when you boot into recovery mode. It doesn't affect normal operation.

Can I use TWRP to back up my apps and data?

Yes, TWRP's backup feature creates a full system image, including apps and their data. It's one of the main reasons to install it.

What if I want to remove TWRP later?

Flash a stock firmware using Sony's Flashtool. That will replace TWRP with the stock recovery and restore the original system.