Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,519 Members 42,738 Now Online
XDA Developers Android and Mobile Development Forum

[Tutorial] Xperia devices Bootloader Unlocking/Relocking

Tip us?
 
DooMLoRD
Old
(Last edited by DooMLoRD; 16th September 2013 at 11:29 PM.)
#1  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 38165
Posts: 13,053
Join Date: Jul 2010
Location: Noida
Angry [Tutorial] Xperia devices Bootloader Unlocking/Relocking

Quick tutorial for unlocking & relocking the bootloader for most Xperia devices


this is the official way to unlock bootloader


This will work on:
  • Xperia 2011 devices - Arc, Play, Neo, etc
  • Xperia 2012 devices - S, Ion, T, V, etc
  • Xperia 2013 devices - Z1, Z Ultra, Z, Tablet Z, etc




Quote:
Originally Posted by DooMLoRD View Post

Special note for Xperia Z1


WARNING!

MAKE TA BACKUP BEFORE UNLOCKING BOOTLOADER!

After unlocking bootloader the camera can not be used on stock ROM!

Relocking bootloader will NOT help!

Just restore TA, and the camera will work again!


if you want to backup the TA or keep ur DRM keys,first root the device and then check this out (this is for Xperia Z but MAY work on Z1)





Warning!

This procedure will wipe the /data partition of your phone, so you will loose all ur stored data, settings. SDCARD will BE WIPED!!!

Quote:
For Xperia™ devices released 2013 or later (for example Xperia™ Z and Xperia™ ZL), the SD card of your device will be formatted and you will lose all content (for example photos, music, videos) when you unlock the boot loader.
DRM keys WILL be lost forever

Quote:
Originally Posted by schaggo View Post
I'd add what losing DRM keys means, e.g. no more Music ID/Gracenote within the Walkman app plus probably most importantly, as asked all the time and all over the place in the T/mint forums: loss of Bravia Engine.

older Xperia devices sometimes got issues after unlock of bootloader (BRICK after FOTA update) - you have been warned



why to unlock bootloader?
  1. u can flash custom ROMs/Kernels
  2. u dont need to worry if the new firmware can be rooted or not as with unlocked bootloader u can always ROOT ur device
  3. Sony gives sneak-peaks/preview builds of latest OS which requires unlocked bootloaders, as they did with Xperia 2011/2012 line, so who knows may be Sony may give early builds of next android OS



Most of this is taken from lollylost100's his tutorial from ARC thread (all credits for that concise tutorial go to him, i have elaborated on a few things and added device specific changes)


btw i dont have this device, most of this testing was done remotely on a users phone... so thanks a lot to him for helping out!!!


[ before we begin unlocking bootloader ]
  • get the IMEI code for ur device: type *#06# in phone dialer to find it out, note only the digits (no dashes)
  • download the fastboot package with usb drivers (alternate drivers if the ones in package dont work OR this)
  • IMPORTANT: if you are using Windows 8 you will need to enable few things to allow driver installation
  • make sure u have a windows PC with USB cable to connect the phone
  • power down ur phone and keeping the Volume Up button pressed connect the USB cable to PC this will trigger FASTBOOT mode and windows will start driver installation, extract the above package and point the driver install to that location (usb_driver) folder
  • once drivers are installed just disconnect cable and power on device


[ how to unlock ] (official way)
  1. Go to: http://unlockbootloader.sonymobile.com/ and read everything!
  2. At the bottom click 'Start Unlocking the Bootloader'
    Quote:
    First, you should confirm that it is possible to unlock the boot loader of your phone by checking the service menu. In your phone, open the dialler and enter *#*#7378423#*#* to access the service menu.

    In your phone, tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.
  3. after u have verified that u can unlock bootloader, scroll to the bottom of the page and click "Continue"
  4. you will get numerous prompts, read all info and if u agree click on "Accept"/"OK"/"Proceed"
  5. finally u will get a "Create Unlock request" page, enter your IMEI (sometimes the last digit needs to be removed for this to work), name and email address
  6. You should now receive your unique unlock key via EMAIL, SAVE THIS KEY SAFELY
  7. Extract fastboot_with_Android_USB_file.rar and open fastboot folder
  8. Hold SHIFT and right click on the background of the folder
  9. Select 'Open command window here'
  10. Connect your phone in fastboot mode (turn phone off, hold Volume UP button and plug in USB Cable) [make sure drivers are installed as explained above)
  11. In the cmd windows type in fastboot.exe -i 0x0fce getvar version
  12. If a value is returned (it will return 0.5), it means the phone is correctly connected
  13. Type in fastboot.exe -i 0x0fce oem unlock 0xKEY and replace KEY with the key which u received earlier.
  14. You're device should now be bootloader unlocked


If this tutorial is too much for you then itskapil wrote a step-by-step guide (and recorded a video also):
-Instructions: http://www.theandroidsoul.com/how-to...-play-neo-pro/
-Video: http://www.youtube.com/watch?v=LRH3pC7MhEA
(the above videos and some steps are for Xperia 2011 devices, but most the steps are same for Xperia Z)




Relock procedure is posted here



regards,

DooMLoRD
The Following 19 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
DooMLoRD
Old
(Last edited by DooMLoRD; 16th September 2013 at 11:27 PM.)
#2  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 38165
Posts: 13,053
Join Date: Jul 2010
Location: Noida
With the latest release of Flashtool it is now possible to relock bootloader.

Download the latest flashtool from:
http://forum.xda-developers.com/show....php?t=2162907



Important

DO NOT USE ANY FTF TO RELOCK BOOTLOADER! THOSE OLD FTFs DO NOT WORK FOR THE 2013 DEVICES!!!


before u relock bootloader u have to be on pure stock kernel (flash only the kernel.sin using flashtool), else the device WILL NOT BOOT after relock



Steps:
  1. now start Flashtool and click on BLU button
  2. u will be asked to connect device in flashmode
  3. once u connect the device u will get a prompt to "Relock"
  4. click on it and when prompted disconnect the device
The Following 11 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
rahulk23
Old
#3  
Senior Member
Thanks Meter 5
Posts: 107
Join Date: Jan 2012
Location: guntur
thanks dude i think relocking bootloader is simple compared to unlocking bootloader processor thank you once again
The Following User Says Thank You to rahulk23 For This Useful Post: [ Click to Expand ]
 
bodega1968
Old
#4  
Junior Member
Thanks Meter 4
Posts: 25
Join Date: Nov 2012
DoomLord,

read through your simple and clear instructions. only thing i wanted to clarify:

You wrote: [In your phone, tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.]

Does this the last line mean that there is NO OTHER WAY TO UNLOCK THE BL except via HARDWARE METHODS?

just wanted a final clarification for this, since SlenderMan also has a cool Tutorial, but doesn't clarify this point. You mention it, but perhaps still implying that there's some SOFTWARE method approach to unlocking an Xperia V.

thanks dude,

bodega1968

---------- Post added at 11:51 AM ---------- Previous post was at 11:47 AM ----------

DoomLord,

read through your simple and clear instructions. only thing i wanted to clarify:

You wrote: [In your phone, tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.]

Does this the last line mean that there is NO OTHER WAY TO UNLOCK THE BL except via HARDWARE METHODS?

just wanted a final clarification for this, since SlenderMan also has a cool Tutorial, but doesn't clarify this point. You mention it, but perhaps still implying that there's some SOFTWARE method approach to unlocking an Xperia V.

thanks dude,

bodega1968
The Following User Says Thank You to bodega1968 For This Useful Post: [ Click to Expand ]
 
shingers5
Old
#5  
shingers5's Avatar
Recognized Contributor
Thanks Meter 3093
Posts: 7,505
Join Date: Sep 2008
Location: liverpool
relocking bootloader on c6833 worked perfectly without any issues. flashed c6833 .532 ftf then updated successfully via OTA. now have UK .257 on device.

thanks again
LG G3 - WHITE 16gb
SAMSUNG GALAXY NOTE 2 - N7100
All Custom Roms I use are built by Vertigo and Ben. Trust those guys completely

After owning so many at once I have decided to try something new by using one....It may not last but for now thats it
 
pixellegolas
Old
#6  
Member
Thanks Meter 1
Posts: 32
Join Date: Aug 2013
Hi! I have 10.4.B.0.569 installed. So I only need to press relock to make it relocked? Do I need to make backups etc or will the phone just reboot with everything intact?
 
seriestv
Old
#7  
Junior Member
Thanks Meter 2
Posts: 22
Join Date: Apr 2008
It works!

Thank you, I have relocked my xperia ZR
 
maddboss
Old
(Last edited by maddboss; 16th May 2014 at 03:55 PM.)
#8  
Member
Thanks Meter 1
Posts: 67
Join Date: Feb 2014
Can I unlock my Xperia S if it says that I can't officially unlock the bootloader. Is there an unofficial way to unlock it?
And if I can't unlock it can I install custom rom somehow?
 
jackxperiap
Old
#9  
jackxperiap's Avatar
Senior Member
Thanks Meter 118
Posts: 530
Join Date: Jun 2013
Location: Tuticorin
Quote:
Originally Posted by maddboss View Post
Can I unlock my Xperia S if it says that I can't officially unlock the bootloader. Is there an unofficial way to unlock it?
And if I can't unlock it can I install custom rom somehow?
S u can install custom roms without unlocking bootloader jus by root and Cwm.. But u can't flash a custom Kernel :thumbdown:.. So first root your device then install Cwm and then u can flash custom roms.. U ll be in stock Kernel only..

Sent from my Xperia P Running MoonWalker V5.5 and Nemesis Kernel V6.3 Using XDA Premium
DEVICE: XPERIA P
BOOTLOADER: UnLocked
ROM: MoonWalker HD V5.5
KERNEL: Nemesis Kernel V6.3 [OC 1.2Ghz]
Rooted/CWM: Yes
Sound Mod: Viper4Android
 
The Following User Says Thank You to jackxperiap For This Useful Post: [ Click to Expand ]
 
maddboss
Old
#10  
Member
Thanks Meter 1
Posts: 67
Join Date: Feb 2014
Quote:
Originally Posted by jackxperiap View Post
S u can install custom roms without unlocking bootloader jus by root and Cwm.. But u can't flash a custom Kernel :thumbdown:.. So first root your device then install Cwm and then u can flash custom roms.. U ll be in stock Kernel only..

Sent from my Xperia P Running MoonWalker V5.5 and Nemesis Kernel V6.3 Using XDA Premium
is this cyanogenmod and this slimrom includes custom kernel?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes