yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The Sony Open Devices Project is always happy about volunteers (coding, testing, etc) :)

Also mainlining your favorite snapdragon powered xperia device into the mainline kernel is possible and we will be glad to help you!

Official site

Unofficial site

#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

This is the AOSP ROM for the Sony Xperia XZ2 (akari), XZ2C (apollo) and XZ3 (akatsuki)

This ROM build will always mainly based on Sony AOSP Code and maybe include cherry-picks.

I plan to make monthly builds, after a new security patch level, if there is no need for a critical hotfix.

FAQ:

fastboot & adb

https://developer.sony.com/develop/open-devices/get-started/flash-tool/useful-key-combinations/

https://wiki.lineageos.org/adb_fastboot_guide.html

https://developer.android.com/studio/releases/platform-tools

Stuck at SONY logo? Maybe you need to flash the OEM binary to oem_a and oem_b, while just oem is not enough.

Bugtracker:

SODP Bugtracker -> If you think the problem is in SODP

My Bugtracker -> If you think the problem is in my implementation

Bugreport:

A bugreport needs

logcat -b all

and a way to reproduce the issue.

A crash of the system requires the content of the /sys/fs/pstore folder as bug report

Be aware that a second reboot erases this folder

A crash to the recovery partition requires additionally the content of the /dev/block/by-name/misc partition

You get the content via `cat /dev/block/by-name/misc partition > /path/to/output/file.txt`

To rescue a not responding phone:

VOLUP+POWER for 3 Seconds -> RESTART with one Vibration.

VOLUP+POWER for 20 Seconds -> SHUTDOWN with 3 Vibrations.

VOLUP+POWER+CAMERA for 30 Seconds -> HARDWARE SHUTDOWN by discharging a capacitor.

Thank you very much for your help, code contribution & testing! (Random order):

@jerpelea, the sony employees and their volunteers (people like you and me) coding this wonderful piece of software

@dhacke for providing a download server

And many thanks to the few donators! :)

A telegram group for technical SODP stuff:

Sony Open Devices Project Chat for devs

https://developer.sony.com/develop/open-devices	OEM binaries:	@SMDW_downloads	Bug Tracker:	https://github.com/sonyxperiadev/bug_tracker	This group is only for dev stuff.	For support: https://t.me/xdadevelopershub

t.me

XDA:DevDB Information

AOSP, ROM for the Xperia XZ2

Contributors

MartinX3, Sony, SonyAOSP

Source Code: https://github.com/sonyxperiadev

ROM OS Version: Android 10

ROM Kernel: Linux 4.x

ROM Firmware Required: Latest Stock Firmware

Based On: AOSP

Version Information

Status: Beta

Current Beta Version: 11

Beta Release Date: 2020-10-23

Created 2020-10-23

Last Updated 2020-10-23
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Download & Installation

Download ROM:

Android File Host

FTP-Server from @dhacke

Download Drivers:

OEM (Tama) binaries

Please use the the OEM build which came before my last release, if you getting problems like a not bootable or crashing device.

GCAM Camera App:

Suggested GCams

Installation with a recovery:

fastboot flash oem _a oem_*.img (Only needed until the device receives mainline support by SODP)

Flash the ROM in a recovery

Reboot into recovery just to make sure you're on the new slot

OpenGapps (Requires TWRP or a custom ROM recovery)

Dual Sim Patcher (Requires TWRP or a custom ROM recovery)

(In case a modification prevents your device from booting) fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Flash the ROM without a recovery:

Extract the payload.bin from the .zip file

Extract the .img files with the Playload Dumper

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot -w (Wipes your internal storage and the userdata)

Now you got the AOSP recovery, to please continue with the normal installation
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
News

09.02.2022

20.09.2021

19.09.2021

17.09.2021

17.08.2021

25.07.2021

10.06.2021

10.05.2021

08.04.2021

12.03.2021

13.02.2021

12.01.2021

12.12.2020

14.11.2020

23.10.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
23.10.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Wow..thanks a lot bro. I go test it tomorrow

Envoyé de mon Xperia XZ3 Dual (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome :)

And please report back if the dual sim patcher is still working
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Of course bro.. I hope it work. Thanks a lot for your work[emoji6][emoji6]

Envoyé de mon Xperia XZ3 Dual (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] logan123456:
thank you i am going to try it soon
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] robonudo:
Thank you very much for the effort to keep this phone alive!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Can I flash oem directly over the LOS 17.1 or need to reflash the latest FW?

Envoyé de mon Xperia XZ3 Dual (AOSP) en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Depends if you booted the latest FW on both slots the last time you came from stock.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] N.Y.Gazz:
Deleted
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

But please hide several numbers in your screenshots.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Is it works with latest october blobs?

Coz my compiled one doesn't. Only works with latest A10 blobs.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, this one only works with the newest OEM released before my builds.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] logan123456:
which gapps to use
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Every

I prefer pico
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] y2kbugleung:
I have been following the "no recovery" steps.

I have got the payload.bin extracted with this https://github.com/vm03/payload_dumper

Afterwards, I have got all the img flashed with fastboot.

Where should the SW_binaries_for_Xperia_Android_11_4.14_v1a_tama.img be used?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice!

The OEM step of the normal installation above
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] y2kbugleung:
So I fastboot flash oem SW...tama.img after flashing all ROM images.

Afterwards, do I still need a recovery (TWRP) to flash GApps and dual-sim-patch?

How could I install a recovery? I cannot find one from TWRP official site.

Thanks.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pmatj:
1) Hm, I feeling stupid right now but I do not find any setting (see attached video)

2) By writing "I would add" you mean that you will add it... Just kidding. I'll check the SODP-Bugracker first and post a Bug-Report [Done]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
1. Wtf. Then my memories about android 10 fooled me and android 11 is different.

Probably you need a different launcher or send a bug report to google https://source.android.com/setup/contribute/report-bugs

2. Thank you :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pmatj:
Hm, OK. In that case, I'll switch to anotehr launcher but now I'm facing one more really strange thing... was curious why the phone is so still and I didnt got any WhasApp-Login-SMS.... And now I'm facing trouble with the Modem (I think):

I can start a phone call but neither me nor my partner can hear anyhting and I do not receive any messages anymore

What kind of Network type do I need to set (Germany/O2, so I guess it is not CDMA :cool: )

There's also a message about Open Devices ModemConfig:

Modem -Konfiguration S77.1

Firmware-Datei: mcfg_sw/generic/euro/tef_o2/vlvw/de/mcfg_sw.mbn
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's weird

I use the selection "LTE/TD-SCDMA/XDMA/EVDO/GSM/WCDMA" to get my 2G/3G+/4G+ in O2 Germany :)

The message is normal and there you can see, that the specific mobile provider file got loaded. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pmatj:
Thanks for that hint. Calls and messages are now working as expected.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bruno$0:
Hello guys.

I have a XZ3 and i use my phone to pay account with google pay. Is it safe to unlock the bootloader and flash this rom? Can i use this rom with google pay?

Thx in advance!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
i get "invalid sparse file format at header magi" at system and vendor

after erase, it will write, but hang in the next step.

I understand this right?

Delete all "Other".sin files

select a with fastboot

Flash stock with newflasher

select b with fastboot

Flash stock with newflasher

Boot from a till desktop

Boot from b till desktop

Flash SW_binaries_for_Xperia_Android_11_4.14_v3a_tama.img to oem_a

Flash SW_binaries_for_Xperia_Android_11_4.14_v3a_tama.img to oem_b

Extract the payload.bin from the .zip file

Extract the .img files with the Playload Dumper

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

fastboot flash dtbo_a dtbo.img

fastboot flash dtbo_b dtbo.img

fastboot flash system_a system.img

fastboot flash system_b system.img

fastboot flash vbmeta_a vbmeta.img

fastboot flash vbmeta_b vbmeta.img

fastboot flash vendor_a vendor.img

fastboot flash vendor_b vendor.img

fastboot -w (Wipes your internal storage and the userdata)

Continue with the normal installation

Then it will stop at system, because he take the 4GB file send something and die... (second picture)

It is the same if i not take the 2014 original google driver. The XZ2 adb driver (sa0118adb.inf) from the website make the same
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Problably the dumper wrote garbage as vendor/system

Try to only flash boot and dtbo (if you not already done that) and flash the .zip image in the recovery.

Or in TWRP.

I'll update this readme, since multiple users got this problem.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
After i update my XZ2 to official Android 10 i got many microphone problems. Low volume first and after updates the problem, that it is silent after 3 sec in whatsapp.

Sony Support can´t help, i buy XZ3, same problem. Sony will refund my XZ3 ( i wait till now).

So i flash yesterday Android 9 back and everything works. I think i let it be, till AOSP 11 is stable on it. Maybe after that too, because it react and start very faster with 9, than 10

But now i get a new problem: the camera preview is black, bu i can make photos, without see what i do...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
As far as I know there was a bit wrong in the audio configuration files of the stock 10 ROM (and the same configurations got used in the custom ROMs)

Problably it got better now with the newest 11 release.

Otherwise please comment here

[4.14][10.0][TAMA] Bottom speaker doesn't work if call switched to speaker mode (ACDB?) · Issue #549 · sonyxperiadev/bug_tracker

Platform: TAMA Device: AKARI Kernel version: 4.14 Android version: 10.0 Software binaries version: OEMv3 & OEMv4b Previously working on 4.9 with 9.0 Description While using the phone in call speake...

github.com

[TAMA] [AKATSUKI] [CRITICAL??] Speakers clipping and distortion · Issue #411 · sonyxperiadev/bug_tracker

Platform: Tama Device: Akatsuki Kernel version: 4.9.x Android version: 9.0.x Description When playing any kind of sound, apart (so, not with) phone calls on the earpiece only, but including phone c...

github.com

[tone] [kagura], [?] Crackling speaker sound on medium to high volume · Issue #365 · sonyxperiadev/bug_tracker

Platform: tone Device: kagura, possibly others Kernel version: 4.9 Android version: 9.0 Pie Description After we fixed the top speaker issue, it has become apparent that the sound coming out of the...

github.com

Or open a new issue if the problem is not listed in one of them
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
Stay 3 questions:

How can i rewrite TA image, loch bootloader and make the cam functionally?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Doesn't the cam work out of the box since you booted Stock 11 and used the camera there one time?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
i have installed stock Android 9, because 11 wont flash
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
First try xperifirm to download the newest stock 10 for your region and then newflasher to flash it (will do a fullwipe by default)

Then boot it and use the camera

Then your baseband and partitions are upgraded to the newest patch level

This is also needed if you wnat to use newer custom roms.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
OK, flash a/b stock Android 10, your boot and dtbo, flash with adb sideload in recovery mode, have install your ZIP file, stuck at silver android (it´s moving)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If it is stuck on boot please flash the OEM for Android 10

You may be affected from a bug in the OEM.img for 11

Xperia XZ2 Compact Dual (H8324) & XZ2 Dual (H8266) don't boot with A11 binaries but they do with A10 binaries · Issue #661 · sonyxperiadev/bug_tracker

Platform: Android or TAMA or whatever is meant with platform Device: Xperia XZ2 Compact Dual (H8324) Kernel version: 4.14 Android version: 11 Software binaries version: SW_binaries_for_Xperia_Andro...

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
What a crap is that? Camera looks like 2005 and sd card don´t work
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
As mentioned in the bug tracker the camera is work in progress and gcam is currently not available (which is also mentioned in the first page).

You could try the apps "Open camera" and "HedgeCamera"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
ok and what about SD-Card? Will both not work in recovery (i flash with adb sideload) and in OS. I try 2 ones, that work in this phone before
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
In TWRP it should.

The vanilla AOSP recovery never had Sdcard support
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
In TWRP my touchscreen don´t work.

i try to install gapps, but he can´t find metadata, so he abort

I think i will sell my XZ2 and buy me a new phone. Something not from Sony. Only update problems since years
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With the SODP TWRP?

XZ2 or XZ2 Compact?

You need to install the beta OpenGAPPS for android 11

I can't follow you, it works fine here.

Alternatively you can use LineageOS or PixelExperience

On both ROMs it is official supported.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
2020-06-13_13-12-08_twrp_akari.tar.gz works now

NikGapps work too

But no the quickstep Launcher restart secondly :cautious:

Edit install Nova launcher and anything seem to work like on a "normal" phone

Thank you!

And for anyone, that will try this by self:

Flash newest stock on a and b (newflasher for flash and fastboot for slot switch)

start a and b

open payload with payload extractor

install SW_binaries_for_Xperia_Android_10.0.7.1_r1_v12a_tama to oem a and b

flash boot and dtbo to a and b

start recovery mode, install zip

reboot in fastboot mode

make the thing with vbbeta

flash boot (without a/b) twrp from 2020-06-13_13-12-08_twrp_akari.tar.gz

install it (see other tread)

install Nikgapps

install nova launcher (or someone else)

And we see again: 50% is foto sensor, 50% is (missing) software. The photos have much noise
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice that the TWRP is working

Hmm, I only use OpenGapps 11

OpenGApps - Browse /arm64/test at SourceForge.net

OpenGApps daily releases

sourceforge.net

Here are the test builds
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
2 problems stay:

relock Bootlocker

drm keys (reflash TA Backup or emulate them. The camera is like 2005)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Introduced with the Xperia 1/5 and Xperia 10II

Not needed

On stock 10 the camera is like before unlock

But you don't use stock, you use SODP

A reimplementation to achieve AOSP compatible device trees for future proof chance of getting updates

As far as I know the camera driver is work in progress until the device got mainlined which fully open source it and make it bootable with the newest linux kernel.

If you only interested in the camera you can flash the official stock 17.1 lineageos which uses stock drivers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
AOSP take the RAW camera data, without any picture enhancement. So every app make bad photos.

When i use "Open Camera" i have the same quality first, but when i select Camera2 API in settings, i get my old quality back.

Is it possible to select Camera2 Api as systemdefault?

See before and after (each is best shot from 3)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It uses the Camera2API (Only SODP based ROMs are using the entire Camera2API) but it's missing some calibration, which open camera does for you to some extend

While the AOSP camera just shows you the not precessed, not good calibrated image

Currently the only workaround is to use a 3rd party camera like open camera to get stock like qualities
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
The original phone App has a high echo. Did someone know a caller app with echo remover?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The second microphone should filter any echo or bad sounds out of audio recordings.

If you can reproduce it, please create a bug tracker issue ticket at SODP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PCRath:
Must be an app problem. If i use a VoIP App, i have this problem not

Oh and i can not change the volume

If i see it right the google package remove the preinstalled dailer, how can i get it back?

No i can´t deinstall the google phone and i can´t install any sony phone apk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you can reproduce the volume bug, please open an issue ticket or maybe there is already one open you can comment to.

It's the AOSP-Phone App, if you didn't install GAPPS.

If you installed gapps, it depends on the package size.

Package Comparison

The main repository of the Open GApps Project. Contribute to opengapps/opengapps development by creating an account on GitHub.

github.com

Or here it is separately, if you have the needed dependencies listed in the wiki installed

Phone by Google - Apps on Google Play

Reliable phone calls with spam protection, caller ID and more helpful features

play.google.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If someone is interested into a working gcam, we need more logs.

[4.14][10.0][TAMA][AKARI] GCAM crashing · Issue #544 · sonyxperiadev/bug_tracker

Platform:Tama Device:Akari Kernel version:4.14 Android version:10 Software binaries version:v3 Previously working on 4.9 kernel Description GCAM doesnt work with 4.14 kernel Symptoms Google Camera ...

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
At first it would be fine to have working rom :D

No news on this course?

I have compiled fresh branch, but don't want to flash again if it won't work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
For XZ2C still using A10-binaries, right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I would tag alin in the issue ticket, probably he'll answer there. :D

Yes, the new OEM binaries aren't out now. (I hope they contain the fix)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
13.02.2021
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
For which devices? Or are you jaust rolling out? Didn't find it for XZ2C ...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
This one? https://androidfilehost.com/?fid=17248734326145735706 :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Don't ask me why... I was searching for a March's file... 🤪
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I could fake the security patch level, build date and filename for you :ROFLMAO:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lobotron:
the ennoying search bar can only be permanently removed from the 0th screen of the workspace by setting the Variable QSB_ON_FIRST_SCREEN to false which was defined in packages/apps/Launcher3/config/BaseFlags.java (in Android 9,10, don't know about 11)

which I do agree that someone could address a luncher3 google bug
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
New progress on

Xperia XZ2 Compact Dual (H8324) & XZ2 Dual (H8266) don't boot with A11 binaries but they do with A10 binaries

Please confirm this issue, if you get it, too.

[4.14][11.0][TAMA][AKARI] Broken mobile and wifi
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] must_apha:
i'm proud of you (y)(y)(y)(y)(y)(y)(y)

thanksnks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] must_apha:
:giggle::giggle::giggle:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] StrangeTurtle:
Hello martin I'm using xz3 with stock.

I had followed your step but not able to switch slot after installing rom with twrp.

If I install with slot A it showed that I have install rom in B and need to switch to slot B.

But if I switch to slot B in twrp, I will boot into sodp recovery and not able to boot twrp recovery again, even I tried to boot with fastboot boot twrp.img and just stuck on sony logo.

I have tried both A10 oem and A11, same result.

If I boot directly, sodp recovery said that my system is corrupt or something and need to factory reset.

After reset I'm able to enter android but without any signals.

The step that I did.

Stock A10

extract rom with payload dumper

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot -w

Installing twrp

fastboot flash oem_a oem.img

fastboot flash oem_b oem.img

fastboot boot twrp.img

Advanced menu -> "Install recovery ramdisk" -> Choose twrp.img

Reboot into installed TWRP

Flash rom with twrp

Switch slot in twrp, and getting stuck in sodp recovery.

Any wrong step?

Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Dear @StrangeTurtle after my exams (end of the month) I will rerelease the TWRP with Android 11 compatibility and continue to work on a native TWRP for 10/11.

In the meantime (what I did as a workaround to install gapps on AOSP) was to use the LOS 18.1 recovery to flash them and move back to the AOSP boot/dtbo. But sadly there is no LOS 18.1 for the XZ3.

But you could use the Pixel Experience TWRP as a workaround as well.

Home - Pixel Experience

Home - Pixel Experience

download.pixelexperience.org

Home - Pixel Experience

Home - Pixel Experience

download.pixelexperience.org

Download the matching ROM.zip for 11

Extract it with the payload extractor

Flash the boot.img and dtbo.img

Boot into the recovery

Install the stuff you need to install

Then flash the AOSP boot.img/dtbo.img back.

But watch out, the February patch did something weird (or a newer change in the kernel)

[4.14][11.0][TAMA] Broken mobile and wifi