Stock Android 5.1.1 ROM to root and backup ta - Xperia Z5 Q&A, Help & Troubleshooting

Hi. I wanted to install a custom ROM from XDA, however I wanted to backup my ta partition/DRM keys first, so I could revert back should I want to.
I looked in xperifirm, and the oldest they had was 32.2.A.5.11 / R12C, so I flashed it. Apparently it was a 6.0.1 ROM. Is there a way of temporarily rooting 6.0.1, or the latest ROM? If not, does anyone know where a stock 5.1.1 ROM is?
Thanks

Update: I flashed the commercial and journalists rom in xperifirm, and I have now backed up my ta file.
Is there a way of verifying a ta file? Thanks

MegaBytesMe said:
Is there a way of verifying a ta file? Thanks
Click to expand...
Click to collapse
The file size should be 2MB. If in doubt rerun the backup and compare the two via MD5, using different backup methods even if you want to be 110% sure that your TA backup is all good.
As far as I know the TA partition also stores other information that sometimes changes at reboot, MD5-ing will yield different results between reboots.
EDIT: TABackup V2 by rayman verifies the TA dump before pulling. See thread and download here

Related

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

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

Firmware

Folks, I unlock the bootloader xperia d6633, now I can no longer update the device the following screen
Settings> About Phone> Software Update
I wanted to know how do I relock the bootloader, and able to upgrade to version 23.5.A.0.575
I'm a beginner, possibility ,possibility of video?
thanks
:confuso:
Edit: you can relock the bootloader without TA, there's an option in flash tool. DRM keys are still gone though
It is made clear that once you unlock the bootloader warranty is lost and many Sony software features such as those affecting camera quality are lost.
You will need to update manually with flashtool which will work fine with unlocked bootloader and is not very difficult.
http://www.flashtool.net/index.php
All this means is you need to get the firmware as an FTF file for your phone probably from here on XDA (make sure its for D6633) and then use this tool to update the phone. Google is your friend for a guide.
Edit: I probably need to tell you DO NOT try to flash a TA partition from anyone else or in flashtool (when there are tick boxes for "exclude" make sure you exclude .ta files) or you will hard brick the phone (dead as dead can be).
Ideally if you're going to unlock the bootloader you should root kitkat firmware and then take a TA partition backup to be able to restore DRM at a later time if you feel the need to.
Root here (other methods available, but I like this way):
http://forum.xda-developers.com/z3/general/guide-rootrecovery-how-to-root-install-t3017056
TA backup here:
http://forum.xda-developers.com/showthread.php?t=2292598
Dobsgw said:
Did you backup the TA partition? If you did then go ahead and restore it to your phone.
If that means nothing to you then you didn't and you cannot re-lock the boot loader.
It is made clear that once you unlock the bootloader warranty is lost and many Sony software features such as those affecting camera quality are lost.
You will need to update manually with flashtool which will work fine with unlocked bootloader and is not very difficult.
http://www.flashtool.net/index.php
All this means is you need to get the firmware as an FTF file for your phone probably from here on XDA (make sure its for D6633) and then use this tool to update the phone. Google is your friend for a guide.
Edit: I probably need to tell you DO NOT try to flash a TA partition from anyone else or in flashtool (when there are tick boxes for "exclude" make sure you exclude .ta files) or you will hard brick the phone (dead as dead can be).
Ideally if you're going to unlock the bootloader you should root kitkat firmware and then take a TA partition backup to be able to unofficially re-lock it at a later time if you feel the need to. Hopefully others will learn from this. Sorry :/
Root here (other methods available, but I like this way):
http://forum.xda-developers.com/z3/general/guide-rootrecovery-how-to-root-install-t3017056
TA backup here:
http://forum.xda-developers.com/showthread.php?t=2292598
Click to expand...
Click to collapse
Even if he has no TA backup he can still relock the bootloader.
Beetle84 said:
Even if he has no TA backup he can still relock the bootloader.
Click to expand...
Click to collapse
Really? I missed that bit I thought there was no way without TA
Okay I learnt something new
Don't just say it though explain how so he can do it!
(And so I can learn instead of passing wrong information again like an idiot )
Edit: found a tutorial. They explain relocking just after how to unlock
https://blog.unlockbase.com/sony-xperia-z3-unlocking-relocking-tutorial/
Unfortunately though this does not restore DRM keys (I wish though) so as said some software on stock rom won't work, but there is a flash able zip to enable most of it though

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 ?

[BACKUP-IMAGE] [XT1572 EU] Moto X Style Android 7.0 Nougat Build NPH25.200-15 (EU)

Hi guys,
I bought the "new" Moto X Style last week for 250€(new, white, 32gb) and updated it to the highest Android 6.0 version from Motorola. After that, i flash the OTA-file from:
https://forum.xda-developers.com/moto-x-style/general/ota-moto-x-style-android-7-0-nougat-t3630248
After that, i unlock the bootloader, flash TRWP, clean the data and create a System backup:
https://xda.bioharz.xyz/2017-07-15--06-20-47_NPH25.200-15.7z
This is unmodified! and unrootedI actually have no time to create a System image, but this should also work for you.
I hope this can help you.
Thanks,
One question, this backup work in XT1572 CID12?
Necrodaemon said:
Thanks,
One question, this backup work in XT1572 CID12?
Click to expand...
Click to collapse
nope, only for the EU model
Netflix not working after installing
anth0nymDROID said:
Netflix not working after installing
Click to expand...
Click to collapse
Probably failing SafetyNet API check but what is the error?
Nougat will fail if the bootloader is unlocked and you don't have the Magisk module to stop SafetyNet. In Nougat an unlocked bootloader is enough to get it to fail even if otherwise 100% stock.
Netflix could also be confused as to your region if you restored the backup in this thread.
acejavelin said:
Probably failing SafetyNet API check but what is the error?
Nougat will fail if the bootloader is unlocked and you don't have the Magisk module to stop SafetyNet. In Nougat an unlocked bootloader is enough to get it to fail even if otherwise 100% stock.
Netflix could also be confused as to your region if you restored the backup in this thread.
Click to expand...
Click to collapse
Im reteu fr in Germany but if that's the case well no mobile Netflix I can still live my life without it.
anth0nymDROID said:
Im reteu fr in Germany but if that's the case well no mobile Netflix I can still live my life without it.
Click to expand...
Click to collapse
Magisk 13.3 can help with the safety net test. Here is how to install at stock: post #4
https://forum.xda-developers.com/moto-x-style/general/guide-flashing-stock-firmware-t3637235
dzidexx said:
Magisk 13.3 can help with the safety net test. Here is how to install at stock: post #4
https://forum.xda-developers.com/moto-x-style/general/guide-flashing-stock-firmware-t3637235
Click to expand...
Click to collapse
That's good advice!! Thanks I'll try it later and see how it goes
What is the proper way to flash this backup using TWRP? I did a adb push to /sdcard with al files from the extracted .7z file but TWRP can't ze the backup.
What am I doing wrong?
xabr3 said:
What is the proper way to flash this backup using TWRP? I did a adb push to /sdcard with al files from the extracted .7z file but TWRP can't ze the backup.
What am I doing wrong?
Click to expand...
Click to collapse
Extract the backup zip file. Copy the last folder (containing the boot and system images) to your phone's TWRP Backup folder. Now you will see it in TWRP. Now perform a full backup. Then restore the copied-over nougat backup. Now you can pick on of the following two options.
1. f you have time, you do not need to delete your data before rebooting. You can always uninstall and reinstall any problem apps that show up after rebooting. That is what I did.
2. Of course, if you are in a hurry, you can delete your data and then reboot. That would be called a "clean install" and I don't do that very often.
Hope this helps.
@bioharz
Cheers for this. I was contemplating what method might be easiest for upgrading my rooted Moto X Style (EU) from MM 6.01 to Nougat 7.0. Ideally, this would have been a TWRP flashable ZIP, however, you have provided the second best option, which is a TWRP backup.
My method was as follows:
1) Make full TWRP backup of existing MM installation to extSD
2) Backup my Nova settings to extSD
3) Download, unzip and copy your backup to the TWRP location on extSD
4) Boot into TWRP and wipe Dalvik/ART, Cache, System and Data partitions via Advanced Wipe menu
5) Flash System and Boot partitions from your Nougat backup, BUT NOT EFS partition !!!
6) Reboot, log onto previous Google Account and restore all apps.
7) Restore Nova settings
8) Root with SuperSU (systemless) and SuHide
Worked a treat :good:
Are you sure - you need nougat with old radios?
You could reflash stock MM, update to Nougat, root, restore all you want. @Yemble
Will it work on moto x style Indian variant?
dzidexx said:
Are you sure - you need nougat with old radios?
You could reflash stock MM, update to Nougat, root, restore all you want. @Yemble
Click to expand...
Click to collapse
I am certain that I do not wish to screw up my phone with someone elses IMEI. Besides, what exactly is wrong with the MM radios? They are working perfectly on my phone.
Actually, given that I am now in a good position to experiment further, I have flashed the Nougat EFS partition on its own to my phone. Thankfully, it did not affect the IMEI or any network connectivity (SIM or WiFi). However, it has not changed the base band version either, so it may, in fact, be identical to the MM EFS anyway!
coolncoolest said:
Will it work on moto x style Indian variant?
Click to expand...
Click to collapse
Take a TWRP backup first, then give it a go. What have you got to lose?
I suggest that you try it without the EFS partition first. If that works, take another TWRP backup and then try flashing EFS on its own.
@coolncoolest @Yemble
Don't flash/restore EFS from another phone - you can lose your IMEI.
India - RetAsia version has the same baseband as RetEu - cid7.
Dual sim probably will not work.
dzidexx said:
@coolncoolest @Yemble
Don't flash/restore EFS from another phone - you can lose your IMEI.
India - RetAsia version has the same baseband as RetEu - cid7.
Dual sim probably will not work.
Click to expand...
Click to collapse
Clearly you are wrong about this (on this particular phone model), as I have already tried it and it proved that it did not break, or change, anything! I am aware that flashing EFS can be dangerous on older Samsung phones, hence my cautious approach that you appeared to be dissing in your previous post
I believe in hard facts, rather then hearsay. I have now upgraded three XT1572 (EU) phones from the posted TWRP image using the method that I outlined previously, together with the later flashing of the EFS partition. All three phones work perfectly and all three pass SafetyNet.
Someone else may be less fortunate than you and there is no reason to flash/restore efs.
Not only Samsung can lost imei in this way - Lenovo(+tablets), other Moto series, all Mtk devices(there is easy way to restore imei).
For Moto I don't know any restoring procedure. Sorry - one - mainboard replacement. @Yemble
dzidexx said:
Someone else may be less fortunate than you and there is no reason to flash/restore efs.
@Yemble
Click to expand...
Click to collapse
Really, then what was the point of your post at the top of this page?
Yemble said:
Really, then what was the point of your post at the top of this page?
Click to expand...
Click to collapse
Do you mean:
Nougat with old radios?
I meant:
Flash stock 6.0.1 24...58-5 with fastboot and get ota update.
Somewhere I uploaded my backup(6.0.1 EU) - without efs.

Categories

Resources