[noob question] unlocking the bootloader - Sony Xperia XZ Questions & Answers

Hi all.
I've got my XZ since one week now, and I'm missing the possibilities of rooting my device.
My Z2 was LB, so I never could ever try to unlock my bootloader. therefore, I don't know anything about it.
I've read a lot of thread here and there, and some points are not that clear to me.
Will the procedure of unlocking the bootloader erase everything in the phone (like photos, contacts, etc...)?
Unlocking the bootloader will kill the DRM keys forever, if I understood well. but flashing Androplus Kernel will recover them, right?
Is it possible to relock the booltloader after? if yes, will the DRM keys be restored?
Last thing, to be sure of what I should do.
1-unlock the bootloader with IMEI via sony site.
2-install TWRP via adb command
3-flash Androplus kernel.
Am I right, or do I miss something?
Thanks for your help, and sorry for the noobish questions.

sensei_sai said:
Hi all.
I've got my XZ since one week now, and I'm missing the possibilities of rooting my device.
My Z2 was LB, so I never could ever try to unlock my bootloader. therefore, I don't know anything about it.
I've read a lot of thread here and there, and some points are not that clear to me.
Will the procedure of unlocking the bootloader erase everything in the phone (like photos, contacts, etc...)?
Unlocking the bootloader will kill the DRM keys forever, if I understood well. but flashing Androplus Kernel will recover them, right?
Is it possible to relock the booltloader after? if yes, will the DRM keys be restored?
Last thing, to be sure of what I should do.
1-unlock the bootloader with IMEI via sony site.
2-install TWRP via adb command
3-flash Androplus kernel.
Am I right, or do I miss something?
Thanks for your help, and sorry for the noobish questions.
Click to expand...
Click to collapse
Hey sensei_sai,
Im unsure if unlocking will erase your data but its always best to backup everything in the internal memory just in case something goes wrong.
Androplus will NOT recover your DRM keys but kernels with DRM fixes try to replicate the features that are permanently lost as a result of unlocking your boot-loader.
In the future it may be possible for you to re-lock the boot-loader but even then this wont restore DRM keys, the only way to restore DRM keys would be to back up your TA partition (This contains your DRM keys) before you unlock your boot-loader but to do this you need root access with your boot-loader still locked.
How to backup TA
Unfortunately at this time nobody has figured out a way to get root with a locked boot-loader although a newly found exploit (Dirty cow) may help us do this very soon so if you care about re-locking and keeping your DRM keys I advise waiting until a locked boot-loader root solution is around!

Sonic Dash said:
Hey sensei_sai,
Im unsure if unlocking will erase your data but its always best to backup everything in the internal memory just in case something goes wrong.
Androplus will NOT recover your DRM keys but kernels with DRM fixes try to replicate the features that are permanently lost as a result of unlocking your boot-loader.
In the future it may be possible for you to re-lock the boot-loader but even then this wont restore DRM keys, the only way to restore DRM keys would be to back up your TA partition (This contains your DRM keys) before you unlock your boot-loader but to do this you need root access with your boot-loader still locked.
How to backup TA
Unfortunately at this time nobody has figured out a way to get root with a locked boot-loader although a newly found exploit (Dirty cow) may help us do this very soon so if you care about re-locking and keeping your DRM keys I advise waiting until a locked boot-loader root solution is around!
Click to expand...
Click to collapse
Thanks for your reply.
Too bad for the TA partition.
So we have two possibilities. Take the risk of loose some features forever, but benefit of the root or wait till someone make some magic to use an exploit to obtain root without unlocking the bootloader.
Risk and go... Or wait and safe... Dilemma...
Sent from my Xperia XZ

I think that the era of DRM lock is over, we've been using DRM fixes for all the latest xperia phones, the dirty cow is a bad exploit and it's more dangerous than useful.
I was unsure about unlocking the bootloader but now that I did it, I rooted and I regret nothing, the only downside of unlocking is the warranty loss, but who cares as long as the phone doesn't magically explode.

Venom71 said:
I think that the era of DRM lock is over, we've been using DRM fixes for all the latest xperia phones, the dirty cow is a bad exploit and it's more dangerous than useful.
I was unsure about unlocking the bootloader but now that I did it, I rooted and I regret nothing, the only downside of unlocking is the warranty loss, but who cares as long as the phone doesn't magically explode.
Click to expand...
Click to collapse
Good point for you... I think i will take the risk.
Sent from my Xperia XZ

I'm about to....

sensei_sai said:
Good point for you... I think i will take the risk.
Sent from my Xperia XZ
Click to expand...
Click to collapse
caqo71 said:
I'm about to....
Click to expand...
Click to collapse
OK, so did the bootloader unlock erase your data? Did you use the sony way or Flashtool?

I wrote a complete guide just here : https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
Please use the search

nathan30 said:
I wrote a complete guide just here : https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
Please use the search
Click to expand...
Click to collapse
Thank you, I've seen that guide, seems like it's not possible to unlock bootloader without factory reset.

tempurastyle said:
Thank you, I've seen that guide, seems like it's not possible to unlock bootloader without factory reset.
Click to expand...
Click to collapse
Yes, it's not possible

tempurastyle said:
Thank you, I've seen that guide, seems like it's not possible to unlock bootloader without factory reset.
Click to expand...
Click to collapse
Yes, but it worth it!! Save all your datas and go for it!

Related

[Q] Restore someone else's TA, to get bootloader unlock allowed: Yes

Hello guys,
I have read thru somethreads outside of our phone's forum, and found some people restoring TA's from phones that allow bootloader unlocking, and was thinking if it's safe to do the same with our XL.
I understand there are certain modifications that have to be done.
Thanks in Advanced!
P.S. Searched the forums of the XL, but I didn't find anything with this matter, sorry if it has bean brought up.
If you forgot to backup your TA like me see this thread
http://forum.xda-developers.com/showthread.php?t=2604484&goto=newpost
As stated above, yes it's possible.
But you don't get your DRM keys back, thus your warranty is still voided.
Re-expressing my question
Joery360 said:
As stated above, yes it's possible.
But you don't get your DRM keys back, thus your warranty is still voided.
Click to expand...
Click to collapse
I must have expressed myself wrong.
I have my TA backup, but i have not unlocked my bootloader, because my unlocking status is NOT ALLOWED, yet my question is, if I can use a TA backup from another phone that has a bootloader unlock allowed: YES, so I can transfer this status to my device, therefor allowing me to unlock my bootloader.
Regards.
rguilamo said:
I must have expressed myself wrong.
I have my TA backup, but i have not unlocked my bootloader, because my unlocking status is NOT ALLOWED, yet my question is, if I can use a TA backup from another phone that has a bootloader unlock allowed: YES, so I can transfer this status to my device, therefor allowing me to unlock my bootloader.
Regards.
Click to expand...
Click to collapse
As far as I know its not possible to unlock your bootloader if unlocking is not allowed.
But you might want to take a look here. It's CWM for locked bootloaders.
If you really want to unlock you should consider selling your phone and buying a Xperia L where's unlocking allowed (mostly sim lock free phones)
There might be a risk of hard bricking of your phone if you restore someone else's TA backup
Sent from my C2104 using Tapatalk
rguilamo said:
I must have expressed myself wrong.
I have my TA backup, but i have not unlocked my bootloader, because my unlocking status is NOT ALLOWED, yet my question is, if I can use a TA backup from another phone that has a bootloader unlock allowed: YES, so I can transfer this status to my device, therefor allowing me to unlock my bootloader.
Regards.
Click to expand...
Click to collapse
did u attempt? what was the result?
pls kindly let us know. if u conform....imtoo thinking for it.
Don't try messing with TA backup or you will end up bricking the device and i am talking about hardbrick. If you restore someone else TA backup your mobile won't boot up and you won't be able to flash FTF again.

WinDroid Toolkit Support (Test Build!)

I'm working on adding support for the Xperia Z5 to the WinDroid Universal Android Toolkit, but I don't have an Xperia to test everything I need. Can someone confirm if "fastboot getvar imei" actually returns the IMEI? I may also need some testers in the near future once everything has been coded. Thanks!
I only get back:
imei:
not the value of the IMEI
br
stiffmeister75 said:
I only get back:
imei:
not the value of the IMEI
br
Click to expand...
Click to collapse
Thanks, that's what I was afraid of. This means there's no easy way to get the IMEI through ADB or Fastboot, which makes the coding a little harder. I'll just have to work around that.
I've added support for the Xperia Z5 in my toolkit, and I'd appreciate if a few people could test it out and confirm that it actually unlocks, flashes and roots correctly.
will be glad to test but I have LB
jacker60 said:
will be glad to test but I have LB
Click to expand...
Click to collapse
The toolkit helps you unlock your bootloader and restore your DRM keys so you don't lose any important features.
Rapscallion16 said:
The toolkit helps you unlock your bootloader and restore your DRM keys so you don't lose any important features.
Click to expand...
Click to collapse
Hello
It the tool compatible with E6603?
ChristianLetti said:
Hello
It the tool compatible with E6603?
Click to expand...
Click to collapse
Yes, it should support all versions of the Z5.
Thanks, will test it as soon as I get home.
hello Rapscallion16
i have the z5 and i want to trie windroid but if i download your app it wil not work windows does not reconise wat format it is
fase said:
hello Rapscallion16
i have the z5 and i want to trie windroid but if i download your app it wil not work windows does not reconise wat format it is
Click to expand...
Click to collapse
It's an exe. It looks like the upload messed up the file extension. I fixed the link so it'll download correctly.
Rapscallion16 said:
The toolkit helps you unlock your bootloader and restore your DRM keys so you don't lose any important features.
Click to expand...
Click to collapse
Am i missing something here? The toolkit roots the phone without unlocking the bootloader first? How are you backing up the DRM keys???
ptmaniac said:
Am i missing something here? The toolkit roots the phone without unlocking the bootloader first? How are you backing up the DRM keys???
Click to expand...
Click to collapse
The toolkit unlocks the bootloader, flashes TWRP, then pushes SuperSU, a rooted boot image and the Restore DRM zip that someone released which mimics the DRM keys. I'm hoping someone can confirm that it's all working correctly before I officially release it.
Rapscallion16 said:
The toolkit unlocks the bootloader, flashes TWRP, then pushes SuperSU, a rooted boot image and the Restore DRM zip that someone released which mimics the DRM keys. I'm hoping someone can confirm that it's all working correctly before I officially release it.
Click to expand...
Click to collapse
Ok, i understand, but since it unlocks bootloader first you should warn users that the DRM keys will be gone forever. Yes the restore drm zip should bring some of the functionality back but the device keys themselves are gone for good (you might need them for warranty or something...)
If i ever make the jump to z5 i want to be able to backup the drm keys, that's why i've been checking around here
You toolkit does seems nice, makes unlocking BL and setting up recovery & root very easy. If i had a z5 and was willing to sacrifice keys i would use it :good:
Rapscallion16 said:
The toolkit helps you unlock your bootloader and restore your DRM keys so you don't lose any important features.
Click to expand...
Click to collapse
Unfortunately my phone is not allowed to unlock bootloader
Tested and working
E6653
Takes a lot of time
i used windroid to unlock my bootloader, it takes more than 4 hours. is it normal? or am i missing something?.
Also could you please give me the full instruction please.
Thanks...

[Question][Request] Root for F8332 stock without unlocking BL?

Just as mentioned above. I dont mind waiting but just wanna ask is there anybody able to get it already? I've done some google, some pages offer a very 'detailed' instructions like just install TWRP using fastboot method then flash the SuperSU binary then bingo!! Some others state unlocking BL is required. Since to me xda is the only reliable source so I guess I will be looking for answers here.
Cheers
since the Z3+ and newer devices, root with lock bootloader is impossible at least for now.
btw, unlock bootloader is so easy for root, why not? Warranty?
tommy1616 said:
since the Z3+ and newer devices, root with lock bootloader is impossible at least for now.
btw, unlock bootloader is so easy for root, why not? Warranty?
Click to expand...
Click to collapse
Well... DRM keys thing is what i concern. AFAIK im gonna have to give up some features if i lose it so...
Btw it'd be appreciated if u could share some posts about re-locking bootloader and backing up/restoring DRM keys, especially for this new Xperia XZ.
boydzethuong said:
Well... DRM keys thing is what i concern. AFAIK im gonna have to give up some features if i lose it so...
Btw it'd be appreciated if u could share some posts about re-locking bootloader and backing up/restoring DRM keys, especially for this new Xperia XZ.
Click to expand...
Click to collapse
This kernel have DRM Patch
http://forum.xda-developers.com/xperia-xz/development/kernel-andropluskernel-v01-t3475240
But.... If unlocked bootloader, DRM keys well loss
and no backup way in marshmallow with no root at the least
tommy1616 said:
This kernel have DRM Patch
http://forum.xda-developers.com/xperia-xz/development/kernel-andropluskernel-v01-t3475240
But.... If unlocked bootloader, DRM keys well loss
and no backup way in marshmallow with no root at the least
Click to expand...
Click to collapse
That's what im worrying haha. Guess i'll wait, patiently, for a talent shows up
Someone just pls pls find a way to have it rooted without unlocking BL, or just a way to back up TA BEFORE unlocking for the sake of DRM keys sh!t then nothing would stop me from enjoying root
boydzethuong said:
That's what im worrying haha. Guess i'll wait, patiently, for a talent shows up
Someone just pls pls find a way to have it rooted without unlocking BL, or just a way to back up TA BEFORE unlocking for the sake of DRM keys sh!t then nothing would stop me from enjoying root
Click to expand...
Click to collapse
I've been waiting for over 3mths for some progress on backing up the ta keys on all the x range(I have the xa) I don't see it ever happening to be honest and I've made the mistake of loosing ta keys before I won't be doing it again.
Sent from my Xperia XA using XDA Labs

Bootloader relock

Any one know how to relock the bootloader for a xperia xpz?
If you unlocked because you wanted root or custom firmware and lost the sony features for camera and want to revert back. You cannot do so until there is an drm fix or if you had your ta backed up. relocking will do nothing.
CKkio23 said:
If you unlocked because you wanted root or custom firmware and lost the sony features for camera and want to revert back. You cannot do so until there is an drm fix or if you had your ta backed up. relocking will do nothing.
Click to expand...
Click to collapse
I know but maybe i can go through the warranty
Let1107 said:
I know but maybe i can go through the warranty
Click to expand...
Click to collapse
What warranty? As soon as u unlocked the bootloader the warranty is no longer valid as per the terms and conditions u read when u done it
But when you do backup of DRM keys first of course if it possible. And restore them before give Phone on warranty. And relock bootloader warrianty will be works. But if you lose DRM key without backup. The bootloader not be relock.
CKkio23 said:
If you unlocked because you wanted root or custom firmware and lost the sony features for camera and want to revert back. You cannot do so until there is an drm fix or if you had your ta backed up. relocking will do nothing.
Click to expand...
Click to collapse
So, is it possible at this moment to backup the DRM keys?
Legdotus said:
So, is it possible at this moment to backup the DRM keys?
Click to expand...
Click to collapse
No
Oh well, let's hope they find a god damn way to do it. Using an unrooted phone is so uncool.
Mackay53 said:
No
Click to expand...
Click to collapse
Actually, idk if this will work bc it doesnt use 'real' drm keys, but theres always this: https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672 - yall know if it will work? (pls dont be rude or anything just trying to help)
b_rad42 said:
Actually, idk if this will work bc it doesnt use 'real' drm keys, but theres always this: https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672 - yall know if it will work? (pls dont be rude or anything just trying to help)
Click to expand...
Click to collapse
There's a hack/mod here that offers a DRM fix, but no DRM restoration. https://forum.xda-developers.com/xz...hack-mod-sony-xperia-xz-premium-twrp-t3695171
Basically we can root now. I think you can just relock the bootloader (to remove the unlocked message on boot thing) if you're going to send your device in for repairs.
Thread cleaned.
iArvee said:
I think you can just relock the bootloader (to remove the unlocked message on boot thing) if you're going to send your device in for repairs.
Click to expand...
Click to collapse
No, that required the keys which are lost forever.
FartyParty said:
No, that required the keys which are lost forever.
Click to expand...
Click to collapse
Ah, I stand corrected then. What happens if you DO try to relock the bootloader? It will simply fail? Or brick the phone?
iArvee said:
Ah, I stand corrected then. What happens if you DO try to relock the bootloader? It will simply fail? Or brick the phone?
Click to expand...
Click to collapse
Nothing.

Unlocked the BL without backing up TA Partition on my XA2 ULTRA..! Any suggestions ?

I know about the TA partition containing the DRM keys and backing it up from my previous XPERIA PHONES experience. However this time, I just unlocked the BL without thinking about TA backup :crying:. I tried to find some forums on it for XA2 ULTRA, but there is no specific well detailed thread on TA Partition backup for XA2 ULTRA. So what is the deal now? Have I lost my DRM keys + official SONY WARRANTY?:silly: Is there any workaround of restoring these DRM KEYS + TA partition? Shall I root first before doing so or anything else?
As far as I know, once you unlock the bootloader, they're gone and there's no way to get them back, but also you're not missing much, but you are definitely no longer in warranty.
roirraW "edor" ehT said:
As far as I know, once you unlock the bootloader, they're gone and there's no way to get them back, but also you're not missing much, but you are definitely no longer in warranty.
Click to expand...
Click to collapse
But I also didn't find any forum pertaining to XA2 ULTRA's TA Partition backup before unlocking the BL. Anyways. I think if you flash the original ROM back again, the DRM keys are included in it. May be. I am not sure.
noob_coder said:
But I also didn't find any forum pertaining to XA2 ULTRA's TA Partition backup before unlocking the BL. Anyways. I think if you flash the original ROM back again, the DRM keys are included in it. May be. I am not sure.
Click to expand...
Click to collapse
The ROM won't re-lock the bootloader, there's no way to re-lock the bootloader, and unlocking the bootloader is what scraps the DRM keys. Sony's site where you get the code for unlocking your bootloader using your IMEI makes it clear that it's permanant. I'm under the impression that the DRM keys are different for everyone's phone, so they won't be in the stock ROM that everyone can download and reflash.
roirraW "edor" ehT said:
The ROM won't re-lock the bootloader, there's no way to re-lock the bootloader, and unlocking the bootloader is what scraps the DRM keys. Sony's site where you get the code for unlocking your bootloader using your IMEI makes it clear that it's permanant. I'm under the impression that the DRM keys are different for everyone's phone, so they won't be in the stock ROM that everyone can download and reflash.
Click to expand...
Click to collapse
Who gives the F anyways? I bought the phone from one country and will be taking it to another country, so there is not even a single point of reconsidering back the DRM keys + Sony's official Warranty. I hope this device would last 2 years without any problems.

Categories

Resources