yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] beenoliu:
I have these files in boot folder:

boot_delivery.xml

bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-42E5.sinb

bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-A90D.sinb

bootloader_X_Boot_MSM8998_LA1_1_N_59-A_X-FLASH-ALL-5ADA.sinb

Maple_XBootConfig_MiscTA.tab
[Sony Cross-Device General] munjeni:
Hi, you must use new version, that thing is allready fixed! :) It would be great having your log after you try new version!
[Sony Cross-Device General] munjeni:
New version is out! Implemented safety bootloader unlocking, for details see first post and step 3! :)
[Sony Cross-Device General] beenoliu:
Same result with tanipat

--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&26670dd9&0&2#{a5dcbf10-6530-11d2-901f-0
0c04fb951ed}
Class Description: 通用序列匯流排控制器
Device Instance Id: USB\VID_0FCE&PID_B00B\5&26670DD9&0&2

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.1.244
Serialno: CB512E90ET
Secure: yes
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808085476,0000:35700808085477
Device ID: 8DA4A2BC
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
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 partiti
on image!

Processing .sin files...
Created ouput folder flash_session
No .sin files in current dir.

Processing .ta files...
No .ta files in partition dir.

Processing boot delivery...
- Found boot_delivery.xml in boot folder.
- Boot delivery version: 1306-5035
- Verifying if boot delivery match with device...
?q峉?6{Q?X;?造槳 "ORM_ID="0005E0E1";PLF_ROOT_HASH="
Didn't found bootdelivery that match your device!

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
重疊的 I/O 操作正在進行中。
- Error reply: less than 4!
Raw input[0x0]:

請按任意鍵繼續 . . .
[Sony Cross-Device General] munjeni:
Tanipat can you give me your boot_delivery.xml file? Seems boot delivery not fixed :(

Edit:

Seems boot_delivery.xml is not in english?
[Sony Cross-Device General] munjeni:
Search for Androxyde Flashtool or search for xflasher!
[Sony Cross-Device General] adamdfox:
Having issue flashing XQ-AT51_Customized UK_58.1.A.5.474-R7B on Xperia 1ii, worked fine on previous ROM, cable lets me fastboot so doesnt seem to be a driver or cable issue, and tried using New flasher 51 and 52.

I get the following output:

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 function.

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

nBytes[0x0]:

- Error writing command continue!

Closing device.

Any ideas on the error codes?
[Sony Cross-Device General] munjeni:
Confirm with Y on gotdongate driver prompt, install driver, reboot pc, try again, if not help try connect to another usb slot on pc, double check whether usb cable fit well on your phone since sometimes there is some dusts and not want to fit well
[Sony Cross-Device General] adamdfox:
Spot on it was a driver issue, weird that fastboot worked though.

Anyway many thanks
[Sony Cross-Device General] denymer:
Mod edit - translated by https://www.deepl.com/translator:

Good day to all, I bought a Sony 5 II[XQ-AS52] but the phone was Retail Demo mode, now I do not know how to remove.Tried to enter *#*#73556673##*#* did not help. Installed latest firmware from XperiaFilm and flashed via Newflasher v52b but no help, can you suggest how to fix situation.

*************************************************************

Всем доброго времени суток, купил Sony 5 II[XQ-AS52] но телефон оказался Retail Demo mode теперь не знаю как удалить.Пробовал вводить *#*#73556673#*#* не помогло. Установил последнюю прошивку из XperiaFilm и прошил через Newflasher v52б, но не помогло, может подскажите как исправить ситуацыю.
[Sony Cross-Device General] Oswald Boelcke:
@denymer

As courtesy, I've translated your posts above. With reference to rule no. 4 of the XDA Forum Rules, please post in English or add at least an English translation to your Russian posts. Thanks for your cooperation!

Spoiler content hidden.

Furthermore, I deleted the duplicate to this post that you created. Please review the above linked forum rules with special emphasis on rule no. 5 and post only ONCE!

Regards

Oswald Boelcke

Senior Moderator
[Sony Cross-Device General] Magissia:
Is there a known limitation that would prevent us from picking partition A or B when flashing ? If not, could it be considered to allow us to forcibly choose on which partition the system is flashed ? (A or B)

If i replace the boot sin with a boot img (patched boot image), will it be picked up and flashed ? If not, could it be considered ?
[Sony Cross-Device General] Hippie459MN:
On my Xperia 1 III, I extracted the File "boot_********.sin" with UnSIN from the official firmware, patched the boot image with Magisk, then flashed the patched boot image to both the A and B partition in fastboot as shown below. Super easy.

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img

That is one way you could do it. Not sure if you could do it the way you described to be honest.
[Sony Cross-Device General] munjeni:
As described post earlier, use fastboot to flash modified boot image. You can't do it with newflasher since newflasher is able to flash only signed image and you can't modify .sin images since you will broke signature of them. If you need to switch slots you can do it two way, newflasher or fastboot, for more info search. Do in mind if you change slot you need to reflash things to that slot oterwise your rom might not boot
[Sony Cross-Device General] Magissia:
I wished i could skip the fastboot step and do everything from one tool, that's it.

Had no issues pushing the patched boot image.
[Sony Cross-Device General] godshades:
this is what I do

change usb port

allow oem unlock

allow usb debug
[Sony Cross-Device General] ben_2777:
Hi everyone,

Xperia XZ1 Compact (G8441) / HAVOC 4.10+GAPPS

I have issue trying to do recovery of backup. People advise me to update my firmware. Do you confirm it is compatible with my smartphone, please? Do you think firmware and failed to restore through TWRP is linked? I got tthis error during restore: "extractTarFork() process ended with ERROR:255"

https://xdaforums.com/t/rom-havoc-os-4-6-official-r.4225905/post-85913321
[Sony Cross-Device General] Hichem2006:
hey, is it possible to flash a new version of the software but its the same Android version without wiping userdata ?

Im upgrading from H8266_52.1.A.3.74_Customized-US to 52.1.A.3.137-R1C
[Sony Cross-Device General] casouzaj:
I did it. Besides, I dirty-flashed a 52.1.A.3.137 Customized US firmware meant for the H266 variant, to my H8296 phone, originally running the Customized HK 52.1.A.3.49 ROM. I deleted all the .ta files and the userdata .sin file from the folder No issues, at all!
[Sony Cross-Device General] Hichem2006:
thanks. so i wont lose my data right?
[Sony Cross-Device General] Hichem2006:
also, does the latest update solve the microphone problem?
[Sony Cross-Device General] Hichem2006:
also, the files downloaded by XperiFirm have that X-FLASH-CUST-B6B5 text at the end, should I rename it and flash normally?
[Sony Cross-Device General] casouzaj:
That's right! I haven't lost even any of the tricky MS Intune Company Portal (and its related work) apps.
[Sony Cross-Device General] casouzaj:
Haven't faced any microphone issues before nor after. So, can't comment on it.
[Sony Cross-Device General] Hichem2006:
what about this?
[Sony Cross-Device General] casouzaj:
Don't know anything about this file (nor remember having noticed it). Nevertheless, there is a .ta file to be deleted in the boot folder too.

EDIT: The two oem_*_XFLASH_CUST.sin files are, indeed, present in the folder I used when I ran newflasher.
[Sony Cross-Device General] Hichem2006:
so XperiFirm didnt put those weird names ?
[Sony Cross-Device General] Hichem2006:
ERROR: TIMEOUT: failed with error code 997 as follows:

Overlapped I/O operation is in progress. - Error write! Need nBytes: 0x18 but done:0x0 nBytes[0x0]:

I tried flashing and this error popped up, what should I do?
[Sony Cross-Device General] Hichem2006:
UPDATE: I restarted the PC and it went smoothly, the system booted and didnt lose any data.

I just have an issue that persists and it's the microphone not working
[Sony Cross-Device General] Hichem2006:
how can I relock the bootloader ? fastboot cant do it

and if I do it, will i lose data?
[Sony Cross-Device General] casouzaj:
As far as I know, all Android phones can be re-locked by fastboot oem lock. I haven`t unlocked by XZ2 phone, for what I`m not sure. However, I know that backed up DRM keys don`t work on tama (XZ2/C/P and XZ3) devices when re-locked. If I had unlocked my XZ2 phone, I would walk the custom ROM (SODP, LOS) path, which, at least, are regularly updated with security patches.

If you decide to relock your phone, perhaps you should put your lock code, just the way you did when you unlocked it, like:

fastboot -i 0xfce oem lock 0xyour_code

Anyway, your userdata partition would be wiped off whilst relocking the bootloader.
[Sony Cross-Device General] munjeni:
Please search in Xperia XZ1 Compact forum, there is many tutorials for what you need, just go there and search
[Sony Cross-Device General] KnockOut^9:
uhm so, if i want to flash my Xperia with an updated firmware and i delete every single .ta files and every .sin files from firmware folder, i can save my personal homescreen (widget for example?), my photos, videos, settings from apps and everything?

Interesting.
[Sony Cross-Device General] ben_2777:
Hi, I did more than 30min. Only one forum is talking about TWRP and what I found is not helping me. Link (I am not developper). I did searching, I am new in XDA maybe I don't look at appropriate area reLINK. I guess I am stuck like this.
[Sony Cross-Device General] munjeni:
Hi, all questions related to your phone model you should ask here https://xdaforums.com/f/sony-xperia-xz1-compact-questions-answers.6928/
[Sony Cross-Device General] Mohammed Ajeena:
Hi experts, I had a Sony Xperia 1 ii Docomo version (SO-51A), I want to flash a customized software on it (UK or International versions), is that possible ???
[Sony Cross-Device General] solopf:
Hi, I see the supported model is just marked as "mark 2" or "mark 3". Does it support Xperia PRO or Xperia PRO-I? I believe they are similar to "mark 2" or "mark 3".

I'm considering purchase a PRO-I, and I want to flash stock firmware from different region. But I'm not sure if it is supported by v52. Thanks.
[Sony Cross-Device General] Arli-:
Thanks
[Sony Cross-Device General] munjeni:
This is commented 100 times on this forum, jusr search for rollback protection inside this thread you will get ansver
[Sony Cross-Device General] munjeni:
I think its not possible, try search to be 100% sure
[Sony Cross-Device General] munjeni:
You need to flash excatly the same model e.g. your phone is BLABLA23 you need firmware for excatly the same model BLABLA23 otherwise signature verification from wrong fw will not match
[Sony Cross-Device General] KnockOut^9:
hi guys, someone here, perhaps, has tested the Newflasher v.52 option to save personal data before flashing firmware? Works flawlessly?
[Sony Cross-Device General] dimenfer:
used it to change my X10III (XQ-BT52) from Customized HK to Customized EEA, worked as expected thank you.
[Sony Cross-Device General] solopf:
Thanks, and v52 support mine PRO-I (XQ-BE72).
[Sony Cross-Device General] ki_maung:
how to get Newflasher tool to run on linux Ubuntu
[Sony Cross-Device General] munjeni:
Simply download archive from the first post, extract it, you have newflasher.i386 and newflasher.x64, use first one if your ubuntu is 32bit or use seccond one if you have ubuntu 64bit, procedure is the same as every newflasher
[Sony Cross-Device General] Mazellat:
Android 12 rolling out for Xperia ™ 1 III. Is this version of New Flasher compatible with last firmware of Android 12?
[Sony Cross-Device General] ki_maung:
what is the command?

the file has .exe extension i tried using mono but it doesn't work

Solved

./newflasher.x64
[Sony Cross-Device General] creezy57:
Hello, 10mk2 bootloops after flashing until 'device is corrupt'

PS how can I re-partition emmc? Decided to reflash, cause it became 64GB instead of 128GB. And by default newflasher doesn't re-partition and skips files:

Spoiler content hidden.
[Sony Cross-Device General] KnockOut^9:
i'm sorry to read these inconveniences, i've used Newflasher 3 times now (on Xperia 5 II and 10 III) and, for now at least, everything ok.

I hope you can solve this problem.
[Sony Cross-Device General] creezy57:
Ok, flashtool helped me.

But still I don't understand how am I supposed to tell the flashtool to edit the partition table to get me back 128 GB instead of current 64GB!

Flashing original ftf which has 2 file in /partition/

<PARTITION_DELIVERY FORMAT="1">

<PARTITION_IMAGES>

<FILE PATH="partition-image_122138624_X-FLASH-ALL-E9C8.sin"/>

<FILE PATH="partition-image_61071360_X-FLASH-ALL-E9C8.sin"/>

</PARTITION_IMAGES>

</PARTITION_DELIVERY>

results in flashing just the 64GB one:

08/002/2022 21:02:13 - INFO - processing partition-image_61071360_X-FLASH-ALL-E9C8.sin

If I delete the line with it from the partition/partition_delivery.xml file and leave only 128 GB one, then it is skipped:

08/016/2022 21:16:11 - WARN - partition-image_122138624_X-FLASH-ALL-E9C8.sin is excluded from bundle

ANSWER:

I don't know how this stuff is supposed to work, but I just put a copy of partition-image_122138624_X-FLASH-ALL-E9C8.sin instead of partition-image_61071360_X-FLASH-ALL-E9C8.sin, so it again tried to flash the latter 64GB partition file and in fact flashed the 128 GB file.

Now it shows 128 GB again.
[Sony Cross-Device General] 852760420:
HELP！newflasher flash sucess.but my xz2p(so-04k) still unable to boot,stuck at sony logo and reboot.

i tried

1、flash another firmware from xperifirm and https://ftf.andro.plus/ ,but no working.

2、switch slot a and b .no working

3、change pc and cable

4、try sony companion,
[Sony Cross-Device General] Andy_2639:
Create a `partition` folder next to your *.sin files and move the partition sin's into that folder. Then, newflasher will flash them.

This is described earlier in this thread - but I can't find the exact post right now.
[Sony Cross-Device General] munjeni:
You need to move partition files to the partition folder! Partition folder also must have partition delivery XML file othervise newflasher will skip partition flashing. Newflasher determines automaticaly right partition file trought information from phone & trought partition delivery xml file! This is how newflasher determine right partition file, for example:

Repartitioning...
Found partition_delivery.xml in partition folder.
Determining LUN0 size...
UFS raw data[0xA9]:

00000000 40 00 00 00 00 00 03 04 01 00 01 7F 03 01 0F 00 @...............
00000010 02 10 08 17 01 02 03 04 01 98 10 10 02 00 00 03 ................
00000020 01 40 00 00 20 00 10 00 00 0D 05 00 00 00 00 00 .@.. ...........
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040 23 02 00 01 00 00 00 01 00 00 0C 00 00 00 00 00 #...............
00000050 EE 58 00 00 00 00 01 02 00 00 00 00 00 EE 58 00 .X............X.
00000060 00 00 00 23 02 01 01 01 01 00 00 04 00 0C 00 00 ...#............
00000070 00 00 00 00 04 00 00 00 00 01 02 00 00 00 00 00 ................
00000080 00 04 00 00 00 00 23 02 02 01 02 01 00 00 04 00 ......#.........
00000090 0C 00 00 00 00 00 00 04 00 00 00 00 01 02 00 00 ................
000000A0 00 00 00 00 04 00 00 00 00 .........

LUN0 size = 62480384
[Sony Cross-Device General] munjeni:
I do not see anything strange in your log. Make sure always when you change slot you need to reboot device than reflash again!
[Sony Cross-Device General] drakegai:
Flashed the RU rom, it can't detect US Tmobile data and Camera is broken, and worst of all, can't flash any other roms since then. They all got corrupted data can't reboot error even with set_active:a. Has anyone had this problem?
[Sony Cross-Device General] Naxco:
I have the same problem, ru installed on European also does not see the network
[Sony Cross-Device General] Naxco:
I think we have to wait for a new update for our region.

and we can't roll back to android 11
[Sony Cross-Device General] drakegai:
Yeah, No other Android 11 roms can be flashed since then.
[Sony Cross-Device General] a lost viking:
Hi,

I tried to flash my Xperia 1 III with the TW_61.0.A.23.20, but it always stops at a certain point as the following code shows:

- Extracting sparse chunk super.004

- Uploading sparse chunk C:\Users\Desktop\XQ-BC72_Customized TW_61.0.A.23.20\flash_session\super.004

download:04b2ecd5

OKAY.

flash:super

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

=========== FIRMWARES HISTORY LOG =============

NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_25, cdf_version:Unknown: Jun 11 2021/04:24:12, fs_version:Unknown: Jun 11 2021/04:24:12, sw_version:61.0.A.5.106

NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_27, cdf_version:Unknown: Jul 8 2021/03:49:52, fs_version:Unknown: Jul 8 2021/03:49:52, sw_version:61.0.A.11.23

=================================================

Set slot 'a' active.

Device is put now out of flash mode.

Sent command: Sync

Sent command: reboot-bootloader.

And now my screen says the phone is corrupted and cannot boot anymore.

I wonder if someone can help me with it, thanks in advance!
[Sony Cross-Device General] korokonn:
question
[Sony Cross-Device General] KnockOut^9:
i'm not an expert but i can tell you my experience: i've flashed 3 times. Just copy newflasher.exe inside firmware folder and then follow the guide in the first post.

If you have other doubts, just read this thread, there are many information about... everything this procedure can occour
[Sony Cross-Device General] munjeni:
Indication about that rom is not compatible with your device model, that mean wrong device model firmware used for wrong device model
[Sony Cross-Device General] a lost viking:
Well, I fixed it with companion tool.

But I am pretty sure I was using the TW version to flash my TW xperia.
[Sony Cross-Device General] Navara32:
G'day,

I have just been trying to attempt to fix my XZ premium that is stuck in a boot loop.

I am trying to flash a new firmware but i get the error below.

I was originally using a usb3 port, tried a usb 2 port but nothing changed.

I have also tried a different usb cable. No change.

I have also tried using both options "a" and "p", for the second last command in newflasher, asking what to do when flashing is complete.

My Steps:

- Downloaded the firmware

- Removed 5 files from firmware to keep it from deleting user data, not sure if this step is actually necessary?

ssd_X-FLASH-ALL-42E5

userdata_X-FLASH-CUST-42E5

diag_X-FLASH-ALL-42E5

appslog_X-FLASH-ALL-42E5

persist_X-FLASH-ALL-42E5

-Copy just the newflasher.exe file to the firmware directory. Are the other extracted files needed?

-Run newflasher

Would appreciate any help. Thanks.

Jim.
[Sony Cross-Device General] Jane11:
Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

What exactly TRIM areas does that optional step saves?
[Sony Cross-Device General] Jane11:
Can this Newflasher be used for Sony Xperia G3121 ?

I am getting No usb device with vid:0x0fce pid:0xb00b

error.

The phone is definitelly in flashmode - green light is on Also driver should be OK installed - device manager reports properly installed driver.

Thank you for help
[Sony Cross-Device General] munjeni:
There is a lot of posts related to xperia trim area feature, one which you need to remember is - never touch trim area, otherwise your device might get hard brick without a way for repair. What mean trim area dump - thats a dump in case you hard brick your phone so tehnicians can do hardware repair. In case you get hard brick and you do not have trim area backup, 99% that you will need to buy new mainboard. Also do in mind an external hardware tool is need for hard brick case e.g. to make direct pin to pin connect to internal storage in order to restore trim area dump. Apsolutly no way to repair phone with any software. Hope this help.
[Sony Cross-Device General] munjeni:
Its old model xperia so newflasher is not compatible with your device model, search for xflasher !
[Sony Cross-Device General] inuue:
why

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

Funci¾n incorrecta.

- 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:

Funci¾n incorrecta.

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

nBytes[0x0]:

- Error writing command powerdown!

Closing device.
[Sony Cross-Device General] JD_9:
Thank you @munjeni for this awesome tool. And most importantly, thank you for making it available on all operating systems. I've successfully flashed SOV39 using a global firmware (Customized IBE). The global firmware successfully flashed to slot A. However, I want to get VoLTE. So, I extracted OEM files from the au SOV39 ROM and it simply doesn't work. Because Newflasher is trying to flash the 2 OEM files to slot B resulting in an error: flash:oem_b Error, didn't got flash OKAY reply! Got reply: FAILWrite fail. (I even forced Newflasher to flash to slot A, but it doesn't work). Is there a workaround to flash two OEM files? Your help would be much appreciated. Thank you! In case: Both firmware files have similar build numbers starting with 52.1.
[Sony Cross-Device General] munjeni:
Please use real OS and try again, also try anoher usb cable, update gordongate driver...etc
[Sony Cross-Device General] munjeni:
If oem files is designed for _B you can do nothing about that, only maybe you can try rename sin file to something like oem_other_b.sin, all files with _other_ in its filename is always flashed to the diferent slot.
[Sony Cross-Device General] JD_9:
Hmm... Didn't know that... Thanks!
[Sony Cross-Device General] javiwz:
Hi I'm GlobalEEA 5 ii user, I want to flash the customized EEA with the newflasher, what's the process to follow? And is ok to not flash the the persist_* files?
[Sony Cross-Device General] KOPRajs:
Hi,

can you please describe, what exactly means "everything works perfectly"? Do you get working DRM on Android 10 with the re-locked bootloader this way? Any loss in photo quality due to lost device key? Anything else to consider before unlocking the bootloader so I can downgrade to stock XQ-AS52_Customized EEA_58.0.A.28.51? I mean is there any other drawback except the lost warranty?

I have bought Xperia 5 II (XQ-AS52) instead of 5 III partly because I wanted to stay with Android 10, but it came already with Android 11. I tried to downgrade it with the locked bootloader as usual, but I came across the rollback protection. Now I'm considering the above procedure or to stay with the Android 11 and fully locked.

Also since you've already done that, is it worth it? What was your motivation to go back? I simply don't like the new features and design of Android 11 but haven't been using it regularly.

Thank you.

P.S. I'm looking for a XQ-AS52_Customized EEA_58.1.A.5.530 so I can eventually flash it back. The XperiFirm now offers only Android 12 for XQ-AS52_Customized EEA. Anybody can share it please?