yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] shoey63:
Works good in Linux

/./././G8441_Customized CE1_1310-7123_47.1.A.8.49_R6B$ ./kernel_dump.x64 out system_X-FLASH-ALL-C93B

.sin

--------------------------------------------------------

Sony Any kernel Dumper by Munjeni @ 2016

--------------------------------------------------------

Created ouput folder "out"

opening system_X-FLASH-ALL-C93B.sin

system_X-FLASH-ALL-C93B.sin is Sony sin v4 format.

setting up infflate...

infflating...

infflate returned: 0

gzpipe: ok.

unziped: ok.

Extracting from system_X-FLASH-ALL-C93B.sin

.

{snip}

.

out/system_X-FLASH-ALL-C93B.bin created.

The created system_X-FLASH-ALL-C93B.bin file is an ext4 image.

But yes, in Windows 10 it's slow AF and gets stuck on chunk 31 (for me)
[Sony Cross-Device General] mbc07:
Found an issue with 0.9.24.1, flashing a single TA file (Advanced => Trim Area => S1 => Flash TA file) seems broken, FlashTool always hard lock after connecting the device in flash mode, and I can only close it through Task Manager. This is happening on my Xperia X with FlashTool for Windows...
[Sony Cross-Device General] evildog1:
I found 0.9.23.2 and downgraded it. Flashing works perfectly again. Woohoo.

Download link if anyone want to downgrade: https://www.androidfilehost.com/?w=files&flid=240696
[Sony Cross-Device General] iXaidyiu:
Latest version v0.9.24.2 freezes right after the pre-process "Devices sync finished".
[Sony Cross-Device General] russel5:
For me all works, no issues
[Sony Cross-Device General] ch3mn3y:
[MENTION=2807379]Androxyde[/MENTION]

I think it would be good if You'd changed the name of XZS's .fsc script form 41.2.fsc to 41.fsc. Oreo firmwares are "named" 41.3.x and people may think that there is no support for them.
[Sony Cross-Device General] maksim_kw:
[MENTION=2807379]Androxyde[/MENTION]

When assembling the firmware XZ1 Dual G8342 Flashtool does not add a script and does not even request, but for XZ1 G8341 and XZ1 Compact G8441 firmware the script is added without problems.

Flashtool 0.9.24.2

Thank you!
[Sony Cross-Device General] iXaidyiu:
Interesting, I will try reinstalling it and report back..

------------------------------

UPDATE:

Still it refuse to response, attached is the partial log. The stdout.log is just enpty...

[MENTION=2807379]Androxyde[/MENTION] any ideas?

P's I have Java 9.0.1 (64 bit) installed.
[Sony Cross-Device General] ch3mn3y:
Just created latest (47.1.A.12.34) for XZ Premium and when tried to simulate it Flashtool gave to "questions" - missing Partitions and Persist missing in FSC script.

I believe that first one is important?

I'm using 0.9.24.2.
[Sony Cross-Device General] Androxyde:
Yes partitions should be in the ftf. Here it is always included when I create a bundle

Envoyé de mon G8341 en utilisant Tapatalk
[Sony Cross-Device General] ch3mn3y:
Hmm. I redownloaded and reinstalled Flashtool. Let it sync with GutHub and still have this two "questions".

There is no partition.zip, folder or any of it's files inside .ftf.

One thing: before creating .ftf should I unpack partition.zip? Similar thing had to be done with Newflasher.

What about .ta files? I always excluded them when creating .ftf, but this 3 device are a little different, so maybe on or more .tas should be included?

And what about PERSIST? It is missing in .fsc file, so it may be unimportant, but than why it is there?
[Sony Cross-Device General] Androxyde:
partition.zip must not be extracted neither deleted. I search for this file when I create a bundle and extract it myself

About persist I don't know. What I know is that xperia companion does not flash it when it repairs the phone

Envoyé de mon G8341 en utilisant Tapatalk
[Sony Cross-Device General] ch3mn3y:
SO i thought i know everything. At first I didn't extract the psrtition.zip, was counting that Flashtool use .zip or will extract it by itself.

But now I tried extracting it to "partition" folder and straight to the folder with all .sin files.

With folder, they were still missing, with second way Flashtool created one file called "partition.sin", but when simulating it says:

"No partition delivery included.

Maybe a bundle created with a previous release of Flashtool.

Do you want to continue ?"

And than:

"Those data are not in the FSC script and will be skipped: PARTITION,PERSIST.

Do you want to continue ?"

Now I'm lost... there is no partition delivery file. Just boot_delivery.xml, but this one always existed.

It seems, Flashtool added only first of the partiton-image-X.sins:

17/052/2018 13:52:43 - INFO - Adding partition-image-LUN0_X-FLASH-ALL-42E5.sin to the bundle as partition.sin
17/052/2018 13:52:43 - INFO - Streaming from file : A:\XperiFirm\G8141_Customized DE_1308-5289_47.1.A.12.34_R4B\partition-image-LUN0_X-FLASH-ALL-42E5.sin
[Sony Cross-Device General] Androxyde:
Create the bundle from the FILESET or from Flashtool, launch Xperifim and download the FW you want and let XperiFirm then Flashtool do the job
[Sony Cross-Device General] ch3mn3y:
Yeee. Thanks, just learnt something new :)

Didn't check it fully, but there already is partition_delivery.xml, so it have to be OK.

Seems XperiFirms need an update.
[Sony Cross-Device General] ch3mn3y:
Hey, I'm back :)

What You wrote worked with XZ Premium and XZ1, but I have problem with XZ1 Compact.

Doesn't matter if I use .fsc for Compact, or for XZ1 and XZ Premium, it still says that there is no PARTITION_DELIVERY in the fsc script...

""Those data are not in the FSC script and will be skipped: PARTITION_DELIVERY,PERSIST.

Do you want to continue ?""

It's strange, as the .fsc file for Compact is identical to ones for XZ1 and XZ Premium. Still this two are fine, Compact is not...

Flashing:

17/010/2018 20:10:35 - INFO - Selected Bundle for Sony Xperia XZ1 Compact(G8441). FW release : 47.1.A.12.34. Customization : Germany
17/010/2018 20:10:35 - INFO - Preparing files for flashing
17/011/2018 20:11:06 - INFO - Please connect your device into flashmode.
17/011/2018 20:11:06 - INFO - Start Flashing
17/011/2018 20:11:06 - INFO - No loader in the bundle. Searching for one
17/011/2018 20:11:06 - INFO - No matching loader found
17/011/2018 20:11:06 - WARN - No loader found or set manually. Skipping loader
17/011/2018 20:11:06 - INFO - Max packet size set to 512K
17/011/2018 20:11:06 - INFO - USB buffer size set to 512K
17/011/2018 20:11:06 - INFO - Parsing boot delivery
17/013/2018 20:13:40 - INFO - Found a template session. Using it : E:\Flashtool\firmwares\prepared\47.1.fsc
17/013/2018 20:13:40 - INFO - Flashing finished.
17/013/2018 20:13:40 - INFO - Please unplug and start your phone
17/013/2018 20:13:40 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
17/013/2018 20:13:41 - INFO - Device disconnected

It finished right after i clicked Yes to flash without Partition_delivery.

Even if it was added when creating:

17/006/2018 20:06:21 - INFO - Streaming from file : A:\XperiFirm\G8441_Customized DE_1310-4373_47.1.A.12.34_R6B\decrypted\partition\partition_delivery.xml
17/006/2018 20:06:21 - INFO - Adding partition-image-LUN0_X-FLASH-ALL-C93B.sin to the bundle
17/006/2018 20:06:21 - INFO - Adding partition-image-LUN1_X-FLASH-ALL-C93B.sin to the bundle
17/006/2018 20:06:21 - INFO - Adding partition-image-LUN2_X-FLASH-ALL-C93B.sin to the bundle

Tried with firmware download using standalone XperiFIrm (but not unpacked) as well as with XF from Flashtool.

Any idea?

EDIT: It worked when I made copy of XZ1 folder (G83XX) and renamed it, properties file and all needed data inside that file to match XZ1 Compact.

Not sure what helped as XZ1's fsc and properties are same as XZ1 Compacts's (ofc except device name, model, etc.). So why it worked, but couldn't before?
[Sony Cross-Device General] munjeni:
Yes, some devices seems have bug in bootloader and didn't send reaply after command SYNC, and allso some fail on command POWERDOWN... [MENTION=2807379]Androxyde[/MENTION] if need, see how I solved it https://github.com/munjeni/newflasher/blob/master/newflasher.c#L3514 just simple send sync and don't wait reaply, and do not send powerdown command since some devices can't handle it. :)
[Sony Cross-Device General] Androxyde:
Probably, but here the freeze is on de git Devices sync, nothing to see with flashing

Probably a network issue or a corrupted git local repository.

My advice would be to remove the devices folder and let flashtool resync it ... or disable autosync on startup
[Sony Cross-Device General] iXaidyiu:
Thanks for your advice and I did what you told by changing gitauto to false in config.properties but then it still freezes right after the GUI pops up.

Attached is a screenshot of the frozen GUI.
[Sony Cross-Device General] DanielMalmgren:
Hi.

Am I the only one with a non working XF button? When I click the button, it says "Downloading latest XperiFirm" and then nothing more happens (tried waiting for quite a while). I'm suspecting my network guys and their bloody web filter is to blame. What's the exact URL it uses for fetching Xperifirm?
[Sony Cross-Device General] casouzaj:
Is .NET framework installed?
[Sony Cross-Device General] DanielMalmgren:
Yep. Version 4.5, 4.5.1, 4.6 and 4.6.1. Would the application at all be startable without .NET?
[Sony Cross-Device General] casouzaj:
No, it wouldn't! . XperiFirm needs .NET framework.
[Sony Cross-Device General] DanielMalmgren:
Ah, now I understand what you're thinking. When I wrote "the application", I was talking about Flashtool itself, which obviously starts just fine :p

Anyway, Xperifirm starts fine when I run it as standalone, so there's some other problem.
[Sony Cross-Device General] pi4a7a:
Hello fellas, Flashtool says there is a new version 0.9.24.3, Where ca I download it from ?
[Sony Cross-Device General] ch3mn3y:
It's not available yet. I believe it was mistake or new version is still being uploaded.
[Sony Cross-Device General] Ningyou Higeki:
I just tried 0.9.24.2 with my XZ Premium, but it always got stuck at "Syncing device". What should I do? And here's the log. Thx.
[Sony Cross-Device General] DanielMalmgren:
Just for the record: When I got the chance to try this from home it worked like a charm, so it must be the web proxy stopping it. Still would like to know which URL it uses though...
[Sony Cross-Device General] Androxyde:
Hello,

I fetch the content of this url : http://www.iagucool.com/xperifirm/download which gives me the true download url to the zip file I then download.
[Sony Cross-Device General] Androxyde:
0.9.24.3 is finally out (I mistakenly push the file that holds the version to github, but now the release is live :) )

It's out for Linux and Windows. Not yet for Mac, I need to rebuild my MacOS VM to test and create the dmg
[Sony Cross-Device General] DanielMalmgren:
Yep, I could be damned. Seems Fortiguard classes that as a "Malicious Website"... Guess I'll have to do my firmware downloading at home unless I can't convince the security guys to whitelist it (not probable). Thanks a lot for the info!
[Sony Cross-Device General] Ningyou Higeki:
Hi, I used the latest Flashtool to flash my XZ Premium and it failed again.:crying:

Here's the log:

It seems that I need a flash script (.fsc?). I've resynced the devices but still can't find it in the G81XX folder. Do I have to wait for it or do anything by myself? Thx.
[Sony Cross-Device General] ch3mn3y:
.fsc script should be inside that folder. Try to manually sync the devices from Github (Devices -> Devices Sync -> Manual Sync).

EDIT: Seems that (at least for me) Flashtoll freezes at start when log level is set to debug. Anyone?

After changing 1 line of Flashtool config file from:

loglevel=debug

to:

loglevel=info

It is launching fine again.
[Sony Cross-Device General] Ningyou Higeki:
I solved my problem just now. In fact Flashtool didn't sync the device data with GitHub, so there's no .fsc file. I manually downloaded the G81XX folder from GitHub and added them to mydevices folder, and Flashtool works now.:)
[Sony Cross-Device General] iXaidyiu:
This fixed my long-lived problem too, thanks for bringing this up.
[Sony Cross-Device General] Androxyde:
This issue is fixed with 0.9.24.4

Envoyé de mon G8341 en utilisant Tapatalk
[Sony Cross-Device General] russel5:
[MENTION=2807379]Androxyde[/MENTION] do you add relock func for xz1 compact?
[Sony Cross-Device General] Androxyde:
No it's not possible

Envoyé de mon G8341 en utilisant Tapatalk
[Sony Cross-Device General] V4LKyR:
Hello,

I have the latest Flashtool installed, version 0.9.24.4. I cannot get past "Synching devices from Github" screen. It just waits there for a long time.

I tried deleting "devices" folder, problem is still there.

Why is this happening? I didn't have any problem with Flashtool before.

EDIT:

Okay I solved the problem. I had to REMOVE "Windows Subsystem for Linux" feature from Program Add/Remove from Control Panel.

Developer, FYI. [MENTION=2807379]Androxyde[/MENTION]
[Sony Cross-Device General] eldarkino:
Hello,

I have an issue when trying to create a bundle (FTF) for Xperia XZ1 Dual,

when trying to select the name, the variant is not here (G8342):

any idea of how to fix this?

Regards

---------- Post added at 06:08 PM ---------- Previous post was at 05:54 PM ----------

tricking the software to create the file as G8341 works:

but later editing the manifest file to change it to G8342 and the firmare disappears from the selector:

so flashtool is not compatible with the dual version of XZ1 at this time?

---------- Post added at 06:25 PM ---------- Previous post was at 06:08 PM ----------

looking on the files that are on the "devices" folder and quick comparison with the one on ZXs folder and these are the differences:

the info for the dual version is not there (G8342)
[Sony Cross-Device General] zocster:
I've installed drivers, and downloaded appropriate oreo for my 5121, however I seem unable to flash it, it gets various errors, used to flash nougat just fine, on previous versions. It keeps on getting stuck at various stages.
[Sony Cross-Device General] andromeda1980:
hi , sorry one question, last version is for windows 64 bit only? dont starting from my windows 32bit, tank you.
[Sony Cross-Device General] whoosename:
Since the v0.9.24.4 depends on Java 9 32-bit Oses are no more supported. Look here: https://xdaforums.com/showpost.php?p=75141403&postcount=3641
[Sony Cross-Device General] ch3mn3y:
[MENTION=5131606]eldarkino[/MENTION]

Go to /Flashtool/device/G83XX and open G83XX.properties file. Than after "recognition=" and "variant=" add ",G8342" (so it will be "recognition=G8341,G8342") and save the file. Restart Flashtool and after that You will be able to create and flash firmwares for G8342. Same cna be done for other devices with missing variant.

[MENTION=2351707]andromeda1980[/MENTION]

Unfortunately (or fortunately) Flashtool 0.9.24.X needs Java 9 and as there is nor Java 9 for x86 (it was at the beginning) than there is not Flashtool for x86.
[Sony Cross-Device General] eldarkino:
[MENTION=4254806]ch3mn3y[/MENTION]

but if you restart Flashtool it will synchronize again with Github and restore the G83XX.properties file back to its original value don't you think?
[Sony Cross-Device General] ch3mn3y:
True. You have to disable it. I did it long time ago, so I forgot about it.
[Sony Cross-Device General] eldarkino:
I will made the request on Github to update that file, more to follow,

Regards!
[Sony Cross-Device General] eldarkino:
looks like my change was accepted, will try next weekend, I have to work overtime this week :(
[Sony Cross-Device General] ch3mn3y:
[MENTION=2807379]Androxyde[/MENTION]

When creating .fsc does firmware have to be same one as flashed using Xperia Companion or if I use different one from Xperia Companion (for same device) it will be OK?

I'm trying to found someone who will help me to create .fsc for L2, XA2 and XA2 Ultra. However it would be easier for them to upload just log file, not log + firmware files. But than I would need to get firmware files, so I would like to know if I need firmware with same version (build number) and same region as one flashed with XC or is it enough if they are for same device?
[Sony Cross-Device General] mbc07:
Well, Xperia Companion will always reflash the latest firmware available for the connected device, so, if you know the customization ID of the ROM being reflashed, you can easily download the matching firmware using XperiFirm. This info is available in the phone's built-in support app or through Service Menu...
[Sony Cross-Device General] ch3mn3y:
True. Still maybe it's not important, that I would like to know. Log is always same, even if different firmware is flashed, right? So it should be possible to use any firmware.
[Sony Cross-Device General] mbc07:
Err, no. The log will actually contain the firmware contents that are being flashed (it's basically a "copy" of everything that is passing through the USB cable to the phone). So, flashing a different firmware will result in a different log file, that's why you need the same firmware from when the log was taken if you want to build an FSC...
[Sony Cross-Device General] DHGE:
0.9.24.4 under Debian?

I can get it to start under Debian Stretch with JDK9 installed (bypassing the builtin JRE).

I can not use it to flash anything, tools work, xperifirm starts.

I use a heavily modified start script to make it start at all using the JDK9.

I can not remember which was the last version where I could flash under Debian...

The Windows version works fine.

Does the Linux version only run under a specific Ubuntu release?
[Sony Cross-Device General] dhchris:
Is there any news regarding the Mac-Version?

Kind regards,

Chris
[Sony Cross-Device General] ExDeeEy:
The latest version listed on the site is 0.9.24.4, but the Mac download is still at 0.9.23.1. Even so, the download link via Upload.to is broken, and if you use the torrent, you get a file whose MD5 doesn't match what's listed on the site. That means the file has probably been tampered with. And although the torrent says 0.9.23, the (possibly infected) app inside is actually 0.9.10.

That's all too dodgy for me. I don't want to have my computer and / or the connected phone infested with malware from some questionable torrent download.

Also there is no contact info on that flashtool.net site except a Twitter handle, which hasn't had any activity since 2016. Could you please update your site?
[Sony Cross-Device General] caqo71:
Downloading flashtool for year from torrent, and i can assure you that there is no malware.

Such a developer like androxyde would not put files on infected sites.

Enviado desde mi F8331 mediante Tapatalk
[Sony Cross-Device General] DHGE:
I concur with you and also [MENTION=8821246]ExDeeEy[/MENTION] that the site could be better maintained for non-Windows Users.

I asked a question in #3720 and not even got an answer. Maybe Debian is even more exotic than MacOS ....
[Sony Cross-Device General] ExDeeEy:
Are you using the Mac version? Have you verified the checksum? I just find it very odd that the MD5 checksum of the torrent wouldn't match. But the torrent isn't hosted by the developer himself, torrents are are hosted by anonymous seeders, who could be anyone. Couldn't they alter the download without the developer's knowledge?
[Sony Cross-Device General] Androxyde:
I am the publisher of the torrent versions. Just the site is not updated

Envoyé de mon G8341 en utilisant Tapatalk
[Sony Cross-Device General] ExDeeEy:
Oh, thanks for the tool! :)

If you don't have the time to update the actual Mac version, could you please at least confirm that the MD5 hash posted at http://www.flashtool.net/downloads_macos.php matches whatever is the last version? Or post the correct hash if it doesn't. Should take you less than 5 minutes. Merci!

The torrent I got was named 0.9.23, but the app inside was actually 0.9.10. It's all a bit strange.
[Sony Cross-Device General] bertschwert:
One problem solved, here's the next one ;)

I managed to get around: "invalid distance too far back" by doing what was mentioned before:

- download Flashtool 0.9.18

- Tools -> Bundles -> Create ...

- exit Flashtool

- start latest Flashtool (aow 0.9.24)

- Flash -> Flashmode ...

Flashing works fine.

So I have a new problem (don't know if it's related to Flashtool or the chosen Firmware):

After flashing the firmware (I chose 1298-3675 Customized DE for Xperia Z5) the setup ask for a Google account which has been connected to this phone before even though I could use the phone before downgrading and did a factory reset before as well.

Anyone can tell me what the reason for this might be?
[Sony Cross-Device General] ch3mn3y:
[MENTION=6904450]bertschwert[/MENTION]

It's FRP, Factory Reset Protection. It's safety mechanism and that's how it supposed to be.
[Sony Cross-Device General] bertschwert:
Thanks for the reply! After trying like ~20 different workarounds from youtube (which did not work) I managed to get the login for an associated account!

So ta-partition is backed up with dirtycow-exploit

Let's see what comes next ;)
[Sony Cross-Device General] orjanraberg:
I have managed to brick my Xperia X Performance by flashing an old TA partition image to it from before it got its motherboard changed. I have tried to use the the Flashtool "Advanced->Trim Area->S1 functions" to restore the correct TA partition image to the phone but without any luck. The "S1->Flash from raw image" accepts my TA partition image file but if I try to flash any units Flashtool always fails with error message "Those TA units are not for your device".

Am I even remotely doing the right thing? Can Flashtool be used to restore a TA partition image to a bricked phone? The phone is detected as "SOMC Flash Device" in the Device Manager but it fails to connect with adb.
[Sony Cross-Device General] iXaidyiu:
Your device is hard bricked and afaik there's no way to resurrect it.
[Sony Cross-Device General] orjanraberg:
ok thanks for the answer.
[Sony Cross-Device General] ehsas1:
When you flash the xz1 phone, I'll encounter the following message.

Yes or no?

Has no risk?

What are these files?
[Sony Cross-Device General] ch3mn3y:
Click Yes. Other way it won't start the flashing process.

There is no risk with flashing it without this files. Not sure what exactly persist do, but the 2nd file i .ta one and .ta files are important only for Xperia Companion.
[Sony Cross-Device General] ehsas1:
I have not noticed precisely.Are these 2 files required for Flash?Because they are in the exclude section.

The simlock.ta file should not flash?

Finally, do I flash?
[Sony Cross-Device General] iXaidyiu:
The files are only important for Xperia Companion and not important for your device, those options which located in the bottom boxes are not packages that make changes to your phone, it is just some flag changing and that should be all.
[Sony Cross-Device General] ehsas1:
You did not say

The simlock.ta file should be flashed or not?
[Sony Cross-Device General] iXaidyiu:
Don't touch it.
[Sony Cross-Device General] eresac:
Mac version

Hi,

recentely switched to mac here, but found:

1. mac version is lower than windows one

2. link is not working

thanks
[Sony Cross-Device General] li0nh3art3d:
Is there a new version that supports the 2018 Hxxxx line of devices?

EDIT:

Is there anything I can do to help bring about an update?
[Sony Cross-Device General] Androxyde:
Everything is ready for Hxxxx line of devices, I will update flashtool soon as well as devices repository. I am still testing everything is fine with all devices
[Sony Cross-Device General] :
wrong thread, sorry. this was for newflasher
[Sony Cross-Device General] davidhozic:
please add support for Xperia xa2, emma flash tool o flashes an older firmware
[Sony Cross-Device General] ch3mn3y:
[MENTION=8731150]davidhozic[/MENTION]

Use Newflasher for now. New Flashtool may be available in near future, but right now there is only Newflasher.
[Sony Cross-Device General] championswimmer:
published here https://xdaforums.com/crossdevice-dev/sony/flashtool-0-9-24-4-mac-t3775160