Smart Systems for Home

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

Install TWRP & Root Xperia X Performance (Dora)

· 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

This guide walks you through installing TWRP (Team Win Recovery Project) and rooting your Sony Xperia X Performance (codename Dora) using either SuperSU or Magisk. Rooting gives you full system access, allowing system modifications, ad-blocking, and advanced backup tools. Before starting, understand that unlocking the bootloader wipes all data and voids your warranty. You must have an unlocked bootloader—Sony's official unlock process is required first. This guide assumes you have already unlocked the bootloader via Sony's developer portal.

What You'll Need

  • Xperia X Performance (Dora) with an unlocked bootloader
  • A Windows PC (or Mac/Linux with ADB setup)
  • USB cable (preferably original)
  • Download the correct TWRP image for Dora (from the official TWRP site or XDA, ensure it matches your device)
  • Download SuperSU ZIP (v2.82 or later) OR Magisk ZIP (latest stable)
  • ADB and Fastboot tools installed on your PC (platform-tools from Google)
  • Backup all important data—unlocking and flashing will wipe the device

Step-by-Step

  1. Enable Developer Options and USB Debugging: On your phone, go to Settings > About phone and tap “Build number” seven times. Then go to Settings > Developer options and enable “USB debugging” and “OEM unlocking” (if not already done during bootloader unlock).
  2. Install ADB and Fastboot: Download the platform-tools from Google’s official site, extract to a folder (e.g., C:\adb). Open a command prompt in that folder (Shift+Right-click > “Open command window here”).
  3. Connect your phone: Plug the phone into the PC. On the phone, accept the RSA fingerprint prompt. Verify connection by typing adb devices—you should see your device listed as “device”.
  4. Reboot to bootloader: Type adb reboot bootloader. The phone will restart into fastboot mode (Sony logo, blue LED).
  5. Verify fastboot connection: Type fastboot devices. You should see your device serial number.
  6. Flash TWRP: Place the TWRP image file (e.g., twrp-3.x.x-x-dora.img) in the same folder as fastboot. Type: fastboot flash recovery twrp-3.x.x-x-dora.img. Wait for “OKAY” message.
  7. Reboot to recovery: Do not let the system boot normally yet. Use volume keys to select “Recovery” and press power, or type fastboot reboot and immediately hold Volume Down (varies—check TWRP instructions). If you accidentally boot to system, you may need to reflash TWRP because the stock kernel overwrites recovery.
  8. Backup (optional but recommended): In TWRP, go to Backup, select System, Data, Boot, and swipe to back up to microSD or OTG.
  9. Copy root ZIP to phone: While in TWRP, go to Mount and check “Micro SD” or “USB OTG”. On your PC, copy the SuperSU or Magisk ZIP to the phone’s storage (or use adb push: adb push SuperSU.zip /sdcard/).
  10. Flash SuperSU or Magisk: In TWRP, tap Install, select the ZIP, and swipe to flash. For SuperSU, after flashing, it may ask to install a recovery—choose “No” (keep TWRP). For Magisk, just flash the ZIP.
  11. Wipe cache/dalvik: After flashing, go to Wipe, select “Dalvik/ART Cache” and “Cache”, swipe to wipe. This prevents boot loops.
  12. Reboot system: Tap Reboot > System. First boot may take several minutes.
  13. Verify root: Install an app like “Root Checker” from the Play Store to confirm root access. For Magisk, open the Magisk Manager app.

Common Mistakes

  • Flashing the wrong TWRP image (e.g., for a different Sony model)—always verify the codename “Dora”.
  • Not unlocking the bootloader first—TWRP will not flash or boot if the bootloader is locked.
  • Letting the phone boot to system before flashing TWRP—the stock recovery overwrites TWRP, so you must boot directly to recovery after flashing.
  • Using an outdated SuperSU version that doesn’t support Android 7.0+—use v2.82 or newer, or switch to Magisk.
  • Forgetting to wipe cache after flashing—can cause boot loops.
  • Using a USB hub or faulty cable—fastboot can fail mid-flash, bricking the device.

Tips

  • Always keep a backup of your stock firmware (via Sony’s Xperia Companion or Flashtool) in case you need to restore.
  • Magisk is generally recommended over SuperSU because it supports systemless root (easier to hide from apps) and passes SafetyNet more reliably.
  • After rooting, some banking or DRM apps may detect root—use Magisk Hide or a root-hiding module.
  • If you plan to update via OTA, you may need to unroot first or use Magisk’s “Install to inactive slot” feature.
  • Charge your phone to at least 70% before starting—a power loss during flashing can brick the device.

Troubleshooting

Boot loop after flashing: Reboot to TWRP (hold Volume Down + Power while booting), wipe cache/dalvik again. If that fails, restore your backup or reflash the stock firmware via Flashtool, then repeat the process.

TWRP not sticking (phone boots to stock recovery): This happens if the system boots before TWRP is used. Reflash TWRP and immediately boot to recovery using the key combination. After rooting, you can install the “Official TWRP App” to flash TWRP permanently.

Fastboot not detecting device: Install the correct Sony USB drivers (from Sony’s support site). Try a different USB port (USB 2.0 recommended). On Windows, run the command prompt as administrator.

SuperSU says “no SU binary installed”: Reflash SuperSU in TWRP, ensuring the ZIP is not corrupted. If using Magisk, reflash Magisk ZIP and reboot.

Magisk Manager shows “Requires additional setup”: Reboot once more, or reflash Magisk in TWRP.

Phone stuck on Sony logo: Force restart (hold Power + Volume Up for 10 seconds). If it persists, reflash stock firmware with Flashtool and start over.

Frequently Asked Questions

Does rooting wipe my data?

Unlocking the bootloader wipes all data. Flashing TWRP and root does not wipe data, but always backup before flashing.

Can I use both SuperSU and Magisk together?

No—they conflict. Choose one. Magisk is more modern and supports systemless root.

Will I still receive OTA updates after rooting?

Usually not directly. You’ll need to unroot or use Magisk’s “Install to inactive slot” feature, and even then, OTA may fail due to modified system. Manual flashing via Flashtool is safer.

Is it safe to root my Xperia X Performance?

Rooting is safe if you follow instructions carefully. Risks include bricking if you flash wrong files, and losing DRM keys (for Sony’s camera enhancements) if you don’t back them up. Unlocking bootloader permanently loses DRM keys—this is irreversible.

How do I unroot later?

For Magisk: open Magisk Manager and tap “Uninstall”. For SuperSU: open the app and tap “Full unroot”. Then reflash stock recovery and relock the bootloader via fastboot (fastboot oem lock)—but relocking may require flashing stock firmware first.

Can I use TWRP to make a full backup?

Yes, TWRP allows full Nandroid backups (system, data, boot, etc.) to microSD or OTG. This is the safest way to restore if something goes wrong.