Relocking bootloader - Sony Xperia XZ1 Compact Questions & Answers

Hi there everyone, i would like to get my phone to the brand new state. Currently it has unlocked bootloader, latest stock firmware and it is rooted. I also have a backup image of TA partition(BL Locked). Do i need to do anything else than flashing stock firmware and TA partition to preseve all the fuctionality (especially fully working camera)? Will it be possible to unlock the bootloader once again in the future after performing this?

maciek12 said:
Hi there everyone, i would like to get my phone to the brand new state. Currently it has unlocked bootloader, latest stock firmware and it is rooted. I also have a backup image of TA partition(BL Locked). Do i need to do anything else than flashing stock firmware and TA partition to preseve all the fuctionality (especially fully working camera)? Will it be possible to unlock the bootloader once again in the future after performing this?
Click to expand...
Click to collapse
Restoring the TA restores DRM functions, it doesn't relock the BL, which you can't, hence why there are no threads relating to locking the BL of the XZ1 Compact.

SXUsr said:
Restoring the TA restores DRM functions, it doesn't relock the BL, which you can't, hence why there are no threads relating to locking the BL of the XZ1 Compact.
Click to expand...
Click to collapse
Thanks. It’s a shame though

Related

restore DRM keys after unlocking Bootloader

Is it possible to restore DRM keys after unlocking BL? I have taken the backup of TA partition. Now after unlocking the BL can I restore the partition? Or it will brick the phone if BL is in unlocked state?
I did it this way first i flashed the stock firmware with flashtool in my case Xperia_SP_C5303_12.0.A.1.257_CE.ftf.
Than i rooted the phone with Doomlords Easy Rooing Kit v16.
I got no soft brick after i restored the TA, done before unlocking with BackupTA 9.0b5 and sure i did a dry run before i performed it.
Ehardt said:
I did it this way first i flashed the stock firmware with flashtool in my case Xperia_SP_C5303_12.0.A.1.257_CE.ftf.
Than i rooted the phone with Doomlords Easy Rooing Kit v16.
I got no soft brick after i restored the TA, done before unlocking with BackupTA 9.0b5 and sure i did a dry run before i performed it.
Click to expand...
Click to collapse
No, no, mate, you missed the point. I want to know if restoring TA is safe with an unlocked BL.
EDIT: sadly, I know now that restoring the TA would actually relock the BL as well, and if there's a custom kernel installed it might result in soft brick. so I conclude there's no way to have DRM keys with unlocked BL. :crying:
dhiman33 said:
No, no, mate, you missed the point. I want to know if restoring TA is safe with an unlocked BL.
EDIT: sadly, I know now that restoring the TA would actually relock the BL as well, and if there's a custom kernel installed it might result in soft brick. so I conclude there's no way to have DRM keys with unlocked BL. :crying:
Click to expand...
Click to collapse
Oh sorry, yes i also think this is not possible at the moment.
So you have to decide DRM or unlocked (custom Kernels).

[Q] Unlock bootloader and camera question

Hi guys I'm considering to purchase the Z1 beocz I lose my precious Xperia S a week ago :crying: (very very sad, really love it)
As I'm those type who will definitely root the device and probably unlock it some time later, I really care about the camera problem.
I read the the DoomLord thread which told us to backup the "TA" thing before unlocking the bootloader, so we can restore it and have the camera working again.
May I ask what the "TA" actually is?? how can I backup that thing??
So after I retore it, is the bootloader still unlocked??
If i screw up the TA thing, can I relock the bootloader and save the camera by the official repair function in Sony Update Service??
Sorry I'm noobish but plz explain these things to me thank you!!
BTW, are there something i should consider before i buy the phone?? Is it the right time to buy it??
thank you
Its a partition on the device called trim area.
There is a thread about backing it up and its very easy to do.
If you do not have a TA backup then relocking the bootloader will NOT fix the camera.
Also, do not restore someone elses TA it will hard brick your phone
gregbradley said:
Its a partition on the device called trim area.
There is a thread about backing it up and its very easy to do.
If you do not have a TA backup then relocking the bootloader will NOT fix the camera.
Also, do not restore someone elses TA it will hard brick your phone
Click to expand...
Click to collapse
How if I repair the phone with update service after relocking the BL?
And after I restore the TA, is the bootloader still unlocked??
I'm wondering if there's possible to keep both bootloader unlocked and the 20mp camera working...
KWOKSFUNG said:
How if I repair the phone with update service after relocking the BL?
And after I restore the TA, is the bootloader still unlocked??
I'm wondering if there's possible to keep both bootloader unlocked and the 20mp camera working...
Click to expand...
Click to collapse
Restoring TA relocks the bootloader
There is no way to have an unlocked bootloader and working stock camera
I'm getting a little confused!
After rooting + custom recovery + custom ROM, can I restore my TA to get the camera back? Obviously would like to keep root and the custom ROM.
Sent from my Nexus 4 using Tapatalk
amm009uk said:
I'm getting a little confused!
After rooting + custom recovery + custom ROM, can I restore my TA to get the camera back? Obviously would like to keep root and the custom ROM.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Depends on whether the custom ROM requires an unlocked bootloader. Some custom ROMs don't need your bootloader to be unlocked. So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still unlocked and your camera is still working.
But if the custom ROM requires an unlocked bootloader, then restoring the TA will result in the bootloader being relocked, which means your ROM no longer working.
Someone correct me if I'm wrong.
hush66 said:
Depends on whether the custom ROM requires an unlocked bootloader. Some custom ROMs don't need your bootloader to be unlocked. So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still unlocked and your camera is still working.
But if the custom ROM requires an unlocked bootloader, then restoring the TA will result in the bootloader being relocked, which means your ROM no longer working.
Someone correct me if I'm wrong.
Click to expand...
Click to collapse
you mr are just spot on.. absolutely correct.
hush66 said:
Depends on whether the custom ROM requires an unlocked bootloader. Some custom ROMs don't need your bootloader to be unlocked. So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still unlocked and your camera is still working.
But if the custom ROM requires an unlocked bootloader, then restoring the TA will result in the bootloader being relocked, which means your ROM no longer working.
Someone correct me if I'm wrong.
Click to expand...
Click to collapse
Fantastic thanks. Hope Sony get round to fixing this soon.
Sent from my Nexus 4 using Tapatalk
hush66 said:
Depends on whether the custom ROM requires an unlocked bootloader. Some custom ROMs don't need your bootloader to be unlocked. So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still unlocked and your camera is still working.
But if the custom ROM requires an unlocked bootloader, then restoring the TA will result in the bootloader being relocked, which means your ROM no longer working.
Someone correct me if I'm wrong.
Click to expand...
Click to collapse
u mean " So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still [[[locked]]] and your camera is still working " ? other than that thnx u clarified things up to me so much
noobs master said:
u mean " So that means you can still have root + custom recovery (which don't need unlocked bootloader) + custom ROM, and your bootloader is still [[[locked]]] and your camera is still working " ? other than that thnx u clarified things up to me so much
Click to expand...
Click to collapse
Basically you can only use roms based on official firmware for now (and have a working camera) afaik. All the roms in the original development area (based on AOSP, custom kernels) required unlocked bootloader and as a result have a non-working camera.

How to relock bootloader without TA backups.. Android 4.3.. Please help mr

Sent from my C6903 using xda app-developers app
Nuwan75n said:
Sent from my C6903 using xda app-developers app
Click to expand...
Click to collapse
it is possible to lock it without a backup, is your camera not working anymore ?
You can try flashtool, BLU option tries to relock it if it's unlocked, theres a good chance you will brick your device!
Have fun
Sent from my C6903 using Tapatalk
AntiDroid said:
it is possible to lock it without a backup, is your camera not working anymore ?
Click to expand...
Click to collapse
Are you sure this is good and/or informative advice? I thought a locked bootloader not finding valid keys in the TA will refuse to ever function usefully again - no boot, no fastboot, no flashmode, nothing, totally bricked, and no way to convert it back to unlocked and get your phone back.
I would like to know if I am wrong about any of that. And... it seems that I was:
** Correction - it is Ok to relock the bootloader without having the pre-unlock data in the TA partition
** Flashing in data from any other TA partition (some other phone) seems certain to brick the phone though.
n0bleINtP said:
Are you sure this is good and/or informative advice? I thought a locked bootloader not finding valid keys in the TA will refuse to ever function usefully again - no boot, no fastboot, no flashmode, nothing, totally bricked, and no way to convert it back to unlocked and get your phone back.
I would like to know if I am wrong about any of that.
Click to expand...
Click to collapse
I've never read about those damages but I read things like the known camera bug.
I unlocked my Z1 on .290 - the Sony release which fixed the problem (4.3). I flashed a Recovery and rooted it with it and my device is working like it was with a "untouched" ROM.
That's all I know.
We could wait for a dev to answer deeper questions.
AntiDroid said:
I unlocked my Z1 on .290 - the Sony release which fixed the problem (4.3).
Click to expand...
Click to collapse
Yes this absolutely fine and is what I did with my Z1, ie do not unlock until after the 290 update is applied - you will see that advice on the Sony unlock website. However if you want a TA backup you need to do that before unlocking as the unlock process will wipe the keys, and you also need root in order to make that copy. (let me know if I am wrong about that)
My process was to root on earlier firmware, copy the TA, update to .290, then unlock. After unlocking full root on .290 is easy with a custom kernel and everything is good: unlocked, rooted *and* working camera.
But you *will* need a copy of the pre-unlock TA partition to regain any of the functions that use the DRM keys if you decide to relock the bootloader later.
It is impossible to get the DRM keys back, and there is no gain from relocking without them, all you're doing is locking down the bootloader without enabling BIONZ, etc, but you can certainly run a stock system if you want.
n0bleINtP said:
Yes this absolutely fine and is what I did with my Z1, ie do not unlock until after the 290 update is applied - you will see that advice on the Sony unlock website. However if you want a TA backup you need to do that before unlocking as the unlock process will wipe the keys, and you also need root in order to make that copy. (let me know if I am wrong about that)
My process was to root on earlier firmware, copy the TA, update to .290, then unlock. After unlocking full root on .290 is easy with a custom kernel and everything is good: unlocked, rooted *and* working camera.
But you *will* need a copy of the pre-unlock TA partition to regain any of the functions that use the DRM keys if you decide to relock the bootloader later.
Click to expand...
Click to collapse
Hello, yesterday I downgraded to rooteable 4.2.2 rom in order to backup TA partition. Once I had backup, I updated to 4.3 (290) and unlocked bootloader, then flashed recovery. With recovery was easy to flash superSu. Now I have "stock" rom with root and unlocked bootloader, but I realized that x-reality wasn't warking anymore (because of the DRM keys loss).
I tried to recover TA partition, but I caused a soft-brick, wich I only could solve flashing a 290 ftf through flashtool, but I lost root. My question is: It is possible to have root and DRM keys (TA partition restored)??
Thank you very much.
yanbee said:
Hello, yesterday I downgraded to rooteable 4.2.2 rom in order to backup TA partition. Once I had backup, I updated to 4.3 (290) and unlocked bootloader, then flashed recovery. With recovery was easy to flash superSu. Now I have "stock" rom with root and unlocked bootloader, but I realized that x-reality wasn't warking anymore (because of the DRM keys loss).
I tried to recover TA partition, but I caused a soft-brick, wich I only could solve flashing a 290 ftf through flashtool, but I lost root. My question is: It is possible to have root and DRM keys (TA partition restored)??
Thank you very much.
Click to expand...
Click to collapse
No, never.
Just2Cause said:
No, never.
Click to expand...
Click to collapse
So, apart from losing x-reality and some Sony apps functionalities (which I dont care). Do you lose something else? I heard about losing bionz processor, but camera still works, then I dont know how far this is true.
The incompatibility problem of root and restored TA partition, is because flashing recovery (which modifies kernel) or supersu.apk it self?
Thank you VERY much!
You loose bionz, but not x-reality. I unlocked my bootloader and I have x-relity enabled.
Some ROMs won't have working camera, for example: android 4.4 KitKat ported from xperia z ultra GPe, and some other ROMs.
Just2Cause said:
You loose bionz, but not x-reality. I unlocked my bootloader and I have x-relity enabled.
Some ROMs won't have working camera, for example: android 4.4 KitKat ported from xperia z ultra GPe, and some other ROMs.
Click to expand...
Click to collapse
I can see that the x-reality option is still on menu, and you can enable/disable it, but it doesn't work. Before, I could see in the first second of picture showing how x-reality improves the image (its an effect that can be seen with the naked eye), this is not happening now. By the way, its for sure that bionz stop working? How could I take pictures without it?
Thank you
yanbee said:
I can see that the x-reality option is still on menu, and you can enable/disable it, but it doesn't work. Before, I could see in the first second of picture showing how x-reality improves the image (its an effect that can be seen with the naked eye), this is not happening now. By the way, its for sure that bionz stop working? How could I take pictures without it?
Thank you
Click to expand...
Click to collapse
Not sure about bionz, but I guessed it as I had the x-relity option enabled. I can't tell if it works or not as I don't have camera (I'm using ported 4.4)
It would be nice of someone confirmed it.
Correct me if i am wrong.
Bionz is a service which improves the pictures after a shot, isn't it ?
Bionz and X-Reality are things u can't detect that easy like "oh that effect is from X-Reality" or something else.
I thought the main reason for not working cameras on other roms was that the dev's didn't apply those 4.3 changes :S
AntiDroid said:
Correct me if i am wrong.
Bionz is a service which improves the pictures after a shot, isn't it ?
Bionz and X-Reality are things u can't detect that easy like "oh that effect is from X-Reality" or something else.
I thought the main reason for not working cameras on other roms was that the dev's didn't apply those 4.3 changes :S
Click to expand...
Click to collapse
Bionz it's a image processor that includes xperia Z1, it process the pictures taken instead the cpu. I dont know if it's easy to detect if it's working or not. But in the case of x-reallity it's very simple, when you open a picture in Sony gallery app, you can see how the picture "improves" quality in the first second. It is no so evident in all pictures, but can be detected by a naked eye, as I do.
My only doubt is about bionz processor, I already know that I loss x-reality. But I want to be SURE if bionz processing is also lost. I want to have full root (with unlocked bootloader), and have bionz enabled. I dont care x-reality or Sony apps.
Thank you very much
Just2Cause said:
No, never.
Click to expand...
Click to collapse
Not true. If you have a TA backup, install .290, unlock bootloader, install a recovery, root, reflash stock boot partition, restore TA partition, you will end up with a booting, rooted, .290 installation.
Rekoil said:
Not true. If you have a TA backup, install .290, unlock bootloader, install a recovery, root, reflash stock boot partition, restore TA partition, you will end up with a booting, rooted, .290 installation.
Click to expand...
Click to collapse
Are you sure about that? :fingers-crossed:
Just2Cause said:
Are you sure about that? :fingers-crossed:
Click to expand...
Click to collapse
I did that and it worked
Sent from my iPad Air using Tapatalk
Rekoil said:
Not true. If you have a TA backup, install .290, unlock bootloader, install a recovery, root, reflash stock boot partition, restore TA partition, you will end up with a booting, rooted, .290 installation.
Click to expand...
Click to collapse
jjpro45 said:
I did that and it worked
Tapatalk
Click to expand...
Click to collapse
Thank you VERY much!!! Could someone tell me how to reflash boot partition only?? The TA partition which I must restore, could be restored in 290 if backups comes from 534?

How to root on an unlocked bootloader?

My Xperia Z1 has an unlocked bootloader and the TA partition was backed up prior to the unlock. I'm now looking to sell the phone and want to restore the TA and relock the bootloader. I've flashed the phone with build number 14.2.A.1.136 and the stock rom isn't rooted. How can I root the phone and thereby restore the TA backup/relock the bootloader?
I would install recovery, then flash SuperSu update, Restore TA and lock BL This may will leave you with a non booting Z1, I would then reflash the FTF
I have never done this (and only have the ZU) so it is untested. If there is a better way please say so.

DRM Keys

If i make a TA Backup, will i be good to go with rooting and all that stuff without having to worry about anything?
With a backup, will i always be able to downgrade/upgrade to any custom firmware/original firmware, and or use kernels and stuff.
Unlock/Lock Bootloader.
Can i always go back to stock phone with drm keys and lock bootloader making it 100% factory stock?
And can i have a rooted device with unlocked bootloader + the drm functions working?
Gnubaver said:
If i make a TA Backup, will i be good to go with rooting and all that stuff without having to worry about anything?
With a backup, will i always be able to downgrade/upgrade to any custom firmware/original firmware, and or use kernels and stuff.
Unlock/Lock Bootloader.
Can i always go back to stock phone with drm keys and lock bootloader making it 100% factory stock?
And can i have a rooted device with unlocked bootloader + the drm functions working?
Click to expand...
Click to collapse
The answer of all of your concerns is yes and yes you can always go to 100% factory state with your ta backed up ......
Assuming you will not mess up in flashing roms............
Are you sure? Cause what ive heard is, that you may backup your TA, but the DRM-Keys will remain forever lost.
For further information, this Thread questions the consequences of loosing DRM-Keys
Xecu said:
Are you sure? Cause what ive heard is, that you may backup your TA, but the DRM-Keys will remain forever lost.
For further information, this Thread questions the consequences of loosing DRM-Keys
Click to expand...
Click to collapse
Does not making a backup of TA = Backup DRM Keys.
And how can you screw up flashing roms?
Yes.
"And can i have a rooted device with unlocked bootloader + the drm functions working?"
Not sure about that, what I know if you Unlock Bootlader the DRM Keys are lost and they do not working. Anyway if you have Backup TA you can go back to Stock with functionally DRM Keys.
Downgrade to 4.2.2, root via vroot and use ta backup and you good to go. Did the same.
Sent from my C6902 using Tapatalk
eclyptos said:
Yes.
"And can i have a rooted device with unlocked bootloader + the drm functions working?"
Not sure about that, what I know if you Unlock Bootlader the DRM Keys are lost and they do not working. Anyway if you have Backup TA you can go back to Stock with functionally DRM Keys.
Click to expand...
Click to collapse
So I got something confused there. Good to know that I can always revert to pure stock.
Xecu said:
Are you sure? Cause what ive heard is, that you may backup your TA, but the DRM-Keys will remain forever lost.
For further information, this Thread questions the consequences of loosing DRM-Keys
Click to expand...
Click to collapse
Wrong. If you backed up your TA partition before you FIRST unlocked your bootloader, then your DRM keys are fine within the TA backup.
Test this if you like by downgrading to 4.2.2 WITHOUT restoring TA. Your camera will not focus etc etc
Now restore TA and as if by magic, everything is fine again (though your bootloader will be relocked)

Categories

Resources