Quick tutorial for unlocking & relocking the bootloader of the Xperia M
Warning!
This procedure will wipe the /data partition of your phone, so you will loose all ur stored data, settings. INTERNAL SDCARD will BE WIPED!!!
DRM keys WILL be lost forever SO TAKE BACKUP OF IT
Click to expand...
Click to collapse
Before you unlock Bootloader
Backup your TA partionHERE
Click to expand...
Click to collapse
STEPS TO UNLOCK BOOTLOADER
1) Get the IMEI code for ur device: type *#06# in phone dialer to find it out, note only the digits (no dashes)
2) download the fastboot package with usb drivers(GOOGLE IT)
3) Now Get the UNLOCK KEY FROM SONY from HERE
4 ) After u have verified that u can unlock bootloader, scroll to the bottom of the page and click "Continue"
you will get numerous prompts, read all info and if u agree click on "Accept"/"OK"/"Proceed"
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
5) Extract fastboot_with_Android_USB_file.rar and open fastboot folder
6) Hold SHIFT and right click on the background of the folder Select 'Open command window here'
7) 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)
8) In the cmd windows type in fastboot.exe -i 0x0fce getvar version
If a value is returned (it will return 0.5), it means the phone is correctly connected
9) Type in fastboot.exe -i 0x0fce oem unlock 0xKEY and replace KEY with the key which u received earlier.
You're device should now be bootloader unlocked
Click to expand...
Click to collapse
NOTE:-
When i unlocked my bootloader from above steps i first got a bootloop but after flashing My kernel ELIxER i recovered from bootloop and phone started well.
My apps and Data on internal SD were been WIPED so Do a backup first!
Click to expand...
Click to collapse
Credits Doomlord
:good:
good job bro!
I just wanted to ask if we could unock the bootloader using flashtool so there's no chance of voiding warranty. As backing up TA would save DRM keys.
Yes u can unlock it using flashtool. I am windows 8 so i find unlocking with fastboot is easier and it just just cause 6 mb of data.
Sent from my Xperia Keyboard
aweosomeabhijeet said:
:good:
good job bro!
I just wanted to ask if we could unock the bootloader using flashtool so there's no chance of voiding warranty. As backing up TA would save DRM keys.
Click to expand...
Click to collapse
There is always chance to void your warranty...
alvinhochun said:
There is always chance to void your warranty...
Click to expand...
Click to collapse
I see.
Well I tried with flashtool it denied unlocking :silly:
I think it would be better to go with the official unlocking.
Thanks.
u should add the TA Backup guide also
WARNING :-
When i tried to restore my DRM keys my mobile went dead so be very careful with it.
icoolguy1995 said:
WARNING :-
When i tried to restore my DRM keys my mobile went dead so be very careful with it.
Click to expand...
Click to collapse
You need to restore the stock boot partition because restoring TA partition will relock the device or else you will soft-brick it. If you have a dump of it you can restore it before restoring TA partition, otherwise you need to reflash with flashtool or SUS.
This is what I learnt from other Xperia devices in general.
alvinhochun said:
You need to restore the stock boot partition because restoring TA partition will relock the device or else you will soft-brick it. If you have a dump of it you can restore it before restoring TA partition, otherwise you need to reflash with flashtool or SUS.
This is what I learnt from other Xperia devices in general.
Click to expand...
Click to collapse
Can you still use SEUS when you have unlocked the bootloader to restore the original firmware prior to re-locking bootloader?
I thought it would be via flashtool only, because as soon as you unlock the bootloader you lose access to PC companion and SEUS.
The reason I ask is I have an XPERIA X10i and you can use anything at any time and it doesn't care.(brilliant olde device)
With my XPERIA S, I only have flashtool, as SEUS and PC Companion (and Sony OTA upgrade) are 'lost' after the bootloader is unlocked.
Dr Goodvibes said:
Can you still use SEUS when you have unlocked the bootloader to restore the original firmware prior to re-locking bootloader?
I thought it would be via flashtool only, because as soon as you unlock the bootloader you lose access to PC companion and SEUS.
The reason I ask is I have an XPERIA X10i and you can use anything at any time and it doesn't care.(brilliant olde device)
With my XPERIA S, I only have flashtool, as SEUS and PC Companion (and Sony OTA upgrade) are 'lost' after the bootloader is unlocked.
Click to expand...
Click to collapse
Really? PC Companion can recognize my Xperia M. Haven't tried SUS restore but it should work, shouldn't it? FOTA updates are known to brick unlocked Xperia devices so I strongly advice you not to try it.
But anyway if you've already restored the TA partition you already have a locked bootloader
alvinhochun said:
Really? PC Companion can recognize my Xperia M. Haven't tried SUS restore but it should work, shouldn't it? FOTA updates are known to brick unlocked Xperia devices so I strongly advice you not to try it.
But anyway if you've already restored the TA partition you already have a locked bootloader
Click to expand...
Click to collapse
PC companion still can recognize your phone even you've unlocked your bootloader, but updating your phone with SUS / PCC will surely brick your phone.
The only way to restore to the original firmware is using Flashtool or EMMA :fingers-crossed:
underd0g said:
PC companion still can recognize your phone even you've unlocked your bootloader, but updating your phone with SUS / PCC will surely brick your phone.
The only way to restore to the original firmware is using Flashtool or EMMA :fingers-crossed:
Click to expand...
Click to collapse
I dont think Pc companion will brick your phone! I never heard of this things and yes updating through FOTA can definitely brick your phone. Although i recommend not to unlock bootloader unless you are an advance user or a developer.
Sony xperia M gives very good performance over stock so noo need of scripts and other stuff, and i hope someone will develop CWM for locked bootloader too.
Sent from my C1904 using Tapatalk 4
Guys where is the relocking guide?? I can only see the unlocking one.
||""Playing Asphalt™ 8 Airborne on my sgy. LoLz.
Joke of the year. Gameloft devs will die if they hear this. ""||
Here are device files for Flashtool with loader.sin file for success bootloader unlock/relock through Flashtool
C190X C200X
1. Unpack it to '/Flashtool/devices/' folder
2. Run Flashtool and select in 'Devices/Manage/Import' M or/and M Dual
3. Now your can use BLU button
Shkerzy said:
Here are device files for Flashtool with loader.sin file for success bootloader unlock/relock through Flashtool
C190X C200X
1. Unpack it to '/Flashtool/devices/' folder
2. Run Flashtool and select in 'Devices/Manage/Import' M or/and M Dual
3. Now your can use BLU button
Click to expand...
Click to collapse
I have NOT backed up my DRM keys.. and I have an unlocked bootloader...
I connected my XM SS to Sony PCC..
It did recognize my phone.. However it did not update it stating that I am using a modified software..
Flashtool (EMMA) also recognized my phone.. but dint allow me to update my phone..
And my phone is not BRICKED..
Can you be more descriptive on the exact instructions on how you can relock XM whose DRM keys are not backed up?
Has anyone tried this?
Please quote and reply and share the method if you have tried this on a C1904 XM SS and if it is working !!!!
Thanks
I have a question...
How will I be able to backup my TA partition if root is required? I have not yet rooted my phone. I only rely on official procedures because I have bricked my two other phones previously. Have you had root installed on your phone when backing up TA partition?
.vonpatrick. said:
I have a question...
How will I be able to backup my TA partition if root is required? I have not yet rooted my phone. I only rely on official procedures because I have bricked my two other phones previously. Have you had root installed on your phone when backing up TA partition?
Click to expand...
Click to collapse
To backup your TA partition you dont need root and this current thread has not mentioned anywhere that you need root
Please refer the FAQ section of this link for more clarification
http://forum.xda-developers.com/showthread.php?t=2292598
How to backup DRM keys guys? Is it enough backup TA Partition? I've already backup TA Partition, it contains 6 files.
Sent from my C2004 using Tapatalk
SK:) said:
How to backup DRM keys guys? Is it enough backup TA Partition? I've already backup TA Partition, it contains 6 files.
Sent from my C2004 using Tapatalk
Click to expand...
Click to collapse
Yes, You are set !
durveshthorve433 said:
To backup your TA partition you dont need root and this current thread has not mentioned anywhere that you need root
Please refer the FAQ section of this link for more clarification
http://forum.xda-developers.com/showthread.php?t=2292598
Click to expand...
Click to collapse
Well, the link says that in order to backup TA partition, root is required. That's where it got me confused.
Sent from my C1904 using XDA Premium 4 mobile app
Related
Hello guys... Read this guide to see how to run Stock JB rooted with a locked BL device.
Unfortunately this method don't work on devices that can have their bootloader locked, this method is intended to be used for who CAN unlock his bootloader but for any reason want keep your bootloader locked.
What you're going to do is basically:
1- Unlock your device.
2- Root your device while is unlocked.
3- Relock your device and your device will keep rooted.
Question: But, when I unlock my device don't I lose my warranty and DRM keys forever (so Bravia Engine, Music download info won't work correctly)?
Answer: Yes, but this method involves to backup your TA partition [Trim Area] before you unlock it, after you will restore your TA partition and this will return your bootloader to locked status, remove unlock code key and bring your DRM keys back.
Attention! This method will work only if you have a bootloader unlockable device, but you will keep your phone rooted after you relock bootloader.
Links:
DevShaft's TA Backup/Restore Tool v8.6 for Windows
SuperSU 1.25 and Busybox 1.20.2 ZIP for CWM
Unlock bootloader Guide
DooMLoRD's advanced stock kernel with CWM v6.0.3.2, remember to place the kernel file in the same folder of fastboot.exe.
FTF file with Jelly Bean (6.2.B.0.200) Stock Kernel
Steps:
1 - Backup your TA.
2 - Save SuperSU 1.25 and Busybox 1.20.2 ZIP in you SD Card
3 - Unlock your BL.
4 - Flash DooMLoRD's advanced stock kernel with CWM v6.0.3.2, use fastboot to flash you can do this right before unlock your BL, there is no need to unplug your device from fastboot after unlock the bootloader [command line: fastboot.exe flash boot S_DooMLoRD_AdvStkKernel_FW-200_v2.elf],
5 - When you see Sony Logo, access CWM pressing Volume UP button, select install zip from sd card and install SuperSU-1.25-Busybox-1.20.2-UPDATE.zip.
6 - Reboot your phone.
7 - Flash Jelly Bean (6.2.B.0.200) Stock Kernel.
8 - Reboot your phone.
9 - Restore your TA and reboot your device.
Enjoy your Stock Jelly Bean rooted with LOCKED BOOTLOADER!
I tested this on my own Xperia S (LT26i), if you have an Xperia SL and Xperia ion this will probably work. I don't know about Xperia acro S because @DevShaft Backup-TA tool isn't confirmed if it's working on Xperia acro S (only Xperia S, SL and ion users confirmed it's working).
UPDATE 1!
@DooMLoRD is working on a Pre-Rooted ROM for LB/UB, also he's working on a CWM for LB, it's an easier way to root but requires a clean install.
[ROM] Official Sony JB 6.2.B.0.200 ROM Pre-Rooted CWM
RHBH said:
Hello guys... Read this guide to see how to run Stock JB rooted with a locked BL device.
Unfortunately this method don't work on devices that can have their bootloader locked, this method is intended to be used for who CAN unlock his bootloader but for any reason want keep your bootloader locked.
What you're going to do is basically:
1- Unlock your device.
2- Root your device while is unlocked.
3- Relock your device and your device will keep rooted.
Question: But, when I unlock my device don't I lose my warranty and DRM keys forever (so Bravia Engine, Music download info won't work correctly)?
Answer: Yes, but this method involves to backup your TA partition [Trim Area] before you unlock it, after you will restore your TA partition and this will return your bootloader to locked status, remove unlock code key and bring your DRM keys back.
Attention! This method will work only if you have a bootloader unlockable device, but you will keep your phone rooted after you relock bootloader.
Links:
DevShaft's TA Backup/Restore Tool v8.6 for Windows
SuperSU 1.25 and Busybox 1.20.2 ZIP for CWM
Unlock bootloader Guide
DooMLoRD's advanced stock kernel with CWM v6.0.2.7, remember to place the kernel file in the same folder of fastboot.exe.
FTF file with Jelly Bean (6.2.B.0.200) Stock Kernel
Steps:
1 - Backup your TA.
2 - Save SuperSU 1.25 and Busybox 1.20.2 ZIP in you SD Card
3 - Unlock your BL.
4 - Using fastboot flash this DooMLoRD's advanced stock kernel with CWM v6.0.2.7, you can do this right before unlock your BL, there is no need to unplug your device from fastboot after unlock the bootloader [command line: fastboot.exe flash boot S_DooMLoRD_AdvStkKernel_FW-200_v1.elf],
5 - When you see Sony Logo, access CWM pressing Volume UP button, select install zip from sd card and install SuperSU-1.25-Busybox-1.20.2-UPDATE.zip.
Optional - Reboot and test if root is working.
6 - Install Jelly Bean (6.2.B.0.200) Stock Kernel.
Optional - Reboot and test if root is working.
7 - Restore your TA and reboot your device.
Enjoy your Stock Jelly Bean rooted with LOCKED BOOTLOADER!
I tested this on my own Xperia S (LT26i), if you have an Xperia SL and Xperia ion this will probably work. I don't know about Xperia acro S because @DevShaft Backup-TA tool isn't confirmed if it's working on Xperia acro S (only Xperia S, SL and ion users confirmed it's working).
Click to expand...
Click to collapse
I have done exactly all the steps above (as I've done tons of times with ICS and the advanced stock kernel) but I confirm you twice that this method is not working
cabi.costa said:
I have done exactly all the steps above (as I've done tons of times with ICS and the advanced stock kernel) but I confirm you twice that this method is not working
Click to expand...
Click to collapse
Did you let the phone reboot on the steps I said was optional (maybe not optional afterall).
I did all steps and worked twice and worked.
RHBH said:
Did you let the phone reboot on the steps I said was optional (maybe not optional afterall).
I did all steps and worked twice and worked.
Click to expand...
Click to collapse
This ta method z very risky it can hard brick your phone
Sent from my Xperia SL using xda premium
RISHI RAJ said:
This ta method z very risky it can hard brick your phone
Sent from my Xperia SL using xda premium
Click to expand...
Click to collapse
Only if you flash someone's else TA or if you restore the TA of some device that isn't confirmed as supported.
@DevShaft 's Tool have a lot of security features to prevent the TA corruption or a fail restore.
If you want a deep discussion about it, use this topic: Backup TA for Windows
RHBH said:
Only if you flash someone's else TA or if you restore the TA of some device that isn't confirmed as supported.
@DevShaft 's Tool have a lot of security features to prevent the TA corruption or a fail restore.
If you want a deep discussion about it, use this topic: Backup TA for Windows
Click to expand...
Click to collapse
It's true that DevShaft's tool is very thorough, but fact remains that messing with the TA partition in any way is very risky.
FenrirMX said:
It's true that DevShaft's tool is very thorough, but fact remains that messing with the TA partition in any way is very risky.
Click to expand...
Click to collapse
i second that!
I WOULD HIGHLY RECOMMEND TO NOT MESS AROUND WITH TA
You are misleading people. Change Topic.. It's not Root for locked BL, but it's method to root with relocking BL. It's not same.
It is possible to share the back up TA and restore it to other xps?if yes, pls could someone share their back up TA for us to restore the missing drm keys to experienced the 100% power of our xps...thanks in advance
Sent from my LT26i using xda premium
jemju_xps-user said:
It is possible to share the back up TA and restore it to other xps?if yes, pls could someone share their back up TA for us to restore the missing drm keys to experienced the 100% power of our xps...thanks in advance
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
No. You will hard brick your device if you try.
It has been confirmed that unlocking the bootloader will infect and damage TA partition of Xperia M and you will lose your DRM keys forever and loose warranty too..
So it is necessary to backup your TA partition before unlocking the bootloader. After that we can always restore the TA partition and get the warranty back.
For this purpose DevShaft has created a tool that will help you backup the TA partition.So give him a thanks for his awesome work.
For more info you can check out his thread his thread
http://forum.xda-developers.com/showthread.php?t=2292598
How to??
1.Download Backup TA tool (https://github.com/DevShaft/Backup-TA/tags) thank to DevShaft after you download!!
2.Extract it and connect your device to pc normally
3.Double click and run Backup-TA.bat
4.Follow on screen procedure.
5.Do what you want backup or restore from it.
When you want to restore your TA partition make sure you are on stock kernel and rom to avoid further problems.
Good Luck
Note:Never restore TA partition from another similar or even a same model device cause it will hard brick yours.:good: Every device has its own TA partition!!!
There was another thread like this. Anyway we need to get a mod to pin either one.
This message was brought to you by my Sony Xperia M (C1905), using the XDA app.
asidspa Sacred
Is the stock ROM available on SE site?
Woah.. Good thing I was looking around a little more... Just got my xperia m (my first xperia phone) yesterday and crossflashed 4.2.2 from dual firmware now planning to unlock the bl... This post deserves a ton of thanks for newbies planning to unlock their bl
Sent from my C2005 using xda app-developers app
can anyone tell me how to convert ftf to sos file, i need to flash my xperia zl using emma because i have unlocked my bootloader, and my cell is hard bricked !
melvinrobertson said:
can anyone tell me how to convert ftf to sos file, i need to flash my xperia zl using emma because i have unlocked my bootloader, and my cell is hard bricked !
Click to expand...
Click to collapse
Use Androxyde's FlashTool to flash .ftf files, no matter the BL status.. http://www.flashtool.net/index.php
CokeJunkee said:
Use Androxyde's FlashTool to flash .ftf files, no matter the BL status.. http://www.flashtool.net/index.php
Click to expand...
Click to collapse
flashtool is not installing my previous os, because i had unlocked my bootloader, n due to which my drm keys got vanished and it give an error while installing !
melvinrobertson said:
flashtool is not installing my previous os, because i had unlocked my bootloader, n due to which my drm keys got vanished and it give an error while installing !
Click to expand...
Click to collapse
My BL is unlocked and I lost my drm keys aswell and flashtool works for me.
There are two different flashtools out there.. Use this one: http://www.flashtool.net/index.php
Which .ftf did you try to flash?
Did you install the needed drivers on your pc?
Edit:
What do you mean by hard bricked?
Are you able to run fastboot or flash mode?
CokeJunkee said:
My BL is unlocked and I lost my drm keys aswell and flashtool works for me.
There are two different flashtools out there.. Use this one: http://www.flashtool.net/index.php
Which .ftf did you try to flash?
Did you install the needed drivers on your pc?
Edit:
What do you mean by hard bricked?
Are you able to run fastboot or flash mode?
Click to expand...
Click to collapse
i had tried from flashtools by antraoxide, but it is not installing the previous os, this is the error it is giving " ERROR - ERR_SEVERITY="MINOR";ERR_CODE="0017";ERR_DYNAMIC=" 0x80080012" fastboot mode and flashmode is working, do another zl's ta backup works on my zl ? and is there any way to inatall back my drm keys through fastboot or flash mode ?
Hi guys,
I have rooted with Vroot and taken TA backup. Then i unlocked my bootloader and flashed maximus kernel...
So my question is How want to relock my bootloader with TA backup...
can anyone guide me through process..
Thanks in advance...
asrupesh said:
Hi guys,
I have rooted with Vroot and taken TA backup. Then i unlocked my bootloader and flashed maximus kernel...
So my question is How want to relock my bootloader with TA backup...
can anyone guide me through process..
Thanks in advance...
Click to expand...
Click to collapse
ta backup has nothing to do with relocking bootloader
it is used to save some features of sony
relocking has not been made yet
and why would u want to relock?
Ashwin Prabhunerurkar said:
ta backup has nothing to do with relocking bootloader
it is used to save some features of sony
relocking has not been made yet
and why would u want to relock?
Click to expand...
Click to collapse
Just incase to get the official kitkat update via SUS
As far as i know you just need to flash stock firmware back to original rom you dont need to relock bootloader to get kitkat update via sus
Sent from my D5322 using Tapatalk
geogetski666 said:
As far as i know you just need to flash stock firmware back to original rom you dont need to relock bootloader to get kitkat update via sus
Sent from my D5322 using Tapatalk
Click to expand...
Click to collapse
To use SUS, you must have a locked bootloader. For those who have an unlocked bootloader, just wait until someone uploads an FTF. FTFs can be flashed on unlocked bootloaders using Flashtool by Androxyde.
Ashwin Prabhunerurkar said:
ta backup has nothing to do with relocking bootloader
it is used to save some features of sony
relocking has not been made yet
and why would u want to relock?
Click to expand...
Click to collapse
You can easily relock the bootloader in just two steps.
Flash only the kernel via flashtool and then relock the bootloader also via flashtool.
You can't go wrong if you've used flashtool before.
arjun.arora said:
You can easily relock the bootloader in just two steps.
Flash only the kernel via flashtool and then relock the bootloader also via flashtool.
You can't go wrong if you've used flashtool before.
Click to expand...
Click to collapse
And can we flash a custom kernel like maximus kernel while relocking?
charming.arpit said:
And can we flash a custom kernel like maximus kernel while relocking?
Click to expand...
Click to collapse
The process is quite simple but do it at your own risk..
Turn on your computer's internet..
Open flashtool and select flashmode..
Select the firmware, then exclude everything but kernel (Remember only kernel should be selected, exclude everything)..
Uncheck every option in wipe..
Flash the mobile, it should take just 4-5 seconds..
Don't restart yet, disconnect your mobile..
Open BLU option in flashtool..
Connect your mobile, a dialog box will open, just click on relock..
(Remember, don't turn off the internet connection untill the bootloader is locked)
Restart your phone, it'll still be rooted and you'll be able to get all official updates..
Only thing you'll lose is the cwm recovery..
who can give me a guide to relock back My bootloader to My z5 premium E6883?
im not see flash tool have E6883 model to relock...tq
See:
https://forum.xda-developers.com/z5-premium/help/xperia-z5-premium-dual-e6883-help-t3353950
pandan80 said:
who can give me a guide to relock back My bootloader to My z5 premium E6883?
im not see flash tool have E6883 model to relock...tq
Click to expand...
Click to collapse
why do u want to relock? do u have DRM KEYS/TA.IMG backed up somewhere in your pc ? to restore?
anways
with flashtool you can relock it and then unlock it again!
keep the original unlock key with you (just in case) or you can always ask sony for the keys
YasuHamed said:
why do u want to relock? do u have DRM KEYS/TA.IMG backed up somewhere in your pc ? to restore?
anways
with flashtool you can relock it and then unlock it again!
keep the original unlock key with you (just in case) or you can always ask sony for the keys
Click to expand...
Click to collapse
Hey, I want to put my Sony Z5 premium back to all factory to sell it, can you give me the steps to do that?
EMJI79 said:
Hey, I want to put my Sony Z5 premium back to all factory to sell it, can you give me the steps to do that?
Click to expand...
Click to collapse
if the bootloader has been unlocked it can never be fully restored. you can never lock the bootloader the way sony did.
All you can do is to wipe and flash untouched stockrom and sell it
for flashing use flashtool / fastboot modes. you can do google for tutorial. its easy.
What about drm?
EMJI79 said:
What about drm?
Click to expand...
Click to collapse
if you never took backup of your DRM then they are lost too! if you have taken backup then restore them manual. but whenever the buyer flash the device the keys will be lost too.
I have backed them up with TA backup
EMJI79 said:
I have backed them up with TA backup
Click to expand...
Click to collapse
then relock your bootloader and sell it off. if the new owner don't change anything then the keys will stay intact.
however, if you could guide the new owner about it and email them the keys also , it will be fair deal
because you cannot use these keys on any other device.
Should I lock the bootloader first or restore TA first?
Anyone?
Answer: restoring TA automatically locks Bootloader.
But it needs root, so first restoring TA then flashing stock ROM with Flashtool.