How do I "properly" root my Z5...? - Xperia Z5 Q&A, Help & Troubleshooting

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

Related

[Q] Can I re-lock after unlocking the bootloader, and get the DRM keys back?

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

[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

Unlock Bootloader Question

Hey guys. Im aware if you unlock the bootloader, you will lose the warranty and the DRM keys of sony which is responsible for stuff like x-reality enfine, camera algorithm, screen mirroring etc.
MY question is, if you successfully follow tobias guide of backing up and restoring the DRM keys, will you gain everything back? Will ALL the features that are supposed to be gone after unlocking the bootloader be back once you follow his guide?
prince10t said:
Hey guys. Im aware if you unlock the bootloader, you will lose the warranty and the DRM keys of sony which is responsible for stuff like x-reality enfine, camera algorithm, screen mirroring etc.
MY question is, if you successfully follow tobias guide of backing up and restoring the DRM keys, will you gain everything back? Will ALL the features that are supposed to be gone after unlocking the bootloader be back once you follow his guide?
Click to expand...
Click to collapse
Yes. Tried it on my Z5 Compact.
TA Backup, UBL, Root
Downgraded to LP .200
Backup TA Partition image using iovyroot
Flashed MM .185
Unlocked Bootloader
Flashed Custom ROM and Custom Kernel
Cleared Credential Manager's DB to enable DRM Function Restoration mod
Done
Reverting
Pre-req: ROOT (Done this while I was using AndroPlus Kernel v26 on MM .185)
Restored the TA Partition image using Backup TA v9.11 for Windows (I've converted the TA.img first using convert v4 backup inside BackupTA 9.11)
Powered Off after Restoring TA Partition
Flashed MM .185
Done
It should be also noted that some Custom Kernels have integrated the ability to bypass DRM checking by the credential manager. Effectively restoring DRM-Locked functions such as X-Reality Engine and BIONZ without the presence of DRM-Keys in the TA Partition
TechKiel said:
Yes. Tried it on my Z5 Compact.
TA Backup, UBL, Root
Downgraded to LP .200
Backup TA Partition image using iovyroot
Flashed MM .185
Unlocked Bootloader
Flashed Custom ROM and Custom Kernel
Cleared Credential Manager's DB to enable DRM Function Restoration mod
Done
Reverting
Pre-req: ROOT (Done this while I was using AndroPlus Kernel v26 on MM .185)
Restored the TA Partition image using Backup TA v9.11 for Windows (I've converted the TA.img first using convert v4 backup inside BackupTA 9.11)
Powered Off after Restoring TA Partition
Flashed MM .185
Done
It should be also noted that some Custom Kernels have integrated the ability to bypass DRM checking by the credential manager. Effectively restoring DRM-Locked functions such as X-Reality Engine and BIONZ without the presence of DRM-Keys in the TA Partition
Click to expand...
Click to collapse
Thanks man. Is there also a way to restore DRM keys and RELOCK the bootloader? Like undo everything?
prince10t said:
Thanks man. Is there also a way to restore DRM keys and RELOCK the bootloader? Like undo everything?
Click to expand...
Click to collapse
Yes but you have to on a stock kernel and rooted before you restore your backed up TA Partition img
Sent from my E6653 using XDA-Developers mobile app

Too much info here,how do I simply backup and root [6.0.1][D6653] Z3 - 23.5.A.1.291

Hey guys, too much info here, I cant find what I need. How do I simply backup and root [6.0.1][D6653] Z3 - 23.5.A.1.291 ?
Thank you in advance !
If you have a TA Partition Backup you can easily unlock your bootloader, install TWRP recovery through Fastboot, install a stock rooted ROM and then Restore your previous TA Partition Backup (your bootloader will be locked again).
If you do NOT have a TA Partition Backup there are two ways: You can lose your algorithms for the camera enhancement etc etc.. OR you can downgrade to KitKat, do the Root Exploit and then upgrade to the latest FW without losing anything.
The choice's yours
codeluca said:
If you have a TA Partition Backup you can easily unlock your bootloader, install TWRP recovery through Fastboot, install a stock rooted ROM and then Restore your previous TA Partition Backup (your bootloader will be locked again).
If you do NOT have a TA Partition Backup there are two ways: You can lose your algorithms for the camera enhancement etc etc.. OR you can downgrade to KitKat, do the Root Exploit and then upgrade to the latest FW without losing anything.
The choice's yours
Click to expand...
Click to collapse
Thanks, but there is no easier way to root my phone? I must unlock my bootloader? Why I need TA Partition backup? Sorry for the additional questions, but it was few good years that I didnt root my phones.
Hi,
You do not need a TA backup but it's really convenient to have. I don't know technically how it works but Sony implemented his camera, music and photo algorithms in the TA partition. If you unlock without a proper backup, you will lose these algorithms and there will be noise in the photo app. You will also lose x-reality feature and clearSound (honestly I don't remember the name).
Also, you can't restore, for example, my TA partition because each TA partition is bound to its device.
So, tell me if you care about these algorithms and we'll choose a way to proceed
Ok after your explanation, I guess I care about the algorithms. So we need to start with TA backup?
codeluca said:
Hi,
You do not need a TA backup but it's really convenient to have. I don't know technically how it works but Sony implemented his camera, music and photo algorithms in the TA partition. If you unlock without a proper backup, you will lose these algorithms and there will be noise in the photo app. You will also lose x-reality feature and clearSound (honestly I don't remember the name).
Also, you can't restore, for example, my TA partition because each TA partition is bound to its device.
So, tell me if you care about these algorithms and we'll choose a way to proceed
Click to expand...
Click to collapse
Hi,
I'm not so expert on this but I'm pretty sure that the only way you can backup TA is having a rooted Phone.
If you do not want to lose those features you need to root without unlocking the bootloader. That's because, I could be wrong, but the TA partition is part of the bootloader. So if you unlock it naturally TA will be re-written and you will lose these features..
So you need to root WITHOUT UNLOCKING THE BOOTLOADER. To do this, you need to downgrade to KitKat with the Sony Flash tools (Sony lets you flash their ROMs without troubles) and then, on 4.4, you should use the Root Exploit (it should be this but i'm not sure because I rooted two years ago, http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598 ).
After that you will install TWRP Recovery, backup your TA partition using the tool on this site*, and flash the latest Sony Rom Pre-rooted.
*since you already rooted you do not need to backup the partition, but for safety purpose you should do it and put it on online storage website (Dropbox, Google Drive, etc..) and obviously on your Computer.
That's all, I advice you that you could wait someone's else explanation because I'm really no expert on this.
PS: Because of the topic's length, I have to say that I'm Italian so English is not my primary language.
Did you see this: http://forum.xda-developers.com/z3/general/recovery-root-mm-575-291-lb-t3435214 ?

Z5 DRM Functions Back on an Unrooted Stock Firmware

Hi. I had rooted my E6603 some time ago using this method: http://twigstechtips.blogspot.ch/2016/04/sony-z5-compact-root-without-losing-ta.html?m1 so I didn't loose the DRM functions. It did work, but then I noticed the "fingerprint hardware not available" bug, which was fixed by renaming some system files.
Now my problem is that I don't want root anymore, so I made a clean installation of the newest .305 firmware. It was working fine, but I realized the DRM functions were lost, which I think is what's supposed to happen since the bootloader is unlocked in the rooting status info. I tried to restore the TA partition by simply flashing the backup through Flashtool, but it didn't work. Now, in rooting status, it says "unknown", not even "bootloader unlocked" or "bootloader unlock allowed: Yes".
What should I do? I want the DRM functions back without having my phone rooted. Can I root, restore them, change the name of the files necessary for the "fingerprint hardware" fix and then unroot my phone?
you need to downgrade to the LP version you made the DRM backup from, and then use the same tool you backed up with to restore the ta partition...
a detailed simple instruction is available at iovyroot main thread.
is there a way to have a stock kernel without root but with DRM fix? as I plan to go systemless but I can't properly work it out as supersu can't be remove

Categories

Resources