yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] tanipat:
same here

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

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-A
Baseband version: 1306-8501_45.0.A.1.244
Serialno: CB512E66JV
Secure: yes
Loader version: XFL-MSM8998-N-35
Phone ID: 0000:35700808021756,0000:35700808021757
Device ID: BC5D534D
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: TOSHIBA,THGAF4G9N4LBAIRB,0100
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.

Repartitioning...

Processing partition-image-LUN0_X-FLASH-ALL-42E5.sin
- setting up infflate...
- infflating, please wait...

- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from partition-image-LUN0_X-FLASH-ALL-42E5.sin
- Extracting signature partition/0.cms
- Uploading signature partition/0.cms
signature:0000053e
OKAY.
- Extracting sparse chunk partition/0.000
- Uploading sparse chunk partition/0.000
download:00006000
OKAY.
- End of partition-image-LUN0_X-FLASH-ALL-42E5.sin
Repartitition:0
Error, didn't got Repartitition OKAY reply! Got reply: FAILCommand not supported

Device is put now out of flash mode.
Sent command: Sync
Sent command: powerdown

End.
Press any key to continue . . .
[Sony Cross-Device General] munjeni:
Tanipat is your sniff log from the same device? In your sniff log I have this:

000321: Bulk or Interrupt Transfer (DOWN), 2017-06-07 19:22:44.0676313 +0.0054372 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x12 bytes to the device
73 69 67 6E 61 74 75 72 65 3A 30 30 30 30 30 35 signature:000005
33 65 3e
000324: Bulk or Interrupt Transfer (UP), 2017-06-07 19:22:44.0680058 +0.0001480. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0xc bytes from the device
44 41 54 41 30 30 30 30 30 35 33 65 DATA0000053e

000325: Bulk or Interrupt Transfer (DOWN), 2017-06-07 19:22:44.0680369 +0.0000311 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x53e bytes to the device

000328: Bulk or Interrupt Transfer (UP), 2017-06-07 19:22:44.0839967 +0.0157469. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0x4 bytes from the device
4F 4B 41 59 OKAY

000329: Bulk or Interrupt Transfer (DOWN), 2017-06-07 19:22:44.0841148 +0.0001181 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x11 bytes to the device
64 6F 77 6E 6C 6F 61 64 3A 30 30 30 30 36 30 30 download:0000600
30 0
000332: Bulk or Interrupt Transfer (UP), 2017-06-07 19:22:44.0845612 +0.0002305. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0xc bytes from the device
44 41 54 41 30 30 30 30 36 30 30 30 DATA00006000

000333: Bulk or Interrupt Transfer (DOWN), 2017-06-07 19:22:44.0846575 +0.0000963 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x6000 bytes to the device

000336: Bulk or Interrupt Transfer (UP), 2017-06-07 19:22:44.0855203 +0.0001218. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0x4 bytes from the device
4F 4B 41 59 OKAY

000337: Bulk or Interrupt Transfer (DOWN), 2017-06-07 19:22:44.0856556 +0.0001353 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0xd bytes to the device
52 65 70 61 72 74 69 74 69 [COLOR="Red"]Repartitition:0[/COLOR]

Doesn't understand why we getting now unsupported command
[Sony Cross-Device General] tanipat:
munjeni yes all same device mate
[Sony Cross-Device General] munjeni:
I am stupid this day realy OMG, instead of writing command

Repartition

I wrote

Repartitition

:D
[Sony Cross-Device General] munjeni:
Fixed! New v is out :o

EDIT:

I'm believing partition image contain hash of the system image certificate? Thats seems reason why system flashing returns wrong signature
[Sony Cross-Device General] tanipat:
ok man testimg now
[Sony Cross-Device General] munjeni:
I think I have ideentified isue for system flashing!! ;) Let me check it
[Sony Cross-Device General] beenoliu:
Trying
[Sony Cross-Device General] munjeni:
Wait please! My wrong! command "flash" must be after every spase chunk! But in our case we sends it at end of sin! :eek: Wit please, going to make new version!
[Sony Cross-Device General] beenoliu:
Same result :)
[Sony Cross-Device General] munjeni:
Wait please! My wrong! command "flash" must be after every spase chunk! But in our case we sends it at end of sin! :eek: Wait please, going to make new version!
[Sony Cross-Device General] tanipat:
okay man :)
[Sony Cross-Device General] munjeni:
Lets say first functional version is out!? :D
[Sony Cross-Device General] beenoliu:
It's success on my XZ Premium :good::good:

I used this tool to downgrade the software version from 45.0.A.5.1 to 45.0.A.1.244, everythings fine!!
[Sony Cross-Device General] munjeni:
I have limited to 15 thanks per day so unable to press thanks so I must say THANK you guys a ton for helping me testing our tool, we are done FINALY!!! :)

Two things which we didn't tested:

1. bootdelivery (you must put boot folder in the same dir with newflasher to flash boot delivery)

2. we didn't tested any .ta file

Or maybe time for fully flashing an firmware? Just to mention, I have done some code which skip flashing some dangerous ta units, simlock, and some more! This is a list:

if (memcmp(unit, "000008B2", 8) == 0 || /* unlock key */
memcmp(unit, "000007D3", 8) == 0 || /* dangerous */
memcmp(unit, "000007DA", 8) == 0 || /* sim lock */
memcmp(unit, "00000851", 8) == 0 || /* dangerous */
memcmp(unit, "000008A2", 8) == 0 || /* device name */
memcmp(unit, "00001324", 8) == 0 || /* device sn */
memcmp(unit, "0001046B", 8) == 0) { /* drm key */
printf(" - Skipping unit %X\n", unit_dec);
continue;
}
[Sony Cross-Device General] tanipat:
Geniusssssss man, thanks not enough for you munjeni you did it. Succussfully Flash Thailand firmware on my Xperia XZ G8142 Hongkong version. The first and only one flash tools for our XZ premium is born. Donate will be to you tomorrow for this great work man. Thank you genius :)
[Sony Cross-Device General] munjeni:
Thankss!! We have remain to test boot delivery and ta files, nobody reported if that things working :D! Happy flashing! :)
[Sony Cross-Device General] tanipat:
at 3am now need to go hahaha. will comeback here again tomorrow if i can help on it more will read through posts again though. sweetdream for me already thanks again
[Sony Cross-Device General] munjeni:
Thanks! New version is out

- version 48 (19.07.2021)

Flash bootloader,bluetooth,dsp,modem,rdimage to booth slots only on a,b devices
[Sony Cross-Device General] edcsxz:
Please help me.....

I flash my xperia 1 iii and get a bootloop....

this is my log
[Sony Cross-Device General] munjeni:
You have deleted some files from your rom! First of all you have missing this file:

Processing partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin

- unable to open C:\Users\kevin\Desktop\sony\XQ-BC72_Customized CN_61.0.A.10.1\partition\partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin.

Seccond thing, you have deleted some .ta files as for example fota_reset. So please redownload rom again and flash all files! Consider flasing another rom if this one not boot
[Sony Cross-Device General] edcsxz:
I downloaded 2 version of Stock ROM from XperiFirm, both didn't included "fota_reset".
[Sony Cross-Device General] aLRawy:
anyone know password this file ?
[Sony Cross-Device General] munjeni:
What about partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin ? Its missing at least I see in your log that it is not flashed becouse file not exist.
[Sony Cross-Device General] munjeni:
"This" file is?
[Sony Cross-Device General] DennisDD78:
Hello everyone!

Could someone, please, tell me, this tool flash the newest Xperia devices 1 mark 3 and 5 mark 3 with no problem ?
[Sony Cross-Device General] munjeni:
Hi, yes at least implementation was done by help from @elukyan which was person who helped me implement mark 3 devices and he proved that its working on his device
[Sony Cross-Device General] jsshenyuxi:
Thanks so much!!
[Sony Cross-Device General] dungnghien:
Me too, plz help
[Sony Cross-Device General] munjeni:
It worked for you?
[Sony Cross-Device General] munjeni:
Ho can I help without your log?
[Sony Cross-Device General] dungnghien:
Same edcsxz user
[Sony Cross-Device General] munjeni:
No help without log
[Sony Cross-Device General] difei:
Hey dev, I got the "Your device is corrupt It can't be trusted and will not boot" error when flashing Xperia 1 mark 3 CN to TW. Attached my log.
[Sony Cross-Device General] dungnghien:
Me too. Hic. Im flashed cn again but still not boot
[Sony Cross-Device General] dungnghien:
It worked for 1 mark iii?
[Sony Cross-Device General] munjeni:
On a first look inside your log I can se error "fail to verifu cms", so it looks like you cant flash cn firware to tw device and vice versa. For further research and more logs I need to take a look into bot log which is inside trim area, soo do trim area dump with newflasher and post it here
[Sony Cross-Device General] dungnghien:
how to, you can teamviewer help me?
[Sony Cross-Device General] munjeni:
Well, on seccond look I found that your device is allready updated to 61.0.A.10.1, now when you flash the same firmware but CN or TW you getting bootloop because of rollback protection! Your device is not unlocked! Only way to make your device bootable is to repair it with Sony software! Option two is unlock than relock bootloader to reset rollback index, but do in mind about consequences caused by unlocking bootloader (device key forewer lost). And I will not repeat things here about rollback protection since explained almost 20 times in this thread. Option 3 is give me trimarea backup for analyse and I will tell you whats going on after looking into more logs from trim area. To get trim area dump use newflasher and confirm with Y when it ask to dump trim area
[Sony Cross-Device General] dungnghien:
Sony software, that mean companion?
[Sony Cross-Device General] dungnghien:
How's your device?
[Sony Cross-Device General] munjeni:
Well here is your logs extracted from trim area dump, if you have idea let me know, I can see slot b is non bootable, so please switch to slot A with command line:

newflasher set_active:a

reboot than simply try reflash agan
[Sony Cross-Device General] dungnghien:
not working

hic
[Sony Cross-Device General] munjeni:
Log?
[Sony Cross-Device General] munjeni:
When you flash CN rom it work?
[Sony Cross-Device General] elukyan:
Hi!

I successfully flashed my XQ-BC72 with TW firmware two days ago.

I used the latest version of your tool (v48). FW was downloaded by XperiFirm.

Only one thing - I have unlocked bootloader.

Thanks for the tool!)

Regards, Eugene

P.S. My Xp1-III was originally a CN version with the appropriate firmware.
[Sony Cross-Device General] munjeni:
Thank you so much for confirmation!
[Sony Cross-Device General] munjeni:
I saw this thread https://xdaforums.com/t/flash-rom-for-xq-bc72-china.4290459 which tells me everything, I have no idea why things is reported in newflasher thread, I wasted my free time for nothing! You need to flash edequate rom, otherwise you can't boot it, Also consider unlock your bootloader if you realy want aftermarket firmwares!
[Sony Cross-Device General] dungnghien:
Yep. And now. I flashed tw and working
[Sony Cross-Device General] munjeni:
Its because you switched to slot A ?? More details will help others whois unable to do the same! So please give us more details.
[Sony Cross-Device General] shyshi2021:
你好，切换到一个槽
[Sony Cross-Device General] shyshi2021:
But it can't be turned on. I'm x1 Mark3
[Sony Cross-Device General] shyshi2021:
I didn't solve the bootloader
[Sony Cross-Device General] DennisDD78:
So, if i understood right, to flash Xperia 1 III from Chinese to TW (for example) f/w unlocking bootloader is the only way to do it, at this moment ?

If it is, should i relock the bootloader after flashing ?
[Sony Cross-Device General] munjeni:
Give log otherwise I don't know
[Sony Cross-Device General] munjeni:
Newflasher is designed to flash firmware without need for unlocking bootloader! And it always worked. Whats going on mark 3 I have no idea! You should try. If you are on slot B you should try switch to slot A before flashing anything. If notthing help than sadly you need to unlock bootloader. Yes you should relock bootloader to reset rollback protection. Do in mind that when you unlock bootloader relocking do not help you back your device key which is unique and lost forever!
[Sony Cross-Device General] munjeni:
You no need to delete anything! Persist is by default after v48 ignored by default. Simlock is ignored by default since old versions of newflasher. Yes problem was inproper folders structure of the your fw, I'm glad you solved and gaved feedback
[Sony Cross-Device General] munjeni:
After changing slot from A to B and viceversa reboot is need! To reboot after changing slot simply disconnect usb cable
[Sony Cross-Device General] dogtagundergrounder:
Thank you for this great exploit!
[Sony Cross-Device General] songxuke:
--------------------------------------------------------
newflasher.exe v48 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 489439 MB
Total space on current drive = 953866 MB
Free space on drive = 489439 MB

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

Reboot mode at the end of flashing:
typa 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

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! But it is recommend to have dump in case hard brick!
n
Product: XQ-BT41
Version: 0.4
Bootloader version: 1322-1665_X_Boot_SM6350_LA2.0_R_34
Baseband version: 62.0.C.0.229
Serialno: OKAY
Secure: yes
Loader version: 1322-1665_X_Boot_SM6350_LA2.0_R_34
Phone ID: 0000:00440254266572
Device ID: 363252BB
Platform ID: 0013F0E1
Max download size: 805306368
Sector size: 4096
Rooting status: NOT_ROOTABLE
Ufs info: SKhynix,H9HQ15AECMADAR,A102
Emmc info: FAILEmmc-info not supported
Default security: OFF
Keystore counter: 4
Security state: Jb5j2wGd15OmSvjGXzQ6nQsLGmFPWPo46SjBbm9chmA=
Sake root: 0000000000000000000000000000
S1 root:
Root key hash: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Slot count: 2
Current slot: a
Battery level: 0 unsupported command

- Errornous DATA reply!
Replied with [0xD]:

00000000 44 41 54 41 30 30 30 30 30 30 30 31 00 DATA00000001.

- Error, no go_into_flash_mode DATA reply!
Sent command: continue.

Done.
Closing device.

I don't know how to solve this error. I used xperia 10 iii

I hope someone help me.

Thanks
[Sony Cross-Device General] jamshadinho:
Hi, i am using xperia 5ii, I just made a mistake today. my active slot is b. i flashed SEA firmware(because i am not getting VOLTE in india). but after flash, boot loop happened, I solved it by using xperia companion. is it possible to change regional firmware of xperia 5ii to SEA? mine showing GLOBAL-C2.
[Sony Cross-Device General] munjeni:
Yes if rom is flasheable without errors. You need to unlock bootloader and relock to reset rollback protection index, command "relock" doing index reset to zero. Not reseting index cause "device corrupted". Procedure is, unlock bootloader, flash rom, relock bootloader, let us know.
[Sony Cross-Device General] munjeni:
XQ-BT41 ? This is new model? Your device have "default security OFF" which I see for the first time, it looks like development board? Please try newflasher version 49 and let me know if it work for you!
[Sony Cross-Device General] munjeni:
New version is out!

- version 49 (31.07.2021)

Support for XQ-BT41
[Sony Cross-Device General] songxuke:
Thanks.

version 49 worked for me.

but I also have another problem. My phone is a development board.

it's not have Volte setting option, but my sim card has Volte

so sim card not worked in China.

I hope you can help me;

Thanks!
[Sony Cross-Device General] jamshadinho:
Thanks for fast response, Why this issue not happened to my xperia 1ii? it's working fine with SEA firmware and volte working fine. I have few more doubts I only once unlocked bootloader before, I think it was xperia z2. is this cause to lose DRM keys? will that affect low light photography? HDR will work on netflix? Can it be repaired through xperia companion? I need to know this before try.
[Sony Cross-Device General] jamshadinho:
One more thing i noticed, it may be a bug i guess, Battery capacity changing after flash, last month before i flash checked battery health it was 3850mah, after flash i got device corrupted message then i fixed it by changed slot and flash. After flash i checked battery health it was showing 3660mah(I was shocked). yesterday also i checked battery before flash it was 3660mah. but after device corrupted message i used xperia companion to fix the issue. now it showing 3575mah. will this be a bug? i am checking battery health by entering "*#*#SERVICE#*#*".
[Sony Cross-Device General] wjk199511140034:
I encountered the same problem with the c port cable, and it was solved by changing the cable. It may be a problem with the computer Thunderbolt interface. .

用c口线遇到了同样的问题，换线解决了，可能是电脑雷电接口有问题吧。。
[Sony Cross-Device General] munjeni:
Response for your question about drm is on this page allready! See post 1827. Further question about feature please ask in your device forum

This have nothing to do to newflasher, this is firmware or hardware related
[Sony Cross-Device General] munjeni:
Newflasher uses asyncrhronous usb transfer which seems is not enought fast for modern and fast usb technology. You probably can try linux or android version
[Sony Cross-Device General] munjeni:
Hi, this depend on firmware in use, you will need to flash firmware which have working volte, I can sugest ask in xperia 10 mark III forum to get idea which rom have working volte
[Sony Cross-Device General] munjeni:
Your log is incomplete and not enought. If you have flashed rom without errors thats a question for appropriate forum!
[Sony Cross-Device General] diva2711:
solved sir, thank you
[Sony Cross-Device General] jamshadinho:
Thanks, Now i changed slot to A and flashed. Now its showing SEA. unfortunately no VOLTE. *#*#4636#*# shows volte provisioned disabled and greyed out. Xperia 1ii SEA firmware supports VOLTE in india. is it possible to flash modem files of xperia 1ii to 5ii? or else any other way? I think sony removed Volte configuration of indian carriers. Now I am afraid xperia 1 iii may also not include Volte configuration. Now i need to switch to 1ii. I really miss my blue xperia 5ii and it's 120hz refresh rate.
[Sony Cross-Device General] munjeni:
I have xperia 10 mark 1, and I dont know anything related to mark 3, so as I said ask in your device model xda subforum to get more chance for what you need, newflasher thread is only for newflasher related things
[Sony Cross-Device General] dungnghien:
I think new version, need to add a feature that allows you to choose whether to format the data or not.
[Sony Cross-Device General] munjeni:
Option allready exist! Yoo need to know which files to delete before start flashing. Those files is userdata.sin, fota-reset.ta and maybe some more, to get idea consults with somebody in your device subforum which files to delete. Do in mind unlocking bootloader mean fota reset and erase userdata is performed by bootloader by default. Keeping userdata when flashing I call it "lazy flashing", my sugestion is always to backup personal files before flash, than flash all including userdata erase, than simply restore userdata when I found right rom for my personal use. That way I know that everything is setled right. If I do "lazy flash" at least I learned it on my z1c when I didn't erased userdata I got selinux denials on internal storage since my files on userdata didn't had right selabels and I had problems to access, modify, delete personal files. After that my option is always to erase userdata.
[Sony Cross-Device General] munjeni:
Newflasher support SO-51B but you need to flash SO-51B firmware, you can NOT flash SOG03 firmware!
[Sony Cross-Device General] songxuke:
Can Newflasher flash baseband?

if it can, how to flash?

if it can not, how to flash base band?

my phone is xperia 10 iii

Hope for help,

Thanks!
[Sony Cross-Device General] Avn88:
Hi @munjeni

Thank you for providing the tools and tutorials, I have the same issue with my xperia 1 III, and trying every posible ways to fix it. May I know how to switch the slot from B to A ? where should I insert this command line?

newflasher set_active:a
[Sony Cross-Device General] munjeni:
It can! You need to know which sin file contain baseband so when you found it simply flash those sin file. If you not know which sin file contain baseband ask somebody in xperia 10 III forum
[Sony Cross-Device General] munjeni:
You need to insert it in windows command prompt https://www.google.com/search?q=10+Ways+to+Open+the+Command+Prompt+in+Windows+10

Or simply create batch file in the same folder with newflasher. If this is all hard for you see this tutorial https://www.androidjungles.com/check-and-change-current-active-slot-on-android/
[Sony Cross-Device General] munjeni:
Anybody try and give me log from newflasher version 50 ?? This is experimental version
[Sony Cross-Device General] Avn88:
Hi @munjeni,

Thanks for the replu, I've solved this issue. ended up change to slot A does work! Thanks for everything
[Sony Cross-Device General] DennisDD78:
So, let me to summarize, please, to flash normally Xperia 1 III i should switch to slot A before flashing with phone connected in flash mode and then flash any f/w with Newflasher as usual ?
[Sony Cross-Device General] DennisDD78:
By the way, i do not see simlock.ta in the TW and HK downloaded firmwares! Yes, i read that NF is skipping this file by default in new versions, but i prefer to play it safe and delete it manually, but i can`t find this file in firmware`s files structure, maybe it`s hidden somewhere ?
[Sony Cross-Device General] munjeni:
You no need to change slot, you should change slot to A if slot B is not bootable for you. Simlock.ta is not hiden, if you not see it it probably not exist
[Sony Cross-Device General] munjeni:
Version 50 is out, experimental

- workin progress on asynchronous usb to make it more like synchronous, added progress bar during send-receive usb packets and more logging. Increased usb timeout to 2 minute. Trying fix sync command at the end of flashing as reported here -> https://github.com/munjeni/newflasher/issues/42

I will need newflasher log since its curently experimental version and might not work at all, thank you!