Q flash process - Xperia Z2 Q&A, Help & Troubleshooting

Unless i unlock bootloader i dont need to backup TA for reflash to original ?? just needing flashtool & firmwire?

Exactly, unless you unlock your bootloader, drm keys and ta partition are not touched so you dont need to worry about them

gallardo5 said:
Exactly, unless you unlock your bootloader, drm keys and ta partition are not touched so you dont need to worry about them
Click to expand...
Click to collapse
Aah great Was thinking might reflash to stock, somthign wrong on battery maybe... :S or system reset might solve ( an app might disturb ) Will try more before Thanks m8 !

Related

[IDEA]Root By Unlock then Relock Bootloader?

Hi guys, i have an idea. Will the idea of unlocking the bootloader and then do the root (with recovery enabled kernel that is) and then relocking (restoring the TA partition first) the bootloader work? I am a little bit confused with the fact about the DRM kind of things, since i don't want to lose it so if we could restore it back later then why this technique was never discussed? Please give me any information :angel:
hansip87 said:
Hi guys, i have an idea. Will the idea of unlocking the bootloader and then do the root (with recovery enabled kernel that is) and then relocking (restoring the TA partition first) the bootloader work? I am a little bit confused with the fact about the DRM kind of things, since i don't want to lose it so if we could restore it back later then why this technique was never discussed? Please give me any information :angel:
Click to expand...
Click to collapse
Oh yeah i forgot.. this trick will not work if you haven't done TA backup wouldn't it? :-/ I have done that before so i guess this idea won't work for anybody without TA backup i guess no?
hansip87 said:
Oh yeah i forgot.. this trick will not work if you haven't done TA backup wouldn't it? :-/ I have done that before so i guess this idea won't work for anybody without TA backup i guess no?
Click to expand...
Click to collapse
flashing the TA partition and locking the bootloader, and then flashing a stock FTF base/firmware will make your device exactly how you bought it.. It will allow x-reality to work in both movies/album, as well as track ID working.
- This technique has been discussed in previous threads.
== Do a search and you will see there is a FTF flashing guide. flashtool guide both in the android development section.
A guide on just about everything in the general section... have a look...
However even an unlocked bootloader will allow the x-reality engine to work with videos. But will stop netflicks from working. So there are probably a few apps out there that need a locked bootloader to work properly.
To have a locked bootloader you need a stock kernel. It will need to be signed, so even a boot.img or kernel.sin would be fine. Just needs to be stock.
- You could Root, backup TA partition, unlock bootloader, and then lock bootloader again. But that still uses a rooting tool.
forgive me if I'm wrong (and someone correct me) but we cant do a TA back up without root.
When I was looking into the ZU the only way to root was to unlock the bootloader then flash a new boot.img (?), this avoided vroot et al, and the issues that we seem to have atm but did mean that the first to root lost their DRM keys (TA partition) with the rooting
blueether said:
forgive me if I'm wrong (and someone correct me) but we cant do a TA back up without root.
When I was looking into the ZU the only way to root was to unlock the bootloader then flash a new boot.img (?), this avoided vroot et al, and the issues that we seem to have atm but did mean that the first to root lost their DRM keys (TA partition) with the rooting
Click to expand...
Click to collapse
yep my bad.. wrong way round.. :good:
blueether said:
forgive me if I'm wrong (and someone correct me) but we cant do a TA back up without root.
When I was looking into the ZU the only way to root was to unlock the bootloader then flash a new boot.img (?), this avoided vroot et al, and the issues that we seem to have atm but did mean that the first to root lost their DRM keys (TA partition) with the rooting
Click to expand...
Click to collapse
You can downgrade to lower firmware anytime without root, than use vroot if you don't mind some risk, than backup TA

[Q] Relocking bootloader

I want to unlock the bootloader of my Z2 but I'm scared about relocking it with TA Backup. Has anyone tried it? If so, how did you do it?
insynchros said:
I want to unlock the bootloader of my Z2 but I'm scared about relocking it with TA Backup. Has anyone tried it? If so, how did you do it?
Click to expand...
Click to collapse
what? i dont exactly understand, here is some info to clear up some doubts or potentialy answer your question. ;D
if you had a backup of your TA restoring it will relock your bootloader
relocking your bootloader doesnt bring the contents of your TA partition
and for me relocking i used flashtool as i do not have a backup of my TA partition
relocking or unlocking your bootloader wipes your device data so backup your internal storage before doing
Envious_Data said:
what? i dont exactly understand, here is some info to clear up some doubts or potentialy answer your question. ;D
if you had a backup of your TA restoring it will relock your bootloader
relocking your bootloader doesnt bring the contents of your TA partition
and for me relocking i used flashtool as i do not have a backup of my TA partition
relocking or unlocking your bootloader wipes your device data so backup your internal storage before doing
Click to expand...
Click to collapse
you've answered my questions! thank you!

[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).

help with DRM keys

will DRM keys will be gone if i root my Z2 without unlocking bootloader?
if yes then can we get back the keys ?
Wolvym4 said:
will DRM keys will be gone if i root my Z2 without unlocking bootloader?
if yes then can we get back the keys ?
Click to expand...
Click to collapse
no you wont lose your DRM keys if you dont unlock bootloader, and in case you want to unlock it later you can always backup your TA partition for restoring it when you need. please see http://forum.xda-developers.com/showthread.php?t=2292598
but you definitely need root to backup your TA.

Categories

Resources