yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
The same way like you doing it on windows10, only diference is instead of using newflasher.exe you need to use newflasher.arm64_pie. You just need android terminal emulator in order to run arm newflasher, the rest of things like "how to use terminal emulator' google is your friend, I have no intention of explaining the simplest basic things
[Sony Cross-Device General] phillybro2010:
I'm trying to flash my J9110 to J8170 to get VOLTE on TMobile. The issue I'm having is once I place the flashtool inside the outputted firmware folder and run the flash tool, then nothing happens once I run the exe and go through the initial prompts. It's ask me to choose a reboot option, install the gate driver, and then tells me to press any key and once that's done the command prompt closes. I've put the phone in flash mode and I can see the green LED light, so I'm not sure what else there is to do.
[Sony Cross-Device General] munjeni:
Type 'n' for optional steps
[Sony Cross-Device General] ZeroCHN:
thinks
[Sony Cross-Device General] Rox598:
I wasnt able to get the lastest software update for the customized version i flashed via ota (UK) any idea why? Xpericheck said it was live but it wouldn't show up on my phone. (5 ii)

I had to flash the factory image to get it which wiped my phone so i don't want to do that every month, any ideas?

Huh just noticed in software info it says GLOBALEEA but that May update isn't released yet but my device is on the May update

wtf is going on here? I searched the thread but was confused at what I was reading is there a way to fix this? even if it means reflashig the EEA one?
[Sony Cross-Device General] munjeni:
Firmware bug, confirmed! -> https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84453313 , newflasher nothing to do about it.
[Sony Cross-Device General] Rox598:
Yeah I see that post now such a weird thing

Even stranger is I did a repair via Xperia companion and it restored the phone to the "O2" variant. But when I flash the UK one manually it's GLOBALEEA so odd.
[Sony Cross-Device General] Dual Xeon:
Help me. I use Xperia 1 mark 3 , flash rom Custom

Product: XQ-BC72

Version: 0.4

Bootloader version: 1322-1669_X_Boot_SM8350_LA1.0_R_25

Baseband version: 61.0.A.4.42

Serialno: QV7209T18G

Secure: yes

Loader version: 1322-1669_X_Boot_SM8350_LA1.0_R_25

Phone ID: 0000:35292034013120,0000:35292034013121

Device ID: 3160DC17

Platform ID: 301350E1

Max download size: 805306368

Sector size: 4096

Rooting status: ROOTABLE

Ufs info: SKhynix,HN8T15BZGKX016,A002

Emmc info: FAILEmmc-info not supported

Default security: ON

Keystore counter: 3

Security state: 3ZSdgbZm7KCDQGLaJXvBJAFt57+Ggguoee3iMp9Gj+s=

Sake root: 032F03E14777E1B8A88520664B7B

S1 root:

Root key hash: DE899A8AE73A3BB3062F1597B3316A930095EEC7CE8BD9641DE7850E034211E10B8D032F03E14777E1B8A88520664B7B

Slot count: 2

Current slot: b

Device is put now in flash mode.

Repartitioning...

Found partition_delivery.xml in partition folder.

Determining LUN0 size...

UFS raw data[0xE0]:

00000000 59 00 00 00 00 00 03 04 01 00 01 7F 00 01 04 00 Y...............

00000010 03 10 03 21 01 02 03 04 01 AD 16 1A 02 00 00 B1 ...!............

00000020 03 20 45 06 20 00 00 00 00 00 05 00 00 00 00 00 . E. ...........

00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000040 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000050 00 01 B1 01 01 00 00 1E 00 2D 02 00 01 00 00 00 .........-......

00000060 00 00 00 0C 00 00 00 00 03 B9 48 00 00 00 00 01 ..........H.....

00000070 02 00 00 00 00 03 B9 48 00 00 00 00 00 00 00 00 .......H........

00000080 00 00 00 00 00 00 2D 02 01 01 01 01 00 00 03 00 ......-.........

00000090 0C 00 00 00 00 00 00 08 00 00 00 00 01 02 00 00 ................

000000A0 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 ................

000000B0 00 00 00 2D 02 02 01 02 01 00 00 03 00 0C 00 00 ...-............

000000C0 00 00 00 00 08 00 00 00 00 01 02 00 00 00 00 00 ................

000000D0 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

LUN0 size = 249896960

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

Skipping partition-image-LUN0_124936192_X-FLASH-ALL-4BA8.sin

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

- Extracting from partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin

- Extracting signature partitionimage_0.cms

- Uploading signature D:\XQ-BC72CN_61.0.A.4.42\partition\partitionimage_0.cms

signature:0000089c

Error, signature DATA reply size: 28 less than expected: 12!

Set slot 'b' active.

Device is put now out of flash mode.

Sent command: powerdown.

End. You can disconnect your device when you close newflasher.exe

Closing device.

Press any key to continue . . .
[Sony Cross-Device General] munjeni:
New version is out!

- version 43 (12.06.2021)

Support for Mark 3 devices

Let me know! :)
[Sony Cross-Device General] tamsinzara:
Very informative! Thanks for sharing! :)
[Sony Cross-Device General] munjeni:
Well, seems flasing protocol is changed again. I have made version 43 for this guy https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-85169879 but he disapeared and didn't reported anything, so if you are ready to test custom newflasher v44 let me know first! When you confirm I will make v44 for just you for test, confirm when you are ready.
[Sony Cross-Device General] Dual Xeon:
Well, seems flasing protocol is changed again. I have made version 43 for this guy https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-85169879 but he disapeared and didn't reported anything, so if you are ready to test custom newflasher v44 let me know first! When you confirm I will make v44 for just you for test, confirm when you are ready.

yes. tks u so much, when i ready, i will comment for you :D
[Sony Cross-Device General] munjeni:
Otherwise I'm not magician to know why mark 3 is not supported. I need free time for something else instead of looking at the glass ball. Active peoples from xda will get v44 imediatelly, inactive only when ready :)
[Sony Cross-Device General] elukyan:
Hi!

I'm ready for testing. PMed you.
[Sony Cross-Device General] munjeni:
Version 44 is out!

- version 44 (19.06.2021)

Fully Mark III device implementation, thanks to elukyan for providing sniff log, spending time in testing, thanks man!
[Sony Cross-Device General] munjeni:
New version is out!

- version 45 (20.06.2021)

Implemented battery level check and prompt user to take a risk and continue flashing or stop flasing if battery level is less than 15 percent
[Sony Cross-Device General] churchner420:
Hey man, does that bug still persist on the latest Mark III devices? Would be interesting if Sony has changed that since the 5 II for the future. I fear we will need to flash another firmware like thing which noone has developed a tool to download it for, yet... A tool that downloads the necessary firmware parts for region Customisation changes
[Sony Cross-Device General] munjeni:
I don't know! I have xperia 10 non mark :) You tell me!
[Sony Cross-Device General] jemcik:
I was able to downgrade my Xperia 5 mark 2 (XQ-AS72 version) from android 11 (58.1.A.5.159) to android 10 (58.0.A.28.51, XQ-AS52 version) using Newflasher only with UNLOCKED bootloader.

Method with unlocking and relocking bootloader described here DOES NOT work :(

I tried three times always resulting in a message that firmware is corrupted and device cannot boot, turning off in 5 seconds bla-bla-bla.

After flashing XQ-AS52_Customized EEA_58.0.A.28.51 I relocked bootloader and everything works perfectly.
[Sony Cross-Device General] munjeni:
I can't tell for sure how it work since I don't owning phone with possibility to relock bootloader, but what I found is described and its close. So steps is: unlock, flash old rom, relock, right?
[Sony Cross-Device General] jemcik:
exactly
[Sony Cross-Device General] munjeni:
Thanks for confirmation, post https://xdaforums.com/t/guide-flash...-xq-at51-with-flashtool.4119707/post-84509417 updated
[Sony Cross-Device General] Kombre212:
Newbie question.. I found some people excluded the .ta file before they do flashing. I'm curious, what .ta file is, exactly?

Is there any harm to include them when do flashing, like the 'persist' file, for example?

Thank you
[Sony Cross-Device General] munjeni:
Don't flash persist, reason why -> https://xdaforums.com/xperia-xz1-compact/help/android-attest-key-lost-bootloader-t3829945

flash all the rest of files including all ta files.
[Sony Cross-Device General] Kombre212:
Thanks. Then flashing. ta files won't affect or harm anything, right?
[Sony Cross-Device General] munjeni:
yes
[Sony Cross-Device General] wybymz:
For help, my XZ2P (H8166 52.1.A.3.49) has been rebooted automatically at the Sony LOGO after the kernel has been flashed. Now the Fastboot mode and Flashmode cannot be accessed. Press and hold the volume - , connect to PC, it will automatically start up, display SONY, then shut down and start up again, the USB cable and PC (Win10) have been changed, how to repair, thank you.

Kernel link

https://xdaforums.com/t/caf-kernel-10-kang-kernel-for-xz2-c-p-overclock-52-1-a-3-49.4058335/
[Sony Cross-Device General] Kombre212:
Proceed to flash with .ta files included.. Hope everything will be alright..

Thanks once again for making such a great tool.
[Sony Cross-Device General] munjeni:
Hold down all buttons (volume up, volume down, power) until device fully shutdown, than connect usb cable while holding volume down. In the same time watch your PC device mannager, look for yellow triangle if you see them you have missing flash driver. I can suggest you run newflasher and confirm 'y' when it ask you to install gordon gate, install them, reboot your pc, try again
[Sony Cross-Device General] wybymz:
Thank you, I tried to install the driver according to your method, it will prompt me whether to uninstall, I uninstalled and restarted and installed again, the PC still cannot connect to the phone. There is a yellow triangle in the device manager: Unknow USB Device (Device Descriptor Request Failed)
[Sony Cross-Device General] munjeni:
Windows drivers mess? Try to install Sony PC Companion software and do "repair phone", it will install drivers automaticaly and repair windows mess with drivers. Also try diferent usb port one from back of the pc for example. Also try diferent usb cable it might be broken. Also check for dust inside phone usb port. If you installed gordon gate I see no reason why you see yellow triangle other than bad cable or usb port
[Sony Cross-Device General] wybymz:
You mean Xperia Companion? No, press and hold the volume- step in the "Xperia Software Repair" option, unable to proceed to the next step. I used all the USB ports on the laptop😭
[Sony Cross-Device General] munjeni:
Xperia companion, yes. Than drivers is not a problem definitelly. You have tried all usb ports so it looks like only problem is phone usb port defect or defect in cable, I have no other idea. What is a VID and PID in device mannager of the usb device which have yellow triangle? You sdhould go to friend and try his cable+pc to be sure, we can't gues
[Sony Cross-Device General] Hichem2006:
Hello, I tried flashing Android 9 stock ROM on my Xperia XZ2 Dual SIM H8266, and it ends in a bootloop then shows a message saying "Your device is corrupt and can't be trusted and will not boot Your device will be powered off in 5 seconds"

PS: I didn't downgrade, I had Oreo 8.1
[Sony Cross-Device General] munjeni:
And you not flashed userdata? Skiped some more files? How can I help you without your newflasher log and more details?
[Sony Cross-Device General] Hichem2006:
I flashed userdata, deleted all .ta files, flashing went smoothly and without any errors, hope this helps
[Sony Cross-Device General] Hichem2006:
Also, where can I find newflasher log files ?
[Sony Cross-Device General] munjeni:
Simply before you "press any key to exit newflasher" right click and sellect all than copy paste here
[Sony Cross-Device General] Hichem2006:
Well okay, I'm downloading a ROM with another customization.

How does customizations affect things ?
[Sony Cross-Device General] munjeni:
Customisation depend on provider and country and is optimised for that purpose

Don't delete it, flash all files excluding only persist.sin, so flash all files but only skip persist
[Sony Cross-Device General] Hichem2006:
I didn't download the ROM from XperiFirm, could this be the problem ?
[Sony Cross-Device General] munjeni:
Due to recent changes in newflasher seems I have broke something, for example in your log I can see system_other is flashed to the same slot A as normal system A which is wrong. In next few days I will try eliminate problem. You should use sony software and repair you hone and wait new version of the newflasher
[Sony Cross-Device General] Hichem2006:
How to use Sony Software ?
[Sony Cross-Device General] Hichem2006:
Or should I try an older version of newflasher ?
[Sony Cross-Device General] munjeni:
No it will not work because I found your rom filanames is not something like system_other_X_FLASH... instead its something like system_other.sin, also I have found some more bugs like flash:system instead of flash:system:a .... I will try to fix it right now hope in hour it will be ready
[Sony Cross-Device General] Hichem2006:
I really hope....I've been looking for the problem for 3 days now :(
[Sony Cross-Device General] munjeni:
New version is out.

- version 46 (08.07.2021)

Fix problem with filenames which contain "_other", it need to be always flashed to the diferent slot

Please try and let me know! Also please give me newflasher log just to confirm if I have fixed that, thanks!
[Sony Cross-Device General] Hichem2006:
I'll try !
[Sony Cross-Device General] munjeni:
Dont forget to confirm and to give newflasher log, thanks! It should work now Im sure
[Sony Cross-Device General] Hichem2006:
IT WORKED OMGGGGGGGGGGGGGGGGGGGGGGGGG

THANKS !!!!!!!!!!!!
[Sony Cross-Device General] Hichem2006:
My bad, I closed the window before copying the log, I'm sooooo sorry
[Sony Cross-Device General] munjeni:
No problem Im sure all is right now, enjoy!
[Sony Cross-Device General] Hichem2006:
You just made a man super happy, I could've went here sooner
[Sony Cross-Device General] munjeni:
I know :)
[Sony Cross-Device General] Hichem2006:
Thanks soooo much
[Sony Cross-Device General] noahhhh:
Which files should I delete for keep data(1 mark 3)?
[Sony Cross-Device General] morphius88:
Question from a semi noob:

I have an Xperia 5 II XQ-AS72. It was shipped to me with android 11 but I somehow downgraded to android 10 (but from Europe XQ-AS52) because the first Android 11 update was just bad. Anyway, I used XperiFirm to get the latest firmware 58.1.A.5.280 for the XQ-AS52 version and flashed it with NewFlasher. It installed fine and booted fine. I then relocked the bootloader.

I tried to use the SONY Companion to repair the device but it gives me an error: Temporary device incompatibility detected. So my question is, can I somehow repair it while staying on XQ-AS52 or do I have to flash XQ-AS72 firmware instead before repairing it?

Edit: Tried flashing XQ-AS72 HK firmware and it corrupted device and would not boot. Flashed back to XQ-AS52 EEA
[Sony Cross-Device General] munjeni:
Why you repairing with Sony companion at all? Did you flashed all the files including user data and all ta files (excluding persyst)?
[Sony Cross-Device General] munjeni:
I dont know. Dirty flashing I not recommend. Instead make backup than restore your files
[Sony Cross-Device General] morphius88:
I was following directions HERE under the flashing firmwares and relocking part. And yes I flashed everything excluding persist.
[Sony Cross-Device General] munjeni:
Dont forget partitions and bootdelivery! Well, those incompatibility error is due you flashed diferent model firmware! To get back to 72 folow this steps:

1. unlock bootloader again

2. flash all exclude only persist

3. last step relock bootloader at the end! With this step rollback protection is reset to zero

Let me know
[Sony Cross-Device General] morphius88:
Yea I ended up unlocking again and flashing 72 HK and relocking. But the companion still showed compatibility issue. Maybe my original firmware was 72 SEA not HK? Either way, will it be a problem to take OTA if it stays as is on 72 HK.
[Sony Cross-Device General] munjeni:
My phone have no relock feature so I dont have idea how ota work when bootloader is unlocked. On my xperia 10 bootloader is unlocked and ota no more work and I cant relock bootloader. Do in mind when bootloader is unlocked device unique key is lost forever and also another key from rpmb is deleted too, and relocking bootloader didnt restore those keys! Probably some features is limited too because of those missing keys. For recent phones I apsolutly have no idea, try dial service menu and look for fw info! Also you can see firmware history inside trim area dump if you open them with an text editor. You should try flash 52 and look carefully for bootloader version maybe it stay at the 52 even if you flashed 72, just guesing because something is broken after you flashed wrong model fw and probably made unrecoverable changes
[Sony Cross-Device General] trunghxf:
guys, im new to this, im gonna flash stock rom to my x1. Do i still need to delete all .ta files?

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

i flashed and it stucked here:
[Sony Cross-Device General] munjeni:
Don't delete .ta files, delete only persyst.sin! Make sure you downloaded rom for J8110
[Sony Cross-Device General] trunghxf:
thanks for replying

My phone was Softbank one, code 802SO as they told me when i bought it, later i check with cpuz and newflasher it said J8110, maybe they already flashed it to UK ROM.

Then i flashed it with latest android 10 ROM for UK and it stucked there, how can i progress past it?
[Sony Cross-Device General] munjeni:
You probably can't boot firmware from diferent phone model, ask in your phone model subforum for further hlp I can't help since my phone is xperia 10. Try version 47 to get idea about firmware history!
[Sony Cross-Device General] munjeni:
New version is out!

- version 47 (15.07.2021)

Removed prompt for persist.sin flashing, now its by default skip. Implemented bootloader log retrieval at the end of flashing for better understanding when something goes wrong. Implemented firmware log history retrieval for those who want to know history of the flashed firmwares
[Sony Cross-Device General] trunghxf:
sir, can you please take a look to see what wrong in here:

Xperia 1 Softbank 802SO version can be flashed with UK ROM, it's been confirmed in X1 subforum, but i can't flash UK ROM version J8110_55.1.A.12.28_Customized UK onto it.

Btw i extracted FTF file with WinRAR, is there any problem with it?
[Sony Cross-Device General] trunghxf:
****, i just realized im stupid. Cannot use WinRAR to extract ftf file to flash right? need to unpack it properly using XperiaFirm

any other way to unpack it right beside XperiaFirm? i don't want latest ROM, i only need android 10 ROM which is already ftf file.
[Sony Cross-Device General] munjeni:
Thats not a problem! You have problem with incompatibility between your device model and fw model! Your device is 802SO and you need to flash 802SO rom. You can't flash partition sin file since you getting error (Partition table doesn't match current provisioning. Partition userdata is out of bounds.[ERROR @ fastboot.c:1286]:

Sanity check of gpt table failed) so you definitelly can't flash partition sin file, try delete those file and try flash the rest. I can sugest download another firmware from xperifirm and try flash including partition delivery. Do not mix files!
[Sony Cross-Device General] trunghxf:
I watched a tutorial video where he using XperiaFirm to get newest firmware, and when XperiFirm unpacked it, there's partition_delivery.xml within partition folder. And he can flashed them with Newflasher without any bug.

But when im using WinRAR to extract the ftf file, there's completely different set of files, and there's no partition_delivery.xml in partition folder. so i think there's something wrong with unpacking ftf by WinRAR
[Sony Cross-Device General] trunghxf:
i got it running, by copying the xml from low low low below in the extract tp the partition folder, and it worked :D

thank you so much for helping me ^^
[Sony Cross-Device General] munjeni:
I'm glad you got it working
[Sony Cross-Device General] jan8045:
You saved my phone (XZ2 Compact) from being bricked and discarded! Many, many thanks!
[Sony Cross-Device General] braveheartleo:
Good day @munjeni

I have an Xperia XZ1 that is an A-only device.

Current slot: F

I noticed that on certain .sin files, newflasher erases and then flashes said file TWICE on the same partition e.g.,

Processing adspso.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gunziped ok.
- Extracting from adspso.sin
- Extracting signature dsp.cms
- Uploading signature c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\dsp.cms
signature:00000531
OKAY.
- Extracting sparse chunk dsp.000
- Uploading sparse chunk c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\dsp.000
download:01000000
OKAY.
erase:dsp
OKAY.
flash:dsp
OKAY.
- End of adspso.sin
- Extracting from adspso.sin
- Extracting signature dsp.cms
- Uploading signature c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\dsp.cms
signature:00000531
OKAY.
- Extracting sparse chunk dsp.000
- Uploading sparse chunk c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\dsp.000
download:01000000
OKAY.
erase:dsp
OKAY.
flash:dsp
OKAY.
- End of adspso.sin

Processing bluetooth.sin
- setting up inflate...
- infflating, please wait...
.
- inflate returned: 0
- gunziped ok.
- Extracting from bluetooth.sin
- Extracting signature bluetooth.cms
- Uploading signature c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\bluetooth.cms
signature:00000537
OKAY.
- Extracting sparse chunk bluetooth.000
- Uploading sparse chunk c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\bluetooth.000
download:0005b000
OKAY.
erase:bluetooth
OKAY.
flash:bluetooth
OKAY.
- End of bluetooth.sin
- Extracting from bluetooth.sin
- Extracting signature bluetooth.cms
- Uploading signature c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\bluetooth.cms
signature:00000537
OKAY.
- Extracting sparse chunk bluetooth.000
- Uploading sparse chunk c:\modbin\xperia\newflasher\SO-01K_47.1.F.1.105_1311-7618_R18B\flash_session\bluetooth.000
download:0005b000
OKAY.
erase:bluetooth
OKAY.
flash:bluetooth
OKAY.
- End of bluetooth.sin

I think this has been brought about by a recent change in newflasher whereby it flashes to both slots on A/B devices. Can this redundancy, and also somehow an inefficiency as well, be avoided on A-only devices like mine?

Many thanks for this tool. 😊👍
[Sony Cross-Device General] munjeni:
OMG! You have the same device like tanipat, but how thats possible :( Lets see what tanipat get