Relock Bootloader - Xperia Z3 Q&A, Help & Troubleshooting

Ok guys i need some help, i unlocked the bootloader on mine Z3 with the official method by sony, flashed TWRP recovery and rooted it.
But after i did all that i heard about the DRM on the camera, is there a way to relock it and return to factory state?

Lordszero said:
Ok guys i need some help, i unlocked the bootloader on mine Z3 with the official method by sony, flashed TWRP recovery and rooted it.
But after i did all that i heard about the DRM on the camera, is there a way to relock it and return to factory state?
Click to expand...
Click to collapse
No, you have lost the DRM keys forever.
You can relock using flashtool, but it will not restore your DRM keys

Related

Restoring Drm Keys on Custom Rom's Like Cyanogenmod

I have got a Z3.If we will be able to root without unlock bootloader, i will restore my drm keys.And i will unlock my bootloader and flash cyanogenmod.And i will relock bootloader, restore my drm keys on cyanogenmod.Is it possible?Sorry for bad english?
Not possible. Only a Sony rom can take use of the DRM keys. Cyanogen doesn't use Sonys algorithms.
If we are able to root without unlocking BL, we can backup the TA partition with the DRM keys and you will be able to restore them but as dashrink said, custom Roms which are not based on Sony's official firmware won't be able to use them. But you could always go back to an official (based) firmware and restore the TA partition with the DRM keys.
Well, what can we do for camera's quality on custom rom's?
LeonidasTurk said:
I have got a Z3.If we will be able to root without unlock bootloader, i will restore my drm keys.And i will unlock my bootloader and flash cyanogenmod.And i will relock bootloader, restore my drm keys on cyanogenmod.Is it possible?Sorry for bad english?
Click to expand...
Click to collapse
Once you relock the bootloader CM will not boot.
You need to keep the bootloader unlocked for custom kernels to boot
gregbradley said:
Once you relock the bootloader CM will not boot.
You need to keep the bootloader unlocked for custom kernels to boot
Click to expand...
Click to collapse
What about Xposed? I don't have to change ROM, therefore can I install Xposed and then restore DRM keys? :fingers-crossed:

[Q] Do I have my facts straight?

Could someone just confirm that I got this right:
-if I want reaver on my phone, I have to root it
-if I root it, I lose low light camera quality
So I have to choose between rooting the phone (for installing reaver, airmon and apps like that, I don't need anything else) and having great low-light camera?
Yep.
It was true 2 weeks ago.
Now that the root method for locked bootloader becomes avaiable so you won't lose the drm keys if you root..
freddy1991 said:
It was true 2 weeks ago.
Now that the root method for locked bootloader becomes avaiable so you won't lose the drm keys if you root..
Click to expand...
Click to collapse
What do you mean?
Is it already available or?....
http://forum.xda-developers.com/showthread.php?t=3011598
To clarify:
Unlocking the bootloader wipes your DRM keys and losing those is what reduces the camera quality (among other things)
Previously, the only way to get root was to unlock the bootloader.
It is now possible (via giefroot exploit) to get root WITHOUT unlocking the bootloader. This means your DRM keys are unaffected.
Once you have root you can actually backup your DRM keys so you are then free to unlock the bootloader if you want (for customer kernels and stuff) and restore your DRM keys afterwards
3Shirts said:
To clarify:
Unlocking the bootloader wipes your DRM keys and losing those is what reduces the camera quality (among other things)
Previously, the only way to get root was to unlock the bootloader.
It is now possible (via giefroot exploit) to get root WITHOUT unlocking the bootloader. This means your DRM keys are unaffected.
Once you have root you can actually backup your DRM keys so you are then free to unlock the bootloader if you want (for customer kernels and stuff) and restore your DRM keys afterwards
Click to expand...
Click to collapse
Yes, but people should also know that restoring your DRM keys relocks the bootloader.
So, you can either have an unlocked bootloader without DRM keys (You can boot a custom kernel so can run CM etc)
or
a locked bootloader with DRM keys. (You cannot boot a custom kernel so are stuck to stock firmware)
You cannot have an unlocked bootloader with DRM keys.
Ah, thanks for the clarification, I didn't realise that. I've not unlocked my BL as I'm happy with root on stock.
Do you need to unlock for a custom rom and, if so, can you unlock, install the rom, and then relock?
3Shirts said:
Ah, thanks for the clarification, I didn't realise that. I've not unlocked my BL as I'm happy with root on stock.
Do you need to unlock for a custom rom and, if so, can you unlock, install the rom, and then relock?
Click to expand...
Click to collapse
If the custom rom relies on a custom kernel then yes you have to unlock. Custom kernels can only boot on an unlocked bootloader.
However, once you relock (Or restore the TA partition containing the DRM keys, this also relocks the boot) then you cannot boot a custom kernel so you get a bootloop until you either unlock again or restore a stock rom.
Locked bootloader = stock kernel only (Custom kernels will cause a bootloop)
Unlocked bootloader = any modified kernel and stock kernel (No DRM keys)
Here's one last question before following this guide http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598
If something happens to my phone and I need to get it serviced, is it possible to remove root? Will there be any traces of root, or nobody'll ever know it'd been rooted?
David47 said:
Here's one last question before following this guide http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598
If something happens to my phone and I need to get it serviced, is it possible to remove root? Will there be any traces of root, or nobody'll ever know it'd been rooted?
Click to expand...
Click to collapse
Flash a FTF or force repair with pccompanion.
That's removes root and no one can tell.

Can't flash 7.0

I got a unlocked bootloader XZ dual 8332, download tft from Xperiafirm, and at the end of flash session i got a erro :
Code:
[COLOR="Red"]01/025/2016 17:25:54 - ERROR - Have read only 524256 byte(s) instead of 780004 byte(s)
01/025/2016 17:25:54 - ERROR - Error flashing. Aborted[/COLOR]
What does it's meanning ? My phone got a "update failed" when turn on now.
Do we need check some "check box" or anything before flash a tft file ?
And is anyway to relock bootloader if we want repair by Xperia Companion or update through OTA ?
Thanks.
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
gregbradley said:
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
Click to expand...
Click to collapse
Wipe qnovo and try in flashtool
gregbradley said:
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
Click to expand...
Click to collapse
I relocked by flashtool (same as unlock) and repairing by Companion now.
Btw thank you .
let's wait for new kernel to get back DRM-fix xD
Sorry to be a bother.
Same thing happened to me, how do i relock the bootloader?
Lavievn said:
I relocked by flashtool (same as unlock) and repairing by Companion now.
Btw thank you .
let's wait for new kernel to get back DRM-fix xD
Click to expand...
Click to collapse
Is the camera working for you after relock?
chawlasrijan said:
Is the camera working for you after relock?
Click to expand...
Click to collapse
No, we cant use stock camera app and got very bad and small sound volume.
Cavaleur7 said:
Sorry to be a bother.
Same thing happened to me, how do i relock the bootloader?
Click to expand...
Click to collapse
same as unlock, but now you get a "relock button", click it and everything fine but your DRM-key is gone
Lavievn said:
No, we cant use stock camera app and got very bad and small sound volume.
Click to expand...
Click to collapse
That's just sad No point to relock the bootloader then.
Need do that for update, or wait till new kernel for 7.0 with drm-fix release
chawlasrijan said:
That's just sad No point to relock the bootloader then.
Click to expand...
Click to collapse
When you flash a modified kernel with drm fix your drm is working. When you relock your bootloader your phone got factory reset itself and drm still in your phone.
Try to update via ota
After that because you are unlocked try to flash flashfire and install supersu to be rooted and searsh to drm fix file and flash it manually from any root file manager.
Another step
Uodate your unlocked phone ota update
Restart you phone
It should be working now with no drm fix
Poweroff your phone
Enter falshmode (power button + volum up) you see a purpul led
Enter adb and flash supersu sr5
It should work after flash drm manually
Try and reply please
karrouma said:
When you flash a modified kernel with drm fix your drm is working. When you relock your bootloader your phone got factory reset itself and drm still in your phone.
Try to update via ota
After that because you are unlocked try to flash flashfire and install supersu to be rooted and searsh to drm fix file and flash it manually from any root file manager.
Another step
Uodate your unlocked phone ota update
Restart you phone
It should be working now with no drm fix
Poweroff your phone
Enter falshmode (power button + volum up) you see a purpul led
Enter adb and flash supersu sr5
It should work after flash drm manually
Try and reply please
Click to expand...
Click to collapse
So much wrong info here.
Firstly, once you unlock the bootloader the TA partition where the DRM keys are stored is formatted. They are gone forever. Relocking the bootloader does not bring them back. The DRM fix replicates (Not 100% fixes) the missing functions and this fix only works on rooted phones, which you cannot have with a locked bootloader.
Secondly, do not try and update OTA with an unlocked bootloader. It could brick your device.
Are there any known issues when unlocking the boot loader?
A: Yes. When you select a device, any known issues for that device will be displayed. In addition, the following generic issues have been reported:
•Some users have experienced problems when they are accepting over the air upgrades. Therefore we do not recommend users to accept over the air upgrades, after having unlocked the boot loader. For additional information, check out the XDA Forums for hints and tips from the community.
Click to expand...
Click to collapse
Source Sony unlock bootloader FAQ
gregbradley said:
So much wrong info here.
Firstly, once you unlock the bootloader the TA partition where the DRM keys are stored is formatted. They are gone forever. Relocking the bootloader does not bring them back. The DRM fix replicates (Not 100% fixes) the missing functions and this fix only works on rooted phones, which you cannot have with a locked bootloader.
Secondly, do not try and update OTA with an unlocked bootloader. It could brick your device.
Source Sony unlock bootloader FAQ
Click to expand...
Click to collapse
I am on unlocked bootloader
I will do a backup now and will try to update OTA or via xperia companion
Turning phone off and enter flashboot to inject supersu sr5 for android 7 and then restart
I will try
If not booting ,bye bye my xz
If can't be back to android 6 , bye bye my xz
Wait my reply, it depend to the speed of my connection
karrouma said:
I am on unlocked bootloader
I will do a backup now and will try to update OTA or via xperia companion
Turning phone off and enter flashboot to inject supersu sr5 for android 7 and then restart
I will try
If not booting ,bye bye my xz
If can't be back to android 6 , bye bye my xz
Wait my reply, it depend to the speed of my connection
Click to expand...
Click to collapse
Xperia companion will fail. It will detect unlocked bootloader and not work.
OTA 'may' work, but as I said and quoted it 'may' also brick your device. Do it at your own risk.
gregbradley said:
Xperia companion will fail. It will detect unlocked bootloader and not work.
OTA 'may' work, but as I said and quoted it 'may' also brick your device. Do it at your own risk.
Click to expand...
Click to collapse
Everything you wrote is absolutely correct.
PC companion detects that the device is unlocked & OTA's automatically fails to install.
So apparently, relocking & updating is possible but relocking means you can no longer use the stock camera anymore.
chawlasrijan said:
Everything you wrote is absolutely correct.
PC companion detects that the device is unlocked & OTA's automatically fails to install.
So apparently, relocking & updating is possible but relocking means you can no longer use the stock camera anymore.
Click to expand...
Click to collapse
You should be able to then unlock again and just needo to wait for a modified kernel with drm fix for android 7
Sent from my iPad
gregbradley said:
You should be able to then unlock again and just needo to wait for a modified kernel with drm fix for android 7
Sent from my iPad
Click to expand...
Click to collapse
Unlocking your bootloader again on Nougat using official Sony guide fixed the issue for me.
Make sure you don't use Flashtool to unlock your bootloader on Nougat.
Thank you for the support
chawlasrijan said:
Unlocking your bootloader again on Nougat using official Sony guide fixed the issue for me.
Make sure you don't use Flashtool to unlock your bootloader on Nougat.
Thank you for the support
Click to expand...
Click to collapse
How to unlock
Via adb???
Steps used please
If you have the ftf can you modify your kernel now??
karrouma said:
How to unlock
Via adb???
Steps used please
If you have the ftf can you modify your kernel now??
Click to expand...
Click to collapse
Google "unlock bootloader Sony"
Click the sony developer link & follow the guide.

Rooted with TWRP installed

Hi my xz is rooted with twrp installed what will happen if i install the update thats being pushed in my phone? Will it be bricked? What will i do to install the update properly? Please help me.
If you have an unlocked bootloader the OTA update will fail.
Is there any tool to relock the loader?
Flashtool
Ok thank you for help.
i have drm key , i can root device unclock bootloader and after re-lock bootloader e restore drm keys? (return original device?)
is possible?
thanks
​
djandrea said:
i have drm key , i can root device unclock bootloader and after re-lock bootloader e restore drm keys? (return original device?)
is possible?
thanks
Click to expand...
Click to collapse
Yea thats right dude

How Can I Return to Stock?

Hello. I have a sony xperia z3 with unlocked bootloader and cm 12.1. I want to install latest stock firmware and lock my bootloader. I want to restore my DRM keys too. I will sell this phone and i have worries about privacy. How can i permanent delete my ALL data? Can anyone help me (step by step) Thank u!
LeonidasTurk said:
Hello. I have a sony xperia z3 with unlocked bootloader and cm 12.1. I want to install latest stock firmware and lock my bootloader. I want to restore my DRM keys too. I will sell this phone and i have worries about privacy. How can i permanent delete my ALL data? Can anyone help me (step by step) Thank u!
Click to expand...
Click to collapse
Flash FTF via flashtools and wipe everything it's pretty straightfoward, you can get it here. Download, open xperifirm, flash.
To restore drmkeys you need to have a backup before you unlocked your bootloader otherwise your DRM keys are lost forever and you will have to flash either a kernel or
drm fix.

Categories

Resources