Last Updated on January 5, 2023 by Mathew Diekhake
While the Premium and Compact variants of the Sony Xperia Z5 are already rooted, the real one remained unrooted up until now. But with the method below, you should now be able to root your Sony Xperia Z5 – the original phone – and get access to tons of root-requiring apps and other custom developments.
Rooting the Xperia Z5 requires flashing a modified kernel and then booting into a custom recovery to be able to flash SuperSU that then actually roots the phone. Here’s how you can do that all for rooting your Xperia Z5:
Files You Need
- The bootloader on your Xperia Z5 phone must be unlocked before you can do this tutorial.
- This tutorial has been written keeping the Windows version of Fastboot in mind. If you use Linux or Mac, you will need to install ADB on your Linux or install ADB on your Mac to do this tutorial.
- You should have ADB USB drivers installed on your Windows computer.
- This flashes a modified kernel to obtain root access on your phone.
- Download Modified Kernel and save it to your desktop.
- Download Fastboot and save it to your desktop.
- Download TWRP Recovery and save it to your desktop.
- Download SuperSU and save it to your desktop.
- You should only do this tutorial on a Sony Xperia Z5. Please do not try this on any other device or you will end-up bricking the device.
Rooting the Sony Xperia Z5
- Extract files from Modified Kernel, Fastboot, and TWRP Recovery over to your desktop by right-clicking on each of them and selecting Extract here. Make sure all of the files, namely TWRP Recovery .img, Modified Kernel .img, and fastboot.exe are on your desktop. If they are not, bring them there.
- Unlock the developer menu on your Xperia Z5 phone by going to Menu->Settings->About phone and tapping on Build number for 7-8 times. It will say you are now a developer which means the developer menu has been unlocked on your phone.
- Head to the newly unlocked menu at Menu->Settings->Developer options and turn on the Sony Xperia Z5’s USB debugging.
- Plug in your Z5 phone to your computer using a suitable USB cable.
- Open a command prompt window on your desktop by holding down Shift on your keyboard and right-clicking anywhere on the screen and selecting Open command window here.
- When the command prompt window opens, type in the following command and hit Enter:
adb reboot bootloader
- Your phone should reboot into bootloader mode.
- Type in the following command into the command prompt window and press Enter. It will flash the modified kernel on your phone.
fastboot flash boot z5_stock_fixed.img
- Wait for it to flash the kernel on your phone.
- When it’s done flashing kernel, run the following command to reboot your device into the custom recovery mode:
fastboot boot recovery.img
- When the custom recovery launches, run the following commands hitting Enter after each command:
adb shell mount
adb shell cat /proc/partitions
adb shell mount /dev/block/platform/soc.0/by-name/system /system
adb shell mount /dev/block/platform/soc.0/by-name/userdata /data - Now run the following commands to flash SuperSU on your phone. Make sure the name of SuperSU in the following commands match with the name of the SuperSU file you have downloaded on your computer.
adb push UPDATE-SuperSU-v2.46.zip /data/media/0/
adb shell twrp install /data/media/0/UPDATE-SuperSU-v2.46.zip
adb shell rm /data/media/0/UPDATE-SuperSU-v2.46.zip - Reboot your device after all of the above commands have been successfully executed.
- You are all done.
Your Sony Xperia Z5 is now rooted.
You might also be interested in:
- How To Root The OnePlus 3 On Android 6.0 (Oxygen UI)
- How To Install A Custom Recovery On The OnePlus 3
- How To Root Samsung Galaxy S7 Edge SM-G935F On Android 6.0.1 Marshmallow
- How To Install A Custom Recovery On The Huawei Honor 5C
- How To Root The Huawei Honor 5C On Android 6.0
Have something to say? You can contribute to this tech article by leaving a comment below.