The Custom Droid

Android Tutorials, Tips and Tricks

How to Install TWRP and Root Xperia Z5

Root Xperia Z5 TWRP

The latest Xperia Z series smartphone from Sony is a high-end flagship killer. If you have got one for yourself and want to extend the boundaries of performance and customization, you might want to root it. So today, we are going to guide you through the easy process too, Install TWRP and finally Root Xperia Z5.


Root on the Xperia Z5 could be attained using Chainfire’s SuperSU but requires an insecure boot.img (kernel), which in this case would be AndroPlus kernel. But flashing anything would first require TWRP installed on your Z5, so we will head there first.

Root Xperia Z5 TWRP

Before you begin with rooting, you will require unlocking the Xperia Z5 bootloader in order to flash files via fastboot. To do that, you can follow the tutorial linked below.

Now when you have unlocked the bootloader successfully, you can read ahead and root Xperia Z5, pretty easily.



 Flash Insecure Kernel

  1. First off, download
  2. Extract the downloaded file using WinRAR or 7ZIP. You will now have the boot.img file, which basically is the kernel itself.
  3. Open the folder where the ‘boot.img‘ has been extracted. Press SHIFT key and right-click on an empty space inside this folder. Select Open command window here from the pop-up menu that appears.
  4. Now, boot into fastboot mode – Power off your Z5 completely. While pressing and holding the Volume Up button, connect the USB cable to the device. Now when the blue LED lights up, release the volume key, and your Z5 should now be in fastboot mode.
  5. When your phone has entered fastboot mode, enter the following command to confirm that the device is ready for fastboot access.
    fastboot devices

    The command should return a device ID. In case it doesn’t, reinstall Android SDK and reboot your machine.

  6. Time to flash the kernel. Use the following command:
    fastboot flash boot boot.img
  7. It will be done in a few seconds. You can reboot back your device using the following command:
    fastboot reboot

It is necessary to boot the phone once after performing this process, in order to verify that everything is in its place and working. In case you get a bootloop, try flashing the kernel again.

Install TWRP Recovery

TWRP for the Z5 is unofficially available via XDA-Member AndroPlus and could be installed using a simple fastboot command. We will then use TWRP to further proceed with the guide.

  1. Download TWRP v3.0.0-0: twrp-3.0.2-0-E6653-20160504.img
  2. Boot your phone into fastboot mode – Power off your Z5 completely. Connect the USB cable to the phone, while pressing and holding the Volume Up button. When the blue LED lights up, release the key, and your Z5 should now be in fastboot mode.
  3. Make sure that your phone is still connected to the PC.
  4. Open the folder where the ‘twrp-3.0.2-0-E6653-20160504.img‘ file has been downloaded. Press SHIFT key and right-click on an empty space inside the same folder, and then select ‘Open command window here‘ from the menu that appears.
  5. A command-line window will open. Flash the TWRP recovery using the following command:
    fastboot flash recovery twrp-3.0.2-0-E6653-20160504.img
  6. When it is done, you can disconnect your phone.

After the first boot, it is advised to reboot the device to recovery mode in order to mount the partitions properly.

Step 3: Root Xperia Z5

  1. The easiest part of the guide is to root. Download the latest SuperSU flashable zip from here, and transfer it to your Z5’s internal storage.
  2. Make sure your device is connected to the PC. Now enter the following command to reboot into recovery mode:
    adb reboot recovery
  3. While you are in the TWRP recovery, go to ‘Install’. Navigate your phone’s storage and select “”. Now, swipe the ‘Swipe to confirm Flash‘ button.
  4. When the flashing process is complete, tap on ‘Reboot System‘.

Your Xperia is now rooted, running AndroPlus kernel. You can now tweak the kernel using Kernel Adiutor, or install apps that require root, it’s your call.

If you have queries related to the process, drop a comment below. Also, do let us know how rooting has helped you customize your Z5.

More for you:

About the Author

Founder and Editor-in-Chief

Dhananjay has more than 11 years of experience in Android software customization and development, and has spent the past 10 years writing about it. He spends most of his prime time reading, learning and writing about Android and other open-source projects. He is also a community-taught web developer. Apart from that, he loves mountain biking and playing video games on his PlayStation.

Comments 2 Comments

  1. nice to meet you. After bootloader unlocking the Xperia Z5 SO-01H for children, I thought about installing TWRP here, and when I did the work in order, when the SONY logo appeared, the LED turned light blue and orange. It glowed, and when Android was booting, the red LED flashed once and then went into a bootloop. I did the same thing several times, but the condition did not change, so I do not know how to fix it because I am an amateur. Depak mode seems to be locked for some reason, so I can’t use the flash tool, and I can’t use Xperiacompanion because I have bootloaderUnlocked. Can I restore it somehow? I am emailing you to let me know if there is a solution. Thank you.

    1. I supposed you faced the issue because the files are not the latest. I will need to re-write the tutorial, but would need a device for that. It would be great if you could reach out to me through email.

      For now, I would suggest using XperiFirm to download the latest firmware package for your Xperia Z5, and then flash it using Flashtool by Androxyde.

      If you face any problems, feel free to comment back.

Leave a Reply

Comments are moderated, and published only if they are relevant to the topic and add value in a constructive way. If you disagree with something, please be polite and respectful. We suggest you read our comment policy before commenting.