xperia, TA, keys - Sony Xperia XZ2 Questions & Answers

hi guys
I have a sony xperia xz2. Stock rom is on it.
I have wonderings about the TA partition. Im intented to use lineageos, to be a bit an ungafamnted phone. In the idea, I saw lately that unblock bootloader removes the TA keys (not partition?)
I unlocked it, but :
I still have the xperia stock rom
I had a message at startup saying bootloader is corrupted, but it starts stock rom anyway
in the "phone hidden menu", "suntory bloobs" is the only thing saying "error"
I never flashed anything on it yet.
I'd like to know :
is it possible to backup keys, in a way I dont see how unlock bootloader may wipe keys (as files on a specific partition?)?
what do I lose by going to LineageOS (except more privacy) regarding features/components
if it's possible to refresh to get new keys or regenerate one (with xperia companion?)
how could I check that keys are still alive (I dndt flashed anything), to backup them?
are they some users whom can describe if loss of keys are really shame or it's just a secondary issue?
thank you for feedback and answers

Related

[Q] Unlock bootloader wipes all data ?

Hello.
Im abit new to the forum but here goes.
Ive read tons of posts everywhere and there aint any exact answers anywhere to find.
In the past ive never known about the TA and DRM so happy as i am i just unlocked the bootloader on all the phones and still happy. The latest phone is the Xperia Z1. It has been abit buggy to say the least but im hoping software updates will cure this.
Anyway, i rooted my phone and unlocked the bootloader on the .681 firmware and now i am on .757 firmware. Using Doomlords kernel. I thought id check if i could backup my TA partition after unlocking the bootloader. And from what ive read its suppose to be wiped when you unlock the bootloader.
Well it was no problem backing up the TA partion. All files were there and it came out with no errors. So the question, how is this possible ?
I posted this same thing in General, sorry for that but i posted it here now so if a moderator finds this post in general then please delete it.
/Jonas740
If you Unlocked your Bootloader without Backup TA (DRM keys) first, then your DRM Keys are lost forever and you can Backup TA how much you want but there is no DRM Keys at all. The application to Backup TA do not give errors because you can backup partitions with or without DRM Keys, in the case you want switch between Locked and Unlocked Bootloader.
So long story short, you don't have DRM Keys, your warranty is lost forever, you cannot Update via OTA,PC Companion or SUS.
eclyptos said:
If you Unlocked your Bootloader without Backup TA (DRM keys) first, then your DRM Keys are lost forever and you can Backup TA how much you want but there is no DRM Keys at all. The application to Backup TA do not give errors because you can backup partitions with or without DRM Keys, in the case you want switch between Locked and Unlocked Bootloader.
So long story short, you don't have DRM Keys, your warranty is lost forever, you cannot Update via OTA,PC Companion or SUS.
Click to expand...
Click to collapse
The one time I had to use my warranty there was no problem with missing TA.
So there is hope for people without it
Sent from my C6903 using XDA Premium 4 mobile app
well.
HellRoot said:
The one time I had to use my warranty there was no problem with missing TA.
So there is hope for people without it
Sent from my C6903 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
dunno if the previous author saw what i wrote in my post but when i relocked my Xperia V using flashtool i could update with the pc companion or sony update or whats it called nowdays
And funny thing is, i actually have a case at Sony about this phone since i do have some issues with it but i think thats software related since ppl have been getting all sorts of errors from the KitKat firmwares. But i said how it was that i have unlocked bootloader and all that and she replied that my warranty was still valid and i could send it in for them to test it.
And i need to say this. Since sony posts an official way on their webpage, for ANYONE to read about how to unlock the bootloader and they also supply the code for unlocking it. Then i think it shouldnt affect the phone in any way or brake the warranty. (Sure it does say something about that, but all aint reading stuff like that). So if a developer wanted to unlock the phone. Why not have them contacting sony instead.
And surley, DRM keys (i just think sony shouldnt even bother having them) can be put back in if you let Sony do it. They put it there in the first place you know. And in the lovely electronic world we live in we all know that, if Sony can put thoose there, anyone could do it with the knowhow. But since the keys dont really mean anything, not that ive noticed you could really think about what use they actually do. And Sony knows that if ppl cant have the phone it was meant to be even with a unlocked bootloader, they will probably get some other phone or just whine hard enough so that Sony makes a software where everything works the same way with locked or unlocked. Camera stopped to work if you unlocked before 4.3 right ? What can you read about that like everywhere ? Loads of whining and Sony released a software that works just as good with locked or unlocked.
God damn this became a long post. So with this said im just saying. Why even bother in the first place having DRM keys if the rules dont apply anyway ? An everyday user doesent even need them either, he or she doesent even know what rooting or unlocking is anyway. And the ones that do know about it, also know about how to whine to get sony to fix the errors wich an unlock will produce
Jonas740 said:
dunno if the previous author saw what i wrote in my post but when i relocked my Xperia V using flashtool i could update with the pc companion or sony update or whats it called nowdays
And funny thing is, i actually have a case at Sony about this phone since i do have some issues with it but i think thats software related since ppl have been getting all sorts of errors from the KitKat firmwares. But i said how it was that i have unlocked bootloader and all that and she replied that my warranty was still valid and i could send it in for them to test it.
And i need to say this. Since sony posts an official way on their webpage, for ANYONE to read about how to unlock the bootloader and they also supply the code for unlocking it. Then i think it shouldnt affect the phone in any way or brake the warranty. (Sure it does say something about that, but all aint reading stuff like that). So if a developer wanted to unlock the phone. Why not have them contacting sony instead.
And surley, DRM keys (i just think sony shouldnt even bother having them) can be put back in if you let Sony do it. They put it there in the first place you know. And in the lovely electronic world we live in we all know that, if Sony can put thoose there, anyone could do it with the knowhow. But since the keys dont really mean anything, not that ive noticed you could really think about what use they actually do. And Sony knows that if ppl cant have the phone it was meant to be even with a unlocked bootloader, they will probably get some other phone or just whine hard enough so that Sony makes a software where everything works the same way with locked or unlocked. Camera stopped to work if you unlocked before 4.3 right ? What can you read about that like everywhere ? Loads of whining and Sony released a software that works just as good with locked or unlocked.
God damn this became a long post. So with this said im just saying. Why even bother in the first place having DRM keys if the rules dont apply anyway ? An everyday user doesent even need them either, he or she doesent even know what rooting or unlocking is anyway. And the ones that do know about it, also know about how to whine to get sony to fix the errors wich an unlock will produce
Click to expand...
Click to collapse
closed for being a duplicate.
use this link for other thread.
http://forum.xda-developers.com/showthread.php?t=2730169

[Q] What's wrong with my camera, HELP please

Hi
I am running stock 14.5.A.0.270, rooted and bootloader unlocked. Sony Xperia Z1
My camera app opens up, the camera button on the side of the phone even works. You push the capture area and front camera freezes and normal camera just shows me two buttons and won't do anything.
Please help I do not know what to do. There were a few other threads with a similar problem but I haven't found the resolution yet. Is it because bootloader is unlocked, I have read that I should restore the ta partition and relock my bootloader but I thought I will try here first.
I thought it would be fun rooting and flashing phones but so far just a big timewasting headache. I was on CM12.1 before , nightlies they were good but then it wouldn't recognise my sim card.
RR I tried but I got stuck on the bootloop.
Now I am back on a stock and my camera doesn't work
Help me please, I want to learn more
Many thanks for your time
Nooberoid said:
Hi
I am running stock 14.5.A.0.270, rooted and bootloader unlocked. Sony Xperia Z1
My camera app opens up, the camera button on the side of the phone even works. You push the capture area and front camera freezes and normal camera just shows me two buttons and won't do anything.
Please help I do not know what to do. There were a few other threads with a similar problem but I haven't found the resolution yet. Is it because bootloader is unlocked, I have read that I should restore the ta partition and relock my bootloader but I thought I will try here first.
I thought it would be fun rooting and flashing phones but so far just a big timewasting headache. I was on CM12.1 before , nightlies they were good but then it wouldn't recognise my sim card.
RR I tried but I got stuck on the bootloop.
Now I am back on a stock and my camera doesn't work
Help me please, I want to learn more
Many thanks for your time
Click to expand...
Click to collapse
Sorry I'm a bit late it seems but i had the exact same problem, camera wont focus and take pictures, video did still work depending on firmware but unfocused. Chances are your asking here because you lost your TA partition and DRM keys, which is most likely the cause
Solution:
make sure your phones bootloader is UNLOCKED
1. Grab flashtool
2. open Xperifirm via flashtool
3. look for 14.3.A.0.757 firmware (for journalists and media) (MUST be downloaded via xperifirm)
3. Download and unpack automatically, let flashtool do its thing til its ready
4. Relock your bootloader, DO NOT start your phone or touch your phone, keep it in flashmode
5. flash the firmware you just downloaded (14.3.A.0.757)
6. start your phone, camera SHOULD be working
7. Unlock bootloader and Flash any .ftf you like, tick EXCLUDE in the box that says .TA when you flash / if its available
8. Enjoy

Root, bootloader and returning a phone to sony

I'm having problems with the camera on my Z3C, so I'm planning on returning it to Sony for repairs. I'm aware that unlocking the bootloader reduces the quality of the camera, and this phone has had the bootloader unlocked to root it, but I'm pretty sure I've taken the right steps to restore the DRM keys and the phones back in factory condition, I'm just hoping someone can confirm I haven't missed something.
The phone was rooted originally using this guide http://forum.xda-developers.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343 . After rooting, the camera was still working fine, so don't think that was the problem.
I kept the DRM key backups generated by TA-restore. I have since restored those (just in case) and used sony companion to completely reset the phone. I understand that also gets rid of the root (superSU is definitely gone). This post http://forum.xda-developers.com/showpost.php?p=55920017&postcount=155 suggests you can check your DRM keys through the security bit of the service menu, and all eight of them say [key OK] [active], so I'm hoping those are ok to. I'm also assuming that as the DRM keys appear to be there the bootloader must be locked.
Is there anything I'm missing that Sony can make a fuss about when I return it? I've searched to try to make sure I've got everything, but I'm an amateur at this so I might well have misunderstood something. Don't want this costing me money!
Thanks for any help.
Hello
Can i return it to sony if the back is broken?

SOMC and Android Attest Keys From Another Device

I now have 2 XZ1 Compact devices.
1 has missing SOMC keys (DRM) and the other has missing Android Attest keys. This isn't really a problem but I'm just curious.
Could I take the TA-locked.img from the device with SOMC keys present and flash it to the device with them missing or would that also transfer the IMEI and/or other unique information?
Likewise would I take the keymaster64 files from the device with Android Attest key present and copy them to the device with them missing?
@j4nn
I'm a curious chap and up for testing stuff.
Thanks
@uultimaa, never flash TA from different phone - it would most likely get you a brick.
Using persist partition from different phone would not brick it but would not make the key working either.
You would only get the feeling that the key is present as shown in the security screen, but if you test with auditor from this thread, you would see it does not work in fact.
Thank you for stopping me before I did something stupid.
Are you concerned flashing TA-locked.img to another device would brick it because a root shell's required for operations on that partition and it can't be done from fastboot?
I gather the Android Attest key is practically useless on unlocked devices so I'd rather it be unprovisioned. Are you aware of anything else unique/useful in the persist partition that would make flashing it a bad idea?
I think I'll get a 3rd completely locked XZ1 Compact while they're still around. This phone's still the best and I'm concerned about where hardware key attestation is taking "smart" devices.
If you want me to test anything around TEE exploits or anything else I'm up for it.
Thanks
You will get hard brick without possibility to recover if you flash trim area from diferent phone!! If that happen but you have trim area backup you can recover phone ONLY with an emmc hardware tool by restoring trim area backup. If you don't have trim area backup and you brick you device than apsolutly no way to unbrick it, in that case you can by new mainboard. I'm learned leason with that I can tell you that.

[CLOSED] xperia, TA, keys?

hi guys
I have a sony xperia xz2. Stock rom is on it.
I have wonderings about the TA partition. Im intented to use lineageos, to be a bit an ungafamnted phone. In the idea, I saw lately that unblock bootloader removes the TA keys (not partition?)
I unlocked it, but :
I still have the xperia stock rom
I had a message at startup saying bootloader is corrupted, but it starts stock rom anyway
in the "phone hidden menu", "suntory bloobs" is the only thing saying "error"
I never flashed anything on it yet.
I'd like to know :
is it possible to backup keys, in a way I dont see how unlock bootloader may wipe keys (as files on a specific partition?)?
what do I lose by going to LineageOS (except more privacy) regarding features/components
if it's possible to refresh to get new keys or regenerate one (with xperia companion?)
how could I check that keys are still alive (I dndt flashed anything), to backup them?
are they some users whom can describe if loss of keys are really shame or it's just a secondary issue?
thank you for feedback and answers
@lm8lm8 Thread closed as duplicate of
xperia, TA, keys
hi guys I have a sony xperia xz2. Stock rom is on it. I have wonderings about the TA partition. Im intented to use lineageos, to be a bit an ungafamnted phone. In the idea, I saw lately that unblock bootloader removes the TA keys (not partition?)...
forum.xda-developers.com
Please review the XDA Forum Rules with special emphasis on rule no. 5 and post only ONCE! Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator

Categories

Resources