Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[How-To] Unlock the bootloader of xperia devices

OP mihahn

10th September 2012, 03:26 PM   |  #1  
mihahn's Avatar
OP Recognized Contributor
Thanks Meter: 2,198
 
3,242 posts
Join Date:Joined: May 2012
More
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:	63476
Size:	18.1 KB
ID:	1315910   Click image for larger version

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

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

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

Name:	usb.JPG
Views:	61463
Size:	59.6 KB
ID:	1315933   Click image for larger version

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

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

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

Name:	unlock_cmd_key.JPG
Views:	60966
Size:	36.4 KB
ID:	1315937  
Last edited by mihahn; 24th July 2013 at 03:24 PM.
The Following 72 Users Say Thank You to mihahn For This Useful Post: [ View ]
10th September 2012, 03:27 PM   |  #2  
mihahn's Avatar
OP Recognized Contributor
Thanks Meter: 2,198
 
3,242 posts
Join Date:Joined: May 2012
More
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
Last edited by mihahn; 31st January 2013 at 08:40 PM.
The Following 45 Users Say Thank You to mihahn For This Useful Post: [ View ]
10th September 2012, 03:40 PM   |  #3  
Abhinav2's Avatar
Recognized Contributor / Themer
Thanks Meter: 4,651
 
2,318 posts
Join Date:Joined: Jul 2012
More
Talking Thanks!!
Thanks!! Thumbs up!!
10th September 2012, 03:45 PM   |  #4  
UchihaDareNial's Avatar
Senior Member
Flag Seremban
Thanks Meter: 204
 
1,101 posts
Join Date:Joined: Feb 2012
More
Nice guide for the newbie,deserved thumbs up from me

Sent from my GT-P1000 using xda premium
10th September 2012, 05:31 PM   |  #5  
Midomad's Avatar
Senior Member
Flag Salé
Thanks Meter: 441
 
1,047 posts
Join Date:Joined: May 2011
More
hi
in Bootloader unlock allowed i have No
what can i do?
The Following User Says Thank You to Midomad For This Useful Post: [ View ]
10th September 2012, 06:04 PM   |  #6  
mihahn's Avatar
OP Recognized Contributor
Thanks Meter: 2,198
 
3,242 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by midomad

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
The Following User Says Thank You to mihahn For This Useful Post: [ View ]
10th September 2012, 06:39 PM   |  #7  
Midomad's Avatar
Senior Member
Flag Salé
Thanks Meter: 441
 
1,047 posts
Join Date:Joined: May 2011
More
Quote:
Originally Posted by mihahn

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?
10th September 2012, 06:59 PM   |  #8  
mihahn's Avatar
OP Recognized Contributor
Thanks Meter: 2,198
 
3,242 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by midomad

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
The Following User Says Thank You to mihahn For This Useful Post: [ View ]
28th October 2012, 05:52 PM   |  #9  
hamimi's Avatar
Senior Member
Flag FOX
Thanks Meter: 55
 
445 posts
Join Date:Joined: Aug 2012
Donate to Me
More
can u give the rom that can flash with lock bootloader?
28th October 2012, 06:13 PM   |  #10  
mihahn's Avatar
OP Recognized Contributor
Thanks Meter: 2,198
 
3,242 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by hamimi

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes