yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
Hi, thats not newflasher isue. You need to manuay change customisation strings in trim area. For idea You should dump this 3 units from trim area using newfasher from command line:

newfasher Read-TA:2:2202

newfasher Read-TA:2:2205

newfasher Read-TA:2:2206

Give me those 3 output logs and I will tell you the rest. I will not repeat things from pages 71,72,73 since I aready expained how it can be done by custom .ta files. And also I will not repeat that I will not impement those automation things in newflasher since newfasher is primitive tool whose usage/purpose is flashing only. Newflasher have apsolutly enought features/things for purpose, you guys just need to figure out what you need/can do with it. Give me those 3 logs and I will write in detais what you need to do
[Sony Cross-Device General] Vic.:
Here's the output from my fully stock, never flashed 5 II. I also had a delay when receiving updates (was on Aug security patch, then I received Oct and Nov patches almost at the same time)

Spoiler content hidden.
[Sony Cross-Device General] mtshure:
I got a 5 ii and will root soon after playing with stock for a few days. Currently on 58.0.A.10.3 and received 58 0.A.28.51 update notification.

Is it better to root then update by newflasher, or can I update first and root using the same method in the guide?
[Sony Cross-Device General] munjeni:
If you update to the latest fw in most case root exploit you thinking to use will no more work! So better idea stay on old rom until you are sure latest fw is rootable!
[Sony Cross-Device General] munjeni:
Thanks for info! So units 2206, 2205, 2210 is not need to be changed at all. In most case what need to be done after flashing is updaing unit 2202 and 2801 to match flashed fw, this need to be confirmed. E.g. writing unit 2202 with version string e.g. 58.0.A.28.25, than reading unit 2801 for getting idea about what to change since I have no idea how this can be done trought newflasher e.g. reading this -A2 or GLOBAL, EEA, UK, SEA... blabla info string for constructing right string for write into unit 2801, writing to unit 2801 need to be manualy done by hand before write, for idea what to write to unit 2801, read unit 2801 first. If somebody have idea how this can be implemented in newflasher for automating our things, let me know. Before idea all this need to be proven working first.
[Sony Cross-Device General] mtshure:
Hmm, probably I should just root with current fw for now then.
[Sony Cross-Device General] k-royd:
I got a UK Xperia 5, but need to use it in the US region and need to get volte.

Downloaded US firmware with XperiFirm for US region, but is only intended for J8270 model, mine is J9210.

Can I still go ahead and flash the firmware for that purpose?

Here's the output from my full stock, never flashed Xperia 5. I have purposely not let it update to anything through Xperia Companion as yet!

Spoiler content hidden.
[Sony Cross-Device General] hotandroidpr:
hello & thanks for your professional program

I need to compile your app from my self.

when i use make this error showed to me:

Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

** ./configure aborting.

make: *** [makefile:50: newflasher.exe] Error 1
[Sony Cross-Device General] logicsoft21:
i have this problem too
[Sony Cross-Device General] munjeni:
Hi, your xperia is dual sim but rom you want to flash is single sim, its not recommend to flash single sim rom, even I think it will not flash at all. You should ask somebody in xperia 5 forum before you brick your xperia.
[Sony Cross-Device General] munjeni:
Read this page -> https://github.com/newflasher/newflasher carefuly please, there is nothing about configure, just read page from the start to the end and it will compile
[Sony Cross-Device General] k-royd:
OK thanks. Will do.
[Sony Cross-Device General] jemju_xps-user:
me too my phone is

just want to report after flashing xq-at52 (android 11) result to bootloop.. there is no error in flashing but do not know why it results to bootloop.. i also flash the android 10 in hk version but same bootloop so maybe the problem is the newflasher.
[Sony Cross-Device General] hotandroidpr:
thanks for your answer but i found i dont have any file in include folder and your make file check the Gordongate.h in include folder.

can i have that?
[Sony Cross-Device General] DennisDD78:
Can i flash Xperia 5 (J9210) with ANY version of NewFlasher ? The latest version 39 working well with this phone ?
[Sony Cross-Device General] munjeni:
I will not repeat just read page 72 and 73 related to rollback protection
[Sony Cross-Device General] munjeni:
Yes sure! Use latest one
[Sony Cross-Device General] munjeni:
newflasher/include at 29ab0839ac34e3c682c183dba7490fb29fec359c · munjeni/newflasher

Flash tool for new Sony flash tool protocol (Xperia XZ Premium and further) - munjeni/newflasher

github.com

Do in mind if you cross compile for 32 bit system you must have compiler which support LARGE FILE 64 and FILE OFFSET 64... otherwise many things will not work and you risk brick your device!
[Sony Cross-Device General] hotandroidpr:
thanks for your answers but in try compile your old newflasher in windows10 64 bit by mingw64 show this error in image i send

i try with opensuse and windows 7 32bit but same result appear.

$ make newflasher.exe

sed "s/@version@/31/" newflasher.rc.in >newflasher.rc

i686-w64-mingw64-windres newflasher.rc -O coff -o newflasher.res

process_begin: CreateProcess(NULL, i686-w64-mingw64-windres newflasher.rc -O coff -o newflasher.res, ...) failed.

make (e=2): The system cannot find the file specified.

make: *** [makefile:41: newflasher.exe] Error 2
[Sony Cross-Device General] munjeni:
makefile is hardcoded for newflasher cross compilation, you should not cross compile if you have no idea how to modify makefile per your own need
[Sony Cross-Device General] p0k3sm0t:
Hi everyone.

I am trying to enable VoLTE on Xperia 1ii dual SIM XQ-AT52 came with fw from Taiwan. I did a system update to Android 11 (which I believe was a down fall) I tried to flash the US customization. All I get when I start is currupted device will restart in 5 seconds. (I'm assuming it's because it won't rollback to Android 10)

So I tried the UK customization as I read others where able to get VoLTE working on it. I get a successful flash and boot then do a factory reset and still no luck.

I am not using cable that came with phone.

All drivers seem to be in as I got successful flashes.

Do I need to remove the .TA files?

Do I do anything with the persist file?

Do I hit y when it asks to flash persist file? Or n?

I am reading so many things and can't find a straight answer.

Thank you for all help
[Sony Cross-Device General] hotandroidpr:
please tell me a suggestion for my problem
[Sony Cross-Device General] jazzdglass:
Is there something I am not doing right?

or newflasher doesn't work with my devices? (XZ, M4 Aqua)

I have tried two different PCs, I have drivers properly installed.

but I keep getting the error

No usb device with vid:0x0fce pid:0xb00b !

Can someone explain?
[Sony Cross-Device General] munjeni:
Newflasher is for 2017 and up models, search for flashtool or xflasher!
[Sony Cross-Device General] munjeni:
I gaved you link for include folder, see https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84159409

but here is again

https://github.com/newflasher/newflasher/tree/29ab0839ac34e3c682c183dba7490fb29fec359c/include
[Sony Cross-Device General] munjeni:
Do not flash persist! Flash all ta files! Bootloop is caused by recent rollback protection, that mean you can flash only newer firmware than those inside your phone otherwise bootloop. If you are unable to boot flash the same working firmware and stay on it.
[Sony Cross-Device General] p0k3sm0t:
Ok thank you.

So I'm sure I flashed the persist file as the guide said to hit y on all prompts. Didn't see to remove it.

Also looking under service menu my attest key is not provisioned. Does that mean I broke the attest keys? Any way to recover? I can still download from Google play and don't seem to be having any issues.

What should I look for?

Xperia companion won't connect to the device any more. Even after uninstall and reinstall.

Phone is working as far as I can tell.

Should I reflash without flashing persist file?

Thank you for your reply.

Edit:

Ran auditor and my attest key is lost. Any way to recover it?
[Sony Cross-Device General] munjeni:
If you folowed newflasher window info you have noticed url link related to persist flashing, so open that link and read. No way to recover persist (in case you not backed them up) since its unique per device.
[Sony Cross-Device General] jazzdglass:
do you have idea how to recover IMEI on XZ1? I flashed mistakenly with dual sim variant FTF with flash tool but phone is single sim variant. Now I lost imei, bluetooth, wifi. All communication info lost.

I have flash just about diiferent variants of FTF. Even including "store front" files. Nothing seem to bring back imei and wifi or bluetooth. No bluetooth address, no wifi MAC address .
[Sony Cross-Device General] munjeni:
Probably reflash single sim rom and it will bring back, I don't know/care, ask in xz1 forum!
[Sony Cross-Device General] munjeni:
You should check this:

I no want to point to dangerous things since dealing with trim area is not a safe way (one wrong and hard brick guaranted!), but here is some trim area units you should check with newflasher:

_(TA_UNIT_2_WLAN_ADDR_0, = 2560)

_(TA_UNIT_2_WLAN_ADDR_1, = 2561)

_(TA_UNIT_2_WLAN_ADDR_2, = 2562)

_(TA_UNIT_2_WLAN_ADDR_3, = 2563)

_(TA_UNIT_2_WLAN_TXPOWER_2_4G, = 2564)

_(TA_UNIT_2_WLAN_TXPOWER_5G_LOW, = 2565)

_(TA_UNIT_2_WLAN_TXPOWER_5G_MID, = 2566)

_(TA_UNIT_2_WLAN_TXPOWER_5G_HIGH, = 2567)

_(TA_UNIT_2_BD_ADDR, = 2568)

_(TA_UNIT_2_BASEBAND_CFG, = 0x9F7)

THIS 3 UNITS NEVER NEVER TOUCH or HARD BRICK!!!

_(TA_UNIT_2_HW_CONF, = 0x7D3)

_(TA_UNIT_2_SIMLOCK, = 0x7DA)

_(TA_UNIT_2_SIMLOCK_SIGNATURE, = 0x851)

more units https://github.com/munjeni/trimarea_tool/blob/master/trimarea_reconstruct.c

Try dump folowing units using newflasher and see if it even exist!

newfasher Read-TA:2:2560

newfasher Read-TA:2:2568

thats two is for wifi and bt mac address
[Sony Cross-Device General] Androxyde:
Hello, there is an issue with partition computation from emmc infos

Device : Xperia 10 II

Emmc data :

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ................

00000010 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9...............

00000020 00 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

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

00000040 0F 00 00 C8 C8 C8 80 05 05 00 01 00 00 00 00 00 ................

00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000060 00 00 00 00 00 05 00 00 00 00 00 00 00 00 36 02 ..............6.

00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000080 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 69 13 00 .............i..

000000A0 07 01 01 03 00 00 14 1F 80 00 00 00 00 00 00 01 ................

000000B0 00 00 00 00 00 00 00 00 01 03 00 00 00 00 00 00 ................

000000C0 08 00 02 00 57 1F 0A 02 00 00 00 00 00 00 00 00 ....W...........

000000D0 00 00 00 01 00 60 8F 0E 07 11 00 07 07 10 01 01 .....`..........

000000E0 01 07 20 00 07 11 1B 55 02 00 00 00 00 00 00 00 .. ....U........

000000F0 00 1E 00 00 00 00 01 3C 0A 00 00 01 00 00 03 00 .......<........

00000100 00 00 00 00 00 00 00 00 01 60 00 01 01 01 00 00 .........`......

00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000130 00 00 00 0F 01 00 00 00 00 00 00 00 00 00 00 00 ................

00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

000001A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

000001B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

000001C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

000001D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

000001E0 00 00 00 00 00 00 00 00 00 81 C7 00 00 03 03 07 ................

000001F0 05 00 02 01 3F 3F 01 01 01 00 00 00 00 00 00 00 ....??..........

Computed size : 122134528

Expected size : 122138624

The expected size is the computed size without the minus 4096
[Sony Cross-Device General] munjeni:
Hi, strange, I'm done calculation based on https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84072849 , calculation was simple ((0x0E8F8000 * 512) / 1024) - 4096 but your phone giving ((0x0E8F6000 * 512) / 1024) , and this is a problem now. Do you have idea how can I do right calculation?

Edit:

Nevermind, I found this data is emmc csd register raw data... I will do right calculator today probably!
[Sony Cross-Device General] Androxyde:
Yes it is but when i searched i saw there is many version vendor and hardware specific with different mappings
[Sony Cross-Device General] munjeni:
Strange. I'm unable to figure out calculation. Your emmc csd data seems right one based on EXT_CSD_SEC_CNT calculation is right ((0x0E8F6000 * 512) / 1024) so my implementation with -4096 is wrong and I have no idea why https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84072849 giving wrong csd data and I need to -4096 in that case, do you have idea? If I mask last 3 numbers its not a big deal and not guarant we can make right determination for emmc size :( Maybe reverse enginering lilo for info about how right partition 0 sin file is determined?
[Sony Cross-Device General] munjeni:
Do you have idea whats going with mark II devices? Bootloop is caused by rollback protection? My research https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84077083 confirms that, what you think? Any way to reset rollback index? What I thinking maybe persist partition need to be flashed in order for vbmeta get ok?
[Sony Cross-Device General] Androxyde:
I will try to fully map emmc info to see if a value can help
[Sony Cross-Device General] munjeni:
New version is out!

- version 40 (03.01.2021)

Temporary solution for determining partition 0 sin file caused by two diferent emmc csd info we found recently on mark 2 devices

https://github.com/newflasher/newflasher/commit/4ba85bf95a4a12223ea8518fd3593909478f9b93 a less precise but it will work ok until right calculation is figured out.
[Sony Cross-Device General] gurpreetsinghdhillon342:
Hello,

I have Sony Xperia XZ1 (G8342) model but its a prototype device [Build Number 47.1.A.2.141]

I had tried to flash it using Sony Xperia Companion but it refused and gave me an error message that the device was not a retail unit.

Then I tried flashing it using Sony EMMA. It initially reported the phone as "locked". I did some search and found that it was because its bootloader was locked. I followed the instructions given on the following URL and managed to unlock the bootloader using the unlock code obtained from Sony's website:

How To Unlock Bootloader on Xperia XZ1 and XZ1 Compact

Good News for all Sony Xperia XZ1 and XZ1 Compact users. Now you can Unlock Bootloader on Xperia XZ1 and XZ1 Compact, Read all the instruction carefully.

www.getdroidtips.com

Afterwards, I again tried flashing the phone using EMMA. It download a file of over 2.5 GB, successfully installed it (within 15 seconds) but nothing changed on my phone. I tried with other ROM's and every time EMMA successfully installed within 15 seconds but nothing changed on my phone.

Due to the bootloader unlocked, my phone is unable to install banking APPs and I am unable to utilize the VoLTE capabilities of my service provider.

I am simply regretting unlocking the bootloader.

Is there any possibility of locking the bootloader again??? I tried different commands like "fastboot oem relock / OEM-lock / flashing lock_bootloader" etc. but no command seems to work.

It seems locking the bootloader back is not possible.

So, can NEWFLASHER flash the phone without bricking it? I have heard the Prototype phones can't be flashed to newer versions but some people have commented on XDA Forums that they managed to update their phones. I will share all the information needed to successfully flash it.

As of now the utility of the phone (a Snapdragon 835 processor phone) has been reduced to watching movies on Amazon Prime and YouTube.

Thanks.
[Sony Cross-Device General] munjeni:
Hi, I don't know anything in relation to prototype devices, what I know is all xperia mark 2 devices have rollback protection, more info/idea you can see on page 72 and 73 (bootloop caused by rollback protection - see bootloader log related to vbmeta & rollback index), so in short you need to flash excatly the same rom version or newer one, if you flash older one you get boot loop, even how this is true somebody need to confirm I don't know.
[Sony Cross-Device General] khuatvandao90:
Xin chào mọi người, mình mới tham gia diễn đàn :D
[Sony Cross-Device General] churchner420:
@munjeni does the latest version of newflasher completely change my XQ-AS52 to Customized UK so that I get OTAs for UK as well?
[Sony Cross-Device General] munjeni:
The same as v39 probably!
[Sony Cross-Device General] churchner420:
I didn't try v39 on my Xperia 5 II cause as it is my daily driver I don't want to reset every couple of days. Have you heard of someone who tried v40 or later which changes your 5 II to UK completely?
[Sony Cross-Device General] munjeni:
You should ask in xperia 5 II forum for better support! Recent rollback protection feature is realy questionable, for example how can we install custom rom e.g. lineage os? The same question would be how lineage bypass rollback protection? The same way you probably can install or not custom rom e.g. uk variant. I'm with xperia 10 mark 1 which don't have rollback protection so I can't help.
[Sony Cross-Device General] DennisDD78:
Sony released android 11 for Xperia 5 today. Newflasher knows how to flash a11 ? Does anyone already flashed any device android 11 based firmware by Newflasher ?
[Sony Cross-Device General] eaglu01:
I flashed android 11 on my xpeira 1 and because i forget to delete the partion file so my storage become 64G,how can i fix it?thx for your help
[Sony Cross-Device General] eaglu01:
I flashed my xpeira 1 to android 11,except the storage problem made by my mistake,other things I think is fine
[Sony Cross-Device General] DennisDD78:
Before flashing A11 parttion file should be deleted ?

Well, i don`t know so. I think that the tool is not ready to work with A11 since users have such difficulties.

Thanks for your answer!
[Sony Cross-Device General] eaglu01:
usually just need delete simlock.ta,but because I still haven't solve storage problem.I can' answer it properly,sorry
[Sony Cross-Device General] DennisDD78:
Yes, usually i also delete simlock.ta and persist.sin, so as not to lose keys and certificates , and after that start flasing.

But now, when you reported that you have storage issues after a11 flashed, i`m not really sure should i flash the phone by Newflasher, maybe i just do a factory reset the phone settings to make the new system clean.

I also can use Xperia companion, but i changed the customization from day 1, and because of it XC can`t do the full recover, if i remember it right ((
[Sony Cross-Device General] eaglu01:
I solve it by reset after flashing Android 11 and feel great now.:)

update: I found someone meet this problem too and reset didn't solve it,so I'm still not sure about that,but maybe you can try to flash Android 10 SEA then OTA to Android 11,here's a link may help you [Solved]Storage become 64G after flashing to android 11 by newflaher | XDA Developers Forums (xda-developers.com)
[Sony Cross-Device General] munjeni:
Hi, two questions for you

1. Your device is mark 2 or mark1? Model?

2. Your storage size is?

Newflasher have recently updated storage calculation trought emmc csd register dump, so it have some dificulties right now to determine right storage sin file based on storage size (i'm blieving it should work without problem, but can't tell anything without your nwflasher log), you guys should help me to solve isue this way:

1. reflash again all files except simlock and persist

2. give me newflasher log

Dirty solution is e.g. you have flashed 64gb partition image over 128gd device (in case newflasher realy have that bug) you should delete 64gb sin file and rename 128gb sin file to excatly the same name of the 64gb sin file and reflash it. But I prefer to fully see your newflasher log and try fix newflasher!
[Sony Cross-Device General] munjeni:
Some solution to guys who have bootloop after flashing oldest rom and have rollback protection bootloop, refer to this post -> https://xdaforums.com/t/xperia-1-drm-keys-back-after-locking-the-bootloader.4079715/post-83035119

I'm believing rollback index can be reset by command oem lock (xperia 1 and 5 and all mark 2 models which have oem lock command working), in short bootloader need to be unlocked before flash older rom, than do oem lock to reset rollback counter and lock bootloader. Or probably do oem lock before flashing older rom. Let me know! :)
[Sony Cross-Device General] eaglu01:
My device is mark 1 and my storage is 128gb,I fixed this problem by reset after flashing.

Do I need to flash again to get newflasher log,if it is needed I'm sorry that xperia 1 is my daily drive and I will be quiet busy until early Feb,it's also troublesome to backup and restore data in China.I should have free time after things are done,then I can help you to solve the problem.sorry again((
[Sony Cross-Device General] munjeni:
There was ten reports about problem after flashing with newflasher but nobody mind to provide log, I won't fix without newflasher log & to be honest not care, no log no fix, no log no reply from now and future.
[Sony Cross-Device General] AkazaDorian:
Here's an update on what happened in Android 11:

PS E:\Frank\Downloads\newflasher_v40> .\newflasher.exe Read-TA:2:2801
--------------------------------------------------------
newflasher.exe v40 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 357505 MB
Total space on current drive = 953728 MB
Free space on drive = 357505 MB
Device path: \\?\usb#vid_0fce&pid_b00b#6&3af0f9ce&0&8#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\6&3AF0F9CE&0&8

Writing command: Read-TA:2:2801
got first reply[0xC]:

00000000 44 41 54 41 30 30 30 30 30 30 30 36 DATA00000006

data_buf[0x6]:

00000000 53 45 41 2D 43 32 SEA-C2

replied[0x4]:

00000000 4F 4B 41 59 OKAY

dump.bin created.
Closing device.
Press any key to continue . . .

Haven't done any customized TA thing yet.

Read-TA:2:2801 now gives something that makes sense but does not follow the pattern. I'll keep it for now to see if the OTA issue has been fixed.
[Sony Cross-Device General] Saiphable:
Update to android 11 has no problem with newflasher 40.
[Sony Cross-Device General] munjeni:
As expected! But if somebody need to downgrade it will result boot loop because of rollback protection in mark 2 devices.