Love your new Xperia Z’s waterproofing but not the biggest fan of it’s software? No problem, just root it and open the whole new world of hacking and modding. You can overclock the device, remove bloatware, install stock Android and so much more. All of this, though, begins with rooting the device. Here’s how to root the Sony Xperia Z and unlock the bootloader.
Please note that if this procedure seems a bit longer than most it is because I have you backup your DRM keys so you don’t lose the Bravia Engine, Walkman Music, and keep your warranty fully intact whereas most rooting procedures don’t do this and you’ll lose them forever. Bottom line, this procedure is longer than most, but definitely worth the few extra steps.
I. Before You Begin
1. Thanks to Doomlord. If this procedure helped you, please head here and donate/thank him!
2. Thanks to DevShaft. If this procedure helped you, please head here and donate/thank him!
3. Thanks to Cpasjuste. If this procedure helped you, please head here and donate/thank him!
4. Check to see if your device’s bootloader can be unlocked by doing the following:
Open the phone app
Tap Service Info > Configuration > look to see if bootloader unlock is allowed or not.
If it says yes you can continue, if it says no then please head here to root the Sony Xperia Z without unlocking the bootloader.
II. Root the Device for Backing Up the DRM Keys
1. Enable USB debugging by going to Settings > Developer Options and checking USB Debugging on.
2. Enable Unknown Sources by going to Settings > Security and checking Unknown Sources on.
3. Increase the screen timeout to 10 mins by going to Settings > Display > Sleep > Change it to 10 mins.
4. Download the easy rooting script for locked bootloaders and save it to your desktop.
5. Extract the rooting script by double clicking the rooting script .zip file.
6. Plug the phone in via USB.
7. Open the rooting script folder and double click the windows .bat file.
8. Hit Enter in the command prompt on the computer and wait for it to finish.
9. Once done, the device will reboot and you have root access.
10. To fix something with the bootloader not being able to be unlocked after using this root method, open the doomlord rooting folder then files inside that.
11. Hold shift on your keyboard and right click in any blank area of that folder and select Open Command Prompt Here.
12. Type the following into the command prompt with hitting enter at the end of each line:
III. Backup TA to Keep DRM Keys
1. Download the TA Backup script and save it to your Desktop.
Backup TA (download link is in the first post on that page)
2. Extract it by double clicking the .zip file.
3. Open the folder that appears.
4. With the device still plugged in via USB, double click the Backup TA .bat file.
5. In the command prompt window that opens, type X and hit enter. Wait for it to finish backing up.
IV. Unlock the Bootloader
1. On your device, go to Settings > About Phone > Status and look for IMEI. Write this number down on your computer in notepad or some equivalent text editor.
2. Head to http://unlockbootloader.sonymobile.com/ on your computer.
3. Scroll down and click on Start Unlocking the Bootloader.
4. Read everything and click Accept.
5. On the Create Unlock Request page enter in the IMEI we wrote down earlier and the other info including your email (needs to be a valid email since they will email us something we need to unlock the bootloader).
6. You will receive your unique unlock key from Sony via email. Save this key.
7. Download the Fastboot folder and save it to your desktop.
8. Extract the file by right clicking it and select Extract all.
9. Open the fastboot folder inside.
10. Hold shift and right click on the background in this folder and select Open Command Prompt Here.
11. In the new command prompt window that appears, type the following but replace the word KEY with the unlock key you received via email from Sony and then hit enter:
fastboot.exe -i 0x0fce oem unlock 0xKEY
12. The device should reboot.
13. Leave the command prompt open for the next step.
V. Flash a Custom Recovery
1. Download and save the custom recovery to your desktop:
2. Copy the boot-twrp-v2.img from inside the folder and place it into the fastboot folder that we downloaded earlier.
3. In the command prompt that is still open from section IV, type the following with hitting enter at the end o the line:
fastboot.exe flash boot boot-twrp-v2.img
4. You now have a custom recovery image.
VI. Re-Root the Sony Xperia Z
1. Head to Doomlord’s page and download the supersu .zip file in the second post and save it to your desktop.
2. Download the Recovery app (so we can easily reboot into recovery).
3. Copy the .zip file and apk to the internal storage of the Xperia Z.
4. Unplug the Xperia Z.
5. Open File Commander on the device and then click on the apk file and install it.
6. Open the app and click reboot recovery.
7. Once in recovery, go to Backup and then select backup and wait for it to finish.
8. Select Install Zip and then Choose Zip and then select the Super SU .zip file we put on the device and let it flash that.
9. Select reboot system now.
10. All done, you are rooted, running a custom recovery, have an unlocked bootloader, and have all your DRM keys saved. Head to the next procedure to flash a custom ROM on your Sony Xperia Z or head to our How To’s for the Sony Xperia Z to find all sorts of other how to’s you can do with root access. Enjoy!
Computer won’t recognize the device in fastboot mode.
1. Download and extract the Sony USB Drivers to your desktop from here.
2. Open Device Manager and find your device with the exclamation point next to it, right-click it and say update device drivers.
3. Browse for files and choose the extracted Sony Drivers folder and click OK and it should install the drivers.