Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,988 Members 53,551 Now Online
XDA Developers Android and Mobile Development Forum

[How-To] Unlock the bootloader of xperia devices

Tip us?
 
mihahn
Old
(Last edited by mihahn; 24th July 2013 at 02:24 PM.)
#1  
mihahn's Avatar
Recognized Contributor - OP
Thanks Meter 2,171
Posts: 3,209
Join Date: May 2012
Default [How-To] Unlock the bootloader of xperia devices

This is a tutorial on how to Unlock the bootloader of xperia devices.

First of all: This will void your warranty and only necessary to install custom kernels or custom roms. If someone told you to unlock the bootloader for rooting, you needn't do that. Just check out my rooting guide here. So let's go on - and - read everything carefully!!!!

I accept no responsibility for any damage of your phone or pc! You do all this on your own risk!
It will void your warranty and you will loose DRM, so you can't use trackid anymore. You mustn't do updates over the air, otherwise your phone will brick!!! You won't be able to update phone via pc companion or sony update service anymore, you will have to flash the rom via flashtool!


Unlocking the bootloader will wipe your /data partition. So please save your personal data before unlocking!


First you check, if your bootloader is unlockable. For that you have to be on stock sony rom. You type: *#*#7378423#*#*
Now you are in the service menu. Go to "Service info" -> Configuration and look at the bootloader status.
If Rooting Status -> Bootloader unlock allowed: yes, you can go on




1. Manually like on sony's homepage

2. Automatic with the SE Bootloader Unlocking Tool by quangnhut123

3. Testpoint Method


1. Manually

For this you need the following tools/files/etc:

- Android SDK from here
- Modified android_winusb.inf-file from here
- Fastboot.exe (Just search for it on google for example)

So let's start:

Go here and click yes. After that type in your IMEI. Go to your phone and type *#06#* and you will see your IMEI. Now go back to your browser, type in your Name, Email-adress and your IMEI and click submit.
LEAVE THE WINODW OPEN, IT WILL PROMPT YOUR UNLOCK CODE. Write it down on a piece of paper and lets go on.

Now we will set up android sdk. You install it to the directory you want and start it.



Check your Android Version, the Tools, and from extras the google usb driver and install them.

Now you go to the installation folder and open tools



and paste the fastboot.exe there:



Now you go back to the installation folder and open extras > google. There you paste the modified android_winusb.inf



Now we have everything set up and can go on the phone
Turn off your phone and hold the unlock button (usually the volume up button) and connect to pc. The blue led will light up.

Go on the pc and your pc will ask you for drivers. Point to the android_winusb.inf-file and your phone will be recognized. If not, download flashtool from here and install it. You go to the installation folder and open drivers and install all the drivers provided.

Now we open a command window from windows and go to the installation folder of the android sdk. Then we go in the tools folder. Use the following commands to navigate:
cd .. = one folder up
cd foldername = open folder
dir = show content of the folder



And we can see the fastboot.exe in the tools folder:



Now the unlock process begins, make sure the phone is charged (over 20% is a must have, better fully)

We type in the command window:

fastboot.exe -i 0x0fce getvar version

and if we get a value like 0.3 the phone is connected and responsing.



The next step unlocks the bootloader

To unlock your bootloader now enter the following code:
fastboot.exe -i 0x0fce oem unlock 0xKEY

Watch Out: You have to change KEY to the key you got earlier!



If everything goes well, you have an unlocked bootloader now! Congratulations

Now we are able to flash a custom kernel/rom, so check this out to know how to install the new kernel/rom


This tutorial is based on the tutorial from sony. I don't own any files and if sony doesn't like me to do this tutorial, please let me know and I will delete this topic!
Attached Thumbnails
Click image for larger version

Name:	bl unlock allowed.jpg
Views:	60534
Size:	18.1 KB
ID:	1315910   Click image for larger version

Name:	SDK_1.JPG
Views:	58951
Size:	149.6 KB
ID:	1315930   Click image for larger version

Name:	installation folder.JPG
Views:	58587
Size:	49.1 KB
ID:	1315931   Click image for larger version

Name:	tools.JPG
Views:	58678
Size:	131.6 KB
ID:	1315932   Click image for larger version

Name:	usb.JPG
Views:	58569
Size:	59.6 KB
ID:	1315933  

Click image for larger version

Name:	command 1.JPG
Views:	58201
Size:	31.7 KB
ID:	1315934   Click image for larger version

Name:	tools_cmd.JPG
Views:	58220
Size:	128.2 KB
ID:	1315935   Click image for larger version

Name:	unlocking cmd.JPG
Views:	58151
Size:	30.0 KB
ID:	1315936   Click image for larger version

Name:	unlock_cmd_key.JPG
Views:	58111
Size:	36.4 KB
ID:	1315937  


Devices/Links/Information:
 

Device:Google Nexus 4 8gb
ROM:Stock Android 4.4.2 [KOT49H]

Device:Google Nexus 7 32gb
ROM:Stock Android 4.4.2 [KRT16O]

Device:Xperia Mini Pro SK17i
ROM: Super Jelly Bean 8.0
Kernel:nAa 2.6 [CWM]

Device:Raspberry Pi Model B
OS: Arch Linux

For a Rooting Guide for xperia 2011 devices, click me! | To unlock the Bootloader, click me! | How to install a custom kernel/rom? Click me | Super Jelly Bean 8.0 for xperia mdpi
The Following 72 Users Say Thank You to mihahn For This Useful Post: [ Click to Expand ]
 
mihahn
Old
(Last edited by mihahn; 31st January 2013 at 07:40 PM.)
#2  
mihahn's Avatar
Recognized Contributor - OP
Thanks Meter 2,171
Posts: 3,209
Join Date: May 2012
2. Automatically with the SE Bootloader Unlocking Tool by quangnhut123

For that you go to this thread and hit thanks. After that download the tool.

Remember, unlocking the bootloader will void warranty! After unlocking bootloader, never try to update ota (=over the air)! PC Companion and SEUS won't recognize your phone after the following steps!
Make sure your pc is connected to the internet, to get the unlock code from sony website. You will lose DRM like in the other tutorial!

If you want to unlock now, follow these steps:

Quote:
1. Extract "SE Bootloader_Unlocking_Relocking_1.6.rar" and you'll find out "Flashtool-drivers.exe", run it to install. Check all drivers/phones, just to be sure all drivers are installed

2. Go to phone an input on the dial pad *#06#* to promt your IMEI.

3. Open the unlocking tool and in the first text field input the first 14 digits of your IMEI.

4. Press the Get Unlock Code button. Your unlock code will automatically appear in the Unlock Code Box.

5. Now turn off the phone, hold Volume Up and while pressing it you connect the USB cable to the computer. The blue led should appear, which means you are in fastboot mode to unlock bootloader.

6. Click the Unlock BL button. The program will automatically unlock your bootloader!
That's it, this is easier for newbie's, but remeber, it voids warranty! And do it on your own risk!

3. Testpoint method
If you don't want to void your warranty (okay you do, but you can relock your bootloader and with some luck sony won't notice it's been opened, so you still have your warranty ) you can use the testpoint method.

You have to mess around with the hardware. This sounds strange, right?
But it isn't even hard. Just read this great tutorial by DragonClawsAreSharp!

But note: This method will only work if your device was produced before building number 12w11 (as far as I know). You can check this number on the sticker under the battery


If you want to install a custom rom/kernel now, just go here for a guide


Devices/Links/Information:
 

Device:Google Nexus 4 8gb
ROM:Stock Android 4.4.2 [KOT49H]

Device:Google Nexus 7 32gb
ROM:Stock Android 4.4.2 [KRT16O]

Device:Xperia Mini Pro SK17i
ROM: Super Jelly Bean 8.0
Kernel:nAa 2.6 [CWM]

Device:Raspberry Pi Model B
OS: Arch Linux

For a Rooting Guide for xperia 2011 devices, click me! | To unlock the Bootloader, click me! | How to install a custom kernel/rom? Click me | Super Jelly Bean 8.0 for xperia mdpi
The Following 45 Users Say Thank You to mihahn For This Useful Post: [ Click to Expand ]
 
Abhinav2
Old
#3  
Abhinav2's Avatar
Recognized Contributor / Themer
Thanks Meter 4,511
Posts: 2,280
Join Date: Jul 2012
Talking Thanks!!

Thanks!! Thumbs up!!
 
UchihaDareNial
Old
#4  
UchihaDareNial's Avatar
Senior Member
Thanks Meter 204
Posts: 1,102
Join Date: Feb 2012
Location: Seremban
Nice guide for the newbie,deserved thumbs up from me

Sent from my GT-P1000 using xda premium
Devices : XPERIA ION LT28h and XPERIA MINI PRO SK17i

Devices status :

XPERIA ION - Currently using latest official firmware,deodexed with small apps

XPERIA MINI PRO - Currently using a custom rom,bootloader unlocked

Obey the XDA rules!

Hit thanks button if you really wanna thanks people,don't just say the word.
 
Midomad
Old
#5  
Midomad's Avatar
Senior Member
Thanks Meter 396
Posts: 993
Join Date: May 2011
Location: Salé
hi
in Bootloader unlock allowed i have No
what can i do?
Nexus 4
Paranoid Android 4+
Semaphore Kernel
The Following User Says Thank You to Midomad For This Useful Post: [ Click to Expand ]
 
mihahn
Old
#6  
mihahn's Avatar
Recognized Contributor - OP
Thanks Meter 2,171
Posts: 3,209
Join Date: May 2012
Quote:
Originally Posted by midomad View Post
hi
in Bootloader unlock allowed i have No
what can i do?
If bootloader unlock allowed:no you can't unlock it like this. Maybe you have a netlock or simlock?
Then you can just unlock using a paid method, for example wotan server, but that's more complicated and I can't promise that it works, because fastboot is disabled then


Devices/Links/Information:
 

Device:Google Nexus 4 8gb
ROM:Stock Android 4.4.2 [KOT49H]

Device:Google Nexus 7 32gb
ROM:Stock Android 4.4.2 [KRT16O]

Device:Xperia Mini Pro SK17i
ROM: Super Jelly Bean 8.0
Kernel:nAa 2.6 [CWM]

Device:Raspberry Pi Model B
OS: Arch Linux

For a Rooting Guide for xperia 2011 devices, click me! | To unlock the Bootloader, click me! | How to install a custom kernel/rom? Click me | Super Jelly Bean 8.0 for xperia mdpi
The Following User Says Thank You to mihahn For This Useful Post: [ Click to Expand ]
 
Midomad
Old
#7  
Midomad's Avatar
Senior Member
Thanks Meter 396
Posts: 993
Join Date: May 2011
Location: Salé
Quote:
Originally Posted by mihahn View Post
If bootloader unlock allowed:no you can't unlock it like this. Maybe you have a netlock or simlock?
Then you can just unlock using a paid method, for example wotan server, but that's more complicated and I can't promise that it works, because fastboot is disabled then
so if i desimlock my phone i can unlock bootloader?
Nexus 4
Paranoid Android 4+
Semaphore Kernel
 
mihahn
Old
#8  
mihahn's Avatar
Recognized Contributor - OP
Thanks Meter 2,171
Posts: 3,209
Join Date: May 2012
Quote:
Originally Posted by midomad View Post
so if i desimlock my phone i can unlock bootloader?
Not sure some people say yes, other no. Maybe search on google for a solution


Devices/Links/Information:
 

Device:Google Nexus 4 8gb
ROM:Stock Android 4.4.2 [KOT49H]

Device:Google Nexus 7 32gb
ROM:Stock Android 4.4.2 [KRT16O]

Device:Xperia Mini Pro SK17i
ROM: Super Jelly Bean 8.0
Kernel:nAa 2.6 [CWM]

Device:Raspberry Pi Model B
OS: Arch Linux

For a Rooting Guide for xperia 2011 devices, click me! | To unlock the Bootloader, click me! | How to install a custom kernel/rom? Click me | Super Jelly Bean 8.0 for xperia mdpi
The Following User Says Thank You to mihahn For This Useful Post: [ Click to Expand ]
 
hamimi
Old
#9  
hamimi's Avatar
Senior Member
Thanks Meter 55
Posts: 445
Join Date: Aug 2012
Location: FOX

 
DONATE TO ME
can u give the rom that can flash with lock bootloader?
 
mihahn
Old
#10  
mihahn's Avatar
Recognized Contributor - OP
Thanks Meter 2,171
Posts: 3,209
Join Date: May 2012
Quote:
Originally Posted by hamimi View Post
can u give the rom that can flash with lock bootloader?
There aren't so many, look in development section there's a thread with all roms listed. Open some roms and you will see on their thread if they are for locked bootloader

For example on ics there is MiniCMSandwich or Realics lite and some MIUI roms. There sould be roms for gingerbread, too, just look in development please


Devices/Links/Information:
 

Device:Google Nexus 4 8gb
ROM:Stock Android 4.4.2 [KOT49H]

Device:Google Nexus 7 32gb
ROM:Stock Android 4.4.2 [KRT16O]

Device:Xperia Mini Pro SK17i
ROM: Super Jelly Bean 8.0
Kernel:nAa 2.6 [CWM]

Device:Raspberry Pi Model B
OS: Arch Linux

For a Rooting Guide for xperia 2011 devices, click me! | To unlock the Bootloader, click me! | How to install a custom kernel/rom? Click me | Super Jelly Bean 8.0 for xperia mdpi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes