yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] YandereSan:
Does this flash both a & b slots? I didn't see any prompts asking me to do so.
[Sony Cross-Device General] munjeni:
Yes but not everything. More info https://github.com/newflasher/newflasher/issues/29
[Sony Cross-Device General] avetny:
Sorry for miss understanding, so basically we can try to flash different firmware that was failed before?

Thank you
[Sony Cross-Device General] munjeni:
Sorry delete those v34, I have found a bug!
[Sony Cross-Device General] avetny:
Got it !!! Haha thank you ?
[Sony Cross-Device General] munjeni:
Found bug on this line https://github.com/newflasher/newfl...9c#diff-aec029f3acba737833e98a88495c1536R2176
[Sony Cross-Device General] munjeni:
As I told earlier I have no idea why it failed before, samteee already reported after flashing us firmware there is no way flashing eu firmware for example, he sent me log but log was incomplete and I can't tell anything further without log, I need newflasher complete log to be abble to tell anything!
[Sony Cross-Device General] munjeni:
Version 35 is out!

- version 35 (08.08.2020)

Updated support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line)

Read disclaimer from first post first before use newflasher, trim area flasher/parser is now updated to support 32bit sized trim area units and it should work, but I can't tell for sure since I don't own xperia mark 2, do on your own risk!
[Sony Cross-Device General] Meloferz:
Hi [MENTION=4120742]munjeni[/MENTION], I tried a TA dump through newflasher and the TA dump process crash.

There is no log because after I press "y" to begin the TA dump it crash.

Attached is tadump_1.ta.

I have a Xperia 10 II XQ-AU52 HK Customization 59.0.A.5.2
[Sony Cross-Device General] munjeni:
Thanks! Can you try one from attachment? Please run newflasher from by double clicking "runme" instead of double clicking newlfahser, log will stay inside command line window
[Sony Cross-Device General] Meloferz:
Attached are log and tadump.ta
[Sony Cross-Device General] munjeni:
Please redownload archive from post above since I have edited post with new attachment, retest please, sorry
[Sony Cross-Device General] Meloferz:
Attached are log and tadump
[Sony Cross-Device General] munjeni:
Mny thanks! Can you please do one more test?
[Sony Cross-Device General] Meloferz:
Yes, no problem, attached are log and tadump
[Sony Cross-Device General] munjeni:
Thanks! Didn't crashed? Tadump_2.ta is not created?
[Sony Cross-Device General] munjeni:
This one I believing will create tadump_1.ta and tadump_2.ta, if you have some more free time for one test more it would be of good help please
[Sony Cross-Device General] Meloferz:
no didn't crashed, but I deleted old folder and just tried the new one I downloaded, so I will try and see if there is tadump_2.ta

---------- Post added at 10:23 AM ---------- Previous post was at 10:22 AM ----------

Sunday at work at my country is very quiet, so I have a lot of free time :p

I will try and report soon

Edit: attached log and tadump, newflasher creates two tadump, and overwrites tadump_2.ta if already exist
[Sony Cross-Device General] munjeni:
Many thanks! I will work now, hope in next hour I fix our bug.
[Sony Cross-Device General] munjeni:
New version is out, updated version 35.

In case trim area dump in version 35 is working it would be need everybody with trim area dumps to delete last line with 0000000 0000 (pre mark 2 devices only)! Users with mark 2 devices all trim are dump is invalid, if you need trim area dump you will need to make new dump, sorry! My hope version 35 do this right, let me know!
[Sony Cross-Device General] Meloferz:
attached are log and tadump with 35 newflasher version.
[Sony Cross-Device General] munjeni:
It looks very good! Many thanks!
[Sony Cross-Device General] Meloferz:
You're welcome! Glad to help! Yes it does, tadump_1.ta and tadump_2.ta are inside tadump folder
[Sony Cross-Device General] ilCactuss:
I read 40 pages of threads, I think a little explanation in the first post could help a lot of nooby people like me. Something like:

"You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.

There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.

Feel free to press N to every prompt since:

- TA dumping it's not related with DRM keys.

- Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.

If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash."
[Sony Cross-Device General] munjeni:
Duplicate of this https://github.com/newflasher/newflasher/issues/36 , not confirmed. I will close isue on github, you can reopen when you need.
[Sony Cross-Device General] munjeni:
I'm added excatly what you wrote to the first page.
[Sony Cross-Device General] munjeni:
Version 36 is out!
[Sony Cross-Device General] Forbiddendnb:
dont flash firmware for my Xperia 5 (j9210).

Windows 10, lates newflasher.
[Sony Cross-Device General] cd993:
Hey guys, sorry for the slight off topic however just a quick query to call upon some expertise...

I have an unlocked bootloader Xperia 1 ii. Is it possible to relock? I'm mindful of some of the consequences (warranty may still be void perhaps and drm keys still lost etc) but is it possible?
[Sony Cross-Device General] MeltdownSpectre:
Yes all devices released after the 1st gen Xperia 1 can be re-locked.
[Sony Cross-Device General] cd993:
100% sure?

Sony Developers got back to me and said:

"We are sorry to say that it is not possible to relock the bootloader of your device after unlocking it. However, it is possible to get back to the standard Sony software using our Flash tool"

I may sell this device and would like to relock it

Cheers!
[Sony Cross-Device General] MeltdownSpectre:
I've got the first gen Xperia 1, I had the bootloader unlocked for a few months and just last month I re-locked it and used the 'Repair' option from Sony PC Companion afterwards. The device booted back up, bootloader locked and DRM keys intact so it'll have no trouble playing Netflix HD content.
[Sony Cross-Device General] cd993:
Nice that's very good to know.

I'm order to lock was it just a simple case of fastboot oem lock?

Also curious how the DRM stayed intact as don't they get wiped when unlocking?
[Sony Cross-Device General] MeltdownSpectre:
Yes, I ran the fastboot oem lock command and then repaired the device with Xperia PC Companion.

Just FYI, please read through this thread. j4nn has explained how the keys are wiped when the BL is unlocked:

https://xdaforums.com/xperia-1/help/xperia-1-drm-keys-locking-bootloader-t4079715/post83026935

However, it seems that regardless of the TA partition being wiped, device functionality is not affected in any way and everything works just as it did before the BL was unlocked.
[Sony Cross-Device General] cd993:
That's amazing, very good news to hear!

Much appreciated :)
[Sony Cross-Device General] Vlackrs:
Love your work, SMF was not working and finally did it with yours.
[Sony Cross-Device General] munjeni:
All keys is back except DK (device key)! When you unlock bootloader those unique DK get deleted forewer. Also you get new status inside your secyrity test "hab been ever unlocked: yes". We worked hard to indentify what those DK key is used for but what we achieved is nothing, remain unindentified, even we don't know if those lost key break some functionality. If your device is under waranty Sony will easily identify your device as unlocked because of missing DK.
[Sony Cross-Device General] munjeni:
You must install flash driver! Just double click newflasher and confirm with Y when it ask you to extract driver, when extract just install and reboot your pc, newflasher will work then.
[Sony Cross-Device General] cd993:
Thanks for the information, useful to know.

Cheers!
[Sony Cross-Device General] Forbiddendnb:
Installed, Gordon 3.20.0, flashtool error too

Flashtool log
[Sony Cross-Device General] munjeni:
Is your device hard bricked before? Sony pc companion giving error too?
[Sony Cross-Device General] Forbiddendnb:
No sony pc companion, I don't know brick or no, all works fine, but i want flash lates firmware and RU customization.

I installed ~5 OTA updates.
[Sony Cross-Device General] addadi:
Hi, I'm with Xperia XZ1 Compact. my hardware volume keys do not work anymore and it is need to get into flash mode (the key combination is volume down + power). Is there a way to do so or use newflasher without the volume down key pressed? i.e. with adb or fastboot?
[Sony Cross-Device General] munjeni:
I have no idea why booth newflasher and flashtool not working for you. You can try replace usb cable for example. Also you need double check if flash driver is working on your pc trought pc device mannager, double check if you have any usb driver isues. Also it would be good trying newflasher on diferent pc.
[Sony Cross-Device General] munjeni:
Yes, connect usb cable and trought terminal emulator write command "reboot oem-53" or you can do it tought adb too with the same command
[Sony Cross-Device General] addadi:
Thanks! it does seem to work. Although it gave me at the end of the process the following messages:

Device is put now out of flash mode.
Sent command: Sync
Waiting sync to finish...
.............................. error, no sync response!
Closing device
.
[Sony Cross-Device General] munjeni:
Sometimes sync didn't giving reply, I realy don't know if those thing is bootloader releated or thing realated to asynchronous usb transfer but everything is ok at the end, so ignore it it's ok!
[Sony Cross-Device General] javiwz:
hi, thanks for developing this amazing tool, i'm having a little problem after flashing the fw with Newflasher to my xz premium G8141, it is not vibrating with the fingerprint authentication. I think that it is not the problem of fw, I have downloaded another one again and it remains the same ... I would rather need to logcat that, I don't know how to do it. Where could be the log?
[Sony Cross-Device General] munjeni:
If you need logcat download this app from playstore https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en and type "logcat" without quotes and press enter key. I can sugest you reflash every single file trought newflasher, all .ta files, all .sin files (except persist.sin), partition and boot bundle, in short all except persist.sin.
[Sony Cross-Device General] javiwz:
Thx, I'm doing it now
[Sony Cross-Device General] javiwz:
Hello, mate, I flashed all file and reflashed them again with new flasher, still same, I don't know why, because then it works with custom android 10 ROMs, vibrate on fingerprint unlock
[Sony Cross-Device General] MarkMRL:
What is the proper way to flash ONLY the system partition without touching anything else? I need to restore some system apks I accidentally deleted when debloating (rooted obviously). My phone is XZ1C if it matters.
[Sony Cross-Device General] Pandemic:
Remove userdata.sin before flash the fw.
[Sony Cross-Device General] munjeni:
In that case just system.sin
[Sony Cross-Device General] munjeni:
Might be rom isue!
[Sony Cross-Device General] javiwz:
Same as what I thought, fw issue
[Sony Cross-Device General] gioyocho:
Tried via newflasher, deleted all .ta files, even in boot folder, but i got again and again getvar:max-download-size error. Any solution, please?

Edit: Solved. Forgot to tap on usb debugging option and then allow to computer

Solutions:

1. Tap many times build number to open developer options

2. Turn on usb debugging

3. Connect phone via cable while it is turned on and press Allow when computer asks in it

4. Then try to flash android 10. Write n n n to commands, no need any gordon driver or etc

Maybe need restart phone and pc one time, when you turn on usb debugging and then Allow it

Also i installed android driver, after connect via cable, it was yellow ? <= that sign (in computer > manage > device manager)
[Sony Cross-Device General] javiwz:
Hello, I'm having this problem many times on the Windows 10

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:

Incorrect Function.

- Error write! Need nBytes: 0x18 but done: 0x0

nBytes[0x0]:

- Error writing command getvar:max-download-size!

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:

Incorrect Funtion.

- Error write! Need nBytes: 0x6 but done: 0x0

nBytes[0x0]:

- Error writing command reboot!

Closing device.

I fixed the problem, I had to choose SOMC Flash device in Device Manager, then it work normally
[Sony Cross-Device General] Miustone:
Would it be possible to just make Zip Files of NewFlasher (like everyone else)? It's pretty annyoing to always have to download a Tool that handles Rar while the Windows Explorer handles Zips out of the Box. I also faced that the reboot Options are not working with My Xperia 5. It just stays in Flashmode after finishing the Firmware flash. Would be a smart Option but actually it just needs a additional prompt which doesn't does a thing...

Thanks for You Work OP! Hope to see some more Updates <3

---------- Post added at 17:59 ---------- Previous post was at 17:59 ----------

Would it be possible to just make Zip Files of NewFlasher (like everyone else)? It's pretty annyoing to always have to download a Tool that handles Rar while the Windows Explorer handles Zips out of the Box. I also faced that the reboot Options are not working with My Xperia 5. It just stays in Flashmode after finishing the Firmware flash. Would be a smart Option but actually it just needs a additional prompt which doesn't does a thing...

Thanks for You Work OP! Hope to see some more Updates <3
[Sony Cross-Device General] munjeni:
Which reboot options is not working? Which one you tried? Log? You should install 7z, you will need it for the most of things
[Sony Cross-Device General] khubaib:
Hi , i have used this tool and i have managed to flash 3 devices but 2 devices giving me this error

i can see the devices in the device manager but it won't flash .. any one can help please
[Sony Cross-Device General] rename_nick:
I'm using V36 and flash ROM for my Xperia 1 II but the error has happened:

- Extracting sparse chunk super.040

- Uploading sparse chunk D:\XperiaFirm\XQ-AT52_Customized HK_58.0.A.3.194-R7A\flash_session\super.040

download:036aa638

OKAY.

flash:super

Error, didn't got flash OKAY reply! Got reply: FAILCheck payload hash

Can you help me now? I flashed many more.

Thanks a lot.
[Sony Cross-Device General] rename_nick:
I fashed ROM XQ-AT52_Customized TW_58.0.A.3.194-R11A for My XQ-AT2 with V36 but your system is corrupt was happened. This is the log.

I sent private message to munjeni.

Does anyone have similar problem?

Thanks.
[Sony Cross-Device General] munjeni:
Which one device flashed? Which two devices not flashed? If your devices is too old e.g. pre 2017 you can't use newflasher use xflasher or flashtool!
[Sony Cross-Device General] munjeni:
First of all hide your sensitive data from log. Try to set slot to A with newflasher from command line:

newflasher set_active:a

than reboot to bootloader mode and reflash whole rom by skipping only persist, flash the rest without skipping any single file from rom (except persist)
[Sony Cross-Device General] khubaib:
it was for the XZ Premium, but it's ok now I got it fixed, I repaired the rom using Xperia Companion and re-flash it with the tool and it got fixed, thanks
[Sony Cross-Device General] xFirefly93:
Newflasher seems to not find my Xperia 1 or anyone of the .FTF specific firmware files that is generated after a fully completed download with XperiaFirm. See the attached screenshots / pictures because I am literally stuck at the very personal moment and nothing that I've tried with manually myself seems to even work or getting me past Step #1 in the whole flashing process. What to do next..? :silly:
[Sony Cross-Device General] munjeni:
Your screenshots doesn't show anything which can help and it not show any info about problem. Which problem you have? On a first look on your screen shoots I can suggest you renaming of the folders:

instead of folder name "xperia 1 firmware"

change to "xperia_1_firmware"

in short make sure full path not contain space since newflasher have problem with it. Another thing which I can see is "writing command: ...............sin", what you have done? Did you added some command line parameters? You just need to put newflasher inside folder of the firmware and double click newflasher.exe, you no need to pass any extra parameters!
[Sony Cross-Device General] churchner420:
Just tried to switch to customized UK on my Xperia 5 II XQ-AS52. I let everything as it was in the downloaded folder from XperiFirm. Everything during the flash process was fine but then when I wanted to restart the device it says device corrupted. I am on the latest XperiFirm and newflasher. Tried to repair my device using Xperia Companion but that failed as well. Anything I can do? My device is still locked btw
[Sony Cross-Device General] TripodKnight:
I had the same problem flashing my AS52. Newflasher hangs on one file. I removed that file from the ROM directory and it flashed the rest and it got the phone to boot but my camera and phone calls don't work.

Edit: this file it hangs on is called dsp_X-FLASH-ALL-2389.sin

I think this might be a newflasher problem for the new untested ROMs.

I also relocked my bootloader and tried to restore using the Xperia companion app and it also failed to restore to factory defaults. It kept saying failed and try again.
[Sony Cross-Device General] TripodKnight:
Unable to Flash Xperia 5 ii XAS52

Hi Munjeni, thank you for this tool. I've tried multiple ROMs and all end with the same error when flashing this file on my Xperia 5 ii XAS52. Removing the file lets the remaining files flash but my ROM does not have the camera or phone functioning.

Are you able to please let me know what I've done incorrectly?

Thanks!
[Sony Cross-Device General] Da9L:
This might be a very noob question, sorry for me asking, but i have a Sony Z2 Tablet, running a custom recovery and rom, but i have some battery issues which is the same across all the different custom roms I've tried, so i want to go back to stock.

Basically can I use XperiFirm to download a firmware for my device and use this tool to flash it with even though I'm on a custom rom and recovery? Is there any files in the download from XperiFirm that i need to remove or can I just use this tool right away? Doesn't matter if my tablet gets bootlocked etc. again as I can always unlock it again if need be.
[Sony Cross-Device General] munjeni:
Hi, if it fail with xperia companion than I realy have no idea, might be your device related! Try flashtool if nothing help! Also try oldest firmware. From the screenshoot you posted dsp is not flashed / not corupted existing dsp partition. Have no idea. Also see post 1351 and try it
[Sony Cross-Device General] munjeni:
Nothing special, download firmware with xperifirm, put newflasher inside firmware, remove persist.sin (or confirm with 'n' when newflasher ask you), reboot phone to flash mode, double click newflasher and folow carefully
[Sony Cross-Device General] TripodKnight:
Thank you for your help. I've tried the steps in 1351 and it did not make a difference. I also have flashed with the earliest XQ-AS52 rom available on XperiFirm and did not have luck.

Others with the XQ-AS52 are beginning to have bootloops using Newflasher as well. Perhaps a warning should be included that shows Newflasher does not work yet with the Xperia 5 ii XQ-AS52.

EDIT: I have now tried flashing using a different USB port with a different USB Cable (not the Sony Official Cable) and now newflasher flashes properly. Strange, but I won't question it!

Thanks for all your help!
[Sony Cross-Device General] Da9L:
I think I might be doing something wrong. There is no persist.sin file in the downloaded firmware (Sony Z2 Tablet Wifi). Anyway, if i power down my device and press Volume down while plugging in the USB cord it shows up as "SOMC Flash device".. Trying to use your tool while in this mode I get "No usb device with vid:0x0fce pid:0xb00b !". I've also installed the drivers it requests to install just before (GordonGate). If I instead press Volume up while plugging in the USB cord it shows up as "Sony Fastboot interface" but the result is the same when I use your tool, I once again get "No usb device with vid:0x0fce pid:0xb00b !".

Fastboot works fine for other tasks though, as I've used that to flash recovery and boot img earlier.

I'm using Windows 10 if it matters.. Any idea what I might be doing wrong?
[Sony Cross-Device General] munjeni:
I expected the problem was not a newflasher, I am prety sure that newflasher working on all recent xperia models, I'm glad you have figured out problem!
[Sony Cross-Device General] munjeni:
Double check driver status inside windows device mannager! What is a usb vid and pid while SOMC Flash device?
[Sony Cross-Device General] Da9L:
Attached a screenshot from where i suppose that info is listed:

EDIT fixed img: [IMG="pid and vid"]http://cba.today/xda/pidvid.JPG[/IMG]
[Sony Cross-Device General] munjeni:
I'm just figured out your phone is 2014 model, this is what you are looking for https://xdaforums.com/crossdevice-dev/sony/dev-xflasher-command-line-flasher-t2986634
[Sony Cross-Device General] Da9L:
Thanks for pointing me in that direction! I've asked a question about simlock.ta in there
[Sony Cross-Device General] killa92:
Hi, I am having such a pain to flash G8232, I simply want to flash G8232_Customized DE_41.3.A.2.247-R1E. Flashtool didnt have device included and I can only find support files tested on 41.3.A.0.401. So I thought to try Newflash but I see this issue :-/
[Sony Cross-Device General] munjeni:
I'm unsure about xzs but if your somc flashdevice usb pid is adde than you can't use newflasher, instead search for xflasher
[Sony Cross-Device General] killa92:
Thanks mate, will check that out. I ended up managing to get flashtool to do the job but had to use a slightly older firmware version as didn't have a recent .FSC file, once region was changed I just finished of with companion repair and all is well and upto date with new regional cust. I did actually USB log the companion session so I could create a more recent FSC for better flashtool accuracy regarding write areas but it doesn't seem to be parsing even though I did it all correctly. Times have changed since my old device, Sony just doesn't break so easily ?