yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] ch3mn3y:
[MENTION=4120742]munjeni[/MENTION]

https://xdaforums.com/xperia-m5/help/xperia-m5-e5663-bricked-flash-30-1-b-1-t3363932

https://xdaforums.com/xperia-m5/help/phone-booting-trying-downgrading-sony-m5-t3559580

Both are probably bricked because fo Flashtool flash engine being used to flash fw, which is stated in log found in second thread:

19/010/2017 19:10:44 - INFO - No flash script found. Using 0.9.18 flash engine
[Sony Cross-Device General] mbc07:
Just go through the first page of the Q&A section of Xperia M5 subforum here at XDA and you'll find some threads. There's also posts of other users scattered in other non-related threads in the Xperia M5 subforum complaining about hard bricks. I personally also hard bricked my M5 but fortunately managed to get it replaced under warranty, and I can assure you it wasn't due flashing wrong firmware or an interrupted flashing session.

From all people I saw with the issue, the pattern is always the same: used FlashTool without the provided FSC script and at the end of the flashing session the phone was hard bricked (dead phone, the only reaction being a red LED when connected to PC or charger). I heard it's also the same with Xperia C4 and C5 and on FlashTool's website there's also a note warning C4 and C5 users that flashing them with FlashTool will result in a hard brick (but using the FSC script completely prevents those hard bricks).
[Sony Cross-Device General] munjeni:
Well, booth invalid! First link, guy interupted flashing byself, rebooted and was suprissed! In other case guy seems moved phone when it was at some percent of flashing and lost usb connection. Seeccond link, you can see guy flashed wrong firmware! Booth is unrelated to flashtool. You have more links? Just want to confirm that fsc is uneeded feature :) Might be brick isue because of simlock.ta flashing which is selectable in pro mode, probably bricks happened because of flashing simlock? ;) If you have any more link give me please! :)
[Sony Cross-Device General] Androxyde:
MTK bricked devices is not the result of a bad use of Flashtool, but missing commands and bad file order when flashing that results on a failure and brick. That's why I created FSC wich scripts exactly what PCC does to avoid such issues.
[Sony Cross-Device General] munjeni:
Still not believing untill I see concrete example :) Links submited by ch3mn3y didn't confirms thing. For me ordering is nonsense (excluding partition image which must be firstly flashed if fw contain that file). May I be wrong about mtk, but it would be great if somebody submit concrete example. P.S. just want to identify what caused that bricks, don't get me wrong please!
[Sony Cross-Device General] Androxyde:
The brick was due to missing setloaderconfig commands and as in a session there are multiple setloaderconfig enclosing a specific set of sin files, the orders of commands is important for me
[Sony Cross-Device General] munjeni:
Seems hardcoded setloaderconfig? Is there any xml file from bundle which represent setloader config?
[Sony Cross-Device General] Androxyde:
no there is no file in the filesets giving this information
[Sony Cross-Device General] munjeni:
Hm, do you know which pc companion .jar file is responsible for sending setloader config?
[Sony Cross-Device General] Androxyde:
once upon a time I knew but I don't remember lol
[Sony Cross-Device General] munjeni:
One question trought, do you propertly determines max_packet_size ? Didn't look into flashtool for that but hope you know that loader procession and bundle procession have two diferent max packet sizes, you know about that? In some cases my xflasher failed because of wrong packet_size, have fixed it by dinamically determining max packet size, and finaly isue solved! Would be happy to look into .jar file responsible for setloader config, it must contain some algorithm for determining why it is need on mtk and not on other models, if you remind please share that name of the .jar with me!
[Sony Cross-Device General] Androxyde:
I get max_packet_size from loader. USB buffer and max_packet_size are two different things :) you can send multiple parts over the USB until the total amount transfered is equal to the max_packet_size
[Sony Cross-Device General] munjeni:
Yes ok. Did you determined it also after loader proccessed? It change too after loader finish! Hope yes. Looked now into xperia x compact fsc, found it also use setloaderconfig, is that realy need? On xlfasher I didn't use that, and no prob at all! No prob at all on z5 too! How that is possible? No bricks happened! I'm stil believing that setloaderconfig is no need :)

Edit:

seems something after 0.9.20.0 and up, was wrong, I will try look into your git commits, hope I see something

Edit:

or probably some incompatibility between 0.9.20.0 and up when old flash engine 0.9.18 is selected, hm

Edit:

or bug in sin processor, don't know by now but I am interesting to get what caused hard bricks
[Sony Cross-Device General] munjeni:
It would be amazing great if somebody try xflasher (ofcourse on his own risk) on M5, at least to try flash only cache.sin, and confirm all this :)

Edit:

Opened new thread in M5 forum https://xdaforums.com/xperia-m5/help/help-comfirming-related-to-flashing-t3625133 , let see :)
[Sony Cross-Device General] Androxyde:
It will not prove anything. It occurs only when flashing boot files

Envoyé de mon G8141 en utilisant Tapatalk
[Sony Cross-Device General] munjeni:
Ok, let see, hope somebody try flash boot bundle too :)

Edit:

Please do not get me wrong by thinking that I advertising my tool, no! Didn't advertise it, I'm a bit confused and very interested about why missing setloaderconfig and things didn't fail on phones like z5, x compact, etc while using xflasher or newflasher, is not that strange? Booth uses fsc and booth uses setloaderconfig which is not a case on my tools.
[Sony Cross-Device General] tanago:
flash scripts for f5121,f5122,f5321 34.3?
[Sony Cross-Device General] carefen:
thx for update flashtool for xz p!!!
[Sony Cross-Device General] brocnical:
Here is a 34.3.fsc for Xperia X F5121/F5122:

https://xdaforums.com/showpost.php?p=72793693&postcount=6

(Pull request created on GitHub to add)
[Sony Cross-Device General] kpham:
Hi,

I tried to save my Ray from bricking up but when I used Flashtool it appeared like this, I cannot flash the system. Please help :(
[Sony Cross-Device General] iXaidyiu:
Tried the arrow beside?
[Sony Cross-Device General] kpham:
Already clicked on the arrow too but nothing happens..
[Sony Cross-Device General] iXaidyiu:
Redownload? Download FTF of another region?
[Sony Cross-Device General] Beetle84:
Double click
[Sony Cross-Device General] kullino:
Hello,

i have got a problem with flashtool, creating ftf. PC has got intel cpu, windows 7 pro 64bit.

Downloaded newest fw for x compact.

Open flashtool 0.9.23.1

select all, and when i click on "create" flashtool hangs.

Ok, then i try:

- update java - wont work

- update flashtool to 0.9.23.2 - when i click on the x10flasher.jar i got an install error - wont work, still [MENTION=457974]...[/MENTION]23.1

- delete orders in ...users/.../.flashtool - wont work

All times flashtool hangs up when it should create the ftf file.

Then i tried to install flashtool at two other pc´s (both Windows 7 ultimate, one 32bit, one 64Bit, both intel cpu). after installing flashtool i try to open it an get a message (java) with round about 10-15 errors. could start flashtool.

does anybody have a solution for me?

Greetings Kullino
[Sony Cross-Device General] ch3mn3y:
[MENTION=3679376]kpham[/MENTION]

Use 0.9.13.0 version. It's the best for 2011 devices.
[Sony Cross-Device General] cheetah2k:
Does this flash tool latest version work for the Xperia XZ Premium? Please advise

Cheers
[Sony Cross-Device General] iXaidyiu:
No, you have to use the newflasher by munjeni.
[Sony Cross-Device General] munjeni:
M5 only, read 2 pages back! Even I have reguested xflasher test on m5 but nobody seems want to test.
[Sony Cross-Device General] ch3mn3y:
And what about XZ and other 2016-2017 devices, which firmwares won't be flashed without .fsc? Maybe it's not as important as with M5, but still.

Older may work without, but newer seems to need it, that's why I'm asking if I should consider Z5 as older or newer... Seems like the first option, but better safe than sorry, right?
[Sony Cross-Device General] shoey63:
I have personally tested this tool by [MENTION=4120742]munjeni[/MENTION]

https://xdaforums.com/showthread.php?p=57796337 on my Z5 and X.

All bugs have been fixed and it works perfectly. No FSC script required.
[Sony Cross-Device General] ch3mn3y:
Yeah. I know about it. I'm using it too, as it's easier than Flashtool to use and I can use it with my tablet.

But still some people are used to Flashtool and as I'm uploading firmwares for one Polish forum I would prefer them to be ftfs - U can than use them with Flashtool or unpack and use with New-/Xflasher, right? It's win-win.

I could leave them as DIY, but some people may be afraid of using own-made ftfs.
[Sony Cross-Device General] munjeni:
Pre 2017 devices from z1 to ...

If you going to use xflasher you can't use ftf (its not simple enought to extract ftf because of renamed extensions .TA to .TAB and renamed extensions .SIN to .SINB, you must rename extensions if you have plan to use with my tool)! I think only m5 need fsc (but I think m5 allso no need it, but we can't know for sure untill somebody try "on his own risk!!!" to flash m5 with xflasher).

Xflasher only.

2017 devices...

confirmed working without fsc!

Newflasher only.
[Sony Cross-Device General] ch3mn3y:
Thanks about that info. However I used extracted .ftf with .sins only with xflasher and Z2, and everything was fine.

Other than that - downloaded and unpacked firmware has .sin and .ta files, and inside .ftf there are .sin and .ta files. No .tab and .sinb... St least here.
[Sony Cross-Device General] munjeni:
Look into boot folder! ;)
[Sony Cross-Device General] ch3mn3y:
Didn't see that. Thought when all i see is ok, than all is ok :(
[Sony Cross-Device General] munjeni:
See context of the boot folder, you can see .tab and .sinb instead of .ta and .sin! It will not be flashed and will be no notice since my tool is programed to see only .ta and .sin! So in short you must back to .ta and .sin all that files in boot folder :)

Edit:

you can rename easy using command line:

for /f %i in ('dir /b /on *.tab') do ren "%~ni.tab" "%~ni.ta"
for /f %i in ('dir /b /on *.sinb') do ren "%~ni.sinb" "%~ni.sin"
[Sony Cross-Device General] mbc07:
Munjeni, while I really appreciate all the work you did (including but not limited to xflasher, SIN unpacker, etc) please stop pretending it's just the M5 that has issues without a FSC script.

We already showed you reports of M5 hard bricking without a FSC, there's a thread full of reports of C5 also hard bricking and the notice on FlashTool extends the notice to C4 users as well. Furthermore, on FlashTool device database, all 2016 and 2017 Mediatek-based Xperias has the fscmandatory=true property and include an FSC script, so there's a lot more evidence that Mediatek based Xperias do hard brick without an FSC script than what you're claiming.
[Sony Cross-Device General] y2kbugleung:
How come all links for linux are still pointing to 0.9.23.1 ...
[Sony Cross-Device General] ch3mn3y:
That's because Installer installs 0.9.23.1 and You have to copy updated x10flasher.jar to update it to 0.9.23.2.
[Sony Cross-Device General] munjeni:
Z5, x, x compact and many more have fscmandatory=true and it works without fsc on xflasher, so we can't say anything untill somebody try, right?
[Sony Cross-Device General] mbc07:
Wrong. The point is that you can't find any complaint about hard-bricked Snapdragon based Xperias due flashing without FSC (regardless of using xflasher or old Flashtool versions which didn't enforce the fscmandatory=true property), while you can find lots of complaints of Mediatek-based Xperias hard bricking. without FSC. Anyway, I won't insist on this point anymore, I just wish you good luck with whatever you think it's better regarding future development of xflasher/newflasher...
[Sony Cross-Device General] Aaskereija:
so, is there still any progress?
[Sony Cross-Device General] ch3mn3y:
With what? Flashtool works fine. All devices, except XZ Premium, which uses different flashing protocol, are supported (XA1 Ultra doesn't have .fsc script, but XA1's can be used). What more do You need? I don't see a need to update something that works.
[Sony Cross-Device General] filipsnew:
Hi, is the md5 indicated in the official download page correct? I have checked it two times after two downloads and I've got another value.
[Sony Cross-Device General] jotade:
Hi i want to install the ftf in my XA1 Ultra but Flasher dosent detect the downloaded firmware. How can i make it work? Please advise. Thanks
[Sony Cross-Device General] mrmcphisto77:
Hi all,

Sony Xperia X here, always getting this on flashtool (latest)

31/022/2017 19:22:59 - INFO - Loaded 0 devices

31/022/2017 19:22:59 - INFO - Starting phone detection

31/023/2017 19:23:00 - INFO - Device connected with USB debugging on

31/023/2017 19:23:00 - ERROR - No device is registered in Flashtool.

31/023/2017 19:23:00 - ERROR - You can only flash devices.

plz help!
[Sony Cross-Device General] ch3mn3y:
Do You have Auto Sync enabled? Devices -> Devices Sync -> Auto Sync -> On/Off. You can do it manually, but if it's first start and it's disabled, than the devices folder is empty (that's way there is Loaded 0 devices).
[Sony Cross-Device General] iXaidyiu:
[MENTION=2807379]Androxyde[/MENTION] or anyone who has experience,

I have an LBL XZ F8332 and just now it went soft bricked after I did something wrong. And now I wished to have it reflashed through flashtool with my userdata untouched.

By doing so, I first downloaded 41.2.A.7.35 Customised HK and then proceed to flash it, but then I noticed that loader.sin is missing in the bundle. I was originally using v0.9.23.2, v0.9.23.1 and v0.9.18.6 have also been used. Other firmwares that I have tried include 41.2.A.7.53 Customised FR and 41.2.A.7.8 Customised TW.

Any help will be appreciated, many thanks.

EDIT: Problem solved by using stock cable, again can someone explain the reason behind this ridiculous behavior?!?!
[Sony Cross-Device General] ch3mn3y:
[MENTION=6891123]iXaidyiu[/MENTION]

There is no loader.sin in Sony firmwares for X devices, so it seems that they are not needed.
[Sony Cross-Device General] iXaidyiu:
But flashtool just always banging my head for that, otherwise it return null error...
[Sony Cross-Device General] ch3mn3y:
[MENTION=6891123]iXaidyiu[/MENTION]

True. But newer had problem with any X device even without the loader. Think that .fsc somehow takes it's place (loader disappeared and .fsc appeared, coincidence? Don't think so!). However tested it myself only on Xperia X Compact friend has (and simulations, but that's not the same as flash onto real device).
[Sony Cross-Device General] iXaidyiu:
It does occasionally dont ask for loader.sin but then it just hangs at "Reading device information" and refuses to proceed any further.
[Sony Cross-Device General] Aaskereija:
Sure, i know. But how we are supposed to pack .ftf files of the new Models? Is there another method or are we just forced to use newflasher?
[Sony Cross-Device General] ch3mn3y:
[MENTION=5319967]Aaskereija[/MENTION]

Unfortunately yes.

However for now only XZ Premium has dual system mode. Sure, XZ1 and Compact should have it too, but XA1 Plus (at least firmwares available through XperiFirm) does not (tanks to that XA1's .fsc can be used to make ftfs for it). Not sure if it's Sony's doing or MTK (till now i thought than any new device with 7.1.1+ have to have dual system partitions).
[Sony Cross-Device General] ferry013:
my friend seaman just got for me Ultra c6833

is it possible to unlock this phone from Vodafone Spain with this tool

or any other way without paying because i have other phone

thanks
[Sony Cross-Device General] ch3mn3y:
No. This tool cannot unlock locked sim or Fastboot.
[Sony Cross-Device General] the_brad:
XZ Premium has the dual-System-Partition Layout like in Pixel devices? May I ask, where you got that information from?
[Sony Cross-Device General] ch3mn3y:
Nowhere. I just thought why its system partition take 14 GB of ROM (at least that's what friend show me on his XZp, I don't have one), why it uses new flashing standard and why it has "partition.zip" file older )other for now) device doesn't have.

+ the Google thing that all 7.1. shipped devices should have dual system partition layout.

It got me thinking.

Maybe I'm wrong, but there is so many hints to make me think that it have to have it. That's to many new thing for me to believe that this is just a coincidence.
[Sony Cross-Device General] iXaidyiu:
[MENTION=4254806]ch3mn3y[/MENTION]

I think its no more than normal. In my old Xperia Mini Pro, the system is about 300MB, 400MB on my Xperia Go, ~3GB on my Xperia Z (and Z2) and now 14GB on my XZ.

I think it somehow has a relation to the total storage size, if my phone has a bigger internal storage, I have a bigger system.
[Sony Cross-Device General] ch3mn3y:
You may be right (as I said it's just my assumption). Still it's a lot more than before, so with new flashing standard, .zip file and what Google want's I created this theory in my mind.

I'm sure someone with access to Root and XZp could check partition table for existence of second system partition.

I always thought who is so stupid to choose sizes? Sane person would make them smaller - My ZU and Z2 have 2-2,5 GB /system partitions and with all my mods I take no more than 1 - 1,2 GB :(

I know - updates. But there were NEVER (yet?) an update which would be a lot bigger than the ones before and would take more system space...
[Sony Cross-Device General] levone1:
Sorry if off-topic, (not sure if it is...), but wondering if anyone knows if it's possible to wipe appslog without Flashtool, (maybe in recovery or terminal or even adb or something).

Thanks.
[Sony Cross-Device General] munjeni:
You need to have apps_log.img , to get it simple reflash apps_log.sin and dump apps_log partition using adb, save apps_log.dump to your external storage for later use, so when you need it simple reflash with command dd

dd id=/storage/sdcard1/apps_log.dump of=/dev/block/platform/msm_sdcc.1/by-name/apps_log
[Sony Cross-Device General] levone1:
I got my apps_log dump, and going to try it. I dumped to file called 'apps_log.img', so should I modify flash command to 'img', or still use 'apps_log.dump'? Also, to dump, I had to specify mount point, (mmdcblk00..whatever), do I need to do the same to flash?

Thanks
[Sony Cross-Device General] vato4001:
cant open flashtool dont know why :(

error log:

java.lang.NumberFormatException: For input string: ""

at java.lang.NumberFormatException.forInputString(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at com.btr.proxy.search.browser.firefox.FirefoxProxySearchStrategy.getProxySelector(FirefoxProxySearchStrategy.java:98)

at com.btr.proxy.search.ProxySearch.getProxySelector(ProxySearch.java:194)

at org.system.Proxy.setProxy(Proxy.java:30)

at gui.MainSWT.createContents(MainSWT.java:1253)

at gui.MainSWT.open(MainSWT.java:122)

at gui.Main.main(Main.java:46)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

java is up to date
[Sony Cross-Device General] LJE:
my power supply just fried itself so untill i get a replacement im using my missus's laptop.

How do I flash new baseband with windows 7 because there is only 4 options when flashing.

windows xp 32

windows xp 64

vista 32 and

vista 64

thanks, Luke
[Sony Cross-Device General] mattiL:
I guess choosing Vista 32 or 64 should work.
[Sony Cross-Device General] moacyrfilho:
I was using Flashtool OK but, some weeks ago, it stopped showing the window where we select the model of the handset. It goes directly to the firmware selection window and it doesn't show my firmwares. I re-donwloaded, deleted, updated, downgraded, but it seems to be stuck on this situation. I cannot do any procedures that require flashing the device. Rooting works fine, by the way. Any suggestions?
[Sony Cross-Device General] Snoopo:
Hi there.

Using FLashtool 0.2.6 (and also 0.2.5) with an u20i (mini pro) and clicking on "Optimize" makes my mobile hang at the "Sony Ericsson" Logo at boot.

I tested it with my "scrumbled" rom before I tried it after a fresh reinstall of 2.1.1.A.0.6 German generic - but also here Optimize failed.

Are you aware of this? THere's something wrong :)
[Sony Cross-Device General] Androxyde:
Look at this thread and tell me if it helps.
[Sony Cross-Device General] learning_to:
Hello !

Well... I have a question:

¿How can I flash my E10a with this tool (v0.2.7.1), if it's power off?

My Android OS is bricked, it keep looping for all eternity, so... the "Flash" buton is off (gray), 'cause it can't identify my device.

Any sugestions ?

Thanks a lot to @Bin4ry and @Androxyde, I used this before with others FW and a ok OS and is awesome !
[Sony Cross-Device General] Androxyde:
Use the 0.2.6 version :-)

the 0.2.7.1 is beta only for testing optimize and xrecovery installations.

In the final release I will add a "Emergency repair" for flashing when power is off
[Sony Cross-Device General] un1bomber:
Sorry for the noob question, but Im tring to install a rom that requires baseband 2.1.54-55

I am using X10a.. which firmware do I need to flash to?
[Sony Cross-Device General] getinlost:
Look here download and flash the baseband of your choosing.
[Sony Cross-Device General] un1bomber:
problem resolved
[Sony Cross-Device General] JackSharing:
hi, i tried to root xperia x10,using 0.2.6. the process done successfully but the phone still not rooted.Running original 2.1 with up-to-date from SE. Any suggestion?
[Sony Cross-Device General] tewilove:
After flash 2.1, I can't go back to 1.6.

If I flash 1.6, the phone will keep vibrating after power on.
[Sony Cross-Device General] Androxyde:
Does your 1.6 ftf file contains the preset.ta file ?
[Sony Cross-Device General] tewilove:
No, there none of the names matches preset.ta.

Can you provide me one?
[Sony Cross-Device General] tewilove:
Solved by flash T-MOBILE UK 1.6 ROM.

There is one in it.
[Sony Cross-Device General] Si-The-Spike:
optimize is greyed out :/ but i have managed to root :)
[Sony Cross-Device General] muratbaizhanov:
any changelog for 0.2.8 ver.?)
[Sony Cross-Device General] Androxyde:
First post updated :-)
[Sony Cross-Device General] movelbit:
hi.

there is no default clean list for x10 mini pro

where is that list? :)
[Sony Cross-Device General] Androxyde:
There is none that I know :-) you will have to build yours
[Sony Cross-Device General] Licaon_Kter:
What FlashTool version? What Java version? What operating system?
[Sony Cross-Device General] vato4001:
win 7 ultimate x64

flashtool version : flashtool-0.9.23.1-windows

java version : java 8 update 144 (x64)
[Sony Cross-Device General] iXaidyiu:
Update to v0.9.23.2.