Xperia XZ Nougat ROOT possible?? - Sony Xperia XZ Questions & Answers

Is it possible to root the latest version of the sony Xperia XZ?
Heard that it could solve the overheating and weak battrey issue so guessing ima try it out
P.S my XZ doesnt have twrp or anything installed

Yes, it is possible. First of all you need to flash to MM and backup your TA partition (if DRM keys are important to you). Then flash back to N. Then unlock bootloader and flash kernel. And only then you will be able to root it.

lowweijian said:
Is it possible to root the latest version of the sony Xperia XZ?
Heard that it could solve the overheating and weak battrey issue so guessing ima try it out
P.S my XZ doesnt have twrp or anything installed
Click to expand...
Click to collapse
Yes...
And i rooted my phone with latest 7.1.1 firmware.
And yes again... I got 7 hrs SoT and not problem with standby drain.

Use Guide: https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648

Im not great at rooting and my phone is actually still under warranty
Now the problem is
Warranty void
Catastrophic heat death
Not sure which is more worth

If you follow guide closely (most important step - BACKUP YOUR TA PARTITION!) the process is fully reversible and will not void your warranty. You just have to remember to restore DRM keys before sending phone on warranty

S1gma said:
If you follow guide closely (most important step - BACKUP YOUR TA PARTITION!) the process is fully reversible and will not void your warranty. You just have to remember to restore DRM keys before sending phone on warranty
Click to expand...
Click to collapse
THANKS!

S1gma said:
If you follow guide closely (most important step - BACKUP YOUR TA PARTITION!) the process is fully reversible and will not void your warranty. You just have to remember to restore DRM keys before sending phone on warranty
Click to expand...
Click to collapse
so, if i backup my DRM... and do the ROOT, and then i want to reset to factory, and then restore the DRM again and it will remain stored permanently as it was before the bootloader unlocking ?
i mean, flashing the phone again will never affect the DRM keys anymore?
thanks

Nidhal AKA the king said:
so, if i backup my DRM... and do the ROOT, and then i want to reset to factory, and then restore the DRM again and it will remain stored permanently as it was before the bootloader unlocking ?
i mean, flashing the phone again will never affect the DRM keys anymore?
thanks
Click to expand...
Click to collapse
Restoring the DRM will also relock your bootloader and you lose root.

gregbradley said:
Restoring the DRM will also relock your bootloader and you lose root.
Click to expand...
Click to collapse
Actually it will brick the phone (DM-Verity, RIC at work again).
You must flash a stock ROM first (you lose root) and then you flash/restore the TA-backup.

DHGE said:
Actually it will brick the phone (DM-Verity, RIC at work again).
You must flash a stock ROM first (you lose root) and then you flash/restore the TA-backup.
Click to expand...
Click to collapse
Thats exactly how I bricked myZ5 once :silly:
Had to send it in for repair.
Not sure if I had been lucky, but I received it back in normal condition in two weeks after repair... without charge

Seems I'm lucky than - I've always first flashed DRM keys and do a reflash later But I did it without booting the phone
Answering the @Nidhal AKA the king question: If you reflash DRM keys you have to also reflash original firmware. That way you lose root, but you DRM keys are back in place. Phone will remain locked until you will unlock bootloader again. So yes - DRM keys will survive normal flashing once they are restored

DHGE said:
Actually it will brick the phone (DM-Verity, RIC at work again).
You must flash a stock ROM first (you lose root) and then you flash/restore the TA-backup.
Click to expand...
Click to collapse
The fact it relocks the boot implies you must have a stock kernel to boot. Actually you can restore the TA partition and then flash a stock rom as long as you don't reboot in between.
AFAIK, even if you reboot you can still flash a FTF and unbrick it. It only gives you a soft brick anyway. I have done this loads of times on previous xperias.

I've dont the part till im ready to downgrade to MM but im worried that it will hard brick my phone like the Xperia V I used before
Not sure about it tho since really just got the phone and the overheating and the standby power loss is putting me into a fuss

Related

Unlocking bootloader

In preparation for CM/AOSP that is due soon I wonder if unlocking bootloader on XL erases the phone ?
Redzo said:
In preparation for CM/AOSP that is due soon I wonder if unlocking bootloader on XL erases the phone ?
Click to expand...
Click to collapse
No, but there is a change that you'll get a bootloop thus you need to reflash an ftf file.
i did not had any prob like bootloap or erase.bt wen my frnd unlocked his xperia sp's booloader his internal storage got wiped and also a factory reset.dont know why that happened
Thank you both for your reply, that is the reason I asked in first place. Have heard both versions before, some have had no issues whatsoever some had to re-flash their FTF while some had their internal storage wiped and phone reset.
I will post my results in this thread when I'm done with unlocking. Mind you that may take a while since I really have phone setup perfectly with no bugs and good battery time. Rooted and still on 15.0.A.2.17 but as I said everything works like a charm and I am one of those people that subscribe to "if it's not broken then don't fix it" theory. Thanks again.
TA Files backup
I have unlocked my xperia L bootloader without taking the backup of TA files. Can I use TA files from other's ?
moorthidaniel said:
I have unlocked my xperia L bootloader without taking the backup of TA files. Can I use TA files from other's ?
Click to expand...
Click to collapse
No, you can't, i have readed somewhere that all phones have specific TA.Sorry mate.
moorthidaniel said:
I have unlocked my xperia L bootloader without taking the backup of TA files. Can I use TA files from other's ?
Click to expand...
Click to collapse
You will brick your device if you use the TA backup of another device
Sent from my C2105 using XDA Premium 4 mobile app

[Q] Warranty after mods

Hi
If i unlook bootl. and apply root to device, did i lost warranty ? It's possible to restore all stock and get back warranty ?
Suggest you would use the search function. There're a number of threads on this topic already. Please.
Sent from my D5803 using XDA Free mobile app
sxtester said:
Suggest you would use the search function. There're a number of threads on this topic already. Please.
Sent from my D5803 using XDA Free mobile app
Click to expand...
Click to collapse
Advanced search is off, normal one show me galaxy s4 post, not z4
You don't need advanced search to find the answeres. Wait, let me google that for you...
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
http://forum.xda-developers.com/z3-compact/general/unlocked-bootloader-discuss-customer-t2906731
http://forum.xda-developers.com/z3-compact/general/one-bootloader-unlock-flash-firmware-t2905047
http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
By the time you're done reading for sure the advanced search is back.
Thanks, just a thing i don't understand.
Bootloader unlocking is a reversable operations?
It' possible to re-lock and re-able warranty?
andxit said:
Thanks, just a thing i don't understand.
Bootloader unlocking is a reversable operations?
It' possible to re-lock and re-able warranty?
Click to expand...
Click to collapse
It is reversible using flashtool
However, it still will not restore TA partition so it can be seen if you have unlocked.
The only way to completely reset to factory conditions is to restore a TA backup, but the only way to get that is to root before unlocking
gregbradley said:
It is reversible using flashtool
However, it still will not restore TA partition so it can be seen if you have unlocked.
The only way to completely reset to factory conditions is to restore a TA backup, but the only way to get that is to root before unlocking
Click to expand...
Click to collapse
So to restore warranty after modding you need to wait a locked booatloder root and only after unlock and mod device ?
Correct?
andxit said:
So to restore warranty after modding you need to wait a locked booatloder root and only after unlock and mod device ?
Correct?
Click to expand...
Click to collapse
I do not want to talk about warranty's.
All I am saying is that in order to restore your phone to factory settings you need a stock TA partition. To restore a stock TA partition after unlocking the bootloader you need a backup of a TA partition taken from your phone. In order to make that backup you need root.
gregbradley said:
I do not want to talk about warranty's.
All I am saying is that in order to restore your phone to factory settings you need a stock TA partition. To restore a stock TA partition after unlocking the bootloader you need a backup of a TA partition taken from your phone. In order to make that backup you need root.
Click to expand...
Click to collapse
Ok.
Z3 modding is not in avanced state, so in previous xperia is possible to restore warranty after unlock bootl.?
Sorry for my question, im interested to buy z3, so i'm verifying modding possibilities
andxit said:
Ok.
Z3 modding is not in avanced state, so in previous xperia is possible to restore warranty after unlock bootl.?
Sorry for my question, im interested to buy z3, so i'm verifying modding possibilities
Click to expand...
Click to collapse
Again, as said numerous times in this thread, if you could be bothered to read the links or a quick read of the forum you'd know.
In my opinion, if you want to "mod" a phone, get a Nexus or a HTC One M8. Sony phones going all the way back to Xperia X10 are rubbish with custom Roms and "mods"
Right now, you cannot return completely to stock.
Jonathan-H said:
Again, as said numerous times in this thread, if you could be bothered to read the links or a quick read of the forum you'd know.
In my opinion, if you want to "mod" a phone, get a Nexus or a HTC One M8. Sony phones going all the way back to Xperia X10 are rubbish with custom Roms and "mods"
Right now, you cannot return completely to stock.
Click to expand...
Click to collapse
I don't know English very well, i've read all the links, but i have bit difficult with specific terms and i want to be sure about what i understand.
Sorry for trouble and thanks for willingness

[Q] How to restore to bone stock with backed-up TA partition

So I cracked my screen and the top half of the digitizer doesn't work now. I sent it in to be repaired (damage claim, not warranty claim) but it turns out if it has modified software they just straight up won't touch it.
So after sobbing to myself here's what I did:
Flashed the stock FTF to it
Locked bootloader
Rooted ROM
Tried to restore DRM keys (I used TA backup before unlocking the Bootloader)
And it all seems well and good, the PC companion doesn't throw an unrecognized software error anymore but the DRM keys for MERLIN and the other two show up with "Unknown Error"
Is there something I'm missing? And also I'm just assuming the center will check for these things and boot my phone back to me again so I'd like to get them as close to perfect as possible before trying again. I'm not looking for them to fix my phone for free. I just want the right people repairing it.
EDIT: Just FYI I have a D6603
Did you reboot your phone after restoring the drn keys?
freddy1991 said:
Did you reboot your phone after restoring the drn keys?
Click to expand...
Click to collapse
Yeah :\
One thing I'm worried about is I backed up the partition the very day that an exploit was found. So I think the TA backup utility was able to do it but is there any chance there was a compatibility update that needed to happen?
I did the same too.
Root My z3 just after the exploit had been discovered and backup the keys using TA backup tool.
Actually I did unlock mine quite a few times already and successfully restored the keys every time with TA backup.
What method are you using to lock the bootloader? I just hit the checkbox on the FTF flasher app so maybe that's the problem? I guess I'll try it with fastboot instead?
freddy1991 said:
I did the same too.
Root My z3 just after the exploit had been discovered and backup the keys using TA backup tool.
Actually I did unlock mine quite a few times already and successfully restored the keys every time with TA backup.
Click to expand...
Click to collapse
topherhead said:
What method are you using to lock the bootloader? I just hit the checkbox on the FTF flasher app so maybe that's the problem? I guess I'll try it with fastboot instead?
Click to expand...
Click to collapse
Actually, you don't need to relock the bootloader.
Restoring TA backup automatically relocks the bootloader.
freddy1991 said:
Actually, you don't need to relock the bootloader.
Restoring TA backup automatically relocks the bootloader.
Click to expand...
Click to collapse
Well I feel kinda dumb for not checking this first. But I went into the service tests and checked the bootloader and it's still showing up as unlocked so that explains that. Now why I'm having difficulty locking it is another concern.
So I booted into fastboot and entered fastboot oem lock and now it's just sitting... I'm not sure it's doing anything (first time I've tried to lock rather than unlock) It just made a ... then the cursor is blinking on a new line... So I'm a little concerned there but there's gotta be a way to relock it right?
topherhead said:
Well I feel kinda dumb for not checking this first. But I went into the service tests and checked the bootloader and it's still showing up as unlocked so that explains that. Now why I'm having difficulty locking it is another concern.
So I booted into fastboot and entered fastboot oem lock and now it's just sitting... I'm not sure it's doing anything (first time I've tried to lock rather than unlock) It just made a ... then the cursor is blinking on a new line... So I'm a little concerned there but there's gotta be a way to relock it right?
Click to expand...
Click to collapse
Just restore your TA partition via TA-backup tool and you are good to go.
profprof said:
Just restore your TA partition via TA-backup tool and you are good to go.
Click to expand...
Click to collapse
I'm at work now so I can't test but my concern is that I've already tried that a few times. I didn't check bootloader status after each one, just the keys. So far using fastboot, the TA backup tool, and the flashtool doesn't seem to work. The TA tool and the flashtool seem to think everything went fine while fastboot just hangs...
I do like that now at least I know what's wrong, so I just need all the ways to lock a bootloader...
topherhead said:
I'm at work now so I can't test but my concern is that I've already tried that a few times. I didn't check bootloader status after each one, just the keys. So far using fastboot, the TA backup tool, and the flashtool doesn't seem to work. The TA tool and the flashtool seem to think everything went fine while fastboot just hangs...
I do like that now at least I know what's wrong, so I just need all the ways to lock a bootloader...
Click to expand...
Click to collapse
When you restored ta partition it will be relocked automatically, you won't need any other steps to relock bootloader
profprof said:
When you restored ta partition it will be relocked automatically, you won't need any other steps to relock bootloader
Click to expand...
Click to collapse
That's what I'm trying to tell you! I restored the keys using TA-Backup and it says everything was successful but in the service tests the bootloader still shows as unlocked and the keys show an unknown error though they are "Active" I'm not sure what that means really.
Alright got it.
At some point I did that thing in TA-Backup where you convert the backup into a new type that the later versions of TA can use (oor at least that's how I interpreted it) and I forgot I did that. So I tried using one of the older versions and it worked perfectly!

Anyway to restore DRM keys, if no backup?

Hi
From a long time ago (before I researched before I did anything) I unlocked my bootloader to get root right away, but I read somewhere that you could restore them without a backup now, is that true? I mean, get someones else or something like that
Thanks in advance
Faspaiso said:
Hi
From a long time ago (before I researched before I did anything) I unlocked my bootloader to get root right away, but I read somewhere that you could restore them without a backup now, is that true? I mean, get someones else or something like that
Thanks in advance
Click to expand...
Click to collapse
No, drm keys cannot be restored, do not attempt to use other people's keys, you will get a proper hard brick (bit a soft brick, a real hard brick that Cabot be recovered from). However, there are ways to restore partial functionality that relies on drm keys, but it is not 100% the same
gregbradley said:
No, drm keys cannot be restored, do not attempt to use other people's keys, you will get a proper hard brick (bit a soft brick, a real hard brick that Cabot be recovered from). However, there are ways to restore partial functionality that relies on drm keys, but it is not 100% the same
Click to expand...
Click to collapse
Can you explain the second method further please?
Thanks in advance
i've found a way to restore drm keys, not just the functionnality : http://forum.xda-developers.com/z3/help/to-restore-lost-drm-keys-t3174005
unixseb said:
i've found a way to restore drm keys, not just the functionnality : http://forum.xda-developers.com/z3/help/to-restore-lost-drm-keys-t3174005
Click to expand...
Click to collapse
That does not work.
Read here in the faq from Sony
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
gregbradley said:
That does not work.
Read here in the faq from Sony
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Click to expand...
Click to collapse
i did, and it says it won't restore the drm keys, but now my camera is showing all the isos levels (was stucked at 800 with rooted rom) and the x-reality mode is working back, i'm able to take pictures at verry low light, so even if it don't restore the drm keys, it restore the functionnlities i've lost unlocking my bl, that's strang, i admit.

about custom rom

hello guys, i'm just newbie in here i wanna ask u guy about change custom ROM does it affect our phone after we do it? and what 's a good think about it? could we switch back to original ROM ?
sorry my bad english
best regard
You need to open the bootloader so yeah it will affect the phone for sure. You should back back up your DRM keys brfore doing anything ( requires downgrade to Marshmallow).
See this Thread : Link
josephnero said:
You need to open the bootloader so yeah it will affect the phone for sure. You should back back up your DRM keys brfore doing anything ( requires downgrade to Marshmallow).
Click to expand...
Click to collapse
what is kind of affect of it? please let me know about it
best regard
Chea Chandarin said:
what is kind of affect of it? please let me know about it
best regard
Click to expand...
Click to collapse
Well if you back up the DRM keys you can return everything back to normal whenever you want.
Now let me explain what DRM does.Sony phones lose some functions when you unlock the bootloader, like X-reality, camera noise reduction and etc. But don't worry as the custom roms have DRM patches so everything works. Just back up your DRM keys before doing anything. Btw unlocked bootloader can't install over the air updates but that ok as XZ has reached end of its update cycle. Happy to help if you have any questions
josephnero said:
Well if you back up the DRM keys you can return everything back to normal whenever you want.
Now let me explain what DRM does.Sony phones lose some functions when you unlock the bootloader, like X-reality, camera noise reduction and etc. But don't worry as the custom roms have DRM patches so everything works. Just back up your DRM keys before doing anything. Btw unlocked bootloader can't install over the air updates but that ok as XZ has reached end of its update cycle. Happy to help if you have any questions
Click to expand...
Click to collapse
Is it possible to fix lost drm keys on every custom rom?
randisaaputra said:
Is it possible to fix lost drm keys on every custom rom?
Click to expand...
Click to collapse
All custom roms based on stock firmware have DRM fix. Not sure about asop roms.
There is nothing to fix in AOSP because there are no Sony's or other OEM's features.

Categories

Resources