yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Murro@outlook.com:
Can only find this stock: H8416_Customized UK_1316-4520_52.0.A.3.84_R15B.tar.gz and this does not fit....

No, I still can't find the files you're talking about. How about a link ? :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please go a folder back :)

You clicked on "stock"

But first click on TWRP and then on stock please. :)

Like there https://androidfilehost.com/?w=files&flid=288330 ^ ^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Murro@outlook.com:
Is this right 2019-02-16_17-04-52_sony_stock_twrp_xz2_52.0.A.3.202.tar.gz ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, if you use a XZ2.

On windows unzip it with 7zip :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Murro@outlook.com:
What more do I need if I need more ?

I have the XZ2 fil while U posted a picture of the XZ3 fil..... where did you find it ?

---------- Post added at 06:13 PM ---------- Previous post was at 06:10 PM ----------

No I need XZ3 but i Can't find it..... :(

---------- Post added at 06:27 PM ---------- Previous post was at 06:13 PM ----------

Is there only 1 file ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
if you are not even able to find a file to download, avoid unlocking and flashing twrp..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Murro@outlook.com:
Yes it did :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am happy that you did found everything. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
17.02.2019

(Upload should be finished in the next 10 minutes.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
[MENTION=6031898]MartinX3[/MENTION] where you downloaded fw 220 ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Toanbiufc:
Hi everybody

can anybody help me a link to camerafix.

I got down to android O. But I can not find camerafix link

Thanks

sorry my english is not good
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oreo needs xperifix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Xperifirm on XDA :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
its not there and you know that -__-"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use xperifirm

It's the best way to download the latest Sony firmware for our xperias.

Most of us use this way. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Lmfao hahaha i know that and check you telegram message by me
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Toanbiufc:
Thanks!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Thank you. Already through that i am gonna stick without twrp on 202. You are awsome man. But can I have one more question? XD I know, I am irritating xD How do you backing up your system settings, apps and everything after flashing your device with newflasher, then recovery, and then existenz mod? Or you everytime starting with clean install? ? If you are using twrp for backup, what is needed to check befero making backup? Thank you very much.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
Computer-traffic stopped working arter upgrading to 202 on XZ3. Bad Build 52.0.A.3.202 very very bad!!!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It seems that even with .163 touch drivers my .202 TWRP has "no touch" some times on some phones.

I assume .202 has some bugs. :rolleyes:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use Google backup for devices settings and wifi and I use titanium backup for the apps. :)

But for the custom Rom Backup I will look into the app "migrate".

Maybe it's better.

I will see. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
Took me a while and much searching and reading but finally scored. ??

Thank you MartinX3
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
New 202 TWRP touchscreen still not working on XZ2c... But cant get the info without root, so... xD Here we go again, fresh install xD
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Meeehhh. Meeeeeehhhhhhhh.

The currrrse of .202 :silly:

And I am unable to reproduce it.

Buuut I will try a new approach and release it today evening. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
19.02.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
SONY Loge - not booting

Hello Martin,

Thanks for your work! I need some help:

I followed Step 1 to 6. I was really careful and read all the messages in the terminal. All flashing actions were successful. Especially step 2 and 6 were successful.

Now I would like to start my phone normally up, step 7. I'm seeing only the SONY logo.

(I think I was on Stock ROM 52.0.A.3.126 before, but I cant remember. I flashed the files from 2019-02-19_20-31-27_sony_stock_twrp_xz2_52.0.A.3.202.tar.gz, but TWRP is working fine.)

What should I do?

Best regards,

Tim
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
[MENTION=6031898]MartinX3[/MENTION]

Congrats for your promotion :svetius:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please flash the newest firmware :)

What is the output of

"fastboot getvar all" ?

(Please remove sensitive informationa like serial numbers)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you very much Klaus :o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Newest TWRP 202 touch working...Buuut xD After installing TWRP, than flashing recovery, rebooting into recovery and installing magisk, device keep rebooting to recovery instead system xD
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yaaay eeerm REEEEEEEE

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc

cat /dev/block/bootdevice/by-name/misc

may show you the cause

"dd: /dev/block/bootdevice/by-name/misc: write error: No space left on device" is fine and can be ignored

:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
Thanks!

I flashed 52.0.A.3.202 (Germany, Vodafone branded) and it works!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whyou:
Running on H8166_Customized VN_1313-4769_52.0.A.3.202_R2B and then flashed as this post. All works fine. Thank you [MENTION=6031898]MartinX3[/MENTION]!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jetblackcoopers:
I did the DRM patch and my camera still has black preview and green images, but it's able to record video just fine...I tried on both Oreo and Pie. Any help?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you unlocked before .126 pie you need to use Oreo and xperifix to shoot a normal photo (selinux needs to be permissive).

Then upgrade on pie and install TWRP and the bundled camerafix.

Hint: after every flashtool/newflasher/Emma unsage you need to execute the mentioned TWRP parameters.

If you unlocked with or after .126 don't install the camerafix.zip .
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It is supposed to have a working preview / photo.

If it is not the case and the xperifix installation (vendor, A/B, choosed magisk.zip) was successful, you need to change your selinux Kontext to permissive in Oreo.

You can use a permissive.zip as a magisk module (please use the thread search function for this filename) or maybe the terminal command "su; setenforce 0" works too.

PS:

I am optimistic that the black preview on Oreo was the culprit. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
Same problem with camera here

Device: Sony Xperia XZ2 Compact (H8324)

Bootloader unlocked on Oreo

Current OS: Pie on .202 (German)

TWRP + Magisk installed succesfully -- root works -- but neither camerafix by MartinX3 or Serajir is working

even flashed XperiFix drmfix

Could someone explain how to fix this for dummies (not a pro at all)

Btw. Wish you all a great day!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I wish you a great day, too :)

First a few questions

1. Did the camera preview in Oreo work with xperifix?

If not, did you changed selinux to permissive?

2. Did you used the vbmeta parameters in PIE together with the bundled camerafix.zip?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
Thanks for your reply and many props for all your work!

To be honest, I didn't try on Oreo. My procedure was:

- New phone 2 days ago out of the box on Oreo --> everything fine

- unlocked bootloader on Oreo --> didn't test the cam, wanted to root

- Update on Pie (.84) with EMMA (because of trouble with TWRP on Oreo) --> on stock .84 Pie camera preview didn't work

- Update on .202 Pie (because of touch not working in twrp recovery) --> stock .202 pie camera preview didin't work

- then flashing TWRP + magisk like it's explained on the first page

flashing twrp.img --> disable verification flash vbmeta --> flash twrp.zip --> flash magisk.zip --> flash your camera fix over adb sideload (all from the folder stock_twrp_xz2c_52.0.A.3.202)

now everything works except for camera preview and the 'stream display' function on chromecast
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you very much :)

Sadly since you upgraded the phone before .126 PIE you need to use xperifix on Oreo to shoot a photo (and this lead to a TA partition manipulation).

Then the camerafix.zip on PIE (after and with .126) will work for every future version (until now) :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
Ok I'm on Oreo right now (51.1.A.11.51) and tried xperifix. The problem is that I stucked in bootloop.

After xperifix tells me everything ok lets test cam ... my phone is just showing the sony logo.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you installed magisk and wiped userdata? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
I tried it again 5 times the last 2 hours :D

Yes I installed magisk but I'm not sure how to wipe userdata

My steps step by step

1. Loaded 51.1.A.11.51 via EMMA

2. [FASTBOOT] fastboot flash boot twrp.img

3. [FASTBOOT] fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

4. Reboot into RECOVERY/TWRP (Power + VOL DOWN)

5. [in TWRP] Advanced --> sideload (no errors)

6. [CMD] adb sideload twrp-stock-installer.zip

7. [in TWRP] Reboot --> Recovery

8. [CMD] adb sideload Magisk.zip

9. [in TWRP] Reboot --> System --> Bootloop

I even tried to install twrp & magisk first time directly from xperifix - same problem

Could you give me a hint what am I doing wrong please? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
Is your phone's selinux state permissive?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You missed the kernel installer before the twrp installer? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jetblackcoopers:
Worked like a charm, thank you! :good: :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
How do I update the firmware without losing all my data and magisk modules???

I've installed everything listed here but now I want to flash existence custom rom, how do I do this after I've already done your guide???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rmacho:
TWRP

Martin X3

I installed the latest firmware for XZ2 dual and last TWRP. It works the way I used it, including the full backup of the phone (boot, data, system, ... )

Thanks for your work.

rmacho
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
MartinX3

The camera does not work either. I guess its broken. Have tryed MartinX3's DRM-fix AND MAGISK Camera fix. But The is only The front video that works, with screen. But som lags and stuff. The BACK video works from time to time.

Do you think its broken for ever? ??

---------- Post added at 08:49 AM ---------- Previous post was at 08:38 AM ----------

Mee too, is there any solution to this MartinX3?

? XPERIA XZ3
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you booted your system once before using existence you need to full wipe your phone or this stock rom mod won't work.

You can use titanium backup and Google cloud backup
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hmm. You use a xz3.

Hmm.

The problem is, if you unlocked it before .126 you would need to use a drmfix on Oreo first, since none exist on pie at the moment. Sorry :S

PS: it's only the preview, you should be able take pictures.

PS0: AOSP/Custom ROM would be a workaround.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
Yeah its only The prewiev. The video lags and hack's/jumps some...

Never had Oreo installer on XZ1 or xz3.

Is IT compatible with xz3?

Think i unocked itj before 126. Now I am on New ground.

Any pointer and tips and links to Oreo and AOSP STOCK.....?

To The right files I mean.... ?

THANKS for responding ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
I'm sorry but I don't know how to check or change that

That was it thanks!!

However rooting on Oreo was successful. I did xperifix (no errors) and took a picture (still black preview)

Then I went on Pie .202 installed TWRP, Magisk and then flashed your Camerafix rebootet but still camera preview is black.

frustrating root :confused: :D

Do you have any idea what else I could try?

Edit: Would it fix it if I set selinux Kontext to permissive in Oreo (as you said in another post)?

"You can use a permissive.zip as a magisk module (please use the thread search function for this filename) or maybe the terminal command "su; setenforce 0" works too."

so if I get it right I should go back to Oreo and when flashing I should use "permissive.zip" instead of magisk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
OK. Once I've used existence, do I need this stock rom mod or would I just be good to go.

Also what's better AOSP, omnirom or existence???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
Permissive is mandatory! You can use magisk module, or an app like this (Google or maybe antivirus software may think this app is malware, because google don't want selinux state permissive).

Depends on personal usage, i would say. If you are ok with Sony stock rom, go with eXistenz. If you more a stock android guy, go with aosp. If you want aosp with some tweaks, go with omnirom.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
if you need working camera, you can just use stock or stock based (like existenze) for now..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zvez:
Please help me!!

Hello everybody... i have a big problem. Yesterday i unlocked my bootloader while i was on pie.

After i installed twrp like in the description, i booted into and saw that my data is encrypted. If i wipe data internal storage an dalvik my whole system get be wiped.

So there is no longer a os installed. Now i flashed a new firmware via newflash and my phone booted and worked as normal except the camera.

Now if i boot into twrp my phone is still encrypted and i can do anything.

I would be very very happy, if someone can help me. :)

Gerne auch in deutsch :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you want a good sony stock modification, use existenze. (At the moment the only one with a fully perfect working camera)

If you want pure Android with some tweaks, use SonyAOSP (Camera under construction)

If you want a Custom Rom (AOSP + Tweaks + Modifications), use OmniROM or which ROM may come in the future. (Camera under construction)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly the XZ3 has no Oreo firmware, it was published with a PIE ROM.

You would need to wait for a drmfix for PIE or switch to AOSP/Custom ROM. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which PIE version?

The encryption problem sounds like an old firmware.

Just use the latest .202 firmware with .202 twrp and you can decrypt your internal storage.

But don't install the camerafix.zip.

If the camera is still black, install the camerafix.zip.

If the camera is still black, downgrade to Oreo, install xperifix, switch selinux to permissive, take a photo, upgrade to PIE and install the camerafix.zip.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
Ok, yes IT was released with Pie....

Any Custom ROM to recommend? ?

Or Else I'll go with and AOSP and see if that solves the problem.... ?

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zvez:
Fantastic!!!!!!! :) Everything fine now!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
Can I use your TWRP and Magisk files to flash before I flash with the existence ROM???

If so, do I use the stock ones or the custom rom ones???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Use the latest stock TWRP on the latest Sony stock firmware for the latest existenze stock mod [emoji14]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The entire world xz3 was released with pie. :)

If you want pure Android with some tweaks, use SonyAOSP (Camera under construction)

If you want a Custom Rom (AOSP + Tweaks + Modifications), use OmniROM or which ROM may come in the future. (Camera under construction)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
Thanks for the advice matey. Appreciate it. :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
Very curiois on OmniRom... ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But you need still to boot up stock room every monthly update once to install the latest security updates :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
I'm having issues with newflasher now, it worked just fine last time I flashed firmware and now it's doing nothing but errors.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which errors?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
--------------------------------------------------------

newflasher.exe v13 by Munjeni @ 2017/2018

--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 44655 MB

Total space on current drive = 113993 MB

Free space on drive = 44655 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.

This creates GordonGate.7z archive in the same dir with newflasher.exe!

n

Device path: \\?\usb#vid_0fce&pid_b00b#5&226c9eb3&0&4#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Class Description: Sony sa0118

Device Instance Id: USB\VID_0FCE&PID_B00B\5&226C9EB3&0&4

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

Do in mind this doesn't dump drm key since sake authentifiction is need for that!

n

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

Incorrect function.

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

nBytes[0x0]:

- Error writing command getvar:max-download-size!

End. You can disconnect your device when you close newflasher.exe

Press any key to continue . . .

This is all I'm seeing.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Make sure that you use the green led download mode, switch the USB port/cable or restart your computer :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
It's in the Green Mode, and I've swapped ports as well as restarted it several times. Do I need up-to-date drivers or is my computer just FUBAR?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Does your computer burn or run MacOS? [emoji14]

It worked before?

May it be the USB cable?

Does it work on another computer?

Or maybe you want to test it it a Linux VM with USB passthrough?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
I had to download flashtool and use their Flash and Fastboot driver installer. It updated my current drivers and installed some new ones. Now Newflasher works, thanks for the advice once again bro. :o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ChrisXZ2c:
Thanks for the hint but it didn't help me.

Zvez what exactly did you do?

I tried all what [MENTION=6031898]MartinX3[/MENTION] told you.

Went back to Oreo (EMMA), installed XperiFix, switched selinux to permissive with the app "The SELinux Switch" like described in the thread, took a photo (front cam, didn't see a preview), upgraded to .202 pie (newflasher) and installed the fix like described on 1. page "First time installation of STOCK TWRP & after newflasher installation:"* but still i have no camera preview :( :(

*did NOT set_active other (should I?)

all in one: twrp.zip, magisk.zip and then the camerafix.zip (by MartinX3)

Trying the whole weekend but no success - is anybody able to give me some hope? :D :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Other 4 boot images boot well.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
wonderful news!! hope we can finally get the most out of our xz2 phones! :victory::highfive:

martin thanks in advance and... it is time to end your vacation isn't it!? :laugh::laugh::angel:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With twrp?

At least they boot well.

That's a big advantage over the past!

Hihi, it will end Saturday 20:00 German time. :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yay. AOSP build error.

https://github.com/sonyxperiadev/bug_tracker/issues/166
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Fixed.

The AOSP image is now buildable.

I hate the need for workarounds.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Eye_twitch:
You're the greatest. Thanks for all of your work man ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you! :)

Can someone tell PHH, that our A/B-Device is compatible? So he can write it in his compatibility list.

Wiki with manual and compatibility informations

https://github.com/phhusson/treble_experimentations/wiki/Sony-Xperia-XZ2-and-XZ2-Compact

Android 8.1

https://xdaforums.com/project-trebl...-development/experimental-phh-treble-t3709659

You need to install the latest 8.1 OEM package from sony.

https://developer.sony.com/file/dow...es-for-aosp-oreo-android-8-1-kernel-4-9-tama/

And if someone want to test his Android 9.0 build, too.

https://xdaforums.com/project-treble/trebleenabled-device-development/aosp-9-0-phh-treble-t3831915

You need to install the latest 9.0 OEM package from sony.

https://developer.sony.com/file/download/software-binaries-for-aosp-pie-android-9-0-kernel-4-9-tama/

fastboot flash oem oem.img

I don't know if the newest Android 9.0 oem package is compatible with 8.1.

But I will package it with the latest AOSP 8.1 rom which I will upload later.

PS:The AOSP build is at 100%
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
And what about the drm fix by [MENTION=8363210]sToRm//[/MENTION], works now ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It still needs TWRP, which I will work on, after the new asop image is confirmed to work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Uploading the new Sony AOSP ROM.

If there are no interrupts, the last file will be uploaded in 6 hours.

The link is the same.

The new ROM build is in a folder with the date of the source checkout.

There should be 9 nine files at the end.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Recalculation.

10 hours from now, until the upload finished.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
As soon as done, please report your experience so I can eventually check the fix again. Would be nice if it works like on other devices.