yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
New may builds will be delayed.

I assume monday is the next day I have time to work on them. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION]... Why after install twrp my storage can't access.. If I flash new firmware n want to install twrp,should or not I do fastboot vbmeta again..coz now my storage can't access n phone just go to twrp only no boot to system
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need to use vbmeta on every stock firmware flashing.

If I remember it correctly I wrote it down in the FAQ on the first page.

Twrp and firmware need to match.

The Google rollback protective needs a matching security patch level.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
sorry im missunderstand about vbmeta...

ok now done...i reflash new firmware n use vbmeta...but why twrp always encrypted? have to key in password...

:confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The pin you use to unlock your phone.

Encryption exists since the beginning of the phone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I'm not completly sure but when i remembered correctly google make the encryption (they call it Full disk encryption) mandatory for new released smartphones.

So twrp needs to decrypt the data with a password. I believe when you don't use your own password to unlock your phone twrp use a default password to decrypt the data.

If your set your own password to protect your phone you must enter it to get into twrp. That for example by me the case.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION].. Ooo. So that not twrp bugs? Thanks for the help
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes , just password protected encryption :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MurroFX:
202

I have 202 on my computere..........
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Legdotus:
When can we expect release of this :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
Nope. fails with error about mounting /sdcard. I'll see if i can get logs about this.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can you install it with adb?

Does the sdcard work in the normal aosp system?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you!

Looks like that there still need work to be done in the AOSP code. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe I need the aosp kernel to create a twrp boot image.

And then a zip to flash the twrp into the stock firmware.

Is there any manual to create a flashable twrp zip?

And I will look again over my device sources.

Maybe I missed something.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
[MENTION=2233641]AdrianDC[/MENTION] we need you ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
XA2 also has A/B schema, and official twrp. So maybe you could grab its flashable zip ( read its installation steps )!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, thank you!

The XA2 was the base of my device configuration work, too.

Hmm, something in the XZ2 is different.

I also wrote a message to the XA2 TWRP maintainer weeks ago, but got no answers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] AdrianDC:
Hey !

If you're interested in flashable TWRP zips, you can look at my repotwrp :

http://adriandc.github.io/android_development_shell_tools/#sourcesandroidrepobuildersrc

It's one of the oldest functions of my shell tools, but I still use & maintain it.

Bye !
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thx, I will look into it, after we

fastboot boot twrp.img

a working twrp. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
One of my personal heroes [MENTION=3989065]serajr[/MENTION] in the house. Okay, this thread is gonna be interesting. Hehe... Hi bro!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Hi bro! Yeah, battle started again. The "developer friendly company" is still punishing the owners of unlocked BL devices, and ofc they will always continue to do so!

But fortunately we are surrounded by very competent guys, to, once again, quick their fat asses!! ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] M-Rom:
MTP does not need to be deleted, and the default is to close it. Connect to USB and then open.

Sorry, English is not good.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Maybe you should re-compile the latest kernel for the latest version, as I found the kernel for 11.26 isn't working on 11.51. The repo on the github provided by sony doesn't has a branch for 11.51 (11.xx are not here), also the documentation for the latest version is not published. I guess this has something to do with v60 bootloader.

---------- Post added at 07:46 AM ---------- Previous post was at 07:45 AM ----------

Oh, man. Just checked, the open source archive for 11.51 is provided.:D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yaaaay, this evening I will look again in the twrp device sources. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
18.09.2018

But I believe, the stock kernel can't boot a recovery.

The AOSP has a default one, which would get replaced by TWRP.

But the aosp xz2 kernel has no sdcard support at the moment.

I think the XA2 recovery has a AOSP kernel and not a stock kernel.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
Ya, the AOSP is the way to go. I'm fighting the build system, too. I'll continue trying after I read some docs and howto-s on the subject. Good luck, man! :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
If there's no way to add TWRP to stock kernel why not use an other way, less usefull but who could work.

Use an aosp kernel with a working recovery to flash and edit system partition than flash stock kernel with a zip at the end.

So each time we want to flash something, fastboot aosp kernel with his TWRP then comeback to stock kernel.

This might need a modded stock kernel too with some security features turned off like system integrity.

An other way could also be to flash things with adb using same way as official OTA update.

What do you think?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Does my last TWRP build work?

[MENTION=1337045]nasko_spasko[/MENTION] [MENTION=599722]niaboc79[/MENTION]

I think the same, booting a TWRP (fastboot boot) with the AOSP kernel and then flash a zip to modify the stock / aosp / custom kernel. :)

But the missing sdcard support prevents me from using the AOSP kernel.

After the SDCARD support got its way into the kernel, I will use the AOSP kernel :)

What I don't understand:

Why is the XA2 TWRP img file almost 70mb big, while my XZ2 TWRP img is much much smaller.

Edit:

Woops, my XZ2 AOSP boot.img is almost 70mb big, too.

Yes, now I really really really think, that the AOSP kernel is the right way.

On my system is everything prepared to build TWRP with the AOSP kernel.

I only need to wait for the code from the developers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
In the PlayStore settings, my XZ2 device is shown as "not certified". So I wonder if it could have something to do with switching from Customized CH to Telekom DE, without flashing userdata (I did that, because Customized CH did not get the update to 8.50 fw yet).

Thanks in advance!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://www.xda-developers.com/how-to-fix-device-not-certified-by-google-error/
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
[MENTION=6031898]MartinX3[/MENTION]

If I have understood it correctly, there's nothing to do for me: My XZ2 runs the latest Sony stock firmware (8.50), and I can access and use the GooglePlay Services. I mean, there's nothing I can do to switch it to a certified device, right?

Btw, in your previous installation guide you wrote/recommended to switch from slot A to slot B, but I never got it to work: TWRP does not start, it stucks at the TWRP logo in this case...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Interesting. on stock it should be certified by default.

Maybe it is magisk and you need to hide it.

I thought you are on a custom rom like me :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
No, I'm on stock - but maybe, as soon as the camera will nearly work as on stock, I will switch.

And how about my 2nd question? Thanks!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You evil boy edited your post :silly:

Looks like you didn't install the same firmware and twrp version on the same slot.

The security patch date must match (Google trollback protection)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
"trollback" :D:laugh:

So what can I do? As I use my XZ1 as my daily driver atm, I want to set it (my XZ2) up from the scratch. Is there something to delete from slot A or/and B before flashing? Or flashing the same stock fw on slot A, and then switching to slot B and flashing the same fw again?

Sorry for that noobish question, the XZ2 is my first A/B device (so an A/B device is still all Greek to me :P)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
To fight successfully the trollback protection you can simply install the same firmware version on the other slot :silly:

Usually it exists to switch the slot if the new update lead into a not working system.

But if it boots the system, you usually can't downgrade by switching the slot, because the userdata decryption won't work with a lower security patch date level. :)

I mean you can switch the slot on the next month, install there the firmware and the twrp and just use the slut.

And the next month after that, you switch again the slot and do the same procedure again. :)

But it is just a tip, to make your flash storage last longer (limited write cycles).

Of course it is fine if you throw your phone into the trash after your phone contract ends or there is a shiny new device you are forced to buy. :rolleyes::mad:;)

PS: A/B is latin, the trollback protection is greek and the new system-as-root, which drives me nuts in TWRP is russia. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
:laugh: Thanks alot 4 the detailed (and funny) explanation :highfive::good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome [emoji14]

A life without fun is depressive :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
sToRm// is back ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
Praise all the gods, known and unknown! Hopefully he can crack the DRM code :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
[MENTION=6031898]MartinX3[/MENTION]

To update FW, new FW must be flashed on slot b. And then new boot+twrp on slot b too, am I right??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just use the same slot for the custom rom where you updated the stock rom.

Switching the slots makes sure that you ages the flash cells on a similar way.

If you always use slut A it will look like an used old man, while B will still look like a baby.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
One question about the sl*ts:

Is only /system affected by switching, or /oem, /vendor and /data, too?

I mean, are there also 2 slots for the other partitions?

Thanks in advance!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
31.05.2019

PS: Still uploading.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
I don't see separate instructions for updating / new install. If we're already up and running, can we just flash the new TWRP in advanced > ramdisk menu?

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you flash the may ROM you will of course flash the boot.img (new kernel, better speed, more stable) and because there is the ramdisk/twrp you'll remove twrp.

I don't know if a installer.zip for the ROM makes it better.

It would need to be aware that there is TWRP and repack the boot.img without removing the ramdisk.

TL;DR

Yes, after you installed the new rom, you need to install again the twrp ramdisk.

And keep in mind that the security patch level of twrp and the custom rom need to match or the decryption won't work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
I'm already on 8.50, and I have your TWRP for that. I thought I was getting from your last post that you're uploading a new TWRP version, so I just wondered if I could simply go straight to TWRP advanced menu and do ramdisk thing, and be fine...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The new TWRP is for the custom roms not for the stock.

But yes, simply "fastboot boot twrp.img" and install the ramdisk again. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
I see, thanks...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Techamazon:
I've flashed vbmeta and latest TWRP but it still hangs on Sony boot logo. I'm using AOSP btw.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did sonyaosp works without any change?

Did you execute vbmeta with the parameters?

"fastboot boot twrp.img" did boot the twrp?

The bootloop happens after you executed the "ramdisk installation" in the twrp menu?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
I am lost.. Did we have a consensus on Magisk 19.2? How do you install it to work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Techamazon:
Nvm I'm an Idiot, was using another AOSP build by SonyAOSP Team which is why it wouldn't boot properly. Thanks anyhow!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
https://xdaforums.com/showpost.php?p=79563542&postcount=462
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe the newest canary build has a fix against the bootloops.

But if you don't want to test to find a solution, stay with 18.1.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
I will stay 18.1 then. If there is not a big reason to update
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] emodude87:
Wonder if anyone could help, i've sucessfully managed to install the aosp rom which successfully boots, but im having issues installing twrp. Ive tried both stock and custom rom files and used fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img, but i just cant get any further with the installation
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please don't use a stock TWRP for a custom rom.

And what doesn't work exactly?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
... and he is angry.

Details about the last months will follow later.

Let's start with the games.

Whooop!

https://www.youtube.com/watch?v=oiLI9KcAytk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dememted1:
I think i have messed up really badly. My xz3 is bricked i think. It will only boot to red corruption warning and shuts down. I have tried flash tool but the phone shows as SOMC Flash Device and is not recognised by flash tool. Heeeeelp please, please. I was trying to get twrp installed and god knows what i did to do this. I do have fastboot. Please help me.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you install Magisk 19.x?

This will happen then.

You need to flash again boot.img from my rom and apply 18.1, then boot the device once, and install 19.2. Or stay with 18.1. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dememted1:
Ok I got myself out of that mess lol. I used NewFlasher to flash boot.sin and it came back to life again with no red warning, FEW!

Right my next problem is getting twrp to run.... I get as far as "fastboot boot twrp.img", phone reboots to blank screen (blue led) then after about 10 seconds reboots to normal os. Using latest adb/fastboot tools etc. Any help would be great thanks .
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You are on may firmware?

Are you sure you downloaded the stock twrp with the correct firmware number?

It sounds like you're using the custom ROM twrp which isn't compatible to the stock DTBO partition.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh ****.

https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/34092/

I forgot this commit on the custom rom twrp.

It isn't able to decrypt the userdata.

Need to reupload a new twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] emodude87:
My apologies for not providing more information, but after install aosp, it proceeds to boot. But when going back to install twrp, i try to boot into twrp, but then it hangs on the sony logo
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
01.06.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
did you used the hardware keys to boot into fastboot/bootloader, before applying

fastboot boot twrp.img

?

Because according to the FAQ's you need to do a software reboot.

I flashed aosp and twrp without problems. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bartys:
You can use hardware keys to boot into fastboot but you have to do fastboot reboot bootloader and than fastboot boot twrp.img
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Glad to hear that \m/

Welcome back bro. I really hope everyone is well and in good health there... you know!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

I was hanging on Sony logo too after "2. fastboot boot twrp.img" according the installation instructions.

But with "fastboot reboot bootloader" before "fastboot boot twrp.img" the phone booted into recovery.

Thanks bartys.

@ MartinX3

Magisk-v18.1 that you provide with Twrp.zip is not working for me. Magisk manager tells me that Magisk is not installed.

Magisk-v19.2 did the trick. Why did you inclued magisk in your Twrp ? If you let people download the latest Magisk version it will be easier for you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I wrote "fastboot boot twrp.img" hints on the first page :P

Because 19.x leads to bootloops on stock / custom roms.

I assume because you installed 18.1 first and booted it once, your upgrade to 19.x was successful.

I do the same to be able to use 19.2.

I sometimes get the "magisk not found" bug, too.

Last time I fixed it by executing the 18.1 uninstaller and reinstalling 18.1 right after that.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
But I guess, there's no way to install Magisk 19.2 on a XZ2 running the 8.50 stock fw, right? Or did someone succeed?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] turnout96:
Yes, my device is XZ2 dual running the stock 8.50, nor can I install Magisk19.2 (including 19.1, 19.0 is normal), the device restarts indefinitely
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] arcsine420:
Managed to root my xz3 device by following your instructions to the letter (magisk option)

Works perfectly and no broken camera either
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

Yes I know, I used the good command "fastboot boot twrp.img". I meant at step 2. in installation instructions.

I did "fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img" and "fastboot boot twrp.img" and hangs on Sony logo.

For Magisk I did what you said. Re install Twrp ( witch was broken after the Omnirom update flash), flashed Magisk-v18.1, boot into system.

Magisk manager told me that Magisk isn't installed.

Booted into Twrp and flashed Magisk-v19.2.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dememted1:
Thank god for that... after days of trying I finally have twrp thanks to MartinX3.

Quick question... is it normal to take a long time to boot into twrp? Seems to take forever, but it works fine :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] asz_kt:
boot into fastboot with device off

run

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

fastboot reboot bootloader

wait 10 seconds

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

fastboot boot twrp-xz2.img

twrp should boot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Hingbong:
View attachment 4770118

if i get this, how to fix it,i use command line to decrypt and it failed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Maybe...

(BTW - screenshot works in TWRP)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Hingbong:
ok

and if your internal storage can't write/read data,how to store screenshot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] arcsine420:
Mine takes a while too so I think it might be just "how it is"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
In TWRP, Install > Select Storage > Micro SD card. Then your screenshot will be saved to /external_sd/Pictures/Screenshots
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Boot with 18.1 once.

If 19 is broken at all, avoid it

Maybe 19.3 fix it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] arcsine420:
I can confirm that updating magisk including through magisk manager itself from 18 up to 19 will cause a Sony logo bootloop and you will have to recover to before you updated. Stay with the tools provided by OP and don't update anything at you should be good to go
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dememted1:
On my Essential phone, twrp used to flash to the opposite slot. Is it the same on Xperia xz3? Thanks

Cant swap slots on my xz3? I have to do it via fastboot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Use either fastboot or the slot button in twrp

But then you need to install twrp on the other slot too

And there you should have the same or a newer firmware (security patch date) too or the google rollback protection denies a boot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dememted1:
Just timed mine at 3 mins 20 seconds.... That cant be right is it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
did you install and booted once the newest PIE stock firmware?

At my site the "fastboot reboot bootloader && fastboot boot twrp.img" takes a bit, but after I installed TWRP in the ramdisk, it starts faster.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] XxSUPRAxX:
Magisk update 19.1 or 19.2 XZ2p

When im trying to update Magisk to update 19.2 i get bootloop and have to use the uninstall zip through TWRP and install 18.1 zip again.

Functions and root seems to be working fine on 18.1 but i want to see if update 19.2 would make my phone able to use banking apps ETC.

Tried to update magisk via TWRP and the recommended in-app with no luck

Anyone got a working solution or answer to why this happens?

I have no modules installed.

Sony Xperia XZ2 Premium
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] monshoal:
why I flashed the newest magisk and the manager always reminds me that I didn't install any version of it at all?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Seems that currently Magisk 19.x only works on the SODP based custom roms somehow.

There the direct install without upgrading from 18.1 is broken, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Flash the magisk 18.1 uninstaller and install 18.1 again, then reboot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hakulo:
Just to confirm,

Since I unlocked my bootloader on Oreo, didn't fix the camera, and am currently on Pie,

If I want to fix my camera, I would need to:

1. Downgrade back to oreo,

2. Use camera fix from xperifix

3. Take picture

4. Upgrade to pie (with Newsflasher?)

5. Then use camerafix for pie

Let me know if this is correct or if there's something I'm missing...

Thanks!