yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ok, with Android standard functionality I cannot disable it, can I? Will have a look at this with TitaniumBackup, maybe it's possible there.

Would you mind if I ask you another question? :o When I take a full backup (all partitions) and after that let's say some kind of "big system software disaster" happened, and I was forced to flash oreo firmware and TWRP again, would it then be possible to restore the system from the backup that was made before that "disaster" from the former system, and if so, which partitions would I have to restore exactly after a fresh clean flash of firmware and TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It depends on which stuff you modified :silly:

The camera fix modifies the vendor partition, existence modifies only the system partition (v3.0, will be released with next monthly update)

If you install a bad app, it is placed in the userdata partition.

TWRP/magisk updates the boot partition.

Maybe the dtbo partition, too.

I resend downloading the stock firmware with its *.sin files and use newflasher, instead.of making a backup of every partition. :)

System apps are part of the Systempartition.

Some bloatware is in the OEM partition.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
There is a "SemcWarrantyTime.apk" in /system/app/.

I guess, renaming this apk to something like SemcWarrantyTime.apk.bak would remove this notification after a restart.

As you have a working backup, this is maybe worth a try.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Wow, so many information and possibilities...

OK, but let's say as the backup was made, everything was still "fine". So a restore of all partitions after anything "bad" would work, even when TWRP and firmware were flashed again and are in basic state?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Partitions are just partitions.

If you replace them, you get the old device state.

There is no unreachable hidden stuff.

Except the bootloader and TA partition and modem and DSP, which can be ignored. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ok, that was what I was hoping. Thank you. :good:

I am just wondering if I should update to PIE, or if I would just struggle into other serious problems...

Could backups+restores still be made under PIE? Did I understand you correctly that with PIE I would have to make backup/restore without decrypt with a PIN on TWRP startup, but backup+restore is still possible, even when backing up the encrypted data?

Would camera work under PIE without permissive mode or is permissive mode only "hidden" in the background but despite active?

If I would flash PIE firmware without update from OREO (without deleting the userdata from firmware files before flashing) would the camera work with drmfix-patch and without using/having any permissive mode?

Would I have to replace TWRP with a version compatible for PIE as well, or could I just continue using the TWRP already flashed for OREO?

I know these are many questions and I am beginning to feel slowly uncomfortable asking you so many questions, but maybe the answers will also be helpful for others, not only for me. I would really appreciate your support.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just feel free to ask :P

Maybe the restoration of the userdata partition will work, but the backup of it won't, because we'are still waiting getting the decryption code merged into the mainline TWRP code base. :)

Camera will work for OREO unlockers, which used a drmfix on OREO to take a photo with the camerafix and firmware .126 (maybe later, too). PIE .126 unlockers won't need this steps for a working camera. But we all need a working DRMfix to get our noise reduction back.

You won't loose apps and the camera will work. But of course you will loose every system modification. (Which is great, OREO stuff is not compatible with PIE).

You need the PIE TWRP. TWRP and the kernel of the system are in one partition and need to be compatible. Just use the TWRP with the right firmware version in its folder name. :cool:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
15.01.2019

[MENTION=9680228]douzdouz[/MENTION] I hope it's working now :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ok, so on PIE there would not be any permissive mode yet, but when some kind of XperiFix comes for PIE, if I understood correctly? And you say, I would not loose any apps when flashing the PIE firmware over? Where are these stored as they survive this procedure? I would have thought the system is a "clean" install then.

However, everything else I think I understood now. Thanks again for your good support and work. :good: I will think about updating to PIE ones again. As long as TWRP backup/restore does not work properly with PIE, and using camera on PIE with noise reduction requires permissive mode as well, I think I will continue using OREO.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The userdata partition saves the user apps and the user data :D

And yes, XperiFix will need the permissive mode, like every drmfix would need it.

But I would recommend a full wipe.

In the past a full wipe between the monthly updates and a restoration with titanium backup resolved bugs at my site.

And thank you :)

But you will need permissive on OREO for the drmFix (noise reduction), too :silly:

But on PIE you can use the camera without noise reduction (without permissive) :fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Yes, so if I flash the firmware without deleting the userdata from the firmware files before flashing as I wrote above, I would loose the apps. ;)

Right, I currently need it at OREO. But it was a reason for upgrade to PIE for me, if I wouldn't need it there (with noise reduction active).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, yes. the userdata.sin exists to recreate the userdata partition. :p

but you need to take a picture with xrmfix on oreo, or you won't get a camera on PIE without permissive. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] douzdouz:
Thanks, I will be testing it on WE (need the phone for work now ;) )
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
Hi,

Ich can not find the twrp files on AFH. Can someone point me to the download link please?

Thanks in advance.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Schau in the stock folder, there must be a TWRP folder. :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
I successfully installed AOSP as described in the AOSP thread.

Now I would like to install TWRP on my XZ2c but fail at step 3:

Reboot into RECOVERY/TWRP (Power + VOL DOWN)

I always get the information that the device is corrupt and will reboot in 5 seconds. Switching slots (a/b) did not help either.

Any idea on how to proceed/debug?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
There is no twrp for aosp at the moment. This twrp is for sony firmware only.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] indiocochino01:
Has somebody achieved to recover the camera preview using xperiafix and having unlocked BL on 52.0.A.3.27?

I did a downgrade to oreo with newflasher, installed twrp without problems, installed Xperiafix without problems, installed magisk module for premissive but camera still showing Black screen in camera preview. I opened a ticket in Xperiafix site but no answer yet. I'm beginig to think that maybe unlocking BL in. 27 has been the problem...

Enviado desde mi H8216 mediante Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes. It's not compatible because of the incompatible dtbo partition.

You may flash the Dtbo from the Stockfirmware, install your system modifications like gapps and flash the boot.img and dtbo.img from the AOSP back.

So you don't have a persistent TWRP, but gapps.

I didn't test this idea.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
[MENTION=6031898]MartinX3[/MENTION]: I wonder with the TWRP for OREO if it is possible to implement something like this: https://xdaforums.com/xperia-z2/general/lockable-twrp-recovery-t3151283. Before you tell me, that this is no real "protection" - I know that. :) But, if some noob (even more "new" like me) would try a little bit around with someone else's smartphone, maybe it would take a little bit longer to just wipe all partitions? :D

If the linked Theme was not compatible with your TWRP version, can you tell how complicated would it be then, to modify that version to suit yours?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://xdaforums.com/showthread.php?t=1943625

Maybe they accept your change request :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Sorry, but what do you mean by change request? :confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You would write it yourself or ask for a change request.

Then they will test it and then it'll get merged into the TWRP code. :)

PS:

I found this

https://twrp.me/faq/securetwrp.html
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
So you mean, such a Theme would have to be implemented directly into TWRP and cannot be added at all as a customized Theme?

PS: I found that this afternoon too. ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe it works, good luck. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
:confused: ...what should work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Your work adding it to TWRP :silly:

I never did that and don't know what to do.:angel:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Hi,should i be following the original steps on page 1 or are there new updated steps on one of the pages now? As it never worked for me doing the original steps,just firmware corrupt every time.

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ah, ok, you don't know how this could be achieved. Alright, I will further investigate then. :good: I don't know how and what I could contribute to this. I would need further detailed information about this. Thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, too. :)

Maybe you want to open a mod thread on xda to publish your twrp lock theme. :victory:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
19.01.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wyt18:
When starting from a factory set (stock rom, with potential to update OTA to latest stock rom), what is the best way to install TWRP and achieve root without losing full camera functionality?

- OTA update to latest rom, unlock BL, then follow steps on page 1?

- or unlock BL on oreo, apply DRM fix, then flash latest rom?

Thanks for the advice and help!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
OTA to the latest version. Unlock bootloader and then install TWRP
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's the checklist to look, if the TWRP is fine

https://lite6.framapad.org/p/TWRP_Checklist
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I think TWRP can become official for AOSP based roms.

I sent them an email what to do to become the maintainer.

But I don't think it would ever become the same for our stock rom.

Since we can't use 'fastboot boot twrp.img', it will everytime need a stock kernel matching the stock dtbo partition.

PS:

Don't blame sony, that's the Google decision.

(I don't understand why you split boot and dtbo in 2 partitions, while they need to match every time.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
What about unlocking bootloader in fw .163 ?? or still oreo with drm fix is best solution???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Unlocking before PIE .126 is the worst solution.

Only unlock with PIE .126 or .163 or Feb 2019 etc.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
thank you for your reply....so should i unlock now in fw.163 without losing camera and noise reduction ???or waiting new fw or drmfix ......untill something fixe it???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Unlock in .126 or .163 pie so you don't loose the camera preview.

But for noise reduction we need drmfix :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hey [MENTION=8363210]sToRm//[/MENTION] is there any progress on PIE DRMfix? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
In summary, it's the worst thing we could do: Unlocking bl with a fw below 160. And there's no way to "repair". Shame on Sony!!! :silly:

The only way out is waiting and crossing fingers for [MENTION=8363210]sToRm//[/MENTION]'s magic :fingers-crossed:

[MENTION=8363210]sToRm//[/MENTION]

Apart from that, I hope your wife is doing well again :fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
sToRm isnt here anymore, send him a support ticket weeks ago and got no response.

Hope someone else take his proyect and give us a real solution for drm
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zombie02:
it took several weeks before he answered mine
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] reg6124:
There is no twrp folder.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which elements does the stock folder contain?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Michele2:
I've lost camera preview after newflasher update to 52.0.A.3.163, any solutions? I ve already tried drmfix 3.2 by Storm and Pandemic, this is strange. Anyone has the same problem?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
For people who've unlocked their phone before .126

Xperifix + permissive on Oreo, take a picture

Upgrade to latest Pie, install camera fix from pandemic and don't forget to use the vbmeta parameters

Vbmeta need to be redone after every newflasher use.

Camera fix after every upgrade.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Michele2:
SOLVED: I haven't downgraded to Oreo and on 52.0.A.3.163 I ve flashed permissive.zip then I ve tried again fix by Pandemic and this time it WORKED!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
where find permissive.zip file?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://xdaforums.com/xperia-xz2/de...-3-2-2-0-touch-recovery-t3821597/post78672631
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Relevant for future encryption support

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

BTW

If I forgott to write it

I will provide TWRP for aosp/custom ROMs after 14. February (my exams)

After that I look if a bug got fixed with system mount, which is blocking decryption support.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
considering storm is not avail lately..

[MENTION=6844550]M-Rom[/MENTION] any chance to drmfix Pie fw also from your side? tia!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
He did never made a drmfix.

He shared the one from storm :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
maybe, but he has indeed skills.. he helped with twrp, with camera restoring in pie etc..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
hmm, I hope it too

Anyone with the right skills is welcome.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
M-rom doesn't have Tama platform device. He couldn't give drmfix help.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
is it possible to root without TWRP using Magisk and flashing via fastboot...if so how and wgere is the boot.img sin file is it stored in?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just use unSIN from XDA and download the firmware with xperifirm from XDA.

Then push the boot.img on your device, open the magisk app and patch the boot.img.

This need to be flashed via fastboot, then. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I managed it, I edited my post, but it didn't show up...you also need to do the vbmeta stage as well, otherwise you get stuck on the Sony screen ( at least I did)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes :)

Its the second firewall against device manipulations.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Soon with AOSP/Custom ROM support!

Tested it on OmniROM, AOSP and Resurrection Remix on my XZ2.

GAPPS will be support with the 01. Feb. 2019 build.

Todays builds will result in a bootloop!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
01.02.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
so you couldn't resist and worked on it even before your exams? :p thanks for your efforts mate!

so where you found omni and RR for our xz2(c)? did I miss anything?anyway I think any aosp/custom rom is still not really usable if you need a good camera correct?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

Thank you for this TWRP !

Adaway is now working and prompt for root after flashing Magisk zip in recovery.

I confirm that camera quality is not good enough. MartinX3 said that they are working on it... next AOSP release maybe...

Edit : i don't know if it's relevant but here you can see that the camera repository was updated.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, you're welcome. :)

Yes. :P

Next Exam next week :P

The RR was an unofficial build ported by someone for me. Maybe it will go on XDA. I told him, that the people desire it. :P

I plan to release RR today. :)

Btw: Just follow the camera issue tickets here https://github.com/sonyxperiadev/bug_tracker :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome and nice to hear. :)

Yes, the camera still needs work on the proprietary vendor blobs. :)

Yes, but that's only a value checker, a bug fix. :)

Just follow the camera bug issue tickets on https://github.com/sonyxperiadev/bug_tracker. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
That would be awesome?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But same camera quality. :P :)

Sony AOSP is the core, they need bug reports and help or just more time. :D

(Can't wait to get mainline 5.0 support -> they want to port all X Line devices and get rid of the Android Kernel and Qualcom CAF stuff)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
FOTA!

[MENTION=6031898]MartinX3[/MENTION]

https://xdaforums.com/showpost.php?p=78815859&postcount=623
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, but it sounds that it would need a TA partition backup :)

And if it is possible some day, you can only restore your own TA partition or the device will be bricked forever :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
It seems to me a kernel hack only to get ota and being able to install it. The TA part is (at least imho) about his temp root exploit (I own an unlocked / TA restored XZ1, too).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
03.02.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just try it and report back if you see a difference. ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
can i see differences in oreo twrp also?

cause I'm not running pie.. maybe it is decryption fixed? :o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, then you won't see the difference. :silly::silly::silly::silly::silly::silly::silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
[MENTION=6031898]MartinX3[/MENTION] today I had some free time to mess with my xz2, and I downloaded and installed the pie fw that you shared (H8216_Customized CH_1313-2246_52.0.A.3.84_R2B.tar.gz).

And to my surprise (or not) the camera is working without any hack (pure stock, after newflasher - with no root or other stuff). Should this be so? I know shared fw is kinda old, and ofc i will later update it to latest one. Just curious... Tia.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just Upgrade to the latest firmware and install the camerfix (just .84 files).

Don't forget the vbmeta parameters.

And please test my newest TWRP build. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Yes on fw 84 camera still works bro [MENTION=3989065]serajr[/MENTION] but on fw .126 (Dec patch) and .163 (Jan patch) not anymore on unlocked bl.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
And where is the twrp with the magical bugfix? I only found the twrp from the 31.January in the xperia xz2 dual sim custom Rom folder.

According to the date it's the old version.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Woopsi, it's for the stock twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Wish me luck.

https://issuetracker.google.com/issues/123893852

I contacted the sony dev's, too.

Maybe it get fixed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
Maybe we could use the magiskboot binary to append the dtbo to the kernel?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I spoke with the Sony Developers.

I will be probably fixed with Android Q and its new bootloader.

Luckily the TAMA plattform will get at least two stock android updates.

Means that Q is probably the last one on stock.

(And only stock updates updating the bootloader)

The ability to "fastboot boot twrp.img" will make things easier.

Maybe ONE twrp.img and twrp.zip for stock and custom roms.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's the dtb, not the dtbo. :)

But the problem is the bootloader.

We can nothing do to fix it.

Only wait.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=4675598]shoey63[/MENTION]

Thank you very much for the beer donation and have fun with the stock twrp decryption on PIE. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
06.02.2019

PS:

Forget it.

Doesn't work. Somehow the stock firmware makes problems at the moment...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
07.02.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Bro, I installed your twrp in .163 and it worked fine. Great job!!

Regarding the camera fix, I realized that we need to replace only these three files:

tzsuntory.b01

tzsuntory.b02

tzsuntory.mdt
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thx for your analysis!

Are there any side effects? And did you reflash vendor before testing :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
You're welcome mate.

If there are (i really don't know), they are probably the same as when we replace the entire contents of the folder! Well, at least the logcat shows me exactly the same output for both fixes.

Edit: I did, in both cases I started from scratch.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thx, will update the camera zip before releasing todays new TWRP release. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
I forgot to mention, I created a magisk module to replace the files, so the files that were not replaced are stock!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Aren't there still stock anyway if you don't replace them?

I am confused now.

Or my English is too bad.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Magisk module I created bind mounts the three files i mentioned, "replacing" them systemless-ly, and if I disable the module (for testing purposes), camera preview turns black again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice.

:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Here it is, so you can do your own tests!

Edit: Martin may share it properly