Join us on Tl   Wh

Hovatek Forum DEVELOPMENT Android [Tutorial] How to unlock Sony Xperia bootloader

[Tutorial] How to unlock Sony Xperia bootloader

[Tutorial] How to unlock Sony Xperia bootloader

hovatek
hovatek
hovatek
Administrator
49,778
17-11-2023, 12:21 PM
#1



This guide will explain how to unlock the bootloader of Sony Xperia devices using fastboot and an IMEI-generated unlock token. For other devices, you can check out our complete bootloader unlock guide.

Note: Unlocking the bootloader will erase the device (factory reset) so ensure to back up important stuff.

Requirements

  • Setup ADB-Fastboot on your PC
  • Go into Settings > About phone and tap seven times on Build Number to enable the developer option
  • From Settings, go into Developer options and enable OEM unlocking and USB debugging
  • Confirm that Device Protection isn't turned on by dialling *#*#7378423#*#* to access the service menu. Tap Service info > Configuration > Rooting Status. If 'Bootloader Unlock allowed' says Yes, then you are good to go
  • Get your IMEI by dialling *#06# . For dual IMEI models, take the IMEI of SIM slot 1

How to unlock the bootloader of Sony Xperia devices


Follow the steps below to unlock the Sony Xperia bootloader


  1. Visit https://developer.sony.com/open-source/a...bootloader , scroll down to the 'Unlock your device' section then choose your device model from the list

    [Image: How-to-unlock-Sony-Xperia-bootloader-1.webp]

  2. Enter your IMEI, IDID or MEID, check both boxes then click Submit and wait while your bootloader unlock token gets generated

    [Image: How-to-unlock-Sony-Xperia-bootloader-2.webp]

  3. You should see the token once generated. Mine is 8D69AF7AA3854E6F

    [Image: How-to-unlock-Sony-Xperia-bootloader-3.webp]

  4. Boot the device into fastboot mode. You can do this by powering off, holding the volume increase button then connecting to the PC via a USB cable. You can also do this while powered on and connected to the PC using ADB commands:

    Code:

    adb devices
    adb reboot bootloader

  5. Note that my unlock code is 8D69AF7AA3854E6F so I'll be using 0x8D69AF7AA3854E6F as my unlock token i.e adding a 0x (zero x) prefix :

  6. While in fastboot, run the following commands (replace 0x8D69AF7AA3854E6F with your unlock token).

    Code:

    fastboot devices
    fastboot oem unlock 0x8D69AF7AA3854E6F
    fastboot reboot

  7. Wait while the device reboots (the first boot might take a while)

  8. You can confirm your bootloader status by checking OEM unlocking. It should be greyed out.



Important Notice
  • If fastboot doesn't detect the device then follow the guide on how to fix ADB and fastboot detection problems
  • If you encounter FAILED (remote: ‘Command did not succeed’) then ensure you typed your IMEI correctly. Also, try using the IMEI for SIM slot 1 if your device is dual IMEI
This post was last modified: 17-11-2023, 12:42 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
Join us
WhTlYt