yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
ok so i got the disable verity to work, but now when i got into recovery mode, twrp shows up... which i thought was fantastic, however... i cant get screen touch to work... what do i do now???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need the right firmware version with the right TWRP version.

And the firmware need to be installed with newflasher.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
i went into your mega folder, downloaded the twrp in the folder:

sony - android 9 - twrp - universal

there wasnt a twrp for the xz2c

im currently using a xz2c (h8314) on android 9
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
https://xdaforums.com/showpost.php?p=78313174&postcount=2047

---------- Post added at 23:01 ---------- Previous post was at 22:57 ----------

I've flashed the latest .84 update with newflasher and used the twrp.img of 2018-11-16_00.44+2.00 folder. Touch did not work.

On the "oldest" pie twrp.img the touch worked for me, with latest pie firmware.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
i know im asking alot but can you please help me with this, ive never used newflasher and have no idea where to begin. i just downloaded it and extracted it though

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

ok so now i got touch working now by using the different twrp file, but when i go to install the stock kernel from the xz2c folder, i get alot of errors...

could not mount /data and unable to find cypto footer.

failed to mount '/data' (Invalid argument)

Unable to recreate /data/media folder

failed to mount storage

failed to mount '/data' (Invalid argument)

Unable to mount /data/media/TWRP/.twrps

ADDED PHOTO OF PHONE HERE:

https://imgur.com/gallery/JARUQrl
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gouster3:
[MENTION=6031898]MartinX3[/MENTION], thanx for your good work on twrp for tama.

Can u also port multirom for tama please?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
I gave it a few more tries. I started over installing twrp, vbmeta, then when in twrp after each step I used adb push to send a file to the SD card with no problems. Then I tried to install the drmfix and it didn't work
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But will the phone boot after the last zip file installed?

I hate these rare special errors.

But I don't wish that every one should get it. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Now you need the permissive.zip as magisk app module.

Xperifix does not install it. It's a bug.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, you're welcome. :)

I hope someone else try it.

I have too much to do + TWRP encryption and find a way to automate the AOSP builds + maintain both. :)

Plus no knowledge in Rom porting. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I hate these special problems. :silly:

The only difference is the updated kernel, the updated touch drivers and the deactivated decryption.

Let's see if it gets fixed with the December kernel + touch drivers. :fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
no phone would show the unlocked bootloader warning, then sony logo, then start over again
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
Explain please. I already installed it through Magisk.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
i got everything working as it should now, but where can i find info on which xposed netowork to use. i just want to be able to SPOOF my wifi signal so i can play my ps4 via LTE

OH AND HOW DO I GET MY CAMERA VIEWER BACK AGAIN??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lavievn:
Hi, i'm using XZ2P, after install TWRP and magisk, i flash eXistenZ mod and the addon one, it's have some bug, so i factory reset today, but after that, i cant boot in flashboot/fastboot again. Still go to TWRP, but MTP not working there, my phone now cant start up, if i try get in to recovery it's show a red triagle say that device is corrupt then shutdown in 5 second. Someone help me please :(

sorry for may bad english :(.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So you did flash your phones firmware with newsflasher and flash boot the latest twrp IMG file for your Android version?

Then you flashed every zip file in the right order for your device and Android level?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Your SElinux Context is permissive?

Go Into Linux terminal

Execute su

Execute getenforce

Enforcing is bad and permissive is good
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which add-on?

And where did you execute the factory reset?

In TWRP?

Can you boot into the green LED flash mode?

It's part of the bootloader.

Then download the firmware with xpericheck (on XDA) , delete the userdata.sin

Place the newflasher v13 in this folder (on XDA) and execute it with admin rights.

Your PC will now reinstall your whole device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I got it to work. Did wipe, data format and installed zips. I got root and magisk and everything works. Now I just need a WiFi spoof for android 9. Any thing I can use to obtain that?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
Getenforce says permissive
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hmm, you should tell [MENTION=8363210]sToRm//[/MENTION] your device model, android OS version and TWRP version (the date of its folder) and the OS version number of your computer, what you tried (the way you installed the USB drivers, if the ADB debug bridge got shown in device manager), maybe he can tell you further ways to debug this weird problem.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What's a WiFi Spoof?

Telling your device and its apps that you are connected to Wifi, while you are only in LTE/UMTS/EDGE?

So you don't need this?:

https://xdaforums.com/apps/magisk/qa-want-to-install-modules-magisk-v13-3-t3800435
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
Got my new XZ2 followed instructions for Oreo, bought the "fix" and all good.

Only weird bug was having to revert to old fastboot to unlock the bootloader. The new one doesn't support the "-i" parameter lol.

Big thanks to [MENTION=6031898]MartinX3[/MENTION] and [MENTION=8363210]sToRm//[/MENTION] for making all this possible [emoji106]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lavievn:
Thank for reply.

Yes, i used format option in TWRP. Phone cant get into flash/fastboot mode (green or blue led).

And TWRP gone for now. Only red triangle warning while trying into fast/flash boot. power button only make led blink green in a mili second :(.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The weird thing is, that the TWRP can't flash the bootloader.

Only the special green fastboot flash mode is able to do that.

Or the Sony with its secret OTA update mechanism.

Are you sure that you can't activate the green mode?

Maybe this helps you

https://android-ios-data-recovery.com/fix-android-with-red-triangle/
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lavievn:
yes, i dont know what happened with my phone, yesterday it's cant connect to my PC in MTP mode, only charge status when plugin USB cable, so i think it's cause rom problem and try factory reset today, phone still cant boot to flash/fast boot, i cant reflash any OS in phone :(.

Maybe i sent to sony tomorrow :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
I usually have the firewall off...I was using the google drivers because sony drivers will not install on my machines. I also tried with samsung drivers...

Sony drivers xx15-xx19 with enforcement off and windows in test mode will not install those drivers. I have removed all traces of mobile phones from my usb cache and tried but it just won't.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sounds like a hardware fault. :(

Sending it in will be a good idea. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I guess I don’t need it. Phone had root and magisk says it passes safety net. And yes WiFi spoof is exactly what you said. Just to make apps think I’m connected to WiFi while still using my cellular data.

---------- Post added at 04:22 PM ---------- Previous post was at 03:52 PM ----------

I also want to be able to get my camera viewer back. Is that possible?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Of course it is.

You may want to backup your phone's userdata first (Titanium Backup is nice and the Google Backup is nice, too)

Wipe Userdata, downgrade to Oreo, install XperiFix, boot into Oreo and use the camera to shoot one photo.

Then Upgrade to PIE and restore your userdata.

Volia! A working camera.

But only with 90% of the old quality.

You will need a PIE DRMFix to activate noise reduction. (Which need to be developed).

Or on AOSP you would need a GCam port.

AOSP and PIE should have same camera quality at the moment.

Maybe you want to play with the settings of https://play.google.com/store/apps/details?id=net.sourceforge.opencamera

It has a working camera preview without DRMFix and maybe you can configure it to make better photos.

I prefer https://play.google.com/store/apps/details?id=net.sourceforge.opencamera as the only alternative to the stock camera, because it is open source and has only features useful to make a photo/video. Without snapchat features.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Will I need to retool and start everything over?

---------- Post added at 10:00 PM ---------- Previous post was at 09:59 PM ----------

Meant reroot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
The Sony drivers stopped working since the XZ.. I get a message saying that the files cannot be found or that it's not for my device. I was able to get the xz2 driver to work on the laptop prior to unlocking.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am using the google ADB drivers. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
So am I now, and everything works except for the drmfix
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I used it with the same TWRP to install XperiFix on Oreo in the past.

On Windows 10.

It is very weird.

You can use ADB in TWRP but not with XperiFix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
I have noticed the root Hecker app says something is wrong with the su binaries....

---------- Post added at 11:59 PM ---------- Previous post was at 11:46 PM ----------

That's the problem I am having
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So there is no way to get any kind of camera viewer without going back to Oreo and rerooting phone?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Only a one time thing to fix the preview in PIE until we get a PIE DRMFIX :)

https://xdaforums.com/xperia-xz2/development/aosp-aosp-8-1-h8266-t3843269/post78321025
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So in theory can’t I just downgrade back to Oreo and stay rooted with Oreo? This way I can use xposed framework and still keep a systemless root with magisk correct? If so how do I preform a downgrade of android. Never done it before.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I heated that Xposed stopped working since March this year on the XZ2.

But I never tested it.

You can downgrade with newflasher v13 and the uploaded firmware behind my download link.

But it will factory reset your phone and you get security holes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
What you mean security holes?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I guess he means that you will be on a lower security patch level. And logically some security gaps aren't fixed then.

[MENTION=6031898]MartinX3[/MENTION]

Correct me when i am wrong.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes :)

This got fixed with them

https://source.android.com/security/bulletin
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So I guess I’m gonna try to downgrade and stay at Oreo. Hopefully I can use xposed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
happy oreo user here. no xposed available though, sorry
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thetega:
Hey [MENTION=6031898]MartinX3[/MENTION] do you have a link to the stock oreo rom for xz2 h296, the dual sim variant.? Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No, sorry.

But the H8266 is compatible.

I use it on my H8296.

And you can flash the H8296 back, after fixing the camera preview. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Will this cause me to have problems with certain s apps or not able to utilize all my phones functions?

---------- Post added at 01:59 PM ---------- Previous post was at 01:32 PM ----------

Meaning you don’t have it or tried it or just doesn’t work at all on it?

Is there any alternative to getting a WiFi spoofer? I just need my remote play app to think I’m on WiFi when I’m out using my LTE data.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
No. What phones functions you can use depends on the Hardware and rom but the security patch level don't have a influence on this.

You can compare it with normal windows updates on Microsoft Patchdays. It's only improve the security for your device without change the functionality.

Otherwise all the users with outdated security patches would already flood the it/android forums:)

But i would always try to have the newest security patches (but that is my personal opinion).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So there is no way to run xposed framework on my xz2c?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
No
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe there is a magisk module, which makes wifi spoofing
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I’ve looked but no such luck as of yet

---------- Post added at 11:39 PM ---------- Previous post was at 11:09 PM ----------

But why wouldn’t xposed work if I downgraded to android 8 or 8.1? Xposed has a beta version that is kinda stable from what I read. If I can get xposed I’m hoping fake WiFi will work as well.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Read further...

Xposed not working since May security patch and up and its sure not working on Pie then ! You can try but you sure end in a bootloop.

So no and i say it again >>> its not working ! ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So it’s just not working with our xz2c devices. There’s no way for me to downgrade and roll back updates back to before it stopped working??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
You misunderstand. Xposed does not work on ANY device that is past the May security patch. It's not just the XZ2C. It's ANY device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Are there any alternatives for a fake WiFi then?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thetega:
Been able to downgrade and install twrp now, remains drm fix will Xperifix 3.2 work on oreo 51.1.A.11. 51 firmware?? Want to know before I make purchase, thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
yes that's what I am using here
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
Deleted
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The December Patch is there, but I need to wait for rollouts to more regions. :)

Maybe I can add the XZ3, too. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thetega:
Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
Hi!

Managed to finally flash Android8 firmware compatible with xperifix. Then used your steps for new install, everything went a-ok. Sideloaded stockkernel image and twrp installer, rebooted into TWRP.

Flashing Magisk-v17.1.zip aborts with "Unable to repack boot image!"

Google suggests this might indicate problems with the boot image, which I understand was made by you, Martin? Could you kindly take a look / tell me what further info you need?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you flash with newflasher v13 from XDA the firmware I uploaded for your device?

The weird thing is, we got OREO since 2-3 months and you are the first one with this problem. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
yes. I skipped the "dump something" question newflasher asks because that seems to not work at all on Linux (just displays first dot and stays there forever) and the phone was not recognized before the flashing on my windows box. If that bit is important I could try flashing it again on windows with dump. Also regarding newflasher. I followed the instructions of deleting all *.ta files before flashing, now important is that actually?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
"Dumping" is not necessary. It is only for debuging purposes.

Aaaand I never removed the *.ta files.

Why are you doing that? Whcih instructions? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
went by http://www.xperiablog.net/2018/01/2...-firmware-for-xperia-xz-premium-xz1-and-more/ because the xperifirm UI isnt all that intuitive :)

I shall retry.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
Whoever thought deleting ta files before flashing with newflasher is a good idea obviously doesn't trust [MENTION=4120742]munjeni[/MENTION]'s work. Its not a good idea. Leave them. He is a legendary dev, and would never allow files to be flashed that can damage your device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
hey dont shoot the messenger :)

Also flashed it again, now stuck on trying to get the stock image & twrp install onto phone while in TWRP because after flashing the firmware as-is the phone doesnt register as a usb device to any of my PCs and neither does it when I use adb sideload (worked on last attempt). Also that TWRP seemingly still is unable to read/mount/use usb-otg. Do I flash again and hope for the best or is there any other way to get files into TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The latest Oreo TWRP should support MTP and ADB.

It did with my computer and I believe others used it, too.

But I never tested OTG.

PS:

̿̿( ▀ ͜͞ʖ▀) =ε/̵͇̿̿/’̿’̿ ̿ ̿̿ ̿̿ ̿̿ *Bang bang*
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
I went with copying the required files over right after flashing the stock firmware (which does boot fine). That seems to be the best / most consistent option.

Got past magisk now. Unfortunately now stuck at xperifix step because phase 2 requires to boot into recovery and connect via ADB. I have installed the Universal ADB Driver (which I believe is the required one for TWRP adb, no?) and that causes Windows to make 3 short identical beeps, indicating a usb connection / driver failure. Indeed theres a "OnePlus A6000" shown in the device manager with a warning saying:

"The drivers for this device are not installed Code 28". Which drivers do I need for adb access to your TWRP [MENTION=6031898]MartinX3[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I installed the ones from the Google page.

I needed to workaround the driver verification
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
Those seem to work, thanks. For reference: https://dl-ssl.google.com//android/repository/latest_usb_driver_windows.zip

I clicked on the non-working OnePlus ADB device, Update Driver, Browse My Computer, Let me pick..., All Devices, Have Disk, navigate to extracted .inf from Zip, confirm driver is untrusted popup and boom, all done. Could hear the usb device connecting sound right away (phone was plugged in during). Xperifix also immediately recognized it and did its thing. It would seem like I'm finally able to set everything up (after debloating etc of course)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Your welcome. :)

I am happy that it works now. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
I flash stock rom,reboot to fastboot.

I use adb that is commands

fastboot flash boot twrp with stock kernel

fastboot boot twrp with stock ketnel

and it boot to twrp,but it can not touch
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which firmware version are you using?

Which exactly twrp filename did you flash?

Can you get a log with

"adb pull /tmp/recover.log"

at you pc?

Does

"adb shell"

gives you a remote terminal on your device?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
wow this is good news!! seems a nice progress isn't it :o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
My firmware version is H8296_Customized HK_1313-2475_51.1.A.11.26_R15A

My twrp filename is sony-omni-8.0-twrp-3.2.3-xz2-04-08-2018-recovery-with-stockkernel

The log I will send later?

---------- Post added at 01:23 PM ---------- Previous post was at 01:20 PM ----------

I can not post photo by xda labs app?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You make me happy. :)

Are you sure?

I can. :silly:

But the XDA servers are sloooooooow. :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
Maybe I am in China?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You could upload them to another hoster and provide the link. :victory:

[MENTION=4620038]yanke928[/MENTION]

Can you reproduce his steps?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
I'm presently on Australia 8266 ROM 11.26. I'm downloading H8296_Customized HK_1313-2475_51.1.A.11.26_R15A now.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Woohoo, thank you!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Here on my side, it didn't boot. Acts like #11.

Not sure if I did something wrong:

1. Flash H8296_Customized HK_1313-2475_51.1.A.11.26_R15A with newflasher.

2. Enter fastboot, issuing "fastboot boot sony-omni-8.0-twrp-3.2.3-xz2-04-08-2018-boot-with-stockkernel.img" or "fastboot flash boot sony-omni-8.0-twrp-3.2.3-xz2-04-08-2018-boot-with-stockkernel.img" not working. Also tried holding volume down button during boot, not working.

---------- Post added at 02:10 PM ---------- Previous post was at 02:07 PM ----------

Wait.. seemed I'm flashing the wrong file.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, he said recovery and not boot.

:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Here I have TWRP logo now, but it stucked at the TWRP logo. No adb access. Maybe I should try the one without stock boot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
As far as I know does our bootloader v59 prevent any non stock kernel from booting.

Does

adb shell

work?

Or

adb /tmp/recovery.log ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Nop.

Also I found this weird.

Here's how to get it boot into TWRP logo:

1.flash boot xxx.img

2.boot xxx.img

3.Wait two minutes for boot in step 2 failing.

4.Reset and use volume- + power button, then finally entered.

here's the strange thing: I must do all things among 1 & 2 & 3. Otherwise it won't give me any light.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe because of their hacky bootloader.

But I wouldn't try to extract the bootloader from the android P beta.

Any mistake could hardbrick the device.