yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
I don't want to repeat about "rollback protection" just read whole page 105!! In your log I have found

NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_104, cdf_version:Unknown: Mar 23 2022/17:47:07, fs_version:Unknown: Mar 23 2022/17:47:07, sw_version:61.1.A.7.35

try download excatly the same firmware, also try the same firmware but for diferent regions one will probably boot. If nothing help read post 4 -> https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228
[Sony Cross-Device General] louisbloomm:
Thanks for the reply, that is what I did exactly though. the day my phone started to bootloop i was ota updated to 61.1.A.7.35 a few hours earlier.

So i literally tried every fw region version of that build with no success even tried the set active a with command but still just bootloops. I don't mind unlocking bootloader and going that route but I don't know how to unlock
[Sony Cross-Device General] john615:
How do I flash an FTF file? I have an FTF file for Xperia Pro. I've already unlocked bootloader. Can I do this with newflasher?
[Sony Cross-Device General] Chili Dog:
i'm not seeing the .exe file in Github.
[Sony Cross-Device General] munjeni:
Exe is on this thread inside first post.
[Sony Cross-Device General] munjeni:
newflasher do not support ftf, but you can extract ftf with 7z to get sin files and the rest of files. Procedure for flashing is the same.
[Sony Cross-Device General] munjeni:
Try switch to slot B! If you mind to unlock here is step by step https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader
[Sony Cross-Device General] cluelessXQAU52:
Hi guys

Recently i updated my Xperia 10 ii (xq-au52) from Android 11 (59.1.A.2.232) to Android 12 (59.2.A.0.422).

I want to go back to 11.

I downloaded newflasher and a firmware from xperifirm.

The firmware i downloaded is XQ-AU42_MVNO JP_59.1.A.4.177-R4B.

I think it's the closest to the version i had before updating. (It was the SEA version btw)

I know it'll probably sound dumb but i have no clue what to do now.

Idk if that's the right firmware.

Idk how to put phone in flash mode.

Please may someone help me.

Thanks in advance.
[Sony Cross-Device General] munjeni:
You want to restore the firmware to an older version? Don't do that! Rolback protection not allow downgrade, and your phone will not boot! We have already spent 3 pages on it, feel free to read before you decide on the next step! I really don’t want to repeat myself.

How to put phone in flash mode? Simply power off phone first, than connect usb cable to the phone, than while keeping volume down button connect another side of the cable to the PC, you will notice green light on phone, thats indication for flash mode, now release volume buton and you are in flash mode. You must have right driver on your pc for flash mode so before putting phone in flash mode install driver first! How to install driver? Simply run newflasher, it will ask you for "extract gordon gate driver", simply confirm with "y" and press enter, driver will be extracted to the same folder with newflasher. Install driver and thats it. About flashing phone with newflasher google it! Have a ton of tutorials on the net about how to flash phone with newflasher, simply read.
[Sony Cross-Device General] cluelessXQAU52:
Thank you very much for your help. So there's no way to get back to Android 11? That's sad :(

My phone came from factory running Android 10. I guess there's no way to go back to that also, right? I'm stuck on Android 12?

Feels bad man. I really didn't like this new update. Anyways. Thank you for warning me. Thanks for helping me.
[Sony Cross-Device General] waql19192:
Thank you very much! easy to use.
[Sony Cross-Device General] munjeni:
There is a way! Unlock bootloader, flash, relock bootloader. Relocknig bootloader after flashing reset roolback protection index to zero so you can boot for example old firmware. Before you decide to unlock bootloader do in mind every device have unique device key hidden under phone, when you unlock bootloader those key get forewer deleted so even relocking bootloader those key is no back! Some device models can't relock bootloader like my xperia 10 without mark, so before everyhing read twice xda treads or ask someone in proper forum to get idea what you lost or what you benefit. In you need info about if your device can be relocked also ask in proper forum. Hope this help
[Sony Cross-Device General] cluelessXQAU52:
Wait, that's great news. :) I'm definitely going to try. I'm aware of the risks, thanks for warning me.

On Sony Developer World website there's a tutorial on how to unlock the bootloader. After doing that i can flash the phone normally, is that what you meant?

If yes,then my only concern is if the firmware version i mentioned before.

Should I worry about that?

Idk if it has a region or carrier block or something like that.

Excuse my English btw, I'm still learning.

And thanks again for being so helpful.
[Sony Cross-Device General] munjeni:
Yes you can flash any rom for your phone model! Procedure is a bit diferent since rollback protection need to be bypassed in order to flash older rom, procedure is: unlock bootloader, probably your device will boot after that, if not booting try to relock bootloader first, when bootloader is relocked rolback index is reset to zero and rollback protection is bypassed so your device probably will boot with your current rom. But before you unlock bootloader search on xda look for what you gain and what you lose when bootloader is unlocked. In my opinion if your bootloader is relockable I see no reason for keeping bootloader locked. For example my xperia 10 no mark do not have bootloader relock feature, what I was lost after unlocking bootloader is I can't connect anymore my phone to smart tv trought wifi since secure protocol is missing. Whats going on after relocking bootloader I don't know, so search xda before anything!
[Sony Cross-Device General] cluelessXQAU52:
Yes, I'll search. I've been reading a lot lately. There's so much things i still don't understand. One thing I learned is that it's irreversible and side effects are unpredictable.

The general idea of the process i have is this:

Unlock bootloader

Phone will be wiped clean and then restart still with Android 12

Flash firmware

Phone will restart with Android 11

Lock bootloader

Phone will restart again with Android 11 and locked bootloader.

That's if everything goes well. Is that correct?

I really don't want to mess up anything. I really love my device, also it was very expensive. I'm going to try only after I feel confident enough. All that aside, thank you for your time, patience and help. I really appreciate that.
[Sony Cross-Device General] munjeni:
I can't tell you for sure since I'm owning Xperia 10, but thats confirmed on another models see https://xdaforums.com/t/guide-flash...-xq-at51-with-flashtool.4119707/post-84509417 and might be the same for the rest of devices which have relock bootloader feature activated inside bootloader, first off all things take a look in your device subforum and check for if your device is relockable! My xperia 10 was not relockable and I was hurried to unlock bootloader and it cost me that my wifi connection to the smart tv doesn't work anymore because my bootloader is unlocked
[Sony Cross-Device General] cluelessXQAU52:
Thanks for pointing me to the right direction.

Very interesting reading.

As I learn more about this procedure, I'm starting to rethink my decision. I was so worried if i could or not, that i didn't really think if i should or not. Yes, it's possible. But there's a price. And also all the risks.

This new Android 12 is ugly.

But maybe it's better have a fully functional ugly phone than having a beautiful mess. Idk if that makes sense. I'll report back if I change my mind someday.

In any case, I'm more than thankful for your help and support. Thank you thank you thank you.
[Sony Cross-Device General] Pandemic:
Anyone tried this on a Chromebook ? Just asking for a friend :)
[Sony Cross-Device General] munjeni:
Is it android variant? If not you shoul compile newflasher using cross compiler for that os
[Sony Cross-Device General] Pandemic:
Yes it's far i inow an android variant bro.
[Sony Cross-Device General] munjeni:
Than one of the arm binaries should work, probably arm64 but also if it is android variant maybe pie binary should work too
[Sony Cross-Device General] Pandemic:
Where i can find it bro or someone can make it for me and share it :( ?
[Sony Cross-Device General] munjeni:
Inside newflasher_v52.zip from the first post! There is arm32, arm64 and arm64_pie, so 3 diferent binaries for arm platform, one of those 3 should work
[Sony Cross-Device General] Pandemic:
Oke and bro can you please tell me how step by step so i can it easily to him ? Thanks
[Sony Cross-Device General] munjeni:
The same as you doing on windows, diferencie is only platform! So as like you doing with any native binary on linux/android, chmod first, than the rest of steps is the same as windows version, put fw in an folder, put binary in the same folder, chmod binary, than trought adb shell or trought terminal emulator just execute binary and it will start the same like it start on windows platform. You need to become root first otherwise binary will not have enought permission to comunicate trought usb.
[Sony Cross-Device General] fineb:
Hi,

I messed up my XZ2. it was on Stock ROM, rooted with Magisk and I wanted to pass the SafetyNet checks and used MagiskHide Props config to spoof the fingerprint, result was a non booting device .-(

I managed to boot into TWRP, but can't restore a backup from TWRP. Trying to flash the FW again is not successful, attached is a newflasher dump file.

The error is probably this line:

ERROR: boot_a: Hash of data does not match digest in descriptor.

but I don't know what to do now.

Any idea?

Thanks

Forgot to attach the dump file​

Hm, I can't attach a file ?​

​

from the file:​

VB: RWDeviceState: Succeed using rpmb!

Boot counter is 926

XBoot Init

Init XBootPALAPILib

Init TA API Lib

XBOOT (1310-7079_X_Boot_SDM845_LA2.0.1_Q_207)

[WARNING @ ta_interface.c:109]:

Unable to read TA unit 66667, error=4

[ERROR @ xboot_glue.c:107]:

read_ta returned err=-22

[ERROR @ xboot_glue.c:526]:

get_dk returned err=-22

Reading 321 bytes from RPMB, OK

Reading 321 bytes from RPMB, OK

XDeviceTreeAddrExtract start

no check attributes (Mode 3)

LoadImageAndAuth: 1615: CurrentSlot.Suffix=_a

Not updating rollbackindex as current slot is unbootable

Invalid vm-linux partition

load_and_verify_vbmeta:481: DEBUG: Loading vbmeta struct from partition 'vbmeta_a'.

load_and_verify_hash_partition:181: DEBUG: boot_a: Loading entire partition.

load_and_verify_hash_partition:236: ERROR: boot_a: Hash of data does not match digest in descriptor.

load_and_verify_hash_partition:181: DEBUG: dtbo_a: Loading entire partition.

load_and_verify_hash_partition:240: DEBUG: dtbo_a: success: Image verification completed

Loading Image Start : 2805 ms

Loading Image Done : 2805 ms

Total Image Read size : 4096 Bytes

Loading Image Start : 2806 ms

Loading Image Done : 2836 ms

Total Image Read size : 16080896 Bytes

Upload as zip file works
[Sony Cross-Device General] Anon1337:
Xperia 10 III

Tried flashing 3 different roms downloaded with XperiFirm.

Always ended up in boot loop.

Tried changing slot from b to a now the phone is hardbricked (and I mean hardbricked, no response to any keycombos or keypresses doesn't show in lsusb nothing).

Any ideas?
[Sony Cross-Device General] Pandemic:
Locked bootloader ? Repair with xperia companion and try different usb cables.
[Sony Cross-Device General] Anon1337:
Unlocked bootloader. Can not repair with xperia comanion since the phone won't connect over USB. Different cables make no difference. Won't register even on a different computer.

The phone seems completely dead. Is there a hidden long press keycombo could try?
[Sony Cross-Device General] Anon1337:
I have trim backups. Can I restore these somehow? The github wiki mentions some hardware tool, what hardware tool?
[Sony Cross-Device General] munjeni:
There must be at least red light when you connect usb cable! It looks like hardware isue! Maybe usb port on phone side? Check for dust! I had that problem some month ago, the cable simple could not fully enter the port, so after removing dust everything went ok
[Sony Cross-Device General] munjeni:
Not updating rollbackindex as current slot is unbootable

Invalid vm-linux partition

load_and_verify_vbmeta:481: DEBUG: Loading vbmeta struct from partition 'vbmeta_a'.

load_and_verify_hash_partition:181: DEBUG: boot_a: Loading entire partition.

load_and_verify_hash_partition:236: ERROR: boot_a: Hash of data does not match digest in descriptor.

Looks like magisk messed your boot partition! You just need to reflash boot partition, but looks like whole slot is messed up so you will need to flash partition.sin too! If that not help reflash whole firmware including all .ta. all .sin, partition, bootdelivery. Never mix sin files trought two-few firmwares, always use one firmware and don't modify/delete anything. If you can't get it to work, post newflasher log
[Sony Cross-Device General] Anon1337:
No dust inside the port. Tried several USB cables (including the original USB cable that came with the phone) and several different computers running both WIndows and Linux. Also tried almost every button combination possible both with and without USB cable connected in. Nothing.

Unfortunately I don't have any device that can report USB power consumption so I do not know if it was charging. But both the charger and the phone remained cold during my tests so if it was pulling some current it had to be a very small amount.

I've sent the phone for warranty repair already.
[Sony Cross-Device General] fineb:
thanks for the reply, I gave up trying to restore , made a complete wipe and now have the phone running with iode, looks pretty good
[Sony Cross-Device General] aboiledtiger:
hi @fineb I'm struggling trying to get my xa2 back to life. Have you already tried cam functionality and the NFC feature? cause I already tried lineage but lacks to work.

I'll appreciate your feedback. probably will get iode a try. thx.
[Sony Cross-Device General] fineb:
I tried the german app "AusweisApp2", which uses NFC and that worked with my XZ2 and iode
[Sony Cross-Device General] lucyoreo:
hi guys, need help here.

got below error when flashing my xperia 1 iii BC72 with SEA firmware.

appreciate if someone can help.
[Sony Cross-Device General] Nimda01:
Anyone tried v52 on 1 IV? or any method to test it before actual flashing?
[Sony Cross-Device General] beenoliu:
Here's the View attachment boot_delivery.xml
[Sony Cross-Device General] munjeni:
Strange. Done new version with debug, can you try boot delivery only?
[Sony Cross-Device General] beenoliu:
--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&26670dd9&0&18#{a5dcbf10-6530-11d2-901f-
00c04fb951ed}
Class Description: Universal Serial Bus controllers
Device Instance Id: USB\VID_0FCE&PID_B00B\5&26670DD9&0&18

GETREPLYLEN: 0x20
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...
Using existing 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...
SEARCHFOR[0x47]:

00000000 50 4C 41 54 46 4F 52 4D 5F 49 44 3D 22 30 30 30 PLATFORM_ID="000
00000010 35 45 30 45 31 22 3B 50 4C 46 5F 52 4F 4F 54 5F 5E0E1";PLF_ROOT_
00000020 48 41 53 48 3D 22 C3 0D EC 24 71 CE A3 11 E6 91 HASH="...$q.....
00000030 86 57 36 7B 51 06 8A 39 58 3B BF 89 FD 68 B3 79 .W6{Q..9X;...h.y
00000040 BC D5 A7 09 AB 1B 22 ......"

PLATFORMID[0x80]:

00000000 C3 0D EC 24 71 CE A3 11 E6 91 86 57 36 7B 51 06 ...$q......W6{Q.
00000010 8A 39 58 3B BF 89 FD 68 B3 79 BC D5 A7 09 AB 1B .9X;...h.y......
00000020 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

ROOTKEYHASH[0x40]:

00000000 30 30 30 35 45 30 45 31 00 00 00 00 00 00 00 00 0005E0E1........
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 00 00 00 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 ................

?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:
Overlapped I/O operation is in progress.
- Error reply: less than 4!
Raw input[0x0]:

Press any key to continue . . .
[Sony Cross-Device General] tanipat:
here is mine

https://drive.google.com/open?id=0B-YrlXZxM0jheW9uNjROa0MtdlU

---------- Post added at 08:54 PM ---------- Previous post was at 08:44 PM ----------

or may be because i use Thai firmware to flash on Hongkong device? but the model mumber is the same g8142
[Sony Cross-Device General] munjeni:
Identified isue! Forgot to convert string to hex string... PLATFORMID[0x80] is string but we need hex string OMG. Working on it :)
[Sony Cross-Device General] munjeni:
New version is out, hope bug free :)
[Sony Cross-Device General] jms.flynn:
So this should be able to flash everything?
[Sony Cross-Device General] tanipat:
can i just flash boot folder without wipe data?
[Sony Cross-Device General] munjeni:
Ah sorry thats you, thinked jms.flynn . Yes, flashing only boot folder will not wipe userdata! Userdata is wiped if you flash userdata.sin or master-reset.ta, fota_reset.ta ...
[Sony Cross-Device General] tanipat:
will try and report back :)
[Sony Cross-Device General] tanipat:
So if i do not want to unlock boot loader, do i need to flash this boot folder? what is the pro and con of flash the boot folder? Sorry i am just confuse a bit about this TT
[Sony Cross-Device General] munjeni:
Boot folder is bootdelivery as a part of firmare, flashing bootdelivery have nothing related to bootloader unlock! Seems you misunderstud it :)

To unlock bootloader you must look into step 3 described in first post.
[Sony Cross-Device General] diosdetiempo:
will this help us to root our phones?
[Sony Cross-Device General] munjeni:
Tool is for flashing and not for rooting :)
[Sony Cross-Device General] tanipat:
Ok man, just reflash on Boot Folder, Log is here

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

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.1
Serialno: CB512E66JV
Secure: yes
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808021756,0000:35700808021757
Device ID: BC5D534D
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: TOSHIBA,THGAF4G9N4LBAIRB,0100
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B

Device is put now in flash mode.

No .sin files in partition dir...
You must extract partition.zip into 'partition' folder if you want flash partition 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...
searching for: PLATFORM_ID="0005E0E1";PLF_ROOT_HASH="C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B"
Found bootdelivery match: COMMERCIAL_0005E0E1
TA file: Maple_XBootConfig_MiscTA.ta

Processing boot/Maple_XBootConfig_MiscTA.ta
- Partition: 2
- Unit: 84F (2127)
- Unit size: 0x74
download:00000074
OKAY.
Write-TA:2:2127
OKAY.
- Unit: 8FD (2301)
- Unit size: 0x1
download:00000001
OKAY.
Write-TA:2:2301
OKAY.
SIN file: bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-42E5.sin

Processing bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-42E5.sin
- setting up infflate...
- infflating, please wait...
.....
- infflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-42E5.sin
- Extracting signature boot/bootloader.cms
- Uploading signature boot/bootloader.cms
signature:00000538
OKAY.
erase:bootloader
OKAY.
- Extracting sparse chunk boot/bootloader.000
- Uploading sparse chunk boot/bootloader.000
download:01274e00
OKAY.
flash:bootloader
OKAY.
- End of bootloader_X_BOOT_MSM8998_LA1_1_N_59_A_X-FLASH-ALL-42E5.sin

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

End.
Press any key to continue . . .
[Sony Cross-Device General] munjeni:
Perfectly! Finaly complete working! Thank you a lot for your time helping me finish our tool!!! Happy flashing!!! ;)

Edit:

By this part of your log:

Processing .ta files...
[COLOR="Red"]No .ta files in partition dir[/COLOR].

it should be "No .ta files in current dir." :) New version is out, changed that cosmetic bug :)
[Sony Cross-Device General] jms.flynn:
So if i want to debrand my device but not loose user data which files do I NOT need to flash? userdata.sin, master-reset.ta & fota_reset.ta?
[Sony Cross-Device General] munjeni:
- userdata.sin is for sure to skip

- fota_reset.ta also for sure not to flash

but master-reset.ta and cust-reset.ta I realy have no idea what these 2 files does! Ask somebody before you proced
[Sony Cross-Device General] munjeni:
Looks like you have moved usb cable, cable have not a good contact, usb isue....etc, so flashing got interupted!
[Sony Cross-Device General] munjeni:
Simply try flash only userdata sin file for example, delete all the rest of files, so if it work the rest will work too. Do in mind flashing userdata will probably factory reset your device or delete all your personal files on that partition. Another problem would be roll back protection and you will not be abble to downgrade or install the same rom and you will get infinite boot loop! I will not repeat rollback story, simple read what cause roolback protection and how to deal them! Unlock bootloader will probably be needed in that case! In short, before you decide to try anything read twice xda posts! :)
[Sony Cross-Device General] lucyoreo:
Managed to reflash it successfully using a shorter high speed external SSD cable. I have tried the original USB c to c cables and many other cables which turned out failure. Thank you so much for letting me know it's the cable issue.