yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
Hey [MENTION=6031898]MartinX3[/MENTION]

For the Oreo version, it wasn't a touch issue, I just couldn't get past the teamwin splash screen. Meaning I had no hope of applying the DRMfix :( That was using the twrp.img and kernel from the XZ2C folder, and the larger TWRP zip from Universal.

For the Pie version, yes, using the latest AU pie firmware. I took the kernel and twrp.img from the XZ2C folder, and then I tried both versions of the twrp large zip and the 1939 folder resulted in no touch, while the 0110 folder worked perfectly fine. Unsure what the difference between the two is, but I have it working now :)

For that I say thank you, and have a beer on me!

Paypal - 8G575878AK4932535
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But you tested the oreo version on your PIE firmware? :)

If you will get the issues on my next release again, it would be nice, if you provide me the touch infos mentioned in the third post. :)

And thank you very much, you white duck :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
Oh, I should have clarified.

No, I was on Pie, but couldn't unlock bootloader. So I downgraded to Oreo .265, and then tried to get system booting again to do DRMfix. That was when I hit all the issues, so I flashed back to Pie and now we're all up and running again.

Any idea on the likelihood of a Pie DRM fix? Or too early to tell yet?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird, but I am glad, that it works now on PIE. :)

The last thing I heard from storm// was, that he is working on it and need to rewrite the entire DRMfix for PIE.

But we are both trying to fix the Oreo installation issue first. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
Yeah, I thought that would be the case. Sony sure doesn't like letting us do what we want with the devices we pay a lot of money for. The only company that encourages developers is Essential ...

Let me know if you need an XZ2 Compact crash test dummy.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What did you say? :silly:

https://developer.sony.com/develop/open-devices/latest-updates/

https://github.com/sonyxperiadev

Nice :)

For the next release I want to fix the userdata encryption bug.

At the moment the omni 9.0 sources gets compiled fine, but without TWRP inside it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
Woah ... I had looked at the Dev site before but had never noticed that much detail! I stand corrected.

Then why the hell do they delete the DRM keys? Fools :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I heared that in Asia, especially Japan, they use a software to deny taking photos from girls under their skirts outside and that deleting the DRM keys should avoid a workaround against this protection.

I found no official statement from sony, why they do this.

Btw, without internet, my PIE camera software knows, when I want to take a photo with my cooked food.

There is a "Gourmet" logo on the screen in automatic mode.

So there is some kind of AI which recognize what it see.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Maybe it's not the right place to ask that, but is newflasher wiping the userdata when flashing/downgrading?

I'm thinking about to downgrade again for drmfix and update again ?

2nd question: backup in twrp is not possible, is it because of the missing encryption or should it work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
Widevine L1 expressively requires in its specification keys to be deleted (or to the very least made unavailable) when chain of trust® cannot be assured.

HDCP and/or miracast possibly being the same too.

Camera instead, in my very opinion, is all that much retardedly protected because it depends on the whims of the japanese imaging division, rather than the ~swedish mobile one.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Downgrading without wiping userdata is impossible :)

You may use titanium backup :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I thought about the same, but any Titanium Backup version got forced closes immediately and i dunno why ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Any? There's only one in the play store :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I tried 8.0, 8.1, 8.2.0 & 8.2.2. as free, modaco and paid version...none of them are opening. I also try to install busybox, but i'm still looking for an way to get it installed (for titanium backup & lucky patcher). I guess it's not updated for pie yet, same for an systemless magisk version, but idk tbh ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use the paid verrsion from the google play store and cann backup and restore my apps just fine. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Yeah oke but like i told earlier and i dunno if you remember that... Titanium back up aint work properly good since Oreo !!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I used it since years.

No problems in Oreo.

The single problem in Pie was, that the remove of a system app resulted in a bootloop.

But they patched it for pie, according to the changelog.

I hope you can understand, that a software receives patches against bugs and that bugs should get reported to get fixed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Just create /system/xbin/ folder with root explorer and copy a busybox to it. Dirty fix... Haha...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
???

Manual installation is the last thing i thought about, even if it's so simple ???

Ik we all are getting annoying, but how far are u with the drmfix? I can't wait to use my camera again ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
i have xz2 and i did step by step everything my phone was corrupt and booting it self but now after these steps im stuck on sony logo am i close yet? :rolleyes::rolleyes:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you do the fastboot vbmeta stuff with its parameters?

Can you go into TWRP?

If yes, you missed the stock kernel installer or magisk.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
What is the parameters ?? And yes i can go into twrp but when i boot it stuck on sony logo and rebooting again

I did the vbmeta all steps were fine also im usin adb sideload when i load the magisk it says error everything else working perfectly
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Titanium Backup has an included BusyBox.

Working on my device :)

BTW.

This app installs and updates BusyBox for you

https://play.google.com/store/apps/details?id=stericson.busybox.donate
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You installed stock kernel installer zip?

Then TWRP installer zip?

Then restarted into TWRP?

Then install magical 17.1 zip in TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
Installed twrp img

Then vbmeta img

Reboot into twrp <

Then stock kernel zip

Then twrp installer zip

Then magisk zip < error

When i repeat those steps i erase userdata and cache to stop the corrupt error
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You don't need to erase the userdata.

Can you give us the exact error?

And use the sdcard to install magisk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
https://imgur.com/lIhaOIl

This is the error when i instal the magisk

https://imgur.com/a/MdmV3JV

This try with sdcard
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
You must reboot to recovery after flashing twrp installer...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
i rebooted still same error when i install the magisk

" failed to mount '/data' (invalid argument)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
i lost my userdata i used another version in ur google drive almost the device booted now stuck on sony logo
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I hope you use the right TWRP for the right model and Android version and the latest date of create.

And execute the exact steps in the third post

Otherwise it may not be compatible with your device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
i can get into twrp mode it works fine but my device stuck on sony logo
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Because magisk ist missing.

Which model and firmware region and firmware version do you use?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
xz2 H8266 made in thailand 8.0
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thailand?

Asia should got h8296

You should use TWRP 8.0 for Android 8.0

And 9.0 for 9.0
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fdoj:
I think i used everything 8.0 on your google drive

If there is somthing else can you give me a link ..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
This 'can't mount /data. Invalid argument' sounds like you got the wrong fstab file in TWRP.

But it only has changed for 9.0.

And the entire xz2 line has the same.

Does it work in 9.0 with 9.0 TWRP for you?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Status Update:

I headed that the DRM fix 3.2 with fixed Oreo installation routine is coming soon.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
wonderful news thanks guys!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
That's exciting [MENTION=6031898]MartinX3[/MENTION], thanks for the heads up! Too early for a Pie DRMfix I assume?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You both are welcome :)

Yes, it's too early, but I'm glad that at least the installation routine will now work on the TAMA line according to him :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I had the same problem and flashed pie via newflasher to solve that.

Flash pie

Repeat the steps on 3rd post

---------- Post added at 10:12 PM ---------- Previous post was at 10:04 PM ----------

Maybe we can downgrade to oreo, flash the drmfix and upgrade to pie again to hopefully get an working camera preview :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe that will work.

I have a working camera preview on PIE. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
omg how did u made it? Can i have ur TA? :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you want to brick your device, I can extract my TA for you. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Did u managed to save ur ti or drm before unlocking the bootloader? Or how did u made that? I need to know :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I used the drm fix in oreo, shot a photo, removed the drm fix and since then I was able to use my cam in Oreo and in PIE, even after a full wipe of my entire phone. :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Sounds interesting! I'll try the same when i got the time for it ;)

Thx :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Yes that works, flash the drm fix on oreo update to pie with newflasher and camera preview works, earlier confirmed by [MENTION=599722]niaboc79[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I know what I'll be doing ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Ok, let me check.

Revert to Oreo - follow steps.

Then flash Pie.

Camera preview should be back?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] meckipower:
..........you did not really able to backup your TA Partition before you unlock your Bootloader? If you are able to, let us all know!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't know any way to extract it before unlock.

But with the seen fix it won't be necessary.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Could I just use oem relock to relock bootloader? Maybe flash the ftf rom with TA could restore TA partition. I saw a guide said the way to restore TA.:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't support any manipulation of the magic TA partition :silly:

It isn't even part of the FTF.

Or I didn't saw other there.

It get's filled by Sony.

As example only jerpelea on github can refill the ta partition on his device again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
When I build omni, it always fails. It won't create the zip in the folder. It make me crazy.:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly that this is not a Omni support thread. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Actually, AOSP has the same problem.:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, so I am glad, that this is not the AOSP thread and that I won't build a zip file until the xz2 becomes officially supported :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Not zip file, just img. Followed the Sony. I'm thinking what's the problem.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please ask such stuff in my aosp thread :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Status Update:

DRM fix 3.2 is finish.

Fixed the installation procedure on XZ2, XZ2c, XZ2P with Oreo 8.0.

Support for PIE 9.0 is still under construction.

Feel free to test and report. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
many thanks to you and storm for this! whenever I decide to unlock (I think soon knowing myself :p ) I will test and report! thanks again! :highfive::good:;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It worked on a XZ2P with Oreo :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
I am sure it works, I am just still hesitant about the unlocking because of the warranty, that's the most expensive phone I got so far and if I loose warranty and after I break something in the phone, I could kill myself ;( :angel::p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
See ya later (in 1.5 years) :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
if [MENTION=599722]niaboc79[/MENTION] will release existenz for xz2c running oreo will probably unlock earlier... sorry for the OT :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
He's working on pie and shame on you :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Oooops I did it agaaaain... :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Ahm... Just to inform some people... If you are using SOMESOFTWARENAME (I'm not allowed to "advertise" here) you shouldn't flash the permissive.zip. Just install TWRP and let the software do the rest.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
yeah but pie is ugly and has bugs.. so why not using bugs-free oreo base at least until pie will be as good and stable? ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cips17:
Hi,

But it works with 51.1.A.11.51? Or downgrade to 4.265?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
i dunno which bugs you mean but on my xz2 all works fine with pie and we can use substratum to make it look nice and i hope the fix for pie is free
[MENTION=8363210]sToRm//[/MENTION] or add alteast IDeal !
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
4.265?

3.2 is only compatible with Oreo.

This information is included in its blog, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, but I ignore this annoying bugs.

But not everyone does a downgrade. :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
with Oreo you meant?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No, with Oreo. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
lol you edited your post just before i clicked reply button it seems!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Michele2:
Apps seems ti consuming less battery for me on Pie... You can see difference in standby...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
where is the fix???

:cyclops:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Google for xperia drm fix 3.2 :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
found it, sorry for being so idiot :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=2081716]janolucero[/MENTION]

Please use firmware 51.1.A.11.51 !

Did you remove the old fix?

Did you downgrade with newflasher?

Which modell do you use?

[MENTION=8363210]sToRm//[/MENTION] ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Will I get OTA back after install storm's drmfix?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] PhonerX:
No, because your bootloader is unlocked.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rossxander:
Hello everybody, I new, I'm sorry for my future bad english writing.

I have a question, my son unlock the bootloader of his (now mine) XZ2 and losses the camera preview, slow motion and other camera features. If I use Xperifix, the camera preview will coming back, but also the slow motion ?

I'm truly sorry if the question was asked 1.000 times but the topic is 158 pages, in english and it's pretty difficult to understand everything.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If your son was able to unlock the phone, he has the knowledge to install the xperifix.

Everything should become normal then.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I compiled the Xperia AOSP 8.1 files and the dtc and mkdtimg for the H8266 from the latest sources. :)

A "make" made the dtc, mkdtimg, the files I uploaded etc.

It is very easy to set up everything, if you know, what you are doing. :fingers-crossed:

What do you want to try?

And thank you I'm advance. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janjan:
Yes I know it easy to compile..but I don't want to download the source again. I am out of space. Need to buy a new hardrive ?

I want to recompile the kernel and then give a try to build a custom recovery..Just wanna give it a try.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Guys, did you try to build a kernel with RIC disabled and se linux set to permissive.

I've got many issue related to these things on XZ.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I own a external 3TB HDD since many years in a USB 3.1 Gen 2 Harddrive Socket for this kind of stuff and backups :silly:

How can I help you?

And that's what I did.

Use the Omni Source and the AOSP kernel source and the stock kernel source to compile a twrp bootimage.

But if even the aosp firmware doesn't boot or the modified stock kernel with the "corrupted" message, them there is something in the bootloader which prevent us. Like jerpelea told us. :)

I wish you many luck to get success.

But I can't believe it because of the developer statement. :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No, I didn't modified the aosp source.

And for the twrp compiling, I didn't disabled it in the device config.

But these things shouldn't make trouble, if they are activated in the Xperia aosp sources.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janjan:
I just need the dtc and mkdtimg from latest source. If u share dtc and mkdtimg it will save me some time. "corrupted message" is due to vendor mismatch. I don't want to download the latest source again. It takes time and space .. unfortunately I am out of space. Actually i modified both of the boot images.. both from Me and Stock folder.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Have fun and good luck with the compiled tools:

https://drive.google.com/open?id=134CCJtywRMPygEJwlJnZclst8l7WYv1l
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
I‘m trying to play around with this copyleft kernel too. Now I stuck at "drivers/bluetooth/btfm_slim_wcn3990.c:13:23: fatal error: btfm_slim.h: No such file or directory", but this guy exists, similar to you.

I changed "<>" into "" but still not work.

How did you resolve it eventually?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird, I will need to compile it myself when I've got free time to look, if the error exist at my site.

I hope today.

I am only a backend and frontend developer and administrator.

I don't fully understand the magic of low level languages. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[url]https://github.com/sonyxperiadev/device-sony-lilac/issues/30[/URL]

New message from jerpelea:

My H8296 is listed as H8266.

And with the August-Patch it has the bootloader version "1310-7079_X_Boot_SDM845_LA1.0_O_59"

New message from jerpelea:

So the September update will have the new bootloader (in my vaccation :silly: ), but I will see, what I can do to to be able to work on it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I downloaded this kernel

https://developer.sony.com/file/download/open-source-archive-for-51-1-a-11-26/

In terminal I execute first

export LANG=de_DE.UTF-8
export LC_ALL=C
export ARCH=arm64
export O=out
export DTC_EXT=/media/martin/extLinux/Develop/android/tools/dtc
export DTC_OVERLAY_TEST_EXT=/media/martin/extLinux/Develop/android/tools/ufdt_apply_overlay_host
export KCFLAGS=-mno-android
export PATH=/media/martin/extLinux/Develop/android/tools/aarch64-linux-android-4.9/bin/:$PATH
export CROSS_COMPILE=aarch64-linux-android-
export KBUILD_DIFFCONFIG=akari_diffconfig
#export ALLOW_MISSING_DEPENDENCIES=true #Only if you know, what you are doing!

Then I move the terminal into "51.1.A.11.26/kernel/msm-4.9".

make CONFIG_BUILD_ARM64_DT_OVERLAY=y O=./out sdm845-perf_defconfig
make CONFIG_BUILD_ARM64_DT_OVERLAY=y O=./out -j8

Replace the -j8 with your cpu thread count. (-j#)

Then I got the out/arch/arm64/boot/Image.gz-dtb file.

There is a README_Xperia file inside the msm-4.9 folder, which will help you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Thank you, I'll try this.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But please change the path to the files on your system. :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Configured step by step as readme.

But it stuck here:

/usr/bin/dtc: invalid option -- '@'

Usage: dtc [options] <input file>

Seems a wrong argument is issued to dtc, I also tried the dtc in README_Xperia but still get the same error.

---------- Post added at 02:46 PM ---------- Previous post was at 02:21 PM ----------

Well finally it passed. Somehow I cannot make dtc from /External/dtc, but I found a prebuilt in AOSP, this guy works fine.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Sony ric is not an issue anymore (it's not part of the 2018 stock fw). With magisk's root method you're already able to remount /vendor /system as rw, and perform the changes you want to, even on enforcing mode, but if you want it permissive: setenforce 0!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://drive.google.com/open?id=134CCJtywRMPygEJwlJnZclst8l7WYv1l

:p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Great toolbox. Too late to see:crying:.

Here my build acts the same as #38.:crying:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you. :)

So we need to wait until I can provide a working build.

https://xdaforums.com/xperia-xz2/de...-3-2-2-0-touch-recovery-t3821597/post77377328
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Well, after setting secure patch version correctly matching the firmware, it boots successfully.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That could be the rollback protection, which is part of the AVB 2.0. (Android verified boot).