I found many people stuck on how to unlock a boot loader so this is a quick guide on how to unlock a boot loader for Xperia P
Please note that you may void the warranty of your device
i am not responsible if you brick your phone or anything like that
First, you should confirm that it is possible to unlock the boot loader of your device by checking the service menu. In your device, open the dialler and enter *#*#7378423#*#* to access the service menu go to 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.
Download and install the latest Android SDK from http://developer.android.com/index.html
Unzip the android sdk open sdk manager and under tools section you will find usb driver download that.
Download and unzip this file http://developer.sonymobile.com/downloads/drivers/fastboot-driver/
Place the unzipped file in the Android SDK > extras > google>usb_driver folder on your computer
now go to http://unlockbootloader.sonymobile.com/unlock/step2?token=cc968676d7f37bb813c9a50af95fb6cf where it will ask that are you sure click yes, i'm sure and then you will be directed to a page where you accept the legal terms and conditions and click i accept in next page write your name and a valid email address and IMEI number. to get IMEI number open phone application in your phone and type *#06# there you will get a 15 digit IMEI number but you will need a 14 digit IMEI number to place in the above page for that you will omit the right most digit of that 15 digit IMEI number after that click submit now you will get an email like the one shown .
Turn off your device.
open control panel On your computer and open device manager, push and hold the volume down button at the same time as you connect the device to the computer with a USB-cable. now you will see s1 boot found with a yellow triangle right click over it and click update driver and then point it to the file u downloaded above (the one you placed in Android SDK > extras > google>usb_driver folder ) and select Android Boot loader Interface-file once you get android device in control panel lets proceed further
go to androidsdk\platform-tools\ (make sure you have fastboot.exe file here if not try downloading Android sdk platform tool from sdk manager) and open command prompt here by making sure that no file is selected and pressing shift key and then click right mouse button there you will see open command prompt here click it
Enter fastboot.exe -i 0x0fce getvar version, and verify that you get a response back (for example "0.3" or "0.5"). This means your device is connected properly.
enter fastboot.exe -i 0x0fce oem unlock 0xKEY where KEY is the unlock boot loader key you got via Email as shown in the attachment shown above
so like for my key the code will be
fastboot.exe -i 0x0fce oem unlock 0x9FF5866B6621D91E use your own key not mine if you use mine it will not unlock your boot loader
Congrats your bootloader is unlocked now
after unlocking if you need to root your phone then just visit this http://xdaforums.com/showthread.php?t=2335992 this is the easiest way to root your phone and with no problem at all. Thanks to DoomLord for this easy rooting kit
Please note that you may void the warranty of your device
i am not responsible if you brick your phone or anything like that
First, you should confirm that it is possible to unlock the boot loader of your device by checking the service menu. In your device, open the dialler and enter *#*#7378423#*#* to access the service menu go to 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.
Download and install the latest Android SDK from http://developer.android.com/index.html
Unzip the android sdk open sdk manager and under tools section you will find usb driver download that.
Download and unzip this file http://developer.sonymobile.com/downloads/drivers/fastboot-driver/
Place the unzipped file in the Android SDK > extras > google>usb_driver folder on your computer
now go to http://unlockbootloader.sonymobile.com/unlock/step2?token=cc968676d7f37bb813c9a50af95fb6cf where it will ask that are you sure click yes, i'm sure and then you will be directed to a page where you accept the legal terms and conditions and click i accept in next page write your name and a valid email address and IMEI number. to get IMEI number open phone application in your phone and type *#06# there you will get a 15 digit IMEI number but you will need a 14 digit IMEI number to place in the above page for that you will omit the right most digit of that 15 digit IMEI number after that click submit now you will get an email like the one shown .
Turn off your device.
open control panel On your computer and open device manager, push and hold the volume down button at the same time as you connect the device to the computer with a USB-cable. now you will see s1 boot found with a yellow triangle right click over it and click update driver and then point it to the file u downloaded above (the one you placed in Android SDK > extras > google>usb_driver folder ) and select Android Boot loader Interface-file once you get android device in control panel lets proceed further
go to androidsdk\platform-tools\ (make sure you have fastboot.exe file here if not try downloading Android sdk platform tool from sdk manager) and open command prompt here by making sure that no file is selected and pressing shift key and then click right mouse button there you will see open command prompt here click it
Enter fastboot.exe -i 0x0fce getvar version, and verify that you get a response back (for example "0.3" or "0.5"). This means your device is connected properly.
enter fastboot.exe -i 0x0fce oem unlock 0xKEY where KEY is the unlock boot loader key you got via Email as shown in the attachment shown above
so like for my key the code will be
fastboot.exe -i 0x0fce oem unlock 0x9FF5866B6621D91E use your own key not mine if you use mine it will not unlock your boot loader
Congrats your bootloader is unlocked now
after unlocking if you need to root your phone then just visit this http://xdaforums.com/showthread.php?t=2335992 this is the easiest way to root your phone and with no problem at all. Thanks to DoomLord for this easy rooting kit
Last edited: