[Sony Cross-Device General] :
this is bad, very bad :D

--------------------------------------------------------
newflasher.exe v11 by Munjeni @ 2017
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 177341 MB
Total space on current drive = 204469 MB
Free space on drive = 177341 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate.7z archive in the same dir with newflasher.exe!
n
Device path: \\?\usb#vid_0fce&pid_b00b#7&b80d8cc&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\7&B80D8CC&0&1

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
n
Product: H4113
Version: 0.4
Bootloader version: 1310-0301_X_Boot_SDM630_LA1.0_O_117
Baseband version: 1311-2918_50.1.A.4.76
Serialno: CQ3000BERG
Secure: no
Loader version: XFL-SDM630-110
Phone ID: 0000:35276609148496,0000:35276609148497
Device ID: 66E3B6F4
Platform ID: 000AC0E1
Max download size: 104857600
Sector size: 512
Rooting status: ROOTED
Ufs info: FAILUfs-info not supported
Emmc info: SAMSUNG,0x0100,0x0
Default security: ON
Keystore counter: 2
Security state: TvF2l+0Or40aQudMdC8LLMt1auy6bg2DtGVLnpGqPyk=
Sake root: A672
S1 root: S1_Root_70f0
Root key hash: 5F01088791F1DDAD20DB0DF59453943E4D275929A01705C83502AD5403F9010F
Slot count: 2
Current slot: a

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!
On 2018 models you must move partition sin file to 'partition' folder if you want flash partition image!

Processing .sin files...
Created ouput folder flash_session

Processing adspso_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from adspso_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/dsp.cms
- Uploading signature flash_session/dsp.cms
signature:00000531
OKAY.
- Extracting sparse chunk flash_session/dsp.000
- Uploading sparse chunk flash_session/dsp.000
download:01000000
OKAY.
Partition: dsp have slot: yes
erase:dsp_a
OKAY.
flash:dsp_a
OKAY.
- End of adspso_X-FLASH-ALL-18AE.sin

Processing amss_fsg_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from amss_fsg_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/fsg.cms
- Uploading signature flash_session/fsg.cms
signature:00000531
OKAY.
- Extracting sparse chunk flash_session/fsg.000
- Uploading sparse chunk flash_session/fsg.000
download:00072328
OKAY.
erase:fsg
OKAY.
flash:fsg
OKAY.
- End of amss_fsg_X-FLASH-ALL-18AE.sin

Processing amss_fs_1_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from amss_fs_1_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/modemst1.cms
- Uploading signature flash_session/modemst1.cms
signature:00000536
OKAY.
- Extracting sparse chunk flash_session/modemst1.000
- Uploading sparse chunk flash_session/modemst1.000
download:00000400
OKAY.
erase:modemst1
OKAY.
flash:modemst1
OKAY.
- End of amss_fs_1_X-FLASH-ALL-18AE.sin

Processing amss_fs_2_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from amss_fs_2_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/modemst2.cms
- Uploading signature flash_session/modemst2.cms
signature:00000536
OKAY.
- Extracting sparse chunk flash_session/modemst2.000
- Uploading sparse chunk flash_session/modemst2.000
download:00000400
OKAY.
erase:modemst2
OKAY.
flash:modemst2
OKAY.
- End of amss_fs_2_X-FLASH-ALL-18AE.sin

Processing appslog_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from appslog_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/appslog.cms
- Uploading signature flash_session/appslog.cms
signature:00000535
OKAY.
- Extracting sparse chunk flash_session/appslog.000
- Uploading sparse chunk flash_session/appslog.000
download:00192870
OKAY.
erase:appslog
OKAY.
flash:appslog
OKAY.
- End of appslog_X-FLASH-ALL-18AE.sin

Processing bluetooth_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from bluetooth_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/bluetooth.cms
- Uploading signature flash_session/bluetooth.cms
signature:00000537
OKAY.
- Extracting sparse chunk flash_session/bluetooth.000
- Uploading sparse chunk flash_session/bluetooth.000
download:00083000
OKAY.
Partition: bluetooth have slot: yes
erase:bluetooth_a
OKAY.
flash:bluetooth_a
OKAY.
- End of bluetooth_X-FLASH-ALL-18AE.sin

Processing diag_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from diag_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/diag.cms
- Uploading signature flash_session/diag.cms
signature:00000532
OKAY.
- Extracting sparse chunk flash_session/diag.000
- Uploading sparse chunk flash_session/diag.000
download:001a54b8
OKAY.
erase:diag
OKAY.
flash:diag
OKAY.
- End of diag_X-FLASH-ALL-18AE.sin

Processing elabel-H4113-row-row_201801290130910.1_50.1.A.5.59_X-FLASH-LTALABEL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from elabel-H4113-row-row_201801290130910.1_50.1.A.5.59_X-FLASH-LTALABEL-18AE.sin
- Extracting signature flash_session/LTALabel.cms
- Uploading signature flash_session/LTALabel.cms
signature:0000055b
OKAY.
- Extracting sparse chunk flash_session/LTALabel.000
- Uploading sparse chunk flash_session/LTALabel.000
download:01000000
OKAY.
erase:LTALabel
OKAY.
flash:LTALabel
OKAY.
- End of elabel-H4113-row-row_201801290130910.1_50.1.A.5.59_X-FLASH-LTALABEL-18AE.sin

Processing fsmetadata_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from fsmetadata_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/fsmetadata.cms
- Uploading signature flash_session/fsmetadata.cms
signature:00000538
OKAY.
- Extracting sparse chunk flash_session/fsmetadata.000
- Uploading sparse chunk flash_session/fsmetadata.000
download:00000001
OKAY.
erase:fsmetadata
OKAY.
flash:fsmetadata
OKAY.
- End of fsmetadata_X-FLASH-ALL-18AE.sin

Processing kernel_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...
.........
- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from kernel_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/boot.cms
- Uploading signature flash_session/boot.cms
signature:00000532
OKAY.
- Extracting sparse chunk flash_session/boot.000
- Uploading sparse chunk flash_session/boot.000
download:032643e9
OKAY.
Partition: boot have slot: yes
erase:boot_a
OKAY.
flash:boot_a
OKAY.
- End of kernel_X-FLASH-ALL-18AE.sin

Processing mdtpsecapp_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from mdtpsecapp_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/mdtpsecapp.cms
- Uploading signature flash_session/mdtpsecapp.cms
signature:00000538
OKAY.
- Extracting sparse chunk flash_session/mdtpsecapp.000
- Uploading sparse chunk flash_session/mdtpsecapp.000
download:00107648
OKAY.
Partition: mdtpsecapp have slot: yes
erase:mdtpsecapp_a
OKAY.
flash:mdtpsecapp_a
OKAY.
- End of mdtpsecapp_X-FLASH-ALL-18AE.sin

Processing mdtp_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from mdtp_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/mdtp.cms
- Uploading signature flash_session/mdtp.cms
signature:00000532
OKAY.
- Extracting sparse chunk flash_session/mdtp.000
- Uploading sparse chunk flash_session/mdtp.000
download:010fbbb2
OKAY.
Partition: mdtp have slot: yes
erase:mdtp_a
OKAY.
flash:mdtp_a
OKAY.
- End of mdtp_X-FLASH-ALL-18AE.sin

Processing modem_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...
..
- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from modem_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/modem.cms
- Uploading signature flash_session/modem.cms
signature:00000533
OKAY.
- Extracting sparse chunk flash_session/modem.000
- Uploading sparse chunk flash_session/modem.000
download:060b7200
OKAY.
Partition: modem have slot: yes
erase:modem_a
OKAY.
flash:modem_a
OKAY.
- End of modem_X-FLASH-ALL-18AE.sin

Processing oem_other_X-FLASH-CUST-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from oem_other_X-FLASH-CUST-18AE.sin
- Extracting signature flash_session/oem.cms
- Uploading signature flash_session/oem.cms
signature:00000557
OKAY.
- Extracting sparse chunk flash_session/oem.000
- Uploading sparse chunk flash_session/oem.000
download:008fa0c4
OKAY.
Partition: oem have slot: yes
erase:oem_b
OKAY.
flash:oem_b
OKAY.
- End of oem_other_X-FLASH-CUST-18AE.sin

Processing oem_X-FLASH-CUST-18AE.sin
- setting up infflate...
- infflating, please wait...
............
- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from oem_X-FLASH-CUST-18AE.sin
- Extracting signature flash_session/oem.cms
- Uploading signature flash_session/oem.cms
signature:00000557
OKAY.
- Extracting sparse chunk flash_session/oem.000
- Uploading sparse chunk flash_session/oem.000
download:0232a0c4
OKAY.
Partition: oem have slot: yes
erase:oem_a
OKAY.
flash:oem_a
OKAY.
- End of oem_X-FLASH-CUST-18AE.sin

Processing partition-image_X-FLASH-ALL-18AE.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from partition-image_X-FLASH-ALL-18AE.sin
- Extracting signature flash_session/partitionimage_0.cms
- Uploading signature flash_session/partitionimage_0.cms
signature:0000053e
OKAY.
- Extracting sparse chunk flash_session/partitionimage_0.000
- Uploading sparse chunk flash_session/partitionimage_0.000
download:00004400
OKAY.
erase:partitionimage_0
Error, didn't got erase OKAY reply! Got reply: FAILCommand not authenticated

Device is put now out of flash mode.
Error, didn't got 'set_active:' OKAY reply! Got reply: P¿└
ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
- Error write! Need nBytes: 0xc but done: 0x0
nBytes[0x0]:

Error writing command 'set_active:a'!