How to Unlock Bootloader of Sony Xperia Devices [Guide] – * Updated*

While visiting looking out for a custom ROM for your Xperia Device, you must have heard that you need to unlock your phone’s bootloader first, but ever wondered what is this bootloader, why is it locked by default and why you can’t flash a custom rom image keeping the booltoader locked? Well, we have the answer for you.

Basically the Bootloader starts the operating system of your Android smartphone, also ensures that the operating system running on your device is well and is up to the mark. Bootloader also verifies the working and functionality of your device’s radio, processor and some other hardware components. Google provides a base bootloader for each Android version, but the smartphone manufacturers optimize it for their devices and put the necessary restrictions. The purpose is to ensure the device’s security, and restrict the custom firmwares to be flashed on the phone.

Unlocking the phone’s bootloader gives you the privilege to flash custom roms, load custom recoveries that require the bootloader to be unlocked and do other similar things. Once unlocked, the manufactures take no more responsibility of your device and you have void the warranty of your device.

As Android is an open source operating system, the developments are never going to face a break. To allow the full use of the devices, the manufacturers allow the unlocking of the bootloader officially. Unlocking your it is the very first step towards rooting your phone, you can easily flash any custom recovery using the .img file and then flash SuperSu or Super User and gain root access. We’ll be having a look at a method to unlock the bootloader of Sony’s Xperia Lineup. Although the Sony has provided all the details and method at the official site, I still found it necessary to explain it a little more and explain the method in even more simple and easiest steps. Let’s move forward to the method now.

Before heading towards the unlocking method, please keep in mind that it is highly custom and may result in bricking your device, as mentioned this will also void the warranty of your device. In case of any mishap, we may not be held responsible. Furthermore, unlocking the bootloadder will also erase your phone completely and you will loose all of your data. So, before you unlock your phone make sure that you backup all of your apps, media content,  contacts, call logs and text messages. Also make sure that you back up your TA partition before you unlock your bootloader.

Note: Along with voiding the warranty of your phone, unlocking bootloader will also break Bravia Engine 2 on some Sony Devices. The only way to get it back is to restore the TA partition. So, If you want to backup TA partition, you need to find a method to root your device without unlocking it’s bootloader first. Method for rooting some Xperia devices are available on XDA developers forum, but you may need to downgrade your device to an older Android version to root it without unlocking the bootloader. If you really don’t care about Bravia Engine 2, you may not worry about it then.

How to Unlock Bootloader of Sony Xperia Lineup:

      1. Install Android ADB  & Fastboot Drivers using the quick setup with Minimal tool. Find the guide here.
      2. Now first of all you need to check if your device’s bootloader unlocking is allowed or not, to do so open the dailer on your device.
      3. Type *#*#7378423#*#*.
      4. As soon as you enter the above code, a menu will open up.
      5. Tap Service info > Configuration > Bootloader Unlock. If it says Yes, that means bootloader unlocking is allowed, else you can also find out if the Bootloader is already unlocked. I’ve already unlocked my Xperia Z1’s bootloader, in the following picture its showing “Bootloader Unlocked: Yes”

          

      6. Now in the dialer type “*#06#”, you should get the IMEI number of your phone. Note it down somewhere.
      7. After verifying the bootloader unlock permission, turn off your device completely.
      8. Now open the Minimal ADB and Fastboot command prompt, that you created using the guide above.
      9. Press the back key or Volume Up key on your Xperia Device and connect it to your PC while keeping the key pressed. The back key works for older Xperia devices, while for newer devices Volume Up key will work.
      10. In case you are trying to unlock the bootloader of your Sony Xperia Z1, please make sure that it’s running on latest Android 4.3 Jelly Bean firmware. If you tried to unlock bootloader on Android 4.2.2 firmware, it will cause the camera crash on your device.
      11. In the command prompt type: fastboot.exe -i 0x0fce getvar version and press enter, you should get a response now e.g (0.3). This step is to verify that your device is properly connected or not.
      12. Now open this page and accept the legal terms and conditions by Sony to unlock the bootloader.
      13. After accepting the legal terms and conditions, enter your name, your phone’s IMEI number (Remove the last digit of IMEI number) and your email and click the Submit button.
      14. You should receive an email from Sony immediately, the email has the Key to unlock your phone’s bootloader.
      15. Now again in the command prompt type this com: fastboot.exe -i 0x0fce oem unlock 0xKEY. Repalce KEY with the code that you got in the email by Sony and hit Enter.
      16. As soon as you hit Enter, the bootloader will be unlocked and show you logs in the command prompt.

How To Fix Sony Xperia Bootloop after Bootloader Unlock

That’s All. In case you got any queries/suggestions or you face any difficulties regarding this post, please feel free to stop by the comment box below. We will try our best to help you out. Thanks All.

This post was last modified on November 7, 2018 5:45 pm

Usama M

Usama is a software engineer by profession and at TechBeasts.com he uses his expertise to solve everyday consumer tech problems with his main areas of interest being Android, iOS and Windows.

View Comments

  • fastboot.exe -i 0x0fce getvar version

    As soon as i typed those, the cmd shows < waiting for device >

    My xperia z1 is in fastboot mode as shown by the blue led and connected to my pc. My pc is running windows 8.1

    EDIT: Nvm i've solved it, it was a hassle getting the drivers to install on windows 8.1

  • Hi, When I wrote in CMD :

    C:fboot>fastboot.exe -i 0x0fce oem unlock 0x5B3152EC0D3C352F

    ...

    FAILED (remote: Command not allowed)

    finished. total time: 0.004s

    I get this error - have you seen that - or you know what is the problem ?

    Regards,

    • @marcinchomicz:disqus turn on USB debugging mode in your phone and please check that drivers are installed properly or not. Good Luck :)

  • Dear Sir,
    I am unable to go more the "xii Step" , as I enter the code it come with saying "< waiting for device >", I tried with USB Debugging Mode and Without it also with MTP and MSC mode but same result. Please see the Screenshot as I think I have all the Drivers Installed can u provide Link for the Required Drivers for Sony Xperia Z1 C6902 14.2.0.A.290 Firmware, I ll be very thankful, Kindly Suggest.

    • @abhimanyu_singh_chauhan:disqus This is most probably the connection problem only because it is not returning the numeric value. Try changing the USB port, also make sure that your phone is properly booted into fastboot mode. Follow the steps for fastboot mode carefully. Let me know if you get it resolved or not.

      • Apart from this question I have another question I have been doing some reading and I found that people are saying to backup TA Partition before unlocking the bootloader.. And to backup TA PARTITION I have to Root and for Xperia Z1 I can't root without Unlocking the Bootloader.. So how am I supposed to backup TA Partition and DRM KEYS before unlocking the bootloader?

        • @abhimanyu_singh_chauhan:disqus you will need a method to root your phone without unlocking your bootloader first, otherwise it will be none of use.

          • Ya ur right.. But couldn't find this procedure as Rooting Without Unlocking the Bootloader has to be developed for Xperia Z1

      • I think it's a driver problem but couldn't get driver for Fastboot for Xperia Z1.. I tried searching the Internet but feeling confused

          • I have unlocked the Bootloader.. Driver problem was there thanks for the help.. Now i have a problem while rooting.. i ll post the question on the
            "Install CWM/TWRP Recovery & Root Sony Xperia Z1 C6903/C6902 Running Latest 14.2.0.A.290 Firmware [How to - Guide]" page

  • I get this error. I have c6903 and am running 4.3. Before updating to 4.3 I rooted my phone using 360. I then updated my phone to 4.3 and was able to unlock my bootloader. I am worried though because when I try and install supersu it says my phone is not rooted. I have tried to unlock my bootloader again and get this message. Does this confirm my bootloader is unlocked and my phone is rooted? Or am I doing something wrong?

  • @disqus_b8aRc1rGuQ:disqus type this code in Dialler : *#*#7378423#*#*. as soon as the menu opens up, select Services info > configuration and see what's the status of bootloader, and let me know. It looks like it is already unlocked.

    • I have checked this and it says bootloader is unlocked. I thought this just verified it could be unlocked but doesnt verify the status of the bootloader. When I try and install recovery I get nothing but a bunch of commands I can enter into fastboot.

  • @disqus_b8aRc1rGuQ:disqus I can't understand your issue can you please explain a bit more? Please send me the screenshot of your configuration in services info.

    • I have the same problem. I was with unlocked bootloader which relocked with flashtool and now i can't unlock it.I get exactly the same message.What's going on? please help me

    • @disqus_Lt0SCAAWNg:disqus only if there is a way to lock your device's bootloader again, otherwise you can't.

  • Thanks for the tut, but there's a problem in my case. After I type the command line with the unlocking key, I get an error and after a retry, unlocking succeeds. Here's the problem: the phone is stuck at Sony logo and after a reflash, the bootloader appears locked.

    What's going on?

  • @ciprirengle:disqus can you please send me a screenshot of your services info > configuration ?

Share
Published by
Usama M

Recent Posts

Snapchat not working? Here are the top 7 solutions you should try

Snapchat is a popular social sharing platform so when something goes wrong it can be…

2 years ago

Android 12: Details on the CDD arrives – How the performance classes will work

Android 12 Compatibility Definition Document (CDD) calls for device manufacturers to specify the performance classes…

3 years ago

Telegram: Beta 8.0.0 news for Android plus new feed for channels

New features in Telegram Beta 8.0.0 for Android include group video chat 2.0, live video…

3 years ago

Blackout Bingo for PC – Play for free on Windows 10, Mac

Download the Blackout Bingo app on your PC. With a competitive twist to the classic…

3 years ago

Wombo for PC – Use for free on Windows 10, Mac

Download the Wombo app on your PC. All you have to do is add a…

3 years ago

Golf Rival for PC – Play for free on Windows 10, Mac

Download the Golf Rival app on your PC. Follow the steps discussed below to get…

3 years ago

This website uses cookies to provide you up-to-the-mark services.