[Q] Can I re-lock after unlocking the bootloader, and get the DRM keys back? - Xperia Z3 Q&A, Help & Troubleshooting

I.e I want to do this
- Unlock bootloader and root
- Settle for poor camera
And then when the locked bootloader root is released,
- Relock bootloader
- Root
-Use good camera again
Is this possible?
Thanks

Typically with Xperia devices, if there is a root method found that doesn't require an unlocked bootloader, then you can backup the TA partition that contains the DRM keys. You can then restore the TA partition at a later time.
If you unlock your bootloader without a TA partition backup, I believe your DRM keys are lost forever.

No.
You can only get DRM keys back if you restore a TA backup. This backup can only be created once you have root, so without a locked bootloader root you are currently out of luck

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.

[Q] Unlocking the Bootloader

Apart from making a TA backup is there anything else anything I should do before unlocking the bootloader. So once I have unlocked the bootloader I can get my DRM keys back simply restoring using BACKUP-TA?.
Thanks
Yes you can restore to a factory state. I'd suggest to make a full backup with a recovery of your choice as well, so you have your data etc if anything goes wrong.
avi312singh said:
Apart from making a TA backup is there anything else anything I should do before unlocking the bootloader. So once I have unlocked the bootloader I can get my DRM keys back simply restoring using BACKUP-TA?.
Thanks
Click to expand...
Click to collapse
Yes you can get your DRM keys by restoring the TA but it seems pointless to me just to root, backup TA, unlock bootloader, then restore TA partition
You should be aware that restoring the TA partition ALSO RELOCKS the bootloader. So if you root by unlocking the bootloader and install a custom kernel then you will loose root and get a bootloop (If you installed a custom kernel)
You can root without unlocking the boot. This keeps your TA partition and DRM keys intact
If you unlock the bootloader you can flash a custom kernel. If you then restore TA partition you will get a bootloop
Im already rooted, I just wan to install custom roms e.g. CyanogenMod 12. So you think it's just pointless to root because if I try to restore TA partition after unlocking then I can get a bootloop with a custom kernel.
gregbradley said:
Yes you can get your DRM keys by restoring the TA but it seems pointless to me just to root, backup TA, unlock bootloader, then restore TA partition
You should be aware that restoring the TA partition ALSO RELOCKS the bootloader. So if you root by unlocking the bootloader and install a custom kernel then you will loose root and get a bootloop (If you installed a custom kernel)
You can root without unlocking the boot. This keeps your TA partition and DRM keys intact
If you unlock the bootloader you can flash a custom kernel. If you then restore TA partition you will get a bootloop
Click to expand...
Click to collapse
avi312singh said:
Im already rooted, I just wan to install custom roms e.g. CyanogenMod 12. So you think it's just pointless to root because if I try to restore TA partition after unlocking then I can get a bootloop with a custom kernel.
Click to expand...
Click to collapse
No it is not pointless.
You can unlock the boot loader and install CM, but you cannot restore the TA partition and boot with a CM ROM.
If you want your DRM keys back you will have to flash a stock ROM back.
If you want my opinion I'd wait till lollipop comes out then make a decision just my thought

[Q] DRM Keys Restore

After rooting 4.4.4 I backed up my DRM Keys. Unlocked my bootloader and switched to 5.0.3 with twrp. After that I restored my DRM Keys and now it says "unlock allowed: yes"
First question: does that mean now my bootloader is locked again
Second: how can I be 100% sure if the keys are restored. Because I see no difference in photos and x reality.
Anyone can tell me how to be 100% sure about it.
D6603
Lollipop 5.0.2 stock
Rooted
Locked bootloader
Yes it is locked
Restoring your drm keys automatically rocks your bootloader

How do I "properly" root my Z5...?

So I just got my E6653 and updated it to 32.0.A.6.152 for iovyroot compatibility, but I have a couple of questions before I proceed that I'm hoping someone can answer...
I have the following battleplan:
- Backup TA with iovyroot.
- Unlock Bootloader.
- Flash Marshmallow.
- Root.
- Restore DRM features.
1. So from what I understand, once I unlocked my bootloader I can flash any (compatible) OS to my phone?
2. Once I have flashed and rooted a Marshmallow build, if I relock the bootloader and restore the TA partition, will the root be gone? Or will I be stuck in bootloop due to DM-verity?
3. Can I just use this: http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 with my DRM key instead of restoring the TA partition for full DRM-features and retain the rooted system?
Thanks.
Be sure to backup your Ta multiple times and to copy it in various devices (hdd, USB, cloud...).
Using the Sony ric off method allows you to restore your Ta if they are placed in the same folder as the tool.
This tool should also flash supersu if in the same folder. Your kernel is modified (and couldn't be booted without patching it), and allows keeping root.
I did the steps you mentioned. I now have root with Ta

Categories

Resources