Sony Xperia Z and ZL Android 5.1.1 Root and TWRP Recovery

Some of you who updated the Xperia Z and ZL to Android 5.1 update from Sony must be looking a way back to root and TWRP recovery, right? Well,…

Some of you who updated the Xperia Z and ZL to Android 5.1 update from Sony must be looking a way back to root and TWRP recovery, right? Well,…

15 Comments
Kapill M Malani

Kapill M Malani A die-hard Liverpool FC fan, Kapill is a big fan of Batman, Android and street Cricket. In that order, probably. Email: [email protected]

Some of you who updated the Xperia Z and ZL to Android 5.1 update from Sony must be looking a way back to root and TWRP recovery, right? Well, we have got you fully covered.

Start with installing the TWRP recovery first. And then using the TWRP, you can root your Xperia Z/ZL back pretty easily. Thanks goes to shoey63, for coming up with the modified boot images to get TWRP back on Android 5.1.1.

Required?

It must be noted that the TWRP is currently available only for unlocked devices. See step 1 below for help on this.

Downloads

  • TWRP Recovery:
    • Xperia Z — Link | File: boot.img (14.6 MB)
    • Xperia ZL — Link | File: boot.img (14.6 MB)
  • SuperSU Root package — Link | File: UPDATE-SuperSU-v2.46.zip

Supported devices

  • SONY XPERIA Z, codename Yuga
  • SONY XPERIA ZL, codename Odin
  • Don’t try this one any other device!

Important: Check your device’s model no. on free Android app called Droid Info. If you see codename mentioned above in the app, then use this recovery, otherwise not. BTW, you can check model no. device’s packaging box too.

Warning: Warranty may be void of your device if you follow the procedures given on this page. You only are responsible for your device. We won’t be liable if any damage occurs to your device and/or its components.

Backup important files stored on your device before proceeding with the steps below, so that in case something goes wrong you’ll have backup of all your important files.

Make sure you have unlocked bootloader of your Xperia Z/ZL. If your device is bootloader locked, then you need to go to Sony’s site and unlock bootloader. See our guide for additional help, the procedure remains same.
Install ADB drivers.
Install Sony driver.
 On your Xperia Z/ZL, enable USB debugging. For this:
  1. Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you see the ‘you’re not a developer’ message pop up.
  2. Go back to Settings, then choose ‘Developer options’. Find the ‘USB debugging’ option and use its toggle button to enable it. Accept warning by tapping on OK button.
Connect your Xperia Z/ZL to PC now. You will get a pop-up as shown below on your phone when you connect for the first time after enabling USB debugging. Select ‘Always allow from this computer’ checkbox and then tap on OK button.
Allow USB Debugging
Download the Xperia Z/ZL TWRP recovery from above. And also the SuperSU file that will be used to Root the device.

If you wish to root your device too, then transfer the SuperSU file (UPDATE-SuperSU-v2.46.zip) to phone.

Now, open command window in the folder where you have the TWRP recovery file, boot.img. For this:
  1. Open that folder and then left click on empty white space in the folder.
  2. Now, while holding shift key, right click on empty white space to get a pop-up as shown below.
  3. Now choose Open command window here option from that.
    open command windows here
    You will see a command window open up, with location directed to folder where you have the twrp recovery file.
Boot your Xperia Z/ZL into Fastboot mode:
  • Switch off your Xperia Z1.
  • Press and hold the Volume Up button on device and while holding it, connect it to your PC using a USB Cable.
    └ Before plugging in the USB cable on your Xperia Z1 make sure that the other end of USB cable is already connected to the PC.
  • Your Xperia Z1 should be in Flash Mode now and the device’s LED light should turn into blue.
Test whether fastboot is working alright. For this, run the command given below. (You can also copy paste the command and then use enter key to run it.)
→ Upon running command below, you should get a serial no. with fastboot written after it. If you don’t get fastboot written on cmd window, then it means you need to reinstall adb and fastboot drivers, or change restart PC, or use original USB cable.
fastboot devices
Flash  Xperia Z/ZL TWRP recovery now. Use the following command for that.
fastboot flash boot boot.img
TWRP recovery will now be installed on your Xperia Z/ZL. When done, reboot into recovery mode.
  1. Turn your device off.
  2. Now, press both Power and Volume down button together until your you feel vibration from the device. Once you do, release the Power button quickly while keep holding the Volume down button.
  3. If you did the above step correctly, then you will see the screen with dead green Android in the middle, with an exclamation mark.
  4. Now, when you see that screen, release the Volume down button and you will enter recovery mode. You will see TWRP recovery.
[Optional] You will see TWRP recovery, v2.8.6.0.  Now, you must take a full backup of your phone, including system partition. In TWRP, tap on Backup, and then select all partitions. Then do the swipe action at bottom to start the backup process.
 To Root, tap on Install button, and then browse and select the SuperSU file (UPDATE-SuperSU-v2.46.zip). Then on next screen, do the Swipe action at bottom to flash the root package.
Tap on Reboot System to restart the device. That’s it.

Happy flashing!

And let us know if you need any help regarding installation of TWRP recovery on your Xperia Z/ZL. Use the comments section below.

15 responses to “Sony Xperia Z and ZL Android 5.1.1 Root and TWRP Recovery”

  1. Guest Avatar

    Happy to see that some people still interested in 1st Gen Z series. Thanks.

  2. Prelude Avatar

    Happy to see that some people still interested in 1st Gen Z series. Thanks.

  3. Guest Avatar

    any root for Tablet Z (SGP311)? Thanks 🙂

  4. jay viper Avatar
    jay viper

    any root for Tablet Z (SGP311)? Thanks 🙂

  5. Guest Avatar

    Works for Xperia Z C6603 Thanks buddy

  6. Soban Avatar

    Works for Xperia Z C6603 Thanks buddy

  7. Guest Avatar

    when im doing this the cmd window says waiting for device ???

  8. Bozhidar Simeonov Avatar
    Bozhidar Simeonov

    when im doing this the cmd window says waiting for device ???

  9. Guest Avatar

    Thanks for all information here! I did all step by step, and everything went smoothly. My “Z” now has nice TWRP recovery, and is rooted. Nice present for myself on New Year’s night! 🙂 Special thanks for all authors and programmers of these solutions. Happy New Year! 🙂

  10. Juris Perkons Avatar
    Juris Perkons

    Thanks for all information here! I did all step by step, and everything went smoothly. My “Z” now has nice TWRP recovery, and is rooted. Nice present for myself on New Year’s night! 🙂 Special thanks for all authors and programmers of these solutions. Happy New Year! 🙂

  11. Guest Avatar
    Guest

    Good guide, though the instructions for booting into recovery are wrong for the Z. You have to mash the volume up or down buttons when the LED first lights up for it to go to recovery.

  12. nice Avatar

    Good guide, though the instructions for booting into recovery are wrong for the Z. You have to mash the volume up or down buttons when the LED first lights up for it to go to recovery.

  13. Guest Avatar

    Fastboot is not recognized as an external or internal command this is error message i am getting please hep

  14. libin baby Avatar
    libin baby

    Fastboot is not recognized as an external or internal command this is error message i am getting please hep

  15. mf Avatar

    Why don’t you telling people that they must take TA partition before unlocking bootloader?!