yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] xsetiadi:
if you gonna go with this, make sure its implemented in system by default, so I can still use the full feature of micro G without rooting my device, some banking or digital wallet apps reject if your device root, and until now i think magisk still can not bypass safety net
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
No more drm and the camera works great if you like 90's webcam quality.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] duckwind:
No way! Are you for real? I mean I don't really like the original camera, surely it cannot be worse...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MCBuhl:
Aye, any news on for Android 12?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hello new kernel 4.19

[9.12.r1] Add SDM845 SoC and Tama platform devices support by bartcubbins · Pull Request #2470 · sonyxperiadev/kernel

Welcome SoMC Tama platform on 4.19 kernel :) This is the complete SDM845 SoC porting patch set, including SoMC Tama platform. This HUGE pull request contains all the necessary changes for the relat...

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
I saw there's a new version of the binary blob available on sony dev for the TAMA platform (OEMV8A) since Dec 6th.

@MartinX3 : Are you going to create an AOSP11 ROM for that OEM, too? Or are we going to ignore it, awaiting AOSP12?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Xx1madskept1xx:
Hi man. I'm so sorry. I have Hxxx single sim with lock bootloader. I can't have 11 android in my device and install oem app for newer Sony devices in apkmirror? Sorry my English bad)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rachsutha:
you can unlock by losing credit
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It seems that the new 4.19 kernel with A12 has amazing battery times, thanks to the amazing SODP-Team.

12h deepsleep with wifi and simcard consumes 2% battery (100% to 98%)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rachsutha:
May I have the kernel.img file please?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It will be published after it's ready.

You'll need the entire new compiled ROM and the new OEM.img.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] brasco93:
i really want to flash this sodp rom, but my deivce H8416 with android 10 build number 52.1.a.3.137 can't unlock the bootloader.

already try within unlocking code from sony and 2 differents method, via sony flash tool and adb with the fastboot unlock bootloader 0x***** mode and always the same results with an failed/no permission.

finally came accross with this paid way with S1 quicktool something.

because if i have to pay, i need to pay around 30 USD, mean while i buy this device around 105 USD, seems not a good choice for me.

is there any way or help me so i can unlock this bootloader ? Please.

Or maybe just accepting my faith. sorry for bad english.

thanks :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hibikase:
Accept your faith
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Probably accepting faith

Maybe S1

But NFC won't work
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Progress for our device

[9.12.r1] SoMC Tama stabilization by bartcubbins · Pull Request #2479 · sonyxperiadev/kernel

This patch set contains: I2C bus fix. WLAN fix. IPA and RNDIS fix. Second SIM detection fix. Complete audio implementation. DRM notifier of panel blank/unblank events API updates. etc:) P.S. Upda...

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] K41R4:
does this ROM have gesture navigation?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] der.lange:
What´s about SONY Xperia XZ2P (Aurora)? Doe´s it belong to the TAMA-family? Will the SODP-ROM run on this system too? Of course I found the official LOS18.1 version; but I would prefer a SODP-solution.....
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
Seems like the PRs mentioned above have been merged since 12 days. One more to go:

[9.12.r1] USB stack and misc updates by bartcubbins · Pull Request #2482 · sonyxperiadev/kernel

The patch set includes updates for USB stack drivers, GIC save/restore state API required for SDM845, and other updates for SoC specific drivers. With the patch set, we have more stable deep sleep ...

github.com

May I ask if you are considering a new AOSP build in future @MartinX3 ? :sneaky:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
@Danj1

Yes, AOSP12 will get a new thread after my next exam and the release of OEMv2 next week, if Tama compiles, boots and is mostly usable in Android. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] GreeDWaR:
Realy Martin !!!I also have xz2 premium and I'm very interested!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
fastboot --version

should output

or newer

to be sure you use the newest plattform tools
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Same here on xz2c:

https://github.com/sonyxperiadev/bug_tracker/issues/635
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Ok, that did the trick at least wiping the userdata and consequently booting successfully into twrp. But I'm still stuck at the android screen when trying to boot the ROM. And unfortunately still no adb connection. I will try to reinstall everthing this evening and give feedback.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I think now you need to reflash everything again

The older plattform tools probably broke your device partitions while installing the rom

The rom should boot, since it is used in the SODP team on the xz2/xz2c/xz3 and I heard positive user reports on telegram
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So you mean it is an edge case only on the xz2c and it boots with OEM android 10 blobs?
[MENTION=1119573]bluep[/MENTION]

I didn't hear any issues from jerpelea after he updated to the newest stock firmware
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
As you can see there are at least 2 users with same issue on this device.

[MENTION=1119573]bluep[/MENTION] trying to flash your compiled rom, I'm trying my own compiled.

Result the same - stucked Android logo.

And yes - rom successfully boots with latest A10 blobs :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Then I just wonder why the development team can't reproduce it xD

(And I have only a XZ2 H8296)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Ah, I see that my adb version is 29*, I'll try with newest.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, 30* is for 11 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
No changes with adb 30.0.4-6686687 :confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe someone should recreate an open issue ticket, so at least it won't be a closed one.

Maybe they give you a different answer

But at least the A10 blobs are working for this xz2c specific problem O.o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
does anyone have A11 flash on xz3? I have installed on my xz3 and it works fine. I just wanted to know one or two things ..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Yeah, I can confirm. Works with latest A10 binaries. But noc chance with A11.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
WTF ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] chinh098:
Where can I find gapp for android 11?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
On their test builds channel
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
At next weekend the new november release (android-11.0.0_r17) with OEM11v3 support should come. :D

[MENTION=3175952]zhka[/MENTION]

[MENTION=1119573]bluep[/MENTION]

I assume V2 had the fixed XZ2C stuff but got lost on the website. xD
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Cool, lookking forward to test it.

BTW: Thanks for the support!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
PM seems not to work ...

therefore here

Hello Martin,

I'm German too but I'm writing in English since we are on XDA :D

Now I tried to install your ROM the way without recovery.

At the last step "13. fastboot -w (Wipes your internal storage and the userdata)" I get following error

wiping userdata...

CreateProcess failed: Das System kann die angegebene Datei nicht finden. (2)

error: Cannot generate image for userdata

Then I get a bootloop (only the SONY-Logo is shown).

Before I got the message Invalid sparse file format at header magic while flashing system

What am I missing?

Kind regards
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly there won't be an official support, because the vendor of the bionz camera chip didn't allow the usage in sodp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pekas:
It has access to the Sony Camera this build?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You can take pictures.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
A bird twittered me that the OEM release for kernel 4.19A12 is soon.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pekas:
But the pictures are with Gcam or with Sony Camera?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Camera App
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The first alpha build for AOSP 12 with the new 4.19 kernel is compiling.

I will create a new XDA thread after it finished for all three devices.

Beware that it's alpha, because there are still bugs in the new kernel which need to get fixed or to get found :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
09.02.2022
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] xanlimit:
Can't seem to find any related replies on japan model.

Does this rom works on japan model? The SOV- something model number.

(Before I make a mess out of it)

(◍•ᴗ•◍)❤
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you achieve to unlock it and flash this rom, your NFC won't work.

Maybe battery drain will happen.

I don't know which hardware parts are different aside from your NFC.

(◍•ᴗ•◍)✧*。
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I got your 3 PM's, I just wasn't available :P

Update your android plattform tools, please

Otherwise flashing and wiping going wrong
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
oh then sorry

my messages weren't shown in sent messages therefore I thought it wasn't working

I use the latest version of minimal ADB & FASTBOOT, is this not enough?

ATM I managed to go back to stock using XPERIFIRM and NEWFLASHER and will start from scratch

One question: is the actual TWRP working with Android 11?

If not, how could I install magisk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Don't worry spammer, you're welcome :D

fastboot should be version v30 or newer. or it isn't Android 11 compatible

If TWRP doesn't work on your device, please report it

Magisk 21 can also be applied by directly patching the boot.img file via the Magisk Manager App
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Yeah, waiting for new blobs. Ar17 already compiled :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I recommend to recompile after an OEM release :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
As I see oem v2 just released - same issue as with v1. Waiting for v3 :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And if it is possible, gather some pstore logs in twrp after such a crash/boot issue, please :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Finally I managed to install the ROM correctly.

I know I'm new and I have to read read red ... but

in your install instructions without recovery

was one important thing missing

Maybe you should note that in general section (for both install variants) for newbees like me.

Thank you for that ROM :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
twrp from android 10 section?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You mean step 14? :P :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, it should boot on 11

I got no reports about "boom" :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
weird

I read it so often but I always ignored it and rebooted after wiping :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I should write "¡READ STEP 14!" in every file(-name) and in the boot animation :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
I'm not sure this would help but you could try :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
There are no files in sys/fs/pstore, after trying to boot with A11 blobs.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's sad

Hopefully the next build fixes that
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
latest oem v2 really fixes the battery. on V1 oem the battery did not last the day. since i have flash v2 oem the battery is really exceptional. this beginning of rom is really very, very good. love it.View attachment 5133477

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] logan123456:
how is the touchscreen issue on this rom(the notification bar scrolling down itself)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Very perfect on xz3[emoji108][emoji108]no problem here

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Magisk 21.1 can be installed directly via magisk . View attachment 5135077

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] robonudo:
Where did you found V2 Rom ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The download link for the OEM binaries is at the instructions on the first page
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Seems that the OEMv3 is delayed

So I stop waiting for it and android-11.0.0_r17 (november patch level) will be on the way now.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] robonudo:
Thank you very much
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
14.11.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Thank you!

btw ... XZ2C still only boots with Android10 binaries
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I sadly only own a xz2

Please open a new issue ticket or if it is already open (not closed) please update it :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Nice[emoji7][emoji7] thanks a lot for your work broView attachment 5135895

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
https://github.com/sonyxperiadev/bug_tracker/issues/653
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
ok .. since the update, the battery is very impressive. last full charge 22 hours ago and 3 days of battery life remain. I was at work so very little used the phone. but the first version of rom did not hold the day. without special use.

Thanks you MARTIN [emoji6][emoji6][emoji6][emoji106]very good jobView attachment 5136573

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
No solutions till today as I see :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
maybe I didn't make a correct entry, it was my first time on GitHub...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You just didn't follow the issue ticket template you get, if you make a new issue ticket in the browser.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
might be

at the moment the system works with the A10 binaries and I'm not willed to "learn how to use GitHub" atm...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hotcakes_shinku:
It's not about "learning". You are given a template, which is like a form you just have to fill in the blanks.

Imagine you are given a form to fill in by a government officer you had business with. Instead what you did is you wrote down whatever you wanted that officer to know on the other side of the paper of the said form which was empty and presented that to him. Obviously he would ignore you right? Templates/Forms are there for a reason, to make it easy for both parties to understand the whole situation simply and clearly. Use them please. If you need to "learn" how to fill in a form, maybe you should go back to school.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Created a new issue but I'm not sure that I'm the correct person to provide all the requested information. For example I don't know what is meant with "platform". Maybe people that are more involved in this are better suitable for that than me who only just wanted to try whether Android 11 runs on my third device or not ...

And thank's, I'm fine with my education level :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Latest oem is out

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe it boots for the XZ2C users :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Ho.. v2 don't boot on xz2 . Maybe its nice now. I go to flash it tomorrow I think

Envoyé de mon Xperia XZ3 (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The XZ2 is fine, only the XZ2C has this problem :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Sadly no... Fresh compiled r17 + v3a blobs - same behavior as before. Android logo and nothing.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
already tried yesterday - doesn't work

described this in my new GitHub-Issue...

so why does one of the guys on GitHub write that it works for him? I mean in that closed issue...:confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
Hello Martin,

I followed your steps. Before I flashed and used your TWRP Version dhsfileserver...MartinX3...stock/2020-06-14_21-07-34_twrp_akari.tar.gz. After Step "4. Reboot into recovery just to make sure you're on the new slot" TWRP disappered and another more simple text yellow based recovery appears.

Should I reflash your STOCK TWRP or SODP TWRP...twrp/sodp/2020-06-13_13-12-08_twrp_akari.tar.gz? Flash via ADB? Or try now step 7, vbmeta.img?

Now I choosed "reboot" and I'm seeing the clean sylish silver "adroid" logo with light motion. It seeems to boot up, but I don't know how long I've to wait.

Best regards

Tim
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the steps.

And use the stock twrp if you have installed stock.

Don't worry, it works on my akari :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
Hi Martin,

I followed to step 4. Then TWRP disappeard and another recover appears. Is this correct?

I should follow with step 5, 6 ad 7 without TWRP?

Greetings

Tim
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes

The recovery is in boot and you flashed the boot of aosp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
Sorry, I don't understand in which point i did a failure.

You answered on 2 questions with 1 answer.

"1. I followed to step 4. Then TWRP dissapeard and another recover appeard. Is this correct?

2. I should follow with step 5, 6 and 7 without TWRP? Instead I should use the new blue text baseed recovery"? THere I cant mound my SDCard.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just install twrp :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
You mean I shouldn't do step 1 and 2 with OEM (Tama) binaries? How to forbid the istalling of the blue text based recovery with less options?

---------- Post added at 11:27 AM ---------- Previous post was at 11:01 AM ----------

What do you mean with "3. Flash the ROM in a recovery"? Flash something via adb? Via fastboot? Or install TWRP like this? https://xdaforums.com/xperia-xz2/development/recovery-twrp-3-3-1-0-t4074305

Something like "fastboot flash recovery /home/tim/Dowloads/aosp-11.0-20201114_aosp_h8216.zip" ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the twrp installation guide again if you want twrp back :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nikkdib:
are there any bugs? does it work on the xz2compact?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] twistedddx:
I am also stuck at the android logo. It is animating but never appears to boot after 30 minutes of waiting.

I updated platform-tools from 30.0.1 to 30.0.5 and started all the recovery less process again and again and again.

Always back to stuck at android logo.

I tried using oem as SW_binaries_for_Xperia_Android_11_4.14_v3a_tama.img

When that failed I started again with SW_binaries_for_Xperia_Android_11_4.14_v2a_tama.img.

flashing the fastboot --disable-verity --disable-verification flash vbmeta

With the vbmeta.img coming from payload.bin via payload-extract

I tried vbmeta.img that comes with the android 10 twrp for aosp.

I have flashed aosp-11.0-20201114_aosp_h8216.zip in TWRP for slot A.

Tried again in twrp in slot A and slot B .

I tried with no gapps, I tried with open_gapps-arm64-11.0-nano-20201116-TEST.zip

What I do see is "Invalid sparse file format at header magic" for system and vendor images that payload-extract has created:

fastboot flash system_b system

Invalid sparse file format at header magic

Sending sparse 'system_b' 1/2 (770339 KB) OKAY [ 16.749s]

Writing 'system_b' OKAY [ 0.001s]

Sending sparse 'system_b' 2/2 (541946 KB) OKAY [ 12.204s]

Writing 'system_b' OKAY [ 0.001s]

Finished. Total time: 32.927s

Also after flash system or vendor image fastboot becomes hung on the phone and requires a reboot of the phone device to continue giving any more fastboot commands.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Do you use the newest stock firmware on both slots and booted it once until you reach its desktop?

I know from at least another XZ2 owner (telegram) that it runs on his phone as well without this bug.

About the "Invalid sparse file format at header magic" error, it sounds like the extractor you used had some trouble extracting the files.

Maybe depending on the installed python libraries on your computer.

I recommend using TWRP to flash the OTA zip files :)

And please try t oflash the OEM image on both slots.

And maybe there are logs via adb to get in the bootloop?

Or something in the pstore?