Root your Xperia Z2 with locked bootloader [Guide]

by XB on 15/06/2014

in Featured Content, Tips & Tricks, Xperia Z2


2014-06-15 19.25.40Good news Sony Xperia Z2 owners, developers have managed to fully root the handset even if you have a locked bootloader. Credit goes to various devs over at XDA including DooMLoRD, norti and xsacha. Local root was achieved a few days ago, allowing users to back up their TA partition to retain DRM keys when unlocking the bootloader. However, the Xperia Z2 now has full root.

The exploit used to root the Xperia Z2 was patched in the latest Xperia Z2 firmware build (17.1.1.A.0.402), so it will only work with older firmware with build numbers 17.1.A.2.55 and 17.1.A.2.69. Support for rooting the Xperia Z2 Tablet is also expected very soon.

We have written a guide below detailing the rooting process. It will work on handsets with both locked and unlocked bootloaders. Once you apply the script, your Xperia Z2 will be rooted, a backup of your TA partition will be created and Busybox and SuperSU will be installed too. The TA partition backup is crucial to those who want to unlock their bootloader and retain their DRM keys.

Tutorial to Root an Xperia Z2 with locked bootloader

Preparation
– You must be running 17.1.A.2.55 or 17.1.A.2.69 firmware.
– All necessary drivers need to be installed on your PC (including ADB drivers).

1) Download the Xperia Z2 Rooting Toolkit
Download the ‘Xperia Z2 Rooting Toolkit’ from here. Extract the ZIP file using Winzip/Winrar to a folder on your PC.

2) Switch on USB debugging and Unknown sources on your handset
Switch on the debugging option on your Xperia. Go to Settings > Developer options > Tick ‘USB debugging’

Also tick ‘Unknown sources’ under Settings > Security.

3) Connect phone to PC
Switch your phone on and connect it to your PC/laptop via USB.

4) Run the Toolkit
Now double click the ‘runme.bat’ file from the extracted files from step 1.

You will see the following screen appear talking about “Installing exploit app“. You don’t need to do anything at this stage, just let the program run.

Xperia Z2 Root Guide_1

You will then see that the script is copying a BIG file, once again let the script do its work.

Xperia Z2 Root Guide_2

5) Crash the Service Menu app
Once you see the following screen, you need to crash the Service Menu on your Xperia Z2. When you access your phone, you should notice that the script has opened your Service Menu. Click on Service Info > Configuration and you will notice that the screen will blink and then you will be thrown back into the Service Menu. Click any key on your PC/laptop to continue.

Xperia Z2 Root Guide_3

If successful, you will then see the following screen. Once again, the process is the same as above. Crash the Service Menu and then press any key on your PC to continue.

Xperia Z2 Root Guide_4

If successful, you will very briefly see the following screen referring to “Removing exploit app” which will then disappear.

Xperia Z2 Root Guide_5

6) Disconnect and reboot your Xperia Z2
Disconnect the USB cable from your Xperia Z2 and reboot the handset once the script window disappears.

7) Your Xperia Z2 handset is now rooted
Congratulations your phone is now rooted.

Xperia Z2 Root Guide_6

Xperia Z2 Root Guide_7

  • Adrian

    Yessss finally! Much love for our developers!! <3
    Personally i won't root until they release a script that works on .402, . 55 FW heats my device to much.

  • theskig

    This is a good news. Don’t want to unlock the bootloader, the last time with my “Z” I lost miracast!

  • Sture Karlsson

    Downgrade, root and upgrade.

  • joseph carmine nero

    awesome job by devs

  • xperiax10.awesome

    Sry, but how to crash the service menu???

  • webuser.my

    Hmm? Won’t you lose your root when you upgrade your firmware?

  • http://twitter.com/norti norti

    Wait for working recovery and update with prerooted .402 zip (both will be available soon, you can use the older firmware until then)

  • punterab

    I run the script and get ” error : device not found
    Waiting for device ” I have the required firmware and am in “debugging mode’ etc. daemon is running on port 5037. I’ve tried rebooting both the computer and the handset. running the script again gets the same error. any ideas? Thanks

  • Cronugs

    How do you downgrade?

  • Sture Karlsson

    Try OTA survival or a prerooted rom (needs cwm)

  • Sture Karlsson

    Google flashtool guide xda, then when you get the hang of it download an old firmware flash it,

  • Pingback: Rootez votre Xperia Z2 | Psy4Tech

  • kraklukasz

    i cant find the Settings > Developer options.

  • http://www.flickr.com/photos/77537273@N03/ Herman

    That’s why people should always backup the TA partition (if possible, of course) before unlocking the bootloader.

    Here’s the XDA thread for anyone on the verge of unlocking:
    http://forum.xda-developers.com/showthread.php?t=2292598&highlight=ta

  • http://www.flickr.com/photos/77537273@N03/ Herman

    Go to “about phone”, click the “build number” a couple of times and you’re a developer! Now go back to settings and the new menu, “developer options” has appeared.

    It’s very similar to the Android Version Easter Egg ;)

  • Mark

    Have you got adb and PC Companion installed on your PC? If not make sure they’re both installed and try again… that’s likely the issue.

  • theskig

    If you unlock the bootloader you cannot use miracast even if you have a backup

  • Pingback: Xperia Z2のroot化

  • Sana Sheikh

    Why root your device? Well I am Z2 user I just want to know what are the benefits of rooting my device…
    TIA

  • danycagiva

    you better use towel root!! Works without adb and so on.

  • Adrian

    Enter settigs -> About phone -> click several times on the build number until u see message “u r a developer now”
    Then go to developer options

  • joseph carmine nero

    Many benefits like Super user mod which allows unsigned mods to be used.themes,using ported apps from other devices,downloading apps from only avaible to other countries like japan etc-deleting bloatware-and when sony releases Z3 you will get many of it’s features ported
    last but not the least customization
    many other

  • Towelroot
  • Pingback: How To Root your Xperia Z2 with locked bootloader | Techbeasts

  • Pingback: Root your Xperia Z2 with locked bootloader [Guide] | Xperia Blog | Buy FastBuy Fast

  • Pingback: Xperia Z2 ganha acesso root sem a necessidade de desbloquear o seu bootloader | Boa Informação

  • Pingback: Sony Xperia Z2 ya puede ser rooteado [hack] | Actual Tecnologia

  • Guest

    I don’t know why but I never updated my phone and I already have .402, how does it be possibile?

  • http://www.volkswagen.de/ Quailallstar

    Wondering if I should wait until the .402 is hacked to root. Hmmm?? Any details on the .69 vs .402 features/security enhancements?

  • Manny_el_portu

    Does anyone know if updating to a newer version of the firmware will remove root access?

  • Derek

    Hey, ive tried this multiple times, I am on build number 17.1.A.2.55, drivers are installed and my device is being recognized as it is showing my serial number in the cmd under platform tools.
    I get to the first section where you need to crash service menu, it crashes fine… but I never get to the second crash menu before the script ends and closes… and I don’t even know how to stop the screen from closing so I can see where the error lies… any suggestions?

  • VitoreRaquely Ramos

    ” The TA partition backup is crucial to those who want to unlock their bootloader and retain their DRM keys.” guys, what is this TA partition and this DRM keys?

  • Pingback: Root Xperia Z2 With Locked and Unlocked Bootloader | Smart-Phones the point

  • alex naddei

    sweet! finally can root this thing! going to do it soon, but quick question, dose it wipe data on my phone? im almost sure it wont but i like to make 100% sure haha

  • Pingback: [Guida] ROOT XPERIA Z2 CON BOOTLOADER BLOCCATO - Modding Sony Xperia Z2 - Androidiani

  • JAHMCR

    I am on. 402 but I will downgrade to .69 to root, if I upgrade again to .402 will it remain rooted?

  • Pingback: How to Root Sony Xperia Z2 with Locked Bootloader - Shy Android - Shy Android

  • Mhnd

    Who has 402 can root by Towelroot without downgrading without unlocking bootloader ;)

  • Tim

    ok so ive rooted worked like a treat thank you for that but now i want to install cwm recovery or something similar and i cant because my bootloader is locked. any ideas anyone?

  • Tim
  • Mhnd

    use dual recovery by nut from here
    http://forum.xda-developers.com/showthread.php?t=2785598
    without unlocking BL

  • Cristian

    Finally I can root Z2 without losing DRM Keys and get rid off the fucking SD writing restriction!!!!! GREAT!

  • Pingback: [Xperia Z2] Tổng hợp hướng dẫn Root - Rom - Mod | Wap4VN.Org - Thế giới Giải Trí

  • http://www.volkswagen.de/ Quailallstar

    What about if we want to unroot and revert back to factory settings? Do I just accept any OTA’s available? Want to be able to do this without needing a computer. Thanks!

  • adex99

    Is there currently any way to get cwm recovery or any other custom recovery after using this root method? I did this a month or so ago and am very happy with it but I want cwm or similar.

    Please email me at alexnad@live.com to respond as I won’t be coming back to this site

    Cheers guys!

  • Davidson Reis

    Hi, i’m doing all this with success like a tutorial, but not getting root.
    My firmware version is 17.1.A.2.55 and my Z2 have a locked bootloader.

    After the end of the process, I restart my device and check the SuperSU was not installed. Not root.

    Can anybody help me?

  • Cristian Inda

    how the hell can I crash the Service Menu app? I click on on Service Info then Configuration and NOTHING happens! screen keeps on Configuration screen.

  • James

    Someone is stuck on “correcting permissions” or is just me? Or that step realy take a long, long time to complete? Also, Towel didn’t work for me.

  • Paul

    could not access package manager? also Test VDC #1: Failure :(

  • John Jairo Ortiz Ruiz

    my phone meets all the steps.
    I have reinstalled drivers
    I have reinstalled the pc companion
    version is the 17.1.A.2.69
    I put the files on the desktop
    Developer options> Tick ‘USB debugging
    Unknown sources’ under Settings> Security
    Now double click the ‘runme.bat’

    help me please, want root in my phone

    thanks

  • John Jairo Ortiz Ruiz

    my phone meets all the steps.
    I have reinstalled drivers
    I have reinstalled the pc companion
    version is the 17.1.A.2.69
    I put the files on the desktop
    Developer options> Tick ‘USB debugging
    Unknown sources’ under Settings> Security
    Now double click the ‘runme.bat’

    help me please, want root in my phone

    error divice no found

    thanks

  • Yaqoob

    Unfortunatly I have a newer firmware. please advice!

  • Shuvo Chowdhury

    i have firmware build 17.1.1.A.0.402
    what can i do??

  • Morthar

    check if drivers are installed.

  • Jack

    How long did it take to copy BIG file. Is it normal that mine has been going for 30 mins?

  • seb

    Tim did you figure it out? i have the same issue

  • seb

    I rooted the device but can’t unlock the bootloader, any advice?

  • bcskh

    Backup TA partition!!! ask xda for bl unlock

  • Luis

    Hello, Thank you for shared with us this amazing tutorial!! it works fine to me!

  • Fan79

    I have China’s release of the Z2, the L50T, Build No: 17.1.E.2.67. Could you tell me if this method of root will be supported by the L50T? Thanks!

Previous post:

Next post:

Sitemap