yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
I'm sorry, but i am met with "your device is corrupt" after flashing [MENTION=6031898]MartinX3[/MENTION] newest twrp.img and trying to enter twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
At point 8 ?

Have you redone the whole process from point 1 ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
Yes, at point 8. Started from point 1. No issues with the chinese twrp entering...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
The tamdisk-twrp.cpio is add TWRP to stock kernel.

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Guys not related to TWRP but I've started to work on existenz rom, I've been able to edit system apps without issue [emoji41]

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Are the steps by [MENTION=599722]niaboc79[/MENTION] working or not and the files also ? Because i gonna do the process tomorrow like unlock my bl etc.. But i dont want that my xz2 gets f#cked up or whatever because we all confusing eachother now because the other says this and the other that.. So i wanna know it for sure.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Of course it works...

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What are the newest tools to unpack and repack the android bootimage to manipulate the ramdisk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I've extracted the content of the ramdisk-twrp.cpio file, look at the attached zip. There are recovery.fstab and twrp.fstab in the etc folder.

[MENTION=6031898]MartinX3[/MENTION], I don't know if it can help you ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

But I did the same with the bootimgtools on XDA,

Exchanged both filed and repacked it.

The new ramdisk size was bigger.

Maybe the tools are too old

What program do you use to extract them?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Altap salamander 3.08 (it's free for 30 days)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Argh

For a open source project.

I will search in my aosp build environment for the right and free and open source tools :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
So nobody has heard of the legendary AIK by [MENTION=4544860]osm0sis[/MENTION]? for unpack / repack of boot and recovery images? https://xdaforums.com/showthread.php?t=2073775
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
So, no idea of why this weird twrp mount system partition under /system/system ??

It does not seem to appear in the fstab files...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Because it exists... View attachment 4611547

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Right !!

I had looked into root explorer but I missed this /system_root folder...

So, it seems that [MENTION=8363210]sToRm//[/MENTION] has to adapt his DRM patch...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But if I use the adb shell on my phone, I can see, that the "/system/bin/sh" does exist.

And /system/system does not exist at my site.

That's weird.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Actually, I think that /system is an image of /system_root/system, you must have root to see the latter...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Many thanks to [MENTION=4544860]osm0sis[/MENTION]

No I can repack new image files with nearly the same size than before.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But the path /system/bin/sh should still work, or?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
In [MENTION=599722]niaboc79[/MENTION] his steps i see this file vbmeta vbmeta.img but where to find ? :confused: please someone give it to me for my xz2

Edit;

Nvm its in the zip of terp-adb lol :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
In twrp-adb.zip provided by [MENTION=6844550]M-Rom[/MENTION] a few pages before
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
After [MENTION=8363210]sToRm//[/MENTION] fixed his drm , I will unlock my phone.

I am unsure if the "older" fix would damage the phone if used for a longer time period.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
There is actually nothing to fix. Or did I miss something?

---------- Post added at 06:57 PM ---------- Previous post was at 06:52 PM ----------

While the device is running, the paths can be different than in TWRP. It's relevant what is mounted while the recovery is running.

The problem is not XperiFIX. It's simply the recovery that actually doesn't support the TWRP shell. Just try to flash any zip with TWRP shell and you will see it doesn't work. Maybe there is a bug in the configuration of the recovery or the path to shell isn't mounted/linked correctly.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
If I have understood you correctly, the problem we've got isn't your tool, but the TWRP of M-Rom (or the new bootloader?). Btw., that recovery asks now for a password everytime when booting into TWRP, and you've to push <cancel>, then you are in the chinese one again. Another thing is, that TWRP can't read the extSD, furthermore it won't be recognized. When you've booted into (rooted) system, there's no problem with the extSD. Also, it's not possible for me to copy files from my pc to the device when it's in recovery mode (I guess, it's because the sdcard is encrypted?).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Twrp.fstab and recovery.fstab need to be fixed.

I will look into it again and repack it with Android kitchen this time.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
As I've already unlocked my device (H8216), I'll give it a try when you've uploaded it. I have already flashed the whole fw again - and didn't reboot it ;)

Btw. is the procedure for installing your TWRP correct?

I mean the last three files of the quote. Tk!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, for the mrom twrp you should use the tasks written a few posts back. :)

But flashing vbmeta and twrp should let you boot into twrp. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
No, I've meant your TWRP. So I have to unpack your TWRP.zip.gz and flash your twrp.img and the vbmeta.img, right? Is the next step from M-Rom's TWRP neccessary with yours (I mean flashing the boot.zip and the twrp-installer-xz2-2c-3.2.3.zip), to get it booting into system then?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
As i'm new to Sony devices, you mean with XZ2C kernel.sin the kernel_X-FLASH-ALL-B6B5.sin downloaded with XperiFirm tool, right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
04.10.2018

If that will work, I will modify the other files.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Yep. I took the kernel.sin right out of the ftf and converted it with Unsin, but I guess it should also work with kernel_X-FLASH-ALL-B6B5.sin
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, I want to correct the hacky hacky oneplus6 xz2(c) twrp rom from m-rom to get something which installs the drm fix by storm.

So I can still use my camera and take photos.

After that works, I can use my own smartphone to test my own twrp builds. :)

If my twrp build works, it will be the correct, stable and english one.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
You're wrong. Try to flash the attached zip, it works!

In the updater-script, I've just modified:

package_extract_dir("system", "/system");

to

package_extract_dir("system", "/system/system");

and

set_perm(0, 0, 0755, "/system/app/Theme010");

to

set_perm(0, 0, 0755, "/system/system/app/Theme010");

This recovery works perfectly :cool:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
Ok, then that's the file for xz2 compact (from .51 firmware).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Ok, but have you access to your extSD? On my device, it wasn't even listed in the mount section...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you test my new build with fixed m-rom twrp?

https://xdaforums.com/xperia-xz2/de...-3-2-2-0-touch-recovery-t3821597/post77797597
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
If you can post a link and you cant test it bro ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nope.

Not before storm's DRM is installable.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
No, not yet. But I'll test it tomorrow and report back at once :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Hmm oke alright and btw by which step we need to put the zip files on sdcard is that internal memory or sdcard (sdcard1) because device is constanly of then and newflash wipe the internal memory or am i wrong with that ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The sdcard doesn't get mounted.

I tried to fix that with the newest build.

Newsflash should wipe userdata, not internal storage.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
If you wipe userdata or flash the userdata sin, the internal storage will also be wiped as far as I know. Make sure you make a backup before. Safety first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, safety first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Did you flash the zip with touch in TWRP or with adb recovery shell (twrp flash execution)?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
So who's gonna buy the XZ3 ?????

I was tempted because it released today where I live but I hate OLED plus 18:9 ratio...

But I guess the XZ3 will be the same as these phones. But maybe if we're lucky some other dev will pick it up?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Not me, i am happy with my xz2
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I heared that the XZ3 is part of the Tama Plattform too.

Maybe if you put its kernel in the twrp, it works. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
With touch. Not possible with adb in recovery, I get:

C:\adb>adb shell

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

error: device unauthorized.

This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

C:\adb>adb devices

List of devices attached

QV701WJW1E unauthorized
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Btw, does anyone have any idea why xposed stopped working on XZ2? That's probably the thing I'm most sad about

Seeing as you technically don't need twrp to install it when you can use the magisk version but it just bootloops.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
[MENTION=6031898]MartinX3[/MENTION] Your latest TWRP works better. Meaning that i am now able to boot into it after flashing it from fastboot. Before doing any other flashing, i tried to straight install the Xperifix. Xperifix unfortunately says something is wrong with the TWRP(no logs produced).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What the ****?

Can you mount every partition?

And the sdcard?

[MENTION=8363210]sToRm//[/MENTION] ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
I have the mounting options. Will have to check if i can see that stuff in MTP(stupid win7 VM started to install updates). Doing step 1 now and will check filesystem from twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And please look if the shell has the mount points

Command "mount"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Once in twrp, connect your device to you computer and type in cmd:

adb shell

adb devices

And see what happens...

---------- Post added at 09:45 AM ---------- Previous post was at 09:34 AM ----------

Just one precision for points 9 & 10: Once you are in twrp, MTP is enabled by default. Don't connect right now the device to the USB port. First, disable MTP. Then connect the device to the USB port and then enable MTP. So, you have access to device internal memory from your computer.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
Mount stuff attached

Adb shell

D:\XZ\XZ2twrp>adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

D:\XZ\XZ2twrp>adb devices
List of devices attached
QV700FYK1E unauthorized
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
[tinfoil]

So what I'm wondering is.... Where's m-rom? The fist Chinese user randomly came here, linked, asked to donate and then m-rom linked the files but they both disappeared fast after. He doesn't want to cooperate with Martin. No open source, github.

According to the Chinese thread it should just work. Are the Chinese xz2 different?

No one finds it suspicious how there's so much trouble?

What if they didn't even use xperifix but some of the older files before storm made the software?

Just some thoughts.

[/tinfoil]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
OK, same message "QV700FYK1E unauthorized" as with the M-rom's twrp...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Then please don't say I'm wrong. It's a recovery bug, not an XperiFIX bug.

Edit: [MENTION=6031898]MartinX3[/MENTION] Can you check the property file and disable ro.secure if it's set to 1? Can't check it with my mobile. I'm not on my desk. The error could be disabled debugging in developer options, wrong adb device driver or secure adb shell restrictions. I think its ro.secure...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It is m-rom's twrp, I only exchanged the fstab files.

Maybe it is only fully compatible withe the OnePlus6 hardware.

Nice!

Now is more stuff mounted.

Maybe too many stuff.

Or this twrp needs an update.

You can access the sdcard partition?

The system is mounted under /system/system again?

What is in only the /system folder?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
For those that want install xposed.. it aint work since the latest security patch since "MAY" and yes also the one for magisk AINT work !
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I look that I make an own twrp build with the stock kernel today.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
i think i need to finish flashing boot.zip, twrp.zip and magisk zip first before i can continue with xperifix(need to authorize debug mode in running android first).

is the twrp.zip in the original step 11, an actual twrp(old mrom's) or some script to copy existing one? Or could i flash MartinX3 twrp as img in the twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You are right. I will repack and reupload it.

These are the values:

ro.secure=1

security.perf_harden=1

ro.adb.secure=1

ro.allow.mock.location=0

ro.debuggable=0
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I should remake my own twrp with the stock kernel, we know now that it works with recovery :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, this is in the properties file, too.

# BOOTIMAGE_BUILD_PROPERTIES

#

ro.bootimage.build.date=Wed Aug 29 16:05:50 JST 2018

ro.bootimage.build.date.utc=1535526350

ro.bootimage.build.fingerprint=Sony/apollo_dsds/apollo_dsds:8.0.0/OPR6.170623.013/1:user/dev-keys

persist.sys.usb.config=none
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=8363210]sToRm//[/MENTION] according to the internet, I should set ro.adb.secure=0 and not ro.secure=0

But I will set both to 0.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
05.10.2018

[MENTION=5231789]nreuge[/MENTION] [MENTION=4530014]VeixES[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
Twrp installed. adb devices and shell working. xperifix initiated right after reaching twrp, did its tasks. Now seems to be stuck as Sony logo with red led.

Boots directly to twrp after volumeUP+pwr to reset.

adb shell

rootfs on / type rootfs (rw,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1867084k,nr_inodes=466771,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=1867084k,nr_inodes=466771)
pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime)
none on /config type configfs (rw,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/block/sda73 on /data type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/sda73 on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)

xperifix logs attached
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am excited :fingers-crossed:

[MENTION=8363210]sToRm//[/MENTION] ?:o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Thanks for the test !! We are progressing :)

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

Edit:
[MENTION=4530014]VeixES[/MENTION] : Have you booted the rom one time before flashing Xperifirm ??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
It stucks on Sony logo with red led? Then this is maybe a verity problem, because the system file has changed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But they did disable it with the vbmeta file, or?

[MENTION=5231789]nreuge[/MENTION]

[MENTION=4530014]VeixES[/MENTION]

https://xdaforums.com/xperia-xz2/de...-3-2-2-0-touch-recovery-t3821597/post77797597
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
Not booting to ROM before xperifix. With this twrp, im totally unable to get MTP going... so cannot test the previous working process to get rooted device working. Maybe i could push those files via adb to device for twrp?

vbmeta flashing command was done after flashing twrp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And the other DRM fix, which is working, modify the system image, too?

But it let the system boot?

[MENTION=5231789]nreuge[/MENTION] [MENTION=599722]niaboc79[/MENTION]

Then, there is a problem with [MENTION=8363210]sToRm//[/MENTION] drmfix?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] VeixES:
vbmeta disabling command was done after flashing twrp.

with this twrp, im unable to get MTP working(on my win10 usb3 or win7vm usb2.0). Maybe i could push those boot twrp and magisk zip files via adb somehow? to see if i can get android running

PS. Sorry for double post, the 1st one was missing for some brief moment.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So I will double post, too! :silly:

And the other DRM fix, which is working, modify the system image, too?

But it let the system boot?

[MENTION=5231789]nreuge[/MENTION] [MENTION=599722]niaboc79[/MENTION]

Then, there is a problem with [MENTION=8363210]sToRm//[/MENTION] drmfix?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I think we need MTP and we should still keep the original process :

- flash the .51 rom with newflasher

- fastboot flash boot twrp-xz2-2c.img (the original one)

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

- Enter inside TWRP, enable MTP, copy all the files

- Flash boot.zip, a new twrp-installer.zip made by [MENTION=6031898]MartinX3[/MENTION] and Magisk-v17.1.zip

- reboot device, rom, restart in twrp

- Flash Xperifix

What do you think ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Do we still need to flash a twrp installer and a boot zip?

The twrp ramdisk and the stock kernel are already included in the img file :silly:

And flashing the other boot partition makes no sense, because every monthly update installs a new image and of course you still need to reinstall twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I don't know but we can try this (I've completed it):

- flash the .51 rom with newflasher

- fastboot flash boot twrp-xz2-2c.img (the original one)

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

- Enter inside TWRP, enable MTP, copy all the files

- Flash boot.zip, a new twrp-installer.zip made by [MENTION=6031898]MartinX3[/MENTION] and Magisk-v17.1.zip

- reboot device, rom, restart in fastboot mode

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

- go to twrp

- Flash Xperifix

We don't need to think of future updates for now...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=5231789]nreuge[/MENTION] [MENTION=4530014]VeixES[/MENTION]

I sent you a PM :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
[MENTION=6031898]MartinX3[/MENTION]

Just because I got curious I did the same on the XZ2P but all that happens is that you get Sony logo that fades away into a blue screen and as long as you hold button down it stays but once you release it loops :P.

But maybe you would need to build it with a XZ2P kernel? I don't know, I just got curious.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
BLUESCREEN?! :eek::eek::eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Well it looks like a blue color but maybe its light black? Haha. The color that is behind the white Sony logo after boot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
:P

Of course you need the XZ2P kernel but lets wait to get this one working with storm's fix. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
I guessed as much but I just HAD to try. But would that be a kernel from the open dev github or from a fw?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The AOSP kernel is too unstable, I think.

Send me the kernel.sin form the firmware (downloaded via xperifirm?) and I will put the kernel in the twrp image.

But at the moment, the drm fix by [MENTION=8363210]sToRm//[/MENTION] does not work. Even with deactivated verity boot (vbmeta).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
No I know, I was just bored and wanted to flash the phone with a fresh fw.

I did a Titanium Backup before so losing userdata isn't a big deal.

https://ufile.io/e9q2q there is it anyway :).

Who knows, maybe it will work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
[MENTION=6031898]MartinX3[/MENTION], thanks.

But I'm at work now and I won't buy Xperifix till it is proved to work, so I can't test...

But why not try the process I have proposed ? You just have to change the secure settings in the twrp installer (don't change anything else). If we don't process step by step, we won't succeed in anything :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, these are other steps :silly:

Thank you!

Doesn't the Verity check get disabled forever after the first command?

[MENTION=4530014]VeixES[/MENTION] can you try it if my PM doesn't work?

I don't have unlocked my BL.

Will do it after drm [MENTION=8363210]sToRm//[/MENTION] fix does work. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
[MENTION=6031898]MartinX3[/MENTION] Are you gonna build a twrp as soon as you got the download done?

I'm so tempted to go buy a XZ2 so I can help testing lol, so bored and have all the time in the world.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I thought you have a XZ2 Premium?

:silly: