ThisCalculator

Everyday

Root & Install Custom Recovery on Sony Xperia X Performance

Updated · Standard formula, shown below

Root & Install Custom Recovery on Sony Xperia X Performance

You can root the Sony Xperia X Performance and install a custom recovery (TWRP) by first unlocking the bootloader, then flashing a patched kernel or a custom recovery image via fastboot. This guide covers the exact steps, required files, and common pitfalls for the Xperia X Performance (codenames Dora, F8131, F8132, SO-04H, SOV33).

Why Root and Custom Recovery Matter

Rooting gives you administrative control over Android, allowing system-level modifications, ad-blocking, backup tools, and performance tweaks. A custom recovery like TWRP (Team Win Recovery Project) is a replacement for the stock recovery environment; it lets you flash ZIP files, create full backups (Nandroid), wipe partitions, and install custom ROMs or kernels. On the Xperia X Performance, these two steps are usually done together because TWRP can be flashed directly or via a rooted kernel, and root is often installed through a ZIP in recovery.

Prerequisites and Risks

Before starting, understand that unlocking the bootloader wipes all data and voids the warranty. It also permanently disables certain DRM features (like the camera’s noise reduction algorithms) unless you back up the TA partition beforehand. The Xperia X Performance has a Qualcomm Snapdragon 820, and the bootloader unlock process is officially supported by Sony for most variants, except some carrier-locked models (e.g., US Verizon or certain Japanese carrier versions).

  • Back up everything – the unlock process erases the phone.
  • Charge battery to at least 70% to avoid interruption.
  • Install ADB and fastboot on your PC (platform-tools).
  • Download correct firmware files for your exact model number.
  • Back up the TA partition if you want to preserve DRM keys (requires root or a special tool before unlocking).

Step-by-Step: Unlock Bootloader

  1. On the phone, go to Settings → About phone and tap the Build number 7 times to enable Developer options.
  2. In Settings → Developer options, enable OEM unlocking and USB debugging.
  3. On Sony’s official bootloader unlock website, enter your phone’s IMEI (dial *#06#) to get an unlock code. Sony will email you a unique key.
  4. Power off the phone. Hold Volume Up and connect the USB cable to enter fastboot mode (the LED turns blue).
  5. On your PC, run: fastboot devices to confirm the phone is detected.
  6. Run: fastboot oem unlock 0xYOUR_UNLOCK_CODE (replace with the code from Sony).
  7. The phone will wipe and reboot. Re-enable USB debugging and OEM unlocking in Developer options.

Installing TWRP Recovery

After unlocking, you can flash TWRP. Download the correct TWRP image for the Xperia X Performance (usually named twrp-3.x.x-x-dora.img). Place it in your platform-tools folder.

  1. Power off the phone, then boot into fastboot mode (Volume Up + USB connect).
  2. Run: fastboot flash recovery twrp-3.x.x-x-dora.img
  3. Run: fastboot reboot – but immediately hold Volume Down to boot into recovery (TWRP). If you let it boot normally, the stock ROM may overwrite TWRP.
  4. Once in TWRP, it may ask to keep the system read-only – choose Keep Read Only if you plan to flash a custom kernel or root ZIP.

Rooting with Magisk or SuperSU

With TWRP installed, you can root. The most common method is Magisk, which is systemless and passes SafetyNet (with some modules).

  1. Download the latest Magisk ZIP (or APK renamed to .zip) and transfer it to the phone’s internal storage.
  2. Boot into TWRP (Volume Down during boot).
  3. Tap Install, select the Magisk ZIP, and swipe to flash.
  4. Reboot to system. Install the Magisk Manager APK if it didn’t install automatically.
  5. Verify root with a root-checker app.

Alternatively, older guides use SuperSU, but Magisk is now the standard because it is open-source and actively maintained.

Common Problems and Fixes

  • TWRP not sticking after reboot – The stock ROM overwrites recovery on boot. Immediately boot into TWRP after flashing, or flash a custom kernel (like the one from the XDA forums) that prevents overwriting.
  • Bootloop after flashing – Wipe cache/dalvik in TWRP. If that fails, reflash the stock firmware via Flashtool (XperiaFirm) and start over.
  • Unlock code not accepted – Make sure you have the correct model and that the bootloader is actually locked. Some carrier variants cannot be unlocked.
  • DRM functions lost – This is expected after unlocking. Restore a TA backup if you made one before unlocking, or use a camera mod that compensates.
  • Fastboot not detecting device – Install proper USB drivers (Sony’s Flashtool drivers or Google’s USB driver) and try a different USB port/cable.

Alternatives to Rooting

If you only need ad-blocking, backup, or screen recording, you can avoid rooting entirely. Use a VPN-based ad blocker (like Blokada), Google’s built-in backup, and the stock screen recorder (if your firmware has it). For advanced tweaks, consider a custom ROM that comes pre-rooted, but that still requires an unlocked bootloader and TWRP.

Frequently Asked Questions

Will unlocking the bootloader delete my data?

Yes, the unlock process wipes the phone completely. Back up all important files before starting.

Can I relock the bootloader after rooting?

Yes, but it will wipe data again and may cause boot issues if the system is modified. Relocking is not recommended unless you are restoring to stock.

Does TWRP work on all Xperia X Performance variants?

Mostly, but carrier-locked models (e.g., US Verizon, some Japanese) may have different partition layouts or locked bootloaders. Check your model number (F8131, F8132, SO-04H, SOV33) against the TWRP build.

Is Magisk safe to use?

Magisk is open-source and widely used. It is safe if you download it from the official GitHub repository and avoid random modules.

What if I brick my phone?

You can usually recover by flashing stock firmware with Flashtool. The Xperia X Performance is quite resilient; as long as fastboot works, you can restore.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.