[Q][Z2]Relock/unlock Bootloader - Xperia Z2 Q&A, Help & Troubleshooting

Hello.
I have wondered about unlocking bootloader and go over to CM on my Xperia Z2.
But before i do so, i want to clear up some things first.
Is there a way to relock bootloader on my phone?
Will I be able to unlock after I have relocked? (using official metod)
Backing up TA, will it store my DRM-keys and make it possible to get them back after locking bootloader again?
I want to do this because im currently using CM on my Mini Pro, and i want to try it on my Z2. And I want to be able to get back to stock when the L is out for Z2.
If someone can answer my questions, or point me to the right direction, I would be much happy.

bjorn96 said:
Hello.
I have wondered about unlocking bootloader and go over to CM on my Xperia Z2.
But before i do so, i want to clear up some things first.
Is there a way to relock bootloader on my phone?
Will I be able to unlock after I have relocked? (using official metod)
Backing up TA, will it store my DRM-keys and make it possible to get them back after locking bootloader again?
I want to do this because im currently using CM on my Mini Pro, and i want to try it on my Z2. And I want to be able to get back to stock when the L is out for Z2.
If someone can answer my questions, or point me to the right direction, I would be much happy.
Click to expand...
Click to collapse
1. Yes, using flashtool, other methods i dont know of
2. Yes
3. Drm keys are in TA partition so backup your Ta and restore later (restoring relocks bootloader so flash stock kernel before doing so)
4. Relocking bootloader doesnt bring back drm keys
5. Its safe to restore TA over a locked bootloader
6. You can only restore TA or relock bootloader on a stock kernel

Answers to your queries :
1) Yes, you can relock it once it is unlocked. Restoring TA partition will also relock your bootloader.
2) Yes you can.. You need to have the oem unlock key which you have received from Sony while unlocking for the first time.
3) Yes
Please read this thread : http://forum.xda-developers.com/showthread.php?t=2440597

Envious_Data said:
1. Yes, using flashtool, other methods i dont know of
2. Yes
3. Drm keys are in TA partition so backup your Ta and restore later (restoring relocks bootloader so flash stock kernel before doing so)
4. Relocking bootloader doesnt bring back drm keys
5. Its safe to restore TA over a locked bootloader
6. You can only restore TA or relock bootloader on a stock kernel
Click to expand...
Click to collapse
OK, thanks for the quick answer.
Here is a short of what I understand now. Correct me if its wrong.
Using this tool, I can backup and restore TA.
When restoring TA, it will lock bootloader automatically.
To restore TA, I have to download and flash stock ROM for Z2 (Nordic in my case), and that should be ok to use XPERIFirm to download?
When done restoring TA, I dont have to do more than wait for L to come to me??
I hope this is right, in that case I might give it a try.
(I dont want to start something without planning a way out of it, thats why I ask.)

bjorn96 said:
OK, thanks for the quick answer.
Here is a short of what I understand now. Correct me if its wrong.
Using this tool, I can backup and restore TA.
When restoring TA, it will lock bootloader automatically.
To restore TA, I have to download and flash stock ROM for Z2 (Nordic in my case), and that should be ok to use XPERIFirm to download?
When done restoring TA, I dont have to do more than wait for L to come to me??
I hope this is right, in that case I might give it a try.
(I dont want to start something without planning a way out of it, thats why I ask.)
Click to expand...
Click to collapse
3. Xperia firm, you can use flashtool to bundle the files into a FTF or you can see if someome has done already here...
http://forum.xda-developers.com/showthread.php?t=2759934
Flash A FTF before restoring TA or relocking bootloader

Envious_Data said:
3. Xperia firm, you can use flashtool to bundle the files into a FTF or you can see if someome has done already here...
http://forum.xda-developers.com/showthread.php?t=2759934
Flash A FTF before restoring TA or relocking bootloader
Click to expand...
Click to collapse
And the rest was ok??
Thanks man, now its all clear to me. :highfive:
Hope I will be back later tonight with CM on my phone. :fingers-crossed:

bjorn96 said:
And the rest was ok??
Thanks man, now its all clear to me. :highfive:
Hope I will be back later tonight with CM on my phone. :fingers-crossed:
Click to expand...
Click to collapse
Yup
1. Root
2. Backup TA
3. Unlock bootloader
4. Install recovery
~wipe data n cache
5. Flash CM
6. Enjo
Simple as

Envious_Data said:
Yup
1. Root
2. Backup TA
3. Unlock bootloader
4. Install recovery
~wipe data n cache
5. Flash CM
6. Enjo
Simple as
Click to expand...
Click to collapse
Thanks man.
Will report back when done.

Envious_Data said:
Yup
1. Root
2. Backup TA
3. Unlock bootloader
4. Install recovery
~wipe data n cache
5. Flash CM
6. Enjo
Simple as
Click to expand...
Click to collapse
One more thing. The key for unlocking my bootloader, is it the same after locking it again???
Or do I have to ask Sony for a new one?

bjorn96 said:
One more thing. The key for unlocking my bootloader, is it the same after locking it again???
Or do I have to ask Sony for a new one?
Click to expand...
Click to collapse
Same key

I almost forgot to tell you. It worked!!! I ran into bootloop 3 times, but finally it worked. Thanks a lot man.
Sent from my Xperia Z2

Envious_Data said:
Same key
Click to expand...
Click to collapse
Have you got an idea how to enable double tap to wake?? Cannot find it anywhere.

if you have installed a custom rom like CM then the chances of the kernel not having the double tap to wake wont be there because its the kernel that will have it and not the rom . So if you do want it then you have to look for a kernel which has got the feature

bjorn96 said:
Have you got an idea how to enable double tap to wake?? Cannot find it anywhere.
Click to expand...
Click to collapse
After installing m5 kernel, download m5 kernel settings, thats how you enable double tap to wake
It should show an option somewhere in the device settings now

Can we unlock bootloader on phones that have been previously carrier locked or not yet?

darkmage93 said:
Can we unlock bootloader on phones that have been previously carrier locked or not yet?
Click to expand...
Click to collapse
It depends on the carier and i do believe you can pay for sim unlock and a bootloader release

Envious_Data said:
It depends on the carier and i do believe you can pay for sim unlock and a bootloader release
Click to expand...
Click to collapse
Already payed for sim unlock, the phone was locked to EE UK. Here's a SS to see what it says on rooting status. When i unlocked it, they provided me multiple codes, NCK, SPCK, NSCK, CCK. Is any of the codes for bootloader unlocking? If so, where do i type it? Cheers.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

My Z2 should be here on Tues, and I was going to unlock the BL, the directions above are very clear and straightforward. (I had a TMO XZ w/ an unlockable BL, so I know how the rom flashing goes) My question is do I have to use Nutz recovery, could i just fastboot flash recovery twrp.img and use Team Wins? Also for flashing a ROM do I need to use the FFT or can I just flash a rom the more traditional way say like a Nexus device? Thx guys, Im very green when it comes to Sony. Nexus, HTC, and Sammy are my staples. Thx again.

Nut is mainly for locked bootloaders, once you've unlocked the bootloader flash a kernel such as dooms via adb then flash a rom from recovery ftfs are stock roms only any custom rom will have a flashable zip
Sent from my Xperia Z2 using Tapatalk

So you can unlock the bootloader, then relock it, restore TA partition and it will be like you never had unlocked the bootloader? I mean, if you do that, your device will be able to recieve OTA (and all Sony's features like x-reality and better camera performance) and your warranty will be "restored"?

Related

Re-unlock bootloader after official unlock and seus works

I have unlocked my phone with sonyericsson official unlock page after then i can not update my phone with seus but some looking for relock or reunlock on the internet i found this page http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/ and i did unlocking with s1tool testpoint method and it returns to unlock allowed:yes and seus is now working i updated new firmware also drm is working and track id working too... I'm now very happy with this
xSiRiNx said:
I have unlocked my phone with sonyericsson official unlock page after then i can not update my phone with seus but some looking for relock or reunlock on the internet i found this page http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/ and i did unlocking with s1tool testpoint method and it returns to unlock allowed:yes and seus is now working i updated new firmware also drm is working and track id working too... I'm now very happy with this
Click to expand...
Click to collapse
Hmm that means the SEUS does not need DRM keys then.. :/ Nice finding there..
Anyone else has try this...please confirm
none
ijama said:
Anyone else has try this...please confirm
none
Click to expand...
Click to collapse
I did it after wrote here again for try and it goes ok. and i tried restore bootloader it works too after restore it i unlock with testpoint method and so it's going on every time i install .368 rom from wotan servers firmware then power on phone once and power off again and try seus to update it to.62 it works again. That is i said i do every crazy try but phone do not brick it's working like a charm
This link will help you
http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/
http://forum.xda-developers.com/showthread.php?t=1254225
İf more people want it i can record what i did and upload to youtube
xSiRiNx said:
I did it after wrote here again for try and it goes ok. and i tried restore bootloader it works too after restore it i unlock with testpoint method and so it's going on every time i install .368 rom from wotan servers firmware then power on phone once and power off again and try seus to update it to.62 it works again. That is i said i do every crazy try but phone do not brick it's working like a charm
This link will help you
http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/
http://forum.xda-developers.com/showthread.php?t=1254225
İf more people want it i can record what i did and upload to youtube
Click to expand...
Click to collapse
Thats a good idea..my bootloader unlock by testpoint..so i cant update using pc companion..only flashtool.
none
xSiRiNx said:
I did it after wrote here again for try and it goes ok. and i tried restore bootloader it works too after restore it i unlock with testpoint method and so it's going on every time i install .368 rom from wotan servers firmware then power on phone once and power off again and try seus to update it to.62 it works again. That is i said i do every crazy try but phone do not brick it's working like a charm
This link will help you
http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/
http://forum.xda-developers.com/showthread.php?t=1254225
İf more people want it i can record what i did and upload to youtube
Click to expand...
Click to collapse
pls, record and upload thx in advance
I'm glad that this idea works, I also unlocked my bootloader the official way and loss the DRM, track id and OTA, but everything is working now, I got everything work a different way.
BTW you can relock the bootloader by flashing a ftf file, it doesn't matter how you unlocked the phone, just put the phone in flash mode.
Which file you flashed? I see that post but when i open flashtool and try to flash a ftf file there is no loader.bin only preset.ta appears i do not understand why but every time i try it's no loader.sin so i do not do it. Just use s1tool restore and reunlock with test point
I have a file called xperia relock bootloader.ftf, thats how i relock my bootloader before.
kms108 said:
I have a file called xperia relock bootloader.ftf, thats how i relock my bootloader before.
Click to expand...
Click to collapse
could you provide it please
kms108 said:
I have a file called xperia relock bootloader.ftf, thats how i relock my bootloader before.
Click to expand...
Click to collapse
Yeap i got the same file but flashtool can't show loader.sin it looks like this only preset.ta
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm not too sure what mine say's, but it did flash a few times with the file that i have, and it does relock the bootloader, it has been about 1/2 a year since i messed around with it, now that I got my track id, DRM and ota back, I dont want to mess aorund with it, just waiting for the 4.0 upgrade.
update:
just checked, i'm using the x10flashtool and my relock bootloader.ftf has 2 files.
loader.sin
preset.ta
kms108 said:
I'm not too sure what mine say's, but it did flash a few times with the file that i have, and it does relock the bootloader, it has been about 1/2 a year since i messed around with it, now that I got my track id, DRM and ota back, I dont want to mess aorund with it, just waiting for the 4.0 upgrade.
update:
just checked, i'm using the x10flashtool and my relock bootloader.ftf has 2 files.
loader.sin
preset.ta
Click to expand...
Click to collapse
Do you have that file to upload here please?
Sent from my GT-I9000 using Tapatalk
just give me some time.
file uploaded.
kms108 said:
file uploaded.
Click to expand...
Click to collapse
The same file i got and there is no loader.sin only preset.ta so i don't do it. just use test point methodand returns to the locked loader
xSiRiNx said:
The same file i got and there is no loader.sin only preset.ta so i don't do it. just use test point methodand returns to the locked loader
Click to expand...
Click to collapse
maybe you should use the X10flashtool.
kms108 said:
file uploaded.
Click to expand...
Click to collapse
Thank you so very much.
I will try it and see if I can get Track ID to work.
Ztrindberg said:
Thank you so very much.
I will try it and see if I can get Track ID to work.
Click to expand...
Click to collapse
this is only to relock the bootloader, and nothing else.
kms108 said:
maybe you should use the X10flashtool.
Click to expand...
Click to collapse
could you please upload your flashtool here?

[Q] ReLock BL? (C6833)

I've looked around and googled but all the the threads/results are filled with broken links or out of date info, but is there any method to Relock the BL on the C6833?
joegill97 said:
I've looked around and googled but all the the threads/results are filled with broken links or out of date info, but is there any method to Relock the BL on the C6833?
Click to expand...
Click to collapse
yep.
Flash a Stock FTF via flashtool (if not on one already)
Flash recovery for locked BL (if wanted/needed)
Use the same too that you used to back up the TA to restore it http://forum.xda-developers.com/showthread.php?t=2292598
Check that it is again locked (test xreality or use the service code that I cant remember)
blueether said:
yep.
Flash a Stock FTF via flashtool (if not on one already)
Flash recovery for locked BL (if wanted/needed)
Use the same too that you used to back up the TA to restore it http://forum.xda-developers.com/showthread.php?t=2292598
Check that it is again locked (test xreality or use the service code that I cant remember)
Click to expand...
Click to collapse
Sorry, I'm pretty new to root etc., but where can I get a recovery for a locked BL?
joegill97 said:
Sorry, I'm pretty new to root etc., but where can I get a recovery for a locked BL?
Click to expand...
Click to collapse
Try this one http://forum.xda-developers.com/showthread.php?t=2647492

New Device - what to do???

I will soon be getting a new Z Ultra and I would like to know what to do:
I want to stay on the stock rom but root it and update it to the latest version
So should I downgrade/root/unlock bootloader/whatever before i start using it?
If so, can someone tell me the steps to doing it e.g.
1) downgrade to .623
2) unlock bootloader
3) flash kernel and recovery
4) backup TA
5) update to latest version
6) root
???
panyan said:
I will soon be getting a new Z Ultra and I would like to know what to do:
I want to stay on the stock rom but root it and update it to the latest version
So should I downgrade/root/unlock bootloader/whatever before i start using it?
If so, can someone tell me the steps to doing it e.g.
1) downgrade to .623
2) unlock bootloader
3) flash kernel and recovery
4) backup TA
5) update to latest version
6) root
???
Click to expand...
Click to collapse
If all you are wanting is latest firmware with root just let it update then follow this thread.
http://forum.xda-developers.com/showthread.php?t=2784900
If you do decide to unlock bootloader then you have listed steps in wrong order.
1. Root
2. Backup TA
3. Unlock Bootloader
Alternately you could use the dualrecovery installer for step 1 as it has the root exploit built in.
adfurgerson said:
If all you are wanting is latest firmware with root just let it update then follow this thread.
http://forum.xda-developers.com/showthread.php?t=2784900
If you do decide to unlock bootloader then you have listed steps in wrong order.
1. Root
2. Backup TA
3. Unlock Bootloader
Alternately you could use the dualrecovery installer for step 1 as it has the root exploit built in.
Click to expand...
Click to collapse
I would like to have recovery installed and have a backup of my TA partition just in case
Can you tell me the whole process please?
1-> ?
panyan said:
I would like to have recovery installed and have a backup of my TA partition just in case
Can you tell me the whole process please?
1-> ?
Click to expand...
Click to collapse
1.http://forum.xda-developers.com/xpe...de-root-android-4-4-4-ver-14-4-0-108-t2801587
2.http://forum.xda-developers.com/showthread.php?t=2292598
Backing up TA needs to be done before unlocking bootloader as that is when DRM keys become lost. Also want to mention that I made a Nandroid right after using dualrecovery installer and before unlocking bootloader. When that backup was restored my bootloader became locked again, but I can't swear that the DRM keys remained intact.
adfurgerson said:
If all you are wanting is latest firmware with root just let it update then follow this thread.
http://forum.xda-developers.com/showthread.php?t=2784900
If you do decide to unlock bootloader then you have listed steps in wrong order.
1. Root
2. Backup TA
3. Unlock Bootloader
Alternately you could use the dualrecovery installer for step 1 as it has the root exploit built in.
Click to expand...
Click to collapse
adfurgerson said:
1.http://forum.xda-developers.com/xpe...de-root-android-4-4-4-ver-14-4-0-108-t2801587
2.http://forum.xda-developers.com/showthread.php?t=2292598
Click to expand...
Click to collapse
So the whole process would be:
1) root (http://forum.xda-developers.com/xpe...de-root-android-4-4-4-ver-14-4-0-108-t2801587)
2) backup TA (http://forum.xda-developers.com/showthread.php?t=2292598)
3) unlock bootloader?
4) flash recovery
5) update to latest version OS
6) root
?
panyan said:
So the whole process would be:
1) root (http://forum.xda-developers.com/xpe...de-root-android-4-4-4-ver-14-4-0-108-t2801587)
2) backup TA (http://forum.xda-developers.com/showthread.php?t=2292598)
3) unlock bootloader?
4) flash recovery
5) update to latest version OS
6) root
?
Click to expand...
Click to collapse
Sorry I am at work so my simple replies are even worse than normal.
The easyroot method (towelroot) and the dualrecovery exploit don't require downgrading, so just let it update to latest firmware. If you can't get the OTA for any reason you can flash the latest FTF for your region with flashtool. Then once on latest use dualrecovery installer and TA backup tool. That should have you rooted with recovery and backed up.
Edit...unlocking bootloader is only needed to flash custom ROMs or kernels.
adfurgerson said:
Sorry I am at work so my simple replies are even worse than normal.
The easyroot method (towelroot) and the dualrecovery exploit don't require downgrading, so just let it update to latest firmware. If you can't get the OTA for any reason you can flash the latest FTF for your region with flashtool. Then once on latest use dualrecovery installer and TA backup tool. That should have you rooted with recovery and backed up.
Edit...unlocking bootloader is only needed to flash custom ROMs or kernels.
Click to expand...
Click to collapse
Dont apologise, I really appreciate your help.
I will want to flash custom roms in the future so should I unlock it on day 1?
So the process is:
1) update to latest 4.4.4
2) install dual recovery from here: http://forum.xda-developers.com/showthread.php?t=2647492
3) go into recovery and make a backup
4) make a TA backup with this: http://forum.xda-developers.com/showthread.php?t=2292598
5) root with this: http://forum.xda-developers.com/showthread.php?t=2784900
panyan said:
Dont apologise, I really appreciate your help.
I will want to flash custom roms in the future so should I unlock it on day 1?
So the process is:
1) update to latest 4.4.4
2) install dual recovery from here: http://forum.xda-developers.com/showthread.php?t=2647492
3) go into recovery and make a backup
4) make a TA backup with this: http://forum.xda-developers.com/showthread.php?t=2292598
5) root with this: http://forum.xda-developers.com/showthread.php?t=2784900
Click to expand...
Click to collapse
Step 5 shouldn't be needed as the dualrecovery will take care of rooting. I didn't check the links you posted but if they are the same as I did you should be good.
adfurgerson said:
Step 5 shouldn't be needed as the dualrecovery will take care of rooting. I didn't check the links you posted but if they are the same as I did you should be good.
Click to expand...
Click to collapse
Ok, excellent
What would the process be if I wanted to unlock the bootloader too?
panyan said:
Ok, excellent
What would the process be if I wanted to unlock the bootloader too?
Click to expand...
Click to collapse
Here is a quick rundown....TA backup needs root to work, TA backup saves DRM keys needed for Sony proprietary stuff like audio, video and camera, also if warranty replacement is needed. DRM keys are lost when bootloader is unlocked, also internal storage is wiped. If unlocking a brand new phone then nothings lost, but if you have apps, pics, etc. then you will need to back them up first. I can't remember if I needed to rerun the dualrecovery after unlocking or if recovery was intact. I do know that restoring a Nandroid that I made before unlocking bootloader to phone after it was unlocked caused a soft brick until I unlocked it again. Maybe @blueether could double-check the info I have given you for accuracy as I may be over my head here.
adfurgerson said:
Here is a quick rundown....TA backup needs root to work, TA backup saves DRM keys needed for Sony proprietary stuff like audio, video and camera, also if warranty replacement is needed. DRM keys are lost when bootloader is unlocked, also internal storage is wiped. If unlocking a brand new phone then nothings lost only the DRM keys are lost, but if you have apps, pics, etc. then you will need to back them up first. I can't remember if I needed to rerun the dualrecovery after unlocking or if recovery was intact. I do know that restoring a Nandroid that I made before unlocking bootloader to phone after it was unlocked caused a soft brick until I unlocked it again. Maybe @blueether could double-check the info I have given you for accuracy as I may be over my head here.
Click to expand...
Click to collapse
It all looks about right, I would just change the above a little
blueether said:
It all looks about right, I would just change the above a little
Click to expand...
Click to collapse
Will root and recovery persist after unlocking bootloader? I can't remember if it does or not. Thanks for looking that over, the last I want is to give out erroneous advice.
adfurgerson said:
Will root and recovery persist after unlocking bootloader? I can't remember if it does or not. Thanks for looking that over, the last I want is to give out erroneous advice.
Click to expand...
Click to collapse
I cant unforget either, been too long since I've had a locked BL
1) update to latest 4.4.4 - See FTF thread
2) install dual recovery by [NUT]
3) go into recovery and make a backup - handy if you ever need to get back to stock - I'm not sure if it backs up the TA either
4) make a TA backup and save it on the cloud and on HDD
5) unlock the BL by visiting Sony's dev site and using flashtool
6) re-root / reinstall su if needed
7) make another backup of the TA and call this one unlocked - this can then be used to unlock the BL with out the data wipe
All off the top of my head and not done in ages
blueether said:
1) update to latest 4.4.4 - See FTF thread
2) install dual recovery by [NUT]
3) go into recovery and make a backup - handy if you ever need to get back to stock - I'm not sure if it backs up the TA either
4) make a TA backup and save it on the cloud and on HDD
5) unlock the BL by visiting Sony's dev site and using flashtool
6) re-root / reinstall su if needed
7) make another backup of the TA and call this one unlocked - this can then be used to unlock the BL with out the data wipe
Click to expand...
Click to collapse
Brilliant - thank you very much
You guys have been invaluable!

[Q] DRM function restore

I have read DRM function restoreration for UB thread and have some question . My z2 is unlock bootloader and lose Drm function like x-reality and Bionz if i follow these step
1. Relock bootloader using flashtool
2. Flash FW 17.1.A.2.69 ftf with TA partition with full wipe
3. Reboot
Is drm function will be restore? Because i didn't care about unlockbootloader and sony warranty I just want X-Reality,Vivid,and Bionz came back. and if this work can i flash 4.4.4 after.
e.g. Sorry for my bad english
does you have backup your ta file before you unlock your bootloader?
muhammadnajmi96 said:
does you have backup your ta file before you unlock your bootloader?
Click to expand...
Click to collapse
No,I didn't back up it
armmiehidetoz said:
No,I didn't back up it
Click to expand...
Click to collapse
try to take a look at this http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
muhammadnajmi96 said:
try to take a look at this http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
Click to expand...
Click to collapse
This will only allow restore certain features (X-Reality, Noise cancelling etc) - It won't allow apps that require the DRM keys to be present to actually be used, so far this seems to be the Playstation/Remote Play apps.
Goldfire said:
This will only allow restore certain features (X-Reality, Noise cancelling etc) - It won't allow apps that require the DRM keys to be present to actually be used, so far this seems to be the Playstation/Remote Play apps.
Click to expand...
Click to collapse
yes , i know. but he only said that he only want x-reality, noise cancelling feature back on his phone. this is the only way since he doesnt backup his ta file .
muhammadnajmi96 said:
yes , i know. but he only said that he only want x-reality, noise cancelling feature back on his phone. this is the only way since he doesnt backup his ta file .
Click to expand...
Click to collapse
Yes ,i have read this thread one.By this step will be relock and then unlcok bootloader again
but if i didn't want unlockbootloader again and flash fix file. If i only relock and flah tft with TA partitipn like thay said . May this can be work?(Sorry for bad english)
muhammadnajmi96 said:
yes , i know. but he only said that he only want x-reality, noise cancelling feature back on his phone. this is the only way since he doesnt backup his ta file .
Click to expand...
Click to collapse
Yep, I'm leaving that info there for other users that want to restore their DRM keys.
armmiehidetoz said:
Yes ,i have read this thread one.By this step will be relock and then unlcok bootloader again
but if i didn't want unlockbootloader again and flash fix file. If i only relock and flah tft with TA partitipn like thay said . May this can be work?(Sorry for bad english)
Click to expand...
Click to collapse
The mod linked above doesn't relock the bootloader, it just restores some features.
If you want to relock your bootloader, you'll need to flash the original kernel. More info here: http://forum.xda-developers.com/showthread.php?p=52567280#post52567280
Search also returns quite a few threads with more info.
Goldfire said:
Yep, I'm leaving that info there for other users that want to restore their DRM keys.
The mod linked above doesn't relock the bootloader, it just restores some features.
If you want to relock your bootloader, you'll need to flash the original kernel. More info here: http://forum.xda-developers.com/showthread.php?p=52567280#post52567280
Search also returns quite a few threads with more info.
Click to expand...
Click to collapse
Thank you for help. I have a question If i relock by this step, will my function(x-reality,vivid,BionZ) restore?
armmiehidetoz said:
Thank you for help. I have a question If i relock by this step, will my function(x-reality,vivid,BionZ) restore?
Click to expand...
Click to collapse
Nope, even after relocking the bootloader, the features you listed still require the original and unique DRM keys to function - the only real way to restore their functionality properly is either by the mod above or restoring the TA partition that held the DRM key info.
Goldfire said:
Nope, even after relocking the bootloader, the features you listed still require the original and unique DRM keys to function - the only real way to restore their functionality properly is either by the mod above or restoring the TA partition that held the DRM key info.
Click to expand...
Click to collapse
Thank for very helpful! Finally i got back x-reality,vivid ,and BionZ by http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672 .As you said when i relock and flash .69 with TA its work but when i update to .167 its broke again so i unlockbootloader again and follow this step thank for very help again:good:
armmiehidetoz said:
Thank for very helpful! Finally i got back x-reality,vivid ,and BionZ by http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672 .As you said when i relock and flash .69 with TA its work but when i update to .167 its broke again so i unlockbootloader again and follow this step thank for very help again:good:
Click to expand...
Click to collapse
where can i download .69 firmware wth TA partition? i've searched with xperifirm and couldnt find it bro.
Thepho3nix said:
where can i download .69 firmware wth TA partition? i've searched with xperifirm and couldnt find it bro.
Click to expand...
Click to collapse
Here
https://mega.co.nz/#!sccRRZaZ!2ten4FvV8H1WfQtNNTaKujWZBy9gz-9Ak7osJ1TF5qs

(Q) DRM keys

When i originally unlocked the bootloader I had backed up my TA partition.
Now I have a question, can I restore my drm keys from it since im on another version of lollipop?
Sent from my D6503 using XDA Free mobile app
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
As I understand, the DRM keys are not reliant on your Android version. So keys from 4.4.4 should work on 5.0.2 as they shouldn't change. I'm pretty sure envious_data has confirmed this (please correct me if I'm wrong).
HOWEVER, restoring them will relock the bootloader. If you are on a non-sony custom ROM (so CM, AOSP, etc) the phone will not boot (eXistenZ, Moonwalker (I think), and other stock based ROM's will however).
Stock based ROM's will ONLY boot if you have a stock kernel (which is found inside of the ftf file), any custom kernel (advanced stock, AndroPlus, any CM/AOSP, any other stock based kernel) kernels will not.
A locked bootloader recovery will not prevent the phone from booting, as it is on the /system partition and not inside of a kernel.
Also, if you have a recovery installed to the FOTAKernel partition, restore that to stock as that will prevent the phone from booting. The stock FOTAKernel file can be found in the ftf file too. If needed I can strip an ftf file down to stock kernel and FOTAKernel to be flashed.
CosTuMe said:
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
You can restore your DRM keys on any android version but you must make sure you'r completely on a stock build. (No custom kernals)
Deleted.
whats the procedure for restoring them?
CosTuMe said:
whats the procedure for restoring them?
Click to expand...
Click to collapse
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
gamer649 said:
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
Click to expand...
Click to collapse
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
CosTuMe said:
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
Click to expand...
Click to collapse
Open the phone dialer, *#*#7378423#*#*, Service Tests, Security, and then look to each row. Each one will be followed by [KEY OK][ACTIVE].
Also, to check the bootloader is relocked.
Open the phone dialer, *#*#7378423#*#*, Service Info, Configuration, look to rooting status. It will say "Bootloader unlock allowed: Yes", instead of "Bootloader unlocked: Yes".
Thank you very much, I had succeeded restoring them
Sent from my D6503 using XDA Free mobile app
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
ulyshut said:
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
Click to expand...
Click to collapse
You can re-lock the bootloader without the DRM keys, however it will not restore them. You can use the bootloader unlock/re-lock function in flashtool to lock the bootloader again.
You can lock the bootloader on any android version, regardless of what version you unlocked it on. But if you didn't back up your DRM keys there is no way to get them back, they are lost forever unfortunately.
thanks for the reply, because my remote play access did not work when i rooted my phone . now based on the other thread, its about the DRM key and unlock BL that is causing the issue.
Steps to restore DRM keys?
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
.
suenoromis said:
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
Click to expand...
Click to collapse
If you unlocked your BL before making backup of TA your keys are lost FOREVER .
Even if you downgrade and start everything again you won't get the keys back as they were unique to your device. If you don't have a TA backup of your keys don't waste time downgrading...
But if you DO HAVE A WORKING TA backup with YOUR keys then downgrade to 4.4.2, root, restore your TA (BL will get locked in the process), install dual recovery and upgrade to a pre-rooted firmware. You'll still have your keys and BL locked.
Steps to restore DRM keys?
ptmaniac said:
If you unlocked your BL before making backup of TA ..... You'll still have your keys and BL locked.
Click to expand...
Click to collapse
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Click to expand...
Click to collapse
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Confused about what? you are overcomplicating things.
You can get your keys back ONLY if you have a backup of your TA BEFORE unlocking your bootloader.
DID YOU BACKUP YOUR TA BEFORE UNLOCKING YOUR BOOTLOADER?
If you answer YES --> you can restore your keys
If you answer NO --> they are lost forever.
SImple.
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Sorry, If I got things complicated. Let me explain it in scenerios and steps;
Small İnfo first; there is a small partition (or a small and untouchable part inside of a partition) in our phones. It contains and "device-specific" keys, basically an ID.
Some Sony-made softwares (like a picture or sound enhancer which are activated when user starts a music or takes a picture) are patent protected and search for these keys before run. If keys are not there user still can take a picture or listen to music however the patented enhancing software will not kick in. So how do you lose the keys? Why is Sony making this?
Because they want to protect their patented technology from being exposed to inspections or non-Sony users. So basically they tell you if you "unlock your bootloader" you will be able to do anything with your phone freely but the keys-including-partition will be wiped forever and those patented software addings will not run.
Let's get to scenerios.
1th Scenerio: You want to install custom kernel, recovery or ROM to your device? You have to unlock bootloader and it is simple. But doing this basically will wipe your keys and they will be gone forever.
2nd Scenerio: The device can be rooted without unlocking its recovery (very clever Sony, you think about protecting your patent and invent the "keys partition" and lock them to bootloader and get rooted that easily). Once we obtain root, we can read and write to any partition, including the one with the keys (it is called Trim Area). Once we are rooted, with FlashTool, we can backup the TA partition and protect the keys on our PCs.
"After the backing up", once we unlock the bootloader the phone will wipe TA partition but we will have a backup of them on our PCs.
With that backup on our PCs, we can safely do whatever we want; install custom ROMS, kernels, recoveries etc. (actually, there is even a recovery installation possible with "locked bootloader" ) and once we need to claim our warranty or want Sony-patented software enhancements, we can simply restore the TA partition (again with FlashTool).

Categories

Resources