yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Don't do that!

This was just a test to see if on stock ROM you could restore the phone to the same locked state you got it.

Note that he booted into TWRP.img.

If you do this after following the first post in this thread you will softbrick your phone.

If you want more background and read the warning click on the link in my signature.
[Sony Xperia XZ Guides, News, & Discussion] _mow_:
I have read a lot of Threads now but before I will go through this Process there are some Questions left.

I´m sorry if these questions are stupid but I only used to own Nexus Devices and it was way easier to get root access on those.

I have read in the AndroPlusKernel Thread that some Versions of the Kernel come with a DRM patch. Does that mean that if i downgrade my Device as suggested in this thread and use an early Version of the Kernel my Phone will work as if the DRM Keys were still present?

If I choose to go back to the Stock ROM and re-lock the Bootloader will this make the warning screen while booting go away?

Thanks in advance
[Sony Xperia XZ Guides, News, & Discussion] zroice:
thx man
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
I have to send my phone to reparation because of battery problem, so i'll try to restore my TA partition and then I'll complete the guide

All of the AndroPlusKernel's version are bundled with DRM fixes. Yes, if you relock your bootloader the warning screen will not appear anymore. But don't forget to backup your TA partition. This is the only reason of the downgrade (after the backup, you can install Nougat again)
[Sony Xperia XZ Guides, News, & Discussion] _mow_:
Thank you for your answer.

I just have a few final questions:

If I flash the Stock ROM and re-lock the Bootloader is there any way to flash back my previously backuped TA partition (To go back to full Stock)?

If I do the above will I get OTA Updates again?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
You have to restore your TA partition before. After the backup you have to flash stock ROM immediatly and then the bootloader will relock automatically. I'll try in a few days, I'll update the thread when it's done
[Sony Xperia XZ Guides, News, & Discussion] black-hanekawa:
Thank

Many thanks for the guide, massive help, really useful having it all in one place rather than having to dart from guide to guide, many thanks.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Glad it helps you :)
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Guide update, with restoring TA partition :)
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Yeah that would be great. I'm not unlocking till I see proof I can restore.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Proof is here, my phone is relocked with TA partition backuped now. What proof do you need more ?
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
How do you restore the img? Through twrp.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Seriously ? You just have to read the post #1. This is not through TWRP, your restore it with adb commands
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Sorry I just read over it again. My bad. Grate work. Gonna try unlock and relock. ?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Don't forget to backup your TA Partition before the first unlock or you will loose original DRM and also your warranty for ever
[Sony Xperia XZ Guides, News, & Discussion] Kendigelen:
I am new user on Sony Xperia XZ.

How can I download 39.0.A.1.250 firmware?

Thank you so much for everything
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Do you read the first post ? Everything you need is in the post #1
[Sony Xperia XZ Guides, News, & Discussion] Kendigelen:
Thank you so much for your answer. But XperiFirm shows that only last updates when I push "check all" button.

:((
[Sony Xperia XZ Guides, News, & Discussion] cmiller971:
Stuck in boot loop

I did this and I am now stuck in the bootloop?
[Sony Xperia XZ Guides, News, & Discussion] lebigmac:
Are you on Nougat?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
We need more informations than just 'stuck on bootloop'. Like what you did exactly etc
[Sony Xperia XZ Guides, News, & Discussion] kfrin:
Thanks for this great tut nathan30!

I'm rooted now and on Android 7.0 (.417)

Thank you again!
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
You're welcome ;)
[Sony Xperia XZ Guides, News, & Discussion] nurav666:
I'm very new to rooting, so I just want to confirm, if I follow all the instructions in the OP (downgrade to MM, Backup TA, unlock BL, Flash AndroPlus and then root) and then restore TA partition and relock bootloader, does that mean that I will have root with a locked bootloader? Just like the phone wasn't modified in any way but is rooted and also get OTA updates?

Assuming I can't get OTA updates, and I need to flash future updates, is there a way to do that without wiping all the user data/apps/etc through Flashtool?
[Sony Xperia XZ Guides, News, & Discussion] _mow_:
Don´t do that. The OP mentions that you have to flash a stock ROM after restoring TA (or before...). If you flash a stock ROM you unroot your Phone. You have to decide whether you want your phone rooted or whether you want to get OTA Updates. Backing up the TA Partition only allows you to go back to "full stock" .
[Sony Xperia XZ Guides, News, & Discussion] ThaOdie:
well i got a thingy... all the options from the xperifirm are 39.2.A.0.361 :eek:

i tried looking with google but only found the 3.30

So how can i start playing :cool: live in the netherlands
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
get a customized DE or Central Europe or ...
[Sony Xperia XZ Guides, News, & Discussion] bautista0069@gmail.com:
hi sir

[MENTION=6774113]DGHE[/MENTION] hi sir i need your help what flashtool version should i use to downgrade to MM and backup my ta partition
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
read my guide...

Flashtool version: latest

backup ta partition: read the thread I linked in my guide

nathan30 has copied my guide in this thread, restructured it and left out much background info. His copy might be a shorter read for people with TLDR-syndrome.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
You're so childish. Stop saying I copy you, I mention all the people helping write this guide. If you're not happy, write another complete guide (and not a lonely post) and stop acting like a child.
[Sony Xperia XZ Guides, News, & Discussion] bzlmdfk:
Is possible to root without unlock bootloader? When i check OEM, ask me for pin and nothing happen. If i on 6.0.1 must downgrade to 6.0.0 or this is not necessary?

Edit:

I reboot phone and now OEM is checked.
[Sony Xperia XZ Guides, News, & Discussion] nurav666:
Thanks for the info. So, my HK version is still not getting updated and I want to change to another country's customization. Is this possible without wiping any of my data/apps etc?
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Yes

At least if you stay on the same Android version.

And if something feels quirky after that you wipe userdata and flash again. So just try it without wipe first.
[Sony Xperia XZ Guides, News, & Discussion] bzlmdfk:
Ok, now i have backup TA, install all on pc and have unlock code. Can i install update to nugat them unlock bootloader install twrp and root phone? Or must be on 6.0.1 and instal rom like Existance?
[Sony Xperia XZ Guides, News, & Discussion] _mow_:
Depends on what you are trying to do:

-If you want to install a ROM that requires 6.0 ->unlock -> flash TWRP ->flash ROM

-If you want stock 6.0.1 ROM with Root -> unlock -> Kernel -> TWRP -> Root

-If you want latest stock ROM with Root -> unlock -> Flash using Emma or Flash Tool -> Kernel -> TWRP -> Root
[Sony Xperia XZ Guides, News, & Discussion] bzlmdfk:
I want latest rom witch root, is possible to root nugat or only marshmallow ? Can i update to nugat them root or i must root 6.0.1 and flash 7.1.1. rom?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Are you just reading the post #1 ? I'm tired to repeat it again and again. You have to root FIRST in MM, then you can flash Nougat. Please read before asking questions
[Sony Xperia XZ Guides, News, & Discussion] bzlmdfk:
I Backup TA on 6.0.1 > flash 7.0 via Flashtool > unlock bootloader > Copy boot.img and twrp to Minimal Adb folder > Open Minimal Adb > Flash Kernel > Flash TWRP > Root.

Work Fine. Its not necessary be on MM to unlock bootloader and root.

I asking because this phone is expensive and i dont want it brick.

You should add to first post about minimal adb, i read this topic all day before I realized that I have to use minimal adb not cmd.

Sorry for my Eanglish.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
If you install well fastboot and adb, it works under terminal :)
[Sony Xperia XZ Guides, News, & Discussion] bzlmdfk:
I install and must use it, dont work to me on cmd.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
;) http://imgur.com/hU8Nlnw
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
ive been having a hard time with drives on win10, did the flashing on my work pc that has win7 and unlocked my bl before i can do a TA backup. am i ****ed as far as being able to get that backup now? and after flashing recovery and unlock with the kernel. how long should it take to boot again. im sitting around 5 mins into first boot so far.

---------- Post added at 12:31 PM ---------- Previous post was at 12:20 PM ----------

help please i bricked my device. it wont boot how do i get to recovery mode?
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Claim down mate. Press the power button and volume up about 11 sec. Let me no if it boots. Good luck.
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
no if i hold it, it keeps viberating and never boots up, if i hold vol up it goes to your devices is unlocked bootloader screen then shows sony logo and reboots to bootloop.

it seems like i still got access to fastboot as if iplug to computer and try i see blue led
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Then flash a rom with flashtool.
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
trying to right now. this method will proably for sure work right? lol and i appriciate the help, im still a little nervous just spent close to 600 on this and only had for less than 24hrs
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Yeah it should work. Hate to bring you bad news. If you have unlocked your bootloader you have lost the chance to back up the Ta. The drm keys are lost.
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
so I tried use flash tool but I cant get drivers to work on my person windows 10 and to make matters worse, flash tool keeps getting deleted by antivirus at work where I used to unlock bootloader and flash kernel and recovery. im on a constant boot loop. idk what to do at the moment. if I could just get the drivers to work on 10 for fastboot I be fine, because adb works but fastboot wont do no command cuz drivers. it says waiting for device.

how do I get back to a working phone? when I try to boot twrp it does not boot all the way and restarts

---------- Post added at 02:37 PM ---------- Previous post was at 02:25 PM ----------

whats my best chance of reviving this thing? is my only hope flash tool? when I try to use the sony firmware fixer it says it wont let me cuz I unlocked bootloader

---------- Post added at 02:46 PM ---------- Previous post was at 02:37 PM ----------

OR is there any way to fix twrp?
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
I keep trying flash tool, but it keeps freezing when I try building ftf from downloaded rom. should I downgrade flashtool and try again? I basically got drivers set up finally just stuck now on loading firmware to flash in flash tool.
[Sony Xperia XZ Guides, News, & Discussion] Procionx:
camera broke

Hello, I need help.

My phone is the F8332.

I did the procedure described by nathan30, I could not do root.

I did not backup TA of the DRM Keys. I lost DRM = (

When I restore the nougat, it works correctly.

The camera does not work.

Displays a warning

"The camera is being used by another application"

The camera works in other applications.

How do I concert the camera with its original sony app?
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
Fixed itself after a **** ton of reboots lol. Would of went home and had undivided attention on using flash tool but on the car ride home I was able to boot in to recovery and do a clean wipe and reboot. And some how it booted. But it was bootlooped all day at work and failed booting into and out of twrp. I'm just glad this phone back and better than ever. Pretty funny first 24hrs with the device
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
What a story ahah. Next time be really careful with drivers, and to follow, the instructions step to step. Because now if you have a problem, you can't send the phone I to warranty
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Did you downgrade to Marshmallow?
[Sony Xperia XZ Guides, News, & Discussion] crisalexanderbautista:
pls help how can i fix this error

4/013/2017 17:13:06 - INFO - Processing kernel.sin

04/013/2017 17:13:06 - INFO - Checking header

04/013/2017 17:13:06 - INFO - Flashing data

04/013/2017 17:13:09 - INFO - Processing fotakernel.sin

04/013/2017 17:13:09 - INFO - Checking header

04/013/2017 17:13:09 - INFO - Flashing data

04/013/2017 17:13:10 - INFO - Processing ramdump.sin

04/013/2017 17:13:10 - INFO - Checking header

04/013/2017 17:13:10 - INFO - Flashing data

04/013/2017 17:13:12 - INFO - Processing system.sin

04/013/2017 17:13:12 - INFO - Checking header

04/013/2017 17:13:12 - INFO - Flashing data

04/014/2017 17:14:40 - ERROR - Processing of system.sin finished with errors.

04/014/2017 17:14:40 - INFO - Flashing finished.

04/014/2017 17:14:40 - INFO - Please unplug and start your phone

04/014/2017 17:14:40 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

---------- Post added at 09:33 AM ---------- Previous post was at 09:17 AM ----------

pls help sir [MENTION=649582]DGHE[/MENTION]E how can i fix this error

4/013/2017 17:13:06 - INFO - Processing kernel.sin

04/013/2017 17:13:06 - INFO - Checking header

04/013/2017 17:13:06 - INFO - Flashing data

04/013/2017 17:13:09 - INFO - Processing fotakernel.sin

04/013/2017 17:13:09 - INFO - Checking header

04/013/2017 17:13:09 - INFO - Flashing data

04/013/2017 17:13:10 - INFO - Processing ramdump.sin

04/013/2017 17:13:10 - INFO - Checking header

04/013/2017 17:13:10 - INFO - Flashing data

04/013/2017 17:13:12 - INFO - Processing system.sin

04/013/2017 17:13:12 - INFO - Checking header

04/013/2017 17:13:12 - INFO - Flashing data

04/014/2017 17:14:40 - ERROR - Processing of system.sin finished with errors.

04/014/2017 17:14:40 - INFO - Flashing finished.

04/014/2017 17:14:40 - INFO - Please unplug and start your phone

04/014/2017 17:14:40 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
https://duckduckgo.com/html?q=ERROR - Processing of system.sin finished with errors.

what this finds you:

get latest flashtool and refresh your devices list

use FSC (script)

get disk space (I think that does not apply in your case)

redownload FTF (I think that does not apply in your case since you came that far)
[Sony Xperia XZ Guides, News, & Discussion] crisalexanderbautista:
pls help anyone here have MM ftf for f8332 pls help or can you link it thanks and god bless cheers
[Sony Xperia XZ Guides, News, & Discussion] Smacksmack206:
I appreciate it fam. And yeah hopefully I won't have no phones any time soon. I honestly felt like one of them overated IT guys that can't reinstall drivers for a printer lol I get **** like that a lot at work ahaha
[Sony Xperia XZ Guides, News, & Discussion] sabymode:
Thank you sir
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
just a quick question, has restored their TA backup and got their warranty dates back on their support app?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Didn't understand the questions :/
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Sorry left some words out ?. Has anyone restored their TA backup and got the warranty dates back on the support page. Bottom of the sony menu? Or dose it say warranty date unavailable.
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Sorry, I've uploaded a screen shot to show what I'm talking about.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Yes, my warranty is still here after the restore of my TA partition. And please just edit you first instead of post multiple times
[Sony Xperia XZ Guides, News, & Discussion] yash989:
M on latest nougat is it compulsory to downgrade to marshmallow and can I downgrade without unlocked bl
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
could you reformulate your question ? I'm not sure to understand well
[Sony Xperia XZ Guides, News, & Discussion] yash989:
I mean m on latest nougat to unlock bootloader do I need to downgrade to marshmallow and can I downgrade with flahtool without rooted and unlocked bootloader
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Do you read the post #1 ? Everything is explained god damn
[Sony Xperia XZ Guides, News, & Discussion] yash989:
K got the answer for first question but what about using flash tool to downgrade on locked bootloader?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
At the beginning of the guide I told people to downgrade before unlock bootloader. So yes, you can downgrade with a locked bootloader using flashtool
[Sony Xperia XZ Guides, News, & Discussion] yash989:
K one last question bro if I restore my TA after Unlocking bootloader will I get my warranty back
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Yes, I said this in one of my comment
[Sony Xperia XZ Guides, News, & Discussion] yash989:
please help me guys

17/021/2017 07:21:32 - INFO - Device connected in flash mode

17/021/2017 07:21:32 - INFO - Reading device information

17/021/2017 07:21:32 - INFO - Phone ready for flashmode operations.

17/021/2017 07:21:32 - INFO - Opening TA partition 2

17/021/2017 07:21:32 - INFO - Current device : F8332 - CB512BE75Z - 1305-0131_R3C - 1302-9162_39.2.A.0.417 - GENERIC_39.2.A.0.417

17/021/2017 07:21:32 - INFO - Closing TA partition

17/021/2017 07:21:32 - INFO - Start Flashing

17/021/2017 07:21:32 - INFO - No loader in the bundle. Searching for one

17/021/2017 07:21:32 - INFO - No matching loader found

17/021/2017 07:21:32 - WARN - No loader found or set manually. Skipping loader

17/021/2017 07:21:32 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Bootloader status : ROOTABLE

17/021/2017 07:21:32 - INFO - Max packet size set to 4M

17/021/2017 07:21:32 - INFO - USB buffer size set to 512K

17/021/2017 07:21:38 - INFO - Parsing boot delivery

17/021/2017 07:21:38 - INFO - No flash script found.

17/021/2017 07:21:38 - INFO - Flash script is mandatory. Closing session

17/021/2017 07:21:38 - INFO - Ending flash session

17/021/2017 07:21:38 - INFO - Flashing finished.

17/021/2017 07:21:38 - INFO - Please unplug and start your phone

17/021/2017 07:21:38 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

17/021/2017 07:21:39 - INFO - Device connected in flash mode

17/022/2017 07:22:09 - INFO - Device disconnected
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
We need more informations in order to help. And please edit your post and put a quote balise. Tell us what you are trying to do, with all the steps you did

EDIT : Didn't see the hide balise in the XDA app, my bad
[Sony Xperia XZ Guides, News, & Discussion] cal_l_lka:
looks like you're trying to flash an ftf w/flashtool.

check your drivers and try to reboot the computer before flashing again
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Search results?

What did the threads you found after putting one of the above error messages into the search mask of this fourum (or SONY cross devices) tell you?
[Sony Xperia XZ Guides, News, & Discussion] MegaSharkXDA:
Hi,

any chance of writing a similar guide but for Magisk or systemless root? :)
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Not by me, because I didn't try both of what you've mentioned. If someone already did and can gave me the step to step procedure, I could update my guide
[Sony Xperia XZ Guides, News, & Discussion] Ryuu.:
I just finished rooting with this methode. Then when i turn it on it show i must enter a password to gain access. But i never set any password before. What should i do? Am i must do the rooting Process all over again?
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
type in your lock screen password
[Sony Xperia XZ Guides, News, & Discussion] Ryuu.:
If i set it before off course i will type it in. But i never set any password.
[Sony Xperia XZ Guides, News, & Discussion] _mow_:
Enter 30 random Passwords.
[Sony Xperia XZ Guides, News, & Discussion] doinkydoink:
Hi,

How do one download 39.0.A.1.250 from Xperifirm ?

Is now only showing the latest 39.2.A.0.417. Is there a step that I am missing?

TIA
[Sony Xperia XZ Guides, News, & Discussion] alimujally:
Graet work thank you , one question

how to use the xz driver file, how to set up the drivers. should I but it in certain file or what, ?
[Sony Xperia XZ Guides, News, & Discussion] GuiGar0816:
Flashtool not detecting phone when trying to enter flashmode

I`m currently on 7.0 build 39.2.A.0.361 locked bootloader, and i'm trying to downgrade to MM. I got my ftf file, all of my drivers in place, the problem is that when I try to flash the MM rom my device won't go into flashmode. I unplug it, turn it off, hold the vol down key, plug it in, and I see the green led turning on and off, not as fast as blinking, but toggling on and off in 2-3 seconds intervals. I've tried holding it for more than one minute now and the phone is not being detected on the computer. Then I unplug it and turn it on and everything's ok.

What could be preventing my phone from getting into flashmode, or my computer from detecting it?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Are you sure you have installed the flashmode drivers ? From the flashtool folder
[Sony Xperia XZ Guides, News, & Discussion] GuiGar0816:
Yes I did, What I tried to do now is to use the Companion to repair software, and it asks me to do the same thing, to turn off, vol down, etc. And it doesn't detect it either. I also performed a factory reset and still nothing.
[Sony Xperia XZ Guides, News, & Discussion] GuiGar0816:
I think I know what's going on. At some point I pointed my ADB_HOME variable to the adb in flashtool, because when I pointed it to the SDK installed with the Android Studio, there were errors regarding conflicting versions (flashtool's was 36, the android sdk's was 39).

So I tried uninstalling flashtool and pointed ADB_HOME to the SDK again, and it worked. So I typed in the terminal adb reboot [recovery] while holidng down the vol down button, and the computer recognized it this time. I left my device in flash mode, then I installed flashtool again and tried to flash the stock MM 39.0.A.1.250 rom, actually it's happening as I write this, and it seems to be working.

I don't really have a deep understanding about this issue, my best guess is that the adb versions were conflicting.

Anyway, I'll post my results in a moment.

---------- Post added at 08:29 AM ---------- Previous post was at 08:22 AM ----------

This worked! I am currently on build 39.0.A.1.250
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Great perfect ! But please don't do multiple post, just edit your first one, the same way you did for your second post
[Sony Xperia XZ Guides, News, & Discussion] black-hanekawa:
Having an issue restoring

Hello, when I follow your restore instructions I can get as far as the fourth step but I get "no such file or directory" I'm probably missing something as I am a bit of a noob with command line stuff and what have you though