yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
I tried a couple of times with both the normal and 64 bit versions of Flashtool, also reinstalled the drivers but still nothing.

04/028/2017 04:28:55 - INFO - Selected Bundle for Sony Xperia XZ(F8332). FW release : 39.0.A.3.30_R11B. Customization : India Generic_1305-0131
04/028/2017 04:28:55 - INFO - Preparing files for flashing
04/029/2017 04:29:18 - INFO - Please connect your device into flashmode.
04/029/2017 04:29:51 - INFO - Device connected in flash mode
04/029/2017 04:29:51 - INFO - Opening device for R/W
04/029/2017 04:29:51 - INFO - Reading device information
04/029/2017 04:29:51 - INFO - Phone ready for flashmode operations.
04/029/2017 04:29:51 - INFO - Opening TA partition 2
04/029/2017 04:29:51 - INFO - Current device : F8332 - CB512DS3VU - 1305-2218_R2D - 1302-9162_41.2.A.7.8 - GENERIC_41.2.A.7.8
04/029/2017 04:29:51 - INFO - Closing TA partition
04/029/2017 04:29:51 - INFO - Start Flashing
04/029/2017 04:29:51 - INFO - No loader in the bundle. Searching for one
04/029/2017 04:29:51 - INFO - No matching loader found
04/029/2017 04:29:51 - WARN - No loader found or set manually. Skipping loader
04/029/2017 04:29:51 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_116 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_116 / Bootloader status : ROOTABLE
04/029/2017 04:29:51 - INFO - Max packet size set to 4M
04/029/2017 04:29:51 - INFO - USB buffer size set to 512K
04/029/2017 04:29:52 - INFO - Parsing boot delivery
04/029/2017 04:29:52 - INFO - No flash script found.
04/029/2017 04:29:52 - INFO - Flash script is mandatory. Closing session
04/029/2017 04:29:52 - INFO - Ending flash session
04/029/2017 04:29:52 - INFO - Flashing finished.
04/029/2017 04:29:52 - INFO - Please unplug and start your phone
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Post a screenshot and log of the error
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Just added the log to my last message and the screenshot is behind the show content filter in my previous message.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
From what I can see the fsc script is missing.

But first try this:

Close flashtool and download the x10flasher.jar patch file from here http://www.flashtool.net/downloads_windows.php

Replace the x10flasher file that is inside the flashtool folder right now with the one downloaded from the link above.

This will patch your flashtool from version 0.9.23.1 to latest 0.9.23.2

After you've done this, try flashing again.

I dont think its gonna solve your problem yet, but its worth a try.
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
It just brought up a question saying an fsc script is found 39.fsc, do i want to use it?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Click yes :)
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Hmmm just finished and it boots to the Sony screen then says software update failed, make sure your phone is connected to the computer and try again.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Thats weird.

Did you check all the boxes under wipe?

Try again like on my screenshot.
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Ahh ok, i checked them like in the opening post of this topic. I'll try again with yours.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Im not sure why the OP has chosen to only check APPS_LOG and USERDATA.

Usually its common for people to check all boxes under wipe. [MENTION=4825559]nathan30[/MENTION] could you elaborate why you have chosen to add a screenshot with only APP_LOG and USERDATA checked?

Go ahead try and let me know if it helped.
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Your settings did the trick, so i'm now on MM. With the backupTA it says on the thread you linked that it should be in the root directory, does that mean within the external sd card? Also when flashing to the Nougat ftf do i use the same settings you had in the picture you attached?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
It means extract the files to the root directory of your PC.

For me it is my C drive.

So do as in my screenshot.

After running the backup script it will also save your TA backup there. Make sure the size is exactly 2.097.152 byte. (I also added a screenshot of how you can check that).

I would say save it to multiple other storage drives and/or to a cloud storage like google drive or dropbox.

After backing up TA is succesfull then yes you can flash the Nougat firmware with the same settings. All boxes under wipe checked.
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Just ran it but my backup failed. An it says it should be in my backupTA.sh directory, i see backupTA.sh in files but it's not an openable thing for me.
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
This is some settings I found when I search on many forums. This is the settings I use every time I'm back on stock. I use it recently to try 7.1.1 as EXistenZ is still on 7.0. The install was okay, with this 2 boxes checked only
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
You're only supposed to open the BackupTA windows command script file, then it should do the job for you.

Sorry... that is if you are on windows.. If you are on linux you need to use backupTA.sh

Again, a screenshot of what happened would be helpful to be able to try to help you :p

Instructions copied from TA backup thread:

1. Ensure you have adb access (e.g. drivers installed, enabled etc)

2. Run backupTA.sh (linux) or backupTA.cmd (windows) in the root directory.

3. TA will be saved as TA-ModelNumber-Serial-Timestamp.img in

the backupTA.sh directory.

4.On failure, the TA file should be missing, but please check that the file is 2.097.152 bytes

Did you ensure you have adb acces?

Show me a screenshot of the directory where you have extracted the backupTA files to and a screenshot from when you ran the tool.
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Ohh ok

Adb access is via enabling debugger access on the phone right? I've done that.

EDIT: Actually got it now, and it's the right size.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Not only that.

You also need to install adb on your PC.

https://xdaforums.com/showthread.php?t=2317790

Download and install minimal adb and fastboot.

Once installed open up the install directory and open up cmd-here as in my screenshot.

Connect your phone and type type adb devices

If your device turns up like it does on my screenshot then you have adb correctly installed and then try run the BackupTA tool again to see if it helped.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Thats great then you can now proceed to unlock the bootloader.

Follow the steps in the guide from here on now if you can please.

Im tired and need to go to bed cuz i've got school tomorrow.

If you run into issues just post here and probably someone will help you, or I will help you further tomorrow :p
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
Thank you for all the help, hopefully it's all smooth sailing now.
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
It should be lol.

Except when someone is new to all this.

I can understand it's a little difficult at first.

Good luck and if you run into issues, just post them here and I will reply tomorrow if someone else didn't help already ;)
[Sony Xperia XZ Guides, News, & Discussion] ugoo18:
The payoff is worth it lol, sorry but another question for you or anyone else. I'm trying to use TWRP but i'm getting a Cannot decrypt adopted storage because /data will not mount error. As well as unable to mount /data/media/0/TWRP/.twrps and a Zip signature verification failed and error installing zip file '/sdcard1/DR83.zip.

EDIT: nvm the Zip signature check was to blame, all good now :). Thanks once again for the help with it all, currently restoring my data.
[Sony Xperia XZ Guides, News, & Discussion] SiqrCarnbon:
Is it okay to flash the Ecuador ftf file on a UK XZ?
[Sony Xperia XZ Guides, News, & Discussion] Lawliet918:
Hi! I'm trying to restore the TAbackup.img to relock the bootloader and go back to the SONY stock ROM. Where do I actually put the TAbackup.img file before I run the command below in the ADB command line:

adb push TAbackup.img /data/local/tmp/TAbackup.img
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Read comments mate. The clue is in the thread. ?
[Sony Xperia XZ Guides, News, & Discussion] Taijitu:
Hello, and thanks for the nice guide.

However, I am stuck. When trying to use Flashtool to update to the latest firmware, flashtool seems to fail. It takes only 10 seconds to finish, and when I try to start the phone, it says "Software update failed. Please try again". The only firmware I can successfully flash with flashtool seems to be the Marshmallow Firmware linked in the guide. So now I am stuck on the Marshmallow firmware. Lucikly, it is much less laggy than the Nougat FW I came from, but I would like to use a Custom ROM.

Any ideas what is wrong?
[Sony Xperia XZ Guides, News, & Discussion] traingobonghp:
Hi guy, I was installing twrp and setup rom cook. But when i flash rom cook by twrp success. Then i reset my devices so that into rom cook. I think i unknow install twrp and root. Now i want to enter twrp, pls help me. Sorry my E very pool!
[Sony Xperia XZ Guides, News, & Discussion] anhsmile:
Google Play: Device Certification Status showing "Uncertified"?

After unlocked bootloader and rooted my device.

I'm on XZ 7.1.1 41.2.A.7.35.
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
That's the Google award for us.

Unfortunately they do not remove the award after applying the ta_poc.

I have not tried Magisk so far.
[Sony Xperia XZ Guides, News, & Discussion] virtuxian1:
my phone stuck at sony logo after rooting. what should i do ?
[Sony Xperia XZ Guides, News, & Discussion] baydi:
Hi guys, If I unlock my phone and I flash custom rom. How I get Sony feature but my phone still run this rom ?
[Sony Xperia XZ Guides, News, & Discussion] ShiiMr:
I got the same question than [MENTION=4885963]Lawliet918[/MENTION] where to put the TAbackup.img , I try via TWRP to copy it in '' /data/local/tmp/TAbackup.img '' but no success

---------- Post added at 01:30 PM ---------- Previous post was at 01:30 PM ----------

I got the same question than [MENTION=4885963]Lawliet918[/MENTION] where to put the TAbackup.img , I try via TWRP to copy it in '' /data/local/tmp/TAbackup.img '' but no success
[Sony Xperia XZ Guides, News, & Discussion] amjad_2020:
i have problem the system partition very large 42gb how to fix it
[Sony Xperia XZ Guides, News, & Discussion] RedxLus:
it appear "Waiting for device" and not work more when i use fastboot
[Sony Xperia XZ Guides, News, & Discussion] juanpirulo:
just put the TA.img in your adb folder on the pc and run the commands (phone must be on twrp and connected to pc)

adb push TAbackup.img /data/local/tmp/TAbackup.img

adb shell dd if=/data/local/tmp/TAbackup.img of=/dev/block/bootdevice/by-name/TA
[Sony Xperia XZ Guides, News, & Discussion] Erayh:
Dear nathan30 or others,

Thank you so much for this guide. I am very pleased by the good way in which it is all described. I have been trying to get my F8331 to work like this but I have some issues.

I just got to the point where I have unlocked my bootloader and flashed the androplus (v28) kernel. According to the cmd fastboot command lines everything went ''OKAY''.

So I tried rebooting my phone but unfortunately I'm now stuck on the SONY logo at boot (after having seen ''this device is not safe anymore'' since I just unlocked bootloader).

Please help me solve this problem (:

Cheers,

Cas.
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Read Androplus's Release notes.

Hint: "v28"
[Sony Xperia XZ Guides, News, & Discussion] sy573mx:
Hi all.

I have not been on here for a while (XDA) sitting with G4 that has a locked boot loader. I can finally Upgrayedd soon. I am from South Africa, I have read that some of the Xperia XZ models can not be boot loader unlocked, rooted or have twrp installed. My question is are there any fellow S.A. users on here that have not had any issues bootloader unlock, rooting & installing twrp ??

This will be my first Sony device.

My goal is to install a custom ROM ( something I have not done in over 2 years) seems that rooting & unllocking boot loader cripples all the phones in some way, makes you think the MAN does not want you to.

DRM & the X-reality engine is disabled on Sony devices when rooting & unllocking boot loader. hope there is a way around that.

Hope somebody can let me know - ( I don't really want Huawei) - actually I do now.

Can't wait for Sony to make me happy. - will get Huawei.
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Yes, soon

Yes - read my [Guide]
[Sony Xperia XZ Guides, News, & Discussion] Erayh:
Hey guys,

I have a question (and I hope it has not been asked before).

I am currently on EAS rom / kernel and it works splendedly. I just have one frustration which is that (I think because of unlocking bootloader) my camera has been downgraded in its performance. I really want a ''drm fix'' te be able to regain my awesome camera funcionality but I wouldn't want to lose the functionality I gained because of my eas rom.

How would I go about this? and is this even possible?

Thanks in advance.
[Sony Xperia XZ Guides, News, & Discussion] ElSkyro:
Hello and thank fo the guide ! i want to know it's is possible to unlock the bootloader on android 7 ? i d'ont care about the DRM and i have slow connection i d'ont want to download android 6, this will take hours..., if not i have juste to unlock my bootloader, root on android 7 and it's done i can install recovery and do wat i want ?! :)
[Sony Xperia XZ Guides, News, & Discussion] anhyeuviolet:
As I know, Yes.

Do not have to downgrade to Android 6.0 and backup TA if you don't care about it.

Just follow step to UB and install recovery/ROM/root as you want.
[Sony Xperia XZ Guides, News, & Discussion] eddy_ywb:
Restoring TA

I have already entered that 2 commands for restoring TA. After I entered the 2nd command, it showed "dd: /data/local/tmp/TAbackup.img: Is a directory".

Anybody know how to solve the problem?

PS: I also attached the screenshot of the command window.

thank you very much
[Sony Xperia XZ Guides, News, & Discussion] DHGE:
Maybe in the first command you pushed something to /data/local/tmp/TAbackup.img/

Do a adb shell and look what is really there or show us a shot of the first command line.

And please make the screenshots more readable (Hint: Irfanview when on Windows) for us older guys with poor eyesight.
[Sony Xperia XZ Guides, News, & Discussion] ayopancheezy:
Successfully flashed my XZ down to 6.0 to try and backup my TA partition, but every time I boot up, I get "enter password to start android". I did not have a password on my lockscreen when I downgraded. I entered my gmail password and that was not working either. Any helpful tips? Did I do something wrong?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
Maybe try to put the pin code you set before restore your phone.
[Sony Xperia XZ Guides, News, & Discussion] ayopancheezy:
Yep, I did that as well. I put a pin, a password, and even a pattern. No luck at all.

edit: just entered the pin "wrong" 24 times even though it was the pin I put and had it factory wiped. Got the TA backed up onto my computer, 4 copies, just to be safe. I'm pretty much a snail when it comes to flashing, but can you flash the backup TA partition while you're on a custom rom? My plan was to root, custom rom, and then reflash my backed up TA. That's not a problem is it?
[Sony Xperia XZ Guides, News, & Discussion] nathan30:
No, you can't restore TA on custom ROM. And you don't need to. Custom kernel was here to bring back the DRM key (not the official one, but dev do the work to bring the optimization)
[Sony Xperia XZ Guides, News, & Discussion] kennysgh05t:
Im Struggling to download the firmware from XperiFirm. Is there another place where I can download the firmware to use with flashtool?
[Sony Xperia XZ Guides, News, & Discussion] eddy_ywb:
Ar........it is too complicated. The first command as is in my screenshot.

I want to give up restoring TA. I tried many ways and can't make it.....

Anyway, thx for your help.
[Sony Xperia XZ Guides, News, & Discussion] mirhl:
The unlock bootloader part is still kind of fine I guess, but everything after is bad.

Giving for granted that you'd want to get back to nougat after backup and all, I'll cross-post and update the nice tips here.

After oem unlock

Use flash_dk trickstery to restore device keys*

Flash latest recovery via fastboot

Flash the right AndroPlus kernel for your firmware version via fastboot

Boot into TWRP and flash latest magisk

Trim Area replacer is also a nice "concept", but I'm not sure how well it plays with root and/or custom kernels
[Sony Xperia XZ Guides, News, & Discussion] ThaOdie:
Well flashtool keeps on screaming there are no drivers while my phone is fully conected and drivers are installed... Any advice how to kickstart the proces?

I could not find a central europe version so im stuck with the uk. I'm running windows 7
[Sony Xperia XZ Guides, News, & Discussion] ardhito_a:
Stuck in Bootloop

Hello Nathan, and thanks for the guide. Unfortunately, I followed your guide but in the end I get a bootloop after rooting. I downgraded to 6.0.1, backed up TA, unlocked bootloader, flashed AndroPlus kernel v4, TWRP (3.0.2-0) then I root using SperSU v2.79 then wiped dalvik cache.

On reboot I got a warning "your device has been unlocked it cannot be trusted" and I'm stuck in a boot loop.

I'm on Xperia XZ Dual F8322 and I'm flashing stock ROM. Please help
[Sony Xperia XZ Guides, News, & Discussion] J_cob:
same thing happen to me, my xperia f8332 stuck at white screen with sony logo.

i already flash it again to marshmallow then retry instruction to root, but still stuck in sony logo (this time twrp ask decrypt password)

can anyone help me to solve this problem, thanx..

Solved, i flash to nougat (latest SG firmware), then continue all the step, and my device now rooted on 7.1.1

thanx for the guide.. ^^
[Sony Xperia XZ Guides, News, & Discussion] Marília de Oliveira:
HELP ME

Can anybody help me? Well I'm flashing the kernel but it's restarting and getting into twrp I want to know what I'm doing wrong
[Sony Xperia XZ Guides, News, & Discussion] juanpirulo:
can you explain what you doing exactly? and what kernel are you flashing?. cheers
[Sony Xperia XZ Guides, News, & Discussion] Spacket:
Is it possible to get the xz complete to stock if you want to use a warranty repair?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Yes but only if you made a TA backup before unlocking the bootloader.

To go back to complete stock you'll have to restore your TA backup (if you have it) and relock the bootloader.
[Sony Xperia XZ Guides, News, & Discussion] :
I followed this guide and I succesfully rooted my phone. I thank you guys a lot for that !

I used Moivisar EC firmware to go back to MM and now I still have its default apps which is rather annoying ^^'

I formatted data, wiped everything I could through TWRP but still ...

I'm on Duality ROM for now. Do you guys have any clues to permanently remove those apps ? ^^'

Moreover I have no idea how to use Flastool now since fastmode doesn't work anymore because of the unlocking ...

I would gladly use some help ^^'
[Sony Xperia XZ Guides, News, & Discussion] abgrxenda:
Status of root

After following all the steps to root the F8331, Am I going to lose the root if I RESTORE TA partition and RELOCK bootloader? does the phone will still be rooted?

if I am upgrading to Nougat after rooting do I have to lock the bootloader? How to upgrade and keep the phone rooted?

thanks
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
You will lose root when you restore TA and relock bootloader.

After upgrading to Nougat using flashtool you will have to root your phone again by following the steps from the guide.
[Sony Xperia XZ Guides, News, & Discussion] :
Concerning an update to MM after unlocking, when I try to put my phone in flashmod there is a flash screen telling me that the device cannot be trusted and that it will reboot.

I saw the fastboot option in flashtool but I don't get which .sin I should choose.

I looked on the net but I didn't find a proper tutorial with the fastboot method of flash tool.

I would gladly use some help ^^

Cheers and Thank you !
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
That means your phone is doing a normal boot.

You can ignore the "your device cannot be trusted" message. It's normal to get this message after unlocking the bootloader.

To get in flashmode you have to turn off your phone completely.

Then press and hold down only the volume down key while connecting your phone to PC using the USB cable.

That should get you into flashmode.
[Sony Xperia XZ Guides, News, & Discussion] :
I tried already but it didn't work ^^'

I will give it another shot to be sure. It is very possible that I mess up while trying.

Thank you for your answer :D
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Check if your drivers are installed correctly.
[Sony Xperia XZ Guides, News, & Discussion] :
I successfully installed MM through flashmode before unlocking the bootloader so I believe they are properly installed :)

Is there anything special I should check before installing ?

Regarding g wipes or stuff like that ?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
Backup your important data and check all boxes under wipe.
[Sony Xperia XZ Guides, News, & Discussion] Spacket:
An other question, i am already on a custom ROM but i backed up my TA over MM which was from ecuador :D. Because Xperifirm showed me only Ecuador as only one to download MM.

Is there a difference which MM Rom i take to backup the TA? As i understood it's an area on the phone which is independent from the ROM? So there should be no difference if i backed up the TA with a Ecuador ROM or European ROM?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
It doesn't matter
[Sony Xperia XZ Guides, News, & Discussion] Erayh:
Hey Guys,

I used this guide to succesfully root my XZ and flash a custom rom which I really like!

Now I was wondering if it is possible to restore some drm features whilst still having your xperia rooted on a custom (stock based) rom.

Please help me (: I really want the image quality I used to have before back, but I wouldn't like to remove my new awesome battery life.

Thank you in advance!

Cheers,
[Sony Xperia XZ Guides, News, & Discussion] STreeTNerD:
Have you flashed AndroPlusKernel?
[Sony Xperia XZ Guides, News, & Discussion] Error_Rebel:
39.0.A.1.250 can not be found

I've never seen such an easy guide with explanation for everything like this... awesome job really.

But unfortunately I can't find the correct ROM to downgrade (39.0.A.1.250) for my XZ dual F8332?

Any help please?
[Sony Xperia XZ Guides, News, & Discussion] danilobertelli:
You can use any 39.0.A.* ROMs, they are MM.
[Sony Xperia XZ Guides, News, & Discussion] Error_Rebel:
Oh! Thanks, dear :D wish me luck then, champ :)
[Sony Xperia XZ Guides, News, & Discussion] Erayh:
Thanks! I just flashed androplus v29 with duality and I'm very glad now. It seems my camera is fully working again (I think).

Can someone confirm for me that this is the case? ^^

Cheers,
[Sony Xperia XZ Guides, News, & Discussion] ojukiyo:
Only can boot on recovery (Help is needed)

Hi,

I followed this guide ... (I think)

But actually my device only can boot on recovery.

I am triying to solve this flashing a rom with TWRP, but I can´t do it.

I obtain the following messages:

- " mount: failed to mount /dev/block/bootdevice/by-name/userdata at /data: Device or resource busy

- " mount: failed to mount /dev/block/bootdevice/by-name/oem at /oem: Device or resource busy

Any HELP will be very appreciated

Thanks in advance

*Excuse my english
[Sony Xperia XZ Guides, News, & Discussion] :
I had this problem too.

I went to wipe then format data. I believe it is linked to encription or something like that.

Hope that helps !