yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
Yes thats strange realy since only you have by now timeout on command sync. I have google translated error code which you got:

Duplicate I / O processing is being executed.

Is that right translate? Also checked for duplicate i/o in my source code in command sync, definitelly nothing duplicated. Strange realy! Can you try latest version and try run newflasher as administrator?

Edit:

Or maybe your bootloader Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D have sync bug so need to be updated? For that you need flash bootbundle. But in case you flashing latest fw its recommended to flash whole fw
[Sony Cross-Device General] AndroPlus:
OK I downloaded English lang pack and run latest version of newflasher as administrator.

English error code was "Overlapped I/O operation is in progress.".

Actually I'm using 45.0.A.5.8 (upgraded with whole fw flashing), which is the latest fw for G8142.

https://xpericheck.com/device/G8142

--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&289a2f9c&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: Universal Serial Bus controllers
Device Instance Id: USB\VID_0FCE&PID_B00B\5&289A2F9C&0&3

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B

Device is put now in flash mode.

No .sin files in partition dir...
You must extract partition.zip into 'partition' folder if you want flash partition image!

Processing .sin files...
Using existing folder flash_session

Processing cache_X-FLASH-ALL-42E5.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from cache_X-FLASH-ALL-42E5.sin
- Extracting signature flash_session/cache.cms
- Uploading signature flash_session/cache.cms
signature:00000533
OKAY.
- Extracting sparse chunk flash_session/cache.000
- Uploading sparse chunk flash_session/cache.000
download:0080f0c4
OKAY.
erase:cache
OKAY.
flash:cache
OKAY.
- End of cache_X-FLASH-ALL-42E5.sin

Processing .ta files...
No .ta files in current dir.

Processing boot delivery...

boot_delivery.xml not exist in boot folder or no boot folder.

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
- Error reply: less than 4!
Raw input[0x0]:
[Sony Cross-Device General] munjeni:
Ok thanks! Waiting more logs from peoples, let see that later, unable to figure by now :( . If you somedays figure that out please tell us!
[Sony Cross-Device General] munjeni:
One guy reported the same sync bug but have the same bootloader version 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D , seems that version of the bootloader have that bug! Anybody confirm?
[Sony Cross-Device General] indesisiv:
I have the same bootloader and get the same error.

Missed the log as the window closed when I went to copy it.
[Sony Cross-Device General] munjeni:
Curently I have no device to test, but did anybody updated his bootloader by flashing bootdelivery? Bootdelivery contains bootloader?

Edit:

Only one thing which can help me for sure is if somebody with the same bootloader version give me usb sniff log by sniffing sony pc companion flashing, that thing for sure can help! Now I think I will remove sync OKAY reaply since that command is at the end of flashing so we can ignore that timeout, right?
[Sony Cross-Device General] munjeni:
Ok, new version is out! I have removed waiting for sync reaply so flasher will still send 'sync' but will not wait for sync reaply, I think we now will no more get timeout by that thing. :) Also removed powerdown command since its no need because device will power down till after usb cable gets removed. Let me know!
[Sony Cross-Device General] indesisiv:
All flashes fine, with no errors.
[Sony Cross-Device General] munjeni:
I'm glad to hear that, thanks for testing!
[Sony Cross-Device General] munjeni:
[MENTION=7236686]porphyry[/MENTION] tested linux version and we found an bug related to bootdelivery and fixed it, but now only one bug remain is related to xfer transfer, this affected only linux and android version, bulk transfer memory allocation fail since max xfer size was so huge but max xfer size need to be 16386, this is a error:

- ERROR: n = -1, errno = 12 (Cannot allocate memory)
Error uploading chunk 1!

I will fix soon!
[Sony Cross-Device General] munjeni:
With testing help from [MENTION=7236686]porphyry[/MENTION] we have bug free booth versions for Linux and android, thanks man a lot! New version is out, enjoy guys!
[Sony Cross-Device General] san.13:
[MENTION=4120742]munjeni[/MENTION],the downloaded .rar folder is empty or something is wrong.

Please you can fix it.

Thank you
[Sony Cross-Device General] munjeni:
Its not empty, downloaded and checked right now.
[Sony Cross-Device General] san.13:
Sorry but,

from .rar unzip with key, and another .rar.

That's wrong

regards
[Sony Cross-Device General] munjeni:
I am sure you will figure that out! Sorry but put a bit more eforts on it ;)
[Sony Cross-Device General] san.13:
Oh I understand, it's not a mistake.
[Sony Cross-Device General] inoxas:
Thx you so much but what about mac users?
[Sony Cross-Device General] munjeni:
Never tried mac, probably will never try so no mac support since I have no idea how it working :)
[Sony Cross-Device General] iliramove:
Used this tool to flash XZP Dual SIM from Singapore to Malaysia variant today.

Flawless. Super!
[Sony Cross-Device General] cheetah2k:
Post #1 is missing.

Cant download and no instructions... :(
[Sony Cross-Device General] sladluk:
There is no file to download, first post is missing with rar and instruction... Can someone send the latest rar file?
[Sony Cross-Device General] sladluk:
why is the account of [MENTION=4120742]munjeni[/MENTION] disabled? so no way to get this rar file ?
[Sony Cross-Device General] alexp999:
I think there has been a bit of a disagreement with the OP.

I don't know if those that downloaded it before can post mirrors or not...
[Sony Cross-Device General] schickel:
In general devs don't like external mirrors. I'm after 2 years back to xperia and I don't know [MENTION=4120742]munjeni[/MENTION] till my new XZP. But looking back how he was handling his download policy I think it would be better not to make external mirrors and wait a bit if this "issue" is solved or we get here a clear statement from the mods.
[Sony Cross-Device General] mario_jr:
Do anyone have the usage instructions?

Regards!
[Sony Cross-Device General] Fidelio_o:
Anyone have any idea why NewFlasher won't recognize my device? I can't get it to pick up the device. have even tried reinstalling the drivers.
[Sony Cross-Device General] ishemes:
Did you figure out what the problem was? NewFlasher is not recognizing my device either.
[Sony Cross-Device General] Fidelio_o:
Downloaded Flashtools. http://www.flashtool.net/downloads.php

Than installed the drivers from it, finally got it to recognize the device.
[Sony Cross-Device General] ishemes:
Thanks. I'll try that.

Edit: it worked! Thanks again.
[Sony Cross-Device General] munjeni:
Mirrored links. Hope you know that mirroring somebody work is not allowed on xda, so please read forum rules! Back on topic please!
[Sony Cross-Device General] FartyParty:
I will continue using the old version personally since it works flawlessly, would advice other people to be cautious about any new versions.

Could you post the source? In a PM you sent me from your alt you claimed there were malicious content in the most recent version.
[Sony Cross-Device General] munjeni:
I no need to speak with you or to explain you anything, I'm watching you. Read forum rules and stay on topic. I am 7 years here and peoples have trust on me. I don't care about your trust on me, but stay on topic and stop spaming my thread.

Edit:

Stop mirroring my work, thats not allowed on xda.
[Sony Cross-Device General] FartyParty:
I did read the rules and I am staying on topic, I will wait for someone to verify if the new version is clean then.
[Sony Cross-Device General] munjeni:
Ok.
[Sony Cross-Device General] FartyParty:
The newest version you uploaded before is free from malicious content, won't brick any devices or contains any code targeted at a certain user?

Just want to confirm :).
[Sony Cross-Device General] munjeni:
No one version contained malicious code, thats false definitelly! You and me had some words by pm, I was a mad because of some of the yours actions and I wrote some bad words to you, wrote some words about malware but you was naive and believed me, thats all. Can we forget that and finally start being a humans?
[Sony Cross-Device General] FartyParty:
Okey, great :).
[Sony Cross-Device General] munjeni:
New version is out! Changelog:

- implemented flash driver, just double click exe and folow procedure (optional step)

- trim area dump (optional step and maybe not a functional! Need confirmation.)

Do not use any old newflasher, its soo old and definitelly not a better than latest one! Folow my instructions and put a trust on me, I am developer of the newflasher and nobody know that better than me, if you have a questions just ask here! I have removed my posts because virus tolal found a malware on all my exe files. Later I found what was going on. UPX (any version) contain the same malware, but since my exe was packed with upx all my exe contain the same malware, reason was UPX! Have no idea why virustotal see upx as a malware but I need now to recompile all my exe without using upx just because I no want to risk with it, don't know if that upx is false warining or not but definitelly better idea omiting upx.
[Sony Cross-Device General] rocker00:
Welcome back bro :)
[Sony Cross-Device General] munjeni:
Eh I forgot to tell that I have implemented disk drive free space check, you will no more have problem in case you don't have enought free space on your disk drive when you need newflasher, newflasher simply will tell you if you do not have enought free space on your disk drive.

Eh sorry, one more thing, I have implemented an realy realy alpha version of the trim area dump mechanism, hope it is working :) Don't have xzp for testing that :)
[Sony Cross-Device General] DocLM:
Thats good, but maybe a changelog in the first post would help to track new features :D
[Sony Cross-Device General] munjeni:
Done! ;)
[Sony Cross-Device General] serajr:
Welcome back mate!!
[Sony Cross-Device General] walrusmonarch:
Welcome back man! Going to use this later this week on my XZP.
[Sony Cross-Device General] san.13:
Welcome back
[Sony Cross-Device General] schickel:
Now progress will go forward. Welcome back

Jebote, kako vrijeme prolazi. Pozdrav s Krka
[Sony Cross-Device General] oneheart:
Thank you for your hard work！
[Sony Cross-Device General] ch3mn3y:
Anyone knows what can be a problem here:

It's not latest build, but I think one before that.
[Sony Cross-Device General] munjeni:
Don't use old builds, always use recommended build - latest one! If you flash boot delivery you need to flash partition too! Create folder caled 'partition', extract partition.zip into that folder and it will get flashed.
[Sony Cross-Device General] munjeni:
You moved bootdelivery sin files out of the boot folder, that is a bad idea! Thats a reason why you getting that error! Bootdelivery is determined by xml file which is inside boot folder, there is 3 diferent x bootloaders, one bootloader config ta file and one xml file, newflasher determines right x bootloader by reading infos from phone and trought xml determines right x bootloader for your phone, after that flashes it. Never skip bootloader config ta file! If you moved these sin files out of boot folder newflasher just looks for sin files and tries to flash it. In worst case you can hardbrick phone! Don't move files from boot folder, partition folder or etc! Don't skip ta files! Skip only one's related to userdata wipe in case you want to keep userdata. I don't know what is cust-reset.ta and master-reset.ta, only which I know userdata.sin and fota-reset.ta is responsible for wiping userdata so its safe to delete these two files in case you need to keep userdata, but cust-reset.ta and master-reset.ta somebody need to try and let us know if these two files is also responsible for wiping userdata. The rest of ta files is ALWAYS recommended for flashing, don't skip it! Simlock.ta is by default skipped so you no need to delete it.
[Sony Cross-Device General] munjeni:
Anybody tested trim area dump routine?? Just to remind you, I'm owning Z1 compact, I don't have XZP so I can't test it!
[Sony Cross-Device General] ch3mn3y:
Thanks. But it"s not mine screen. I was just some kind of middleman :)

And learnt something. Again, thanks.

Sent using XT1562 - Resurrection Remix/Optimus Kernel
[Sony Cross-Device General] ch3mn3y:
Just to be sure - after downloading and unpacking firmware, all had to be done is unpack partition.zip to partition folder. After that newflasher have to be copied to fw folder and can be run?

No more folder to create, zips to unpack or other things to download or install (except drivers)?

Sent using XT1562 - Resurrection Remix/Optimus Kernel
[Sony Cross-Device General] FartyParty:
Does it contain any personal, unique info you collect?
[Sony Cross-Device General] munjeni:
Did I shared your trim area dump? No! Never! I'm promised and I didn't shared, so do not care! I can't improve newflasher and I realy have no needs working further on newflasher since I don't own xzp, so guys if you need further newflasher you must put a trust on me!
[Sony Cross-Device General] FartyParty:
Oh, so it does contain IMEI, serialnumber etc. Good thing I asked. You didn't tell me that the first time.

Do you still store it though? It doesn't matter though since that phone has been shredded.

Thanks for the confirmation. You should make a disclaimer about it so people know they are giving you their IMEI, SN etc.
[Sony Cross-Device General] munjeni:
Store? No need for that! What I can do with it? Nothing! Conversations which we had by pm, forget it!
[Sony Cross-Device General] munjeni:
To peoples who trust me I no need to clarify anything. If somebody think that I am cheater fill free to omit all my tools, fair from my side?
[Sony Cross-Device General] munjeni:
Just to remind you all. I made the tool because there is no other tool for XZP. I do not own XZP, so I did not had the need to make newflasher apsolutly! Only my great desire was a reason for bringing newflasher. I am not paid for newflasher. I no need to be paid. If you guys need further improvements or you have ideas fill free to tell me that!
[Sony Cross-Device General] FartyParty:
Well, it's only common sense to tell people if you collect their personal stuff because as we saw last time you started making threats about bricking devices.

So that's why I'm asking, so people are informed before they do something they might regret.

I shared my dump with you without knowing better, you then told me what the dump contained and I felt trapped.

That's why you should inform people what you take from them.
[Sony Cross-Device General] munjeni:
Ok, but I say again, I don't colect it! I have no needs colecting it! If you didn't forget, I had your dump because we (you and me) wanted to search for lost drm key in your already unlocked trim area, right? Z1c phone somehow have that backup unit so we thinked it will exist on xzp but it was not a case on xzp. Thats was only a reason why I reguested trim area dump.
[Sony Cross-Device General] brockyneo:
hi sorry to ask what is the whole dump thing lol? is it some sort of stock rom to allow us to be rooted on locked bootloaders like i am in the xperia xz premium?

thanks
[Sony Cross-Device General] munjeni:
Here is more info about it https://www.xda-developers.com/tutorial-to-backup-your-ta-partition-on-the-sony-xperia-z/
[Sony Cross-Device General] munjeni:
What an trim area dump contain? It contain your IMEI, your SN, your DRM key, your widevine key, in general it contain your phone unique stufs. Wrote this just to make that clear. If you're in doubt do not post your trim area public!
[Sony Cross-Device General] FartyParty:
According to google it's recommended to remove any .ta files because FlashTool doesn't flash these anyway.

No one seems to know what cust-res.ta, master-res.ta really does.

True?

---------- Post added at 03:16 PM ---------- Previous post was at 02:25 PM ----------

Just got done flashing my 5th Sony XZ Premium Pink. 3 Blacks and 2 Pink.

It would suck if we didn't have NewFlasher :).
[Sony Cross-Device General] schickel:
Are you building a "Sony XZ Premium Cluster" with HA? Why 5 XZPs? :)
[Sony Cross-Device General] FartyParty:
1 Pink Locked Bootloader unrooted, 1 Pink Unlocked Bootloader rooted.

1 Black Locked Bootloader unrooted, 1 Black Unlocked Bootloader rooted.

Then I have another Black spare unopened in case of emergency or something.

I use them for different things all with their own number, sd card, black official flipcase.

It pleases my severe OCD, extremely organized brain!
[Sony Cross-Device General] munjeni:
Not a true, see https://xdaforums.com/showpost.php?p=73458755&postcount=346 , all ta files is with reason there! If ta files is not need than I don't see a reason why Sony made them. Simlock.ta is not need since it bricks device, but you no need to remove them anyway since I have programmed newflasher to skip specific trim area units including all these from simlock.ta. Customisation reset ta I think also need e.g. in case you debranding your device! Master reset I have no idea what is, probably the similar to fota reset but one level better e.g. more clean.
[Sony Cross-Device General] munjeni:
I have found something!!! :fingers-crossed:
[Sony Cross-Device General] FartyParty:
What have you found? Since no one else asked :P.

Is it something good?
[Sony Cross-Device General] munjeni:
Fingers crossed! ;)
[Sony Cross-Device General] funiewski:
That's always great fun to follow your threads, you are always searching for new findings, so I read them although I don't use my Sony devices any more
[Sony Cross-Device General] FartyParty:
Tell us, tell us :laugh:
[Sony Cross-Device General] :
Read-all-TA:x

;)
[Sony Cross-Device General] munjeni:
Haha thanks, maybe better ReadPartition ? :D Curently I am in contact with one guy who need to test it, waiting his log since I don't own xzp to test, let hope sony didn't use sake autentification on these commands :o
[Sony Cross-Device General] FartyParty:
Don't leave us in the dark :p.

What did you find that made you happy?

Something related to drm fix?
[Sony Cross-Device General] munjeni:
:laugh:
[Sony Cross-Device General] :
you kidding ?

of course, all such commands are closed by SAKE

the only one partition can be read without auth :

Read-partition:appslog
[Sony Cross-Device General] munjeni:
Oh bad :( I don't have 64 bit decompiler for that but my knownledge in asembly is not a good, only when I have c pseudocode I understand it a bit :(

Edit:

But what you mean with "all commands"? ReadTA and WriteTA is working without sake auth, and also download: , signature ...etc, which commands is restricted with sake auth?
[Sony Cross-Device General] :
Read-partition
Read-Sector
Erase-Sector
Format-TA
Set-security

As for trim area, SAKE auth is only required, when you trying to read special ( unit_no > 0x10000 ) units from trim area.
[Sony Cross-Device General] munjeni:
Commands is secured, here is log:

Device path: \\?\usb#vid_0fce&pid_b00b#6&335eef12&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: USB-Controller
Device Instance Id: USB\VID_0FCE&PID_B00B\6&335EEF12&0&3

If you see this message please copy whole log and pm me! Partitions list: fsc,modemst2,modemst1,system,FOTAKernel,logfs,toolsfv,limits,splash,dpo,msadp,apdp,bluetooth,recovery,boot,dsp,modem,sec,fsg,xflkeystorebak,xflkeystore,tzxflbak,tzxfl,tzxflattestbak,tzxflattest,xflbak,xfl,storsecbak,storsec,devcfgbak,devcfg,sti,cmnlib64bak,cmnlib64,cmnlibbak,cmnlib,keymasterbak,keymaster,devinfo,ablbak,abl,pmicbak,pmic,hypbak,hyp,tzbak,tz,rpmbak,rpm,ddr,xblbak,xbl,userdata,oem,rdimage,fsmetadata,Qnovo,diag,appslog,frp,keystore,misc,cache,persist,ssd,LTALabel,TA
TA DUMP[0x1D]:

00000000 46 41 49 4C 43 6F 6D 6D 61 6E 64 20 6E 6F 74 20 FAILCommand not
00000010 61 75 74 68 65 6E 74 69 63 61 74 65 64 authenticated

GETLOG[0xA6]:

00000000 49 4E 49 54 3A 20 46 72 69 20 41 70 72 20 31 30 INIT: Fri Apr 10
00000010 20 30 30 3A 30 30 3A 35 36 20 31 39 37 30 0A 5B 00:00:56 1970.[
00000020 45 52 52 4F 52 20 40 20 66 61 73 74 62 6F 6F 74 ERROR @ fastboot
00000030 2E 63 3A 32 32 37 38 5D 3A 0A 41 75 74 68 65 6E .c:2278]:.Authen
00000040 74 69 63 61 74 69 6F 6E 20 72 65 71 75 69 72 65 tication require
00000050 64 20 5B 45 52 52 4F 52 20 40 20 66 61 73 74 62 d [ERROR @ fastb
00000060 6F 6F 74 2E 63 3A 32 32 37 39 5D 3A 0A 63 6F 6D oot.c:2279]:.com
00000070 6D 61 6E 64 20 52 65 61 64 2D 70 61 72 74 69 74 mand Read-partit
00000080 69 6F 6E 3A 54 41 0A 49 4E 49 54 3A 20 46 72 69 ion:TA.INIT: Fri
00000090 20 41 70 72 20 31 30 20 30 30 3A 30 30 3A 35 36 Apr 10 00:00:56
000000A0 20 31 39 37 30 0A 1970.

End. You can disconnect your device when you close test.exe
Drücken Sie eine beliebige Taste . . .

[MENTION=3665957]the_laser[/MENTION] do you know an good win tool that is able to produce pseudo c code from arm64 binary?
[Sony Cross-Device General] :
hexrays decompiler
[Sony Cross-Device General] munjeni:
Eh I meant free one :)
[Sony Cross-Device General] munjeni:
Thanks a lot! Might be a missing var e.g. "getvar:version"? I have ported [MENTION=4351315]tanipat[/MENTION] log debug but he have device G8142 but you have G1841, maybe your phone loader do not have var "getvar:version" :) I will try now to modify tool, instead of getting some vars I will repeat getvar:product 3 times, let see if it fail because of bug in tool usb functions or because your phone loader have no getvar:version :) New version is out!
[Sony Cross-Device General] thrash001:
the new:

--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&15c311e1&0&12#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: USB-Controller
Device Instance Id: USB\VID_0FCE&PID_B00B\5&15C311E1&0&12

- Successfully write 0x18 bytes to handle.
- Successfully read 0xd bytes from handle.
Raw input [0xD]:

00000000 4F 4B 41 59 31 30 34 38 35 37 36 30 30 OKAY104857600

- Successfully write 0xe bytes to handle.
- Successfully read 0x9 bytes from handle.
Raw input [0x9]:

00000000 4F 4B 41 59 47 38 31 34 31 OKAYG8141

- Successfully write 0xe bytes to handle.
- Successfully read 0x9 bytes from handle.
Raw input [0x9]:

00000000 4F 4B 41 59 47 38 31 34 31 OKAYG8141

- Successfully write 0xe bytes to handle.
- Successfully read 0x9 bytes from handle.
Raw input [0x9]:

00000000 4F 4B 41 59 47 38 31 34 31 OKAYG8141

- Successfully write 0x17 bytes to handle.
ERROR: GetOverlapped_in_Result: failed with error code 31 as follows:
Ein an das System angeschlossenes Gerõt funktioniert nicht.

- Error reaply: less than 4!
Raw input [0x0]:

Drücken Sie eine beliebige Taste . . .
[Sony Cross-Device General] munjeni:
Oh thats it. We got getvar:product sucesfull 3 times which indicates no problem with usb functions :) Problem is definitelly missing vars e.g. your loader do not have vars the same like on tanipat device, oh oh. Need to modify tool a bit (to write something like "your device missing var blabla" instead of returning error and stopping session :)