yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mulencja:
Hi there,

I've been trying to flash TWRP + magisk, but I seem to have problems booting the twrp, here are the steps I am following:

1. Flashing firmwares with newflasher: H8266_Customized CE1_1313-3193_51.1.A.11.51_R7A or H8266_Customized CE1_1313-3193_52.0.A.3.163_R2B.

2. Booting manually into fastboot + fastboot reboot bootloader,

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

4. fastboot boot twrp-3.2.3-0-xz2.img, and after phone tries to boot, it reboots red diode flashes, after second boot it boots to system normally.

If i excecute command "fastboot flash boot twrp-3.2.3-0-xz2.img" i can manually boot into recovery-twrp, but there is no such thing as Install recovery ramdisk from advanced menu, when I install twrp.zip with sideload or twrp.img i reboot once again to recovery, wipe data / dalvik, reboot into system, and phone boots into TWRP, no longer being able to boot into system. I tried with 2 different system builds, same issue.

Tried to flash magisk to boot into system, tried 18.1 and 19.0
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the newest PIE firmware in combination with the newest twrp image with a matching firmware version number in its name

"fastboot flash boot twrp.IMG" is deprecated. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mulencja:
thank you, matched the firmware and works flawlessly, cheers!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] XxSUPRAxX:
Hey, where do I find updates for the Magisk versions to know when the 19.3 bootloop Will get fixed?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION] why in twrp i got this error?

screenshot attach
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Happening since June security patch level, even with shipped bootctrl module

You would need to mount vendor to avoid it even if the path of the file stays the same (copied in ramdisk)

But it is only needed to switch the slots in twrp. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382

BTW - EdXposed module 'Hidden Core Module' makes safetynet pass on latest firmware, Magisk 18.1, if anyone's interested...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] XxSUPRAxX:
Replied wrong post

---------- Post added at 06:16 PM ---------- Previous post was at 06:13 PM ----------

Very interested in that module but for some reason i am not able to install xposed module on XZ2 Premium

With Magisk or through TWRP
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
What is happening when you try?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] XxSUPRAxX:
I started by installing Riru core 19 in magisk.

rebooted and installed edxposed magisk-EdXposed-YAHFA-v0.4.4.4_alpha-release.zip

Rebooted and started Xposed installer, no riru module showing up

Started magisk no modules showing up.

Xperia XZ2 Premium

Pie

Magisk 18.1

Maybe im installing the wrong zips?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Maybe an issue with the alpha release - I have 0.4.1.2 from Magisk downloads, and working great... If you are going to test, might be a good idea to uninstall everything first, and then reinstall, (but if you use Magisk uninstaller, make sure you reinstall right away, and don't try to reboot or power off without Magisk installed).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] XxSUPRAxX:
Got xposed installed successfully now.

Can you tell me more about the safetynet?

I have a banking app that still detects root status.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
In the custom Roms for safetynet (both Tests in the magsik APP), ypu only need to execute the magisk module "MagiskHide Props Config" and follow its instructions. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
[MENTION=7880594]XxSUPRAxX[/MENTION]

MagiskHide Props Config didn't work for me. Latest version requires Magisk 19, and older version still didn't pass safetynet. However, it should be said that I am using MicroG, so could be the problem. Anyway, the Xposed module, 'Hidden Core Module', works to pass safetynet for me, with MicroG, and Magisk 18...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You use a custom rom?

You can upgrade to 19.3 after booting 18.1 once.

But stock is still borked.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Oops - sorry, I missed that you said "in the custom Roms"...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
So i found out that i suffer from the black camera bug. I unlocked my bootloader on the latest firmware, flashed both fixes by martinx3 and the magisk module but no luck. Any advice?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Unlocked on pie?

This month (June firmware)?

Please flash vendor.sin again and don't apply the camerafixes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
I unlocked on 52.0.A.3.84 that was the latest ota update before I unlocked the bootloader. Will try the fix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh ****.

Now you need to downgrade to oreo, apply xperifix, shoot a picture with it (to confirm it works), upgrade to pie and apply the camerafix.zip.

Make sure to backup your data

A downgrade needs a wipe.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
i have 3 question before i unlock my phone:

should i unlock bootloader on 52.0.A.8.83 better than oreo with xperifix???

what i lose if i unlock bootloader ???

if i lose something in the phone ... will there be a fix for it in the future??

i hope the fix will be free.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Update to latest Firmware before unlocking!!!

Sony backup restore, OTA, erm, umh, maybe PlayStation controller support via Bluetooth and screen mirroring (use miracast)!!!

Maybe!!!

Xperifix one lifetime purchase.

Ah, and before I forget it.

"!?!!??!!!?!!!?!"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
hhhhhhh

thank you for your reply

i ask you because i see your reply to someone unlock in may firmware and you told him to downgrade to oreo and use xperifix

(Now you need to downgrade to oreo, apply xperifix....)

but what mean erm and umh?

and ota firmware or even ota for app?

and sorry for my bad english
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[emoji14]

Because he did unlock on the wrong firmware, it was too old

latest firmware = best way to unlock

ERM and umh are thinking noises hihi

You can update via xperifirm and newflasher :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] suuperboom:
I haven't had a chance to play with the phone again until now.

I just unlocked on fw 52.0.A.8.25 and I'm surprised....! (Actually I got my previous posts wrong, my phone is XZ2 Compact)

It still seems that the sony features still work? video enhancement, image enhancement, audio enhancements can all still be turned on and the demo on video and image still show a difference between on and off. Camera also still works as normal (dont know about the quality but I assume will be same since the other enhancement features still work?)

edit - video may not show a difference...the demo video on the xz2 looks like the "un enhanced" version on my z5c. again not sure...

..... or is this a fake being able to turn on and off = it won't do anything?

So does this really mean all the Sony features are intact? Then in that case there is no advantage to downgrade to O to apply xperifix?

Unrelated to the above, on pie the wifi keeps connecting and disconnecting randomly.....anyone else have same problem/solution? No, it's not router/network problem since all other devices in the house are fine (computers, ipads, other androids). May need to switch back to oreo anyway if this problem keeps going on....
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Report wifi problems to the Sony support.

They did fix my Bluetooth

Or switch to a custom rom
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] suuperboom:
well, for now I posted on sony support, and I'm back to oreo with TWRP, and waiting for activation key for Xperifix from storm ... sigh.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] KJKingJ:
Aha, success! I upgraded to the June patch and I was still bootlooping after installing Magisk, however following [MENTION=6844310]cyberwytch[/MENTION] 's instructions to a tee managed to fix things. Letting it double reboot is key - the first one looks very much like a bootloop freeze and reboot, but the second succeeds and i'm back up and running with root again :) . Thank you both for your help.

I'm keeping an eye on the v19 bootloop bug report, but for now i'll be sticking with Magisk v18.1 - i'd rather have a slightly outdated, but working, Magisk than none at all.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
Hi, pop I am new here, just want to ask What is the difference between stock TWRP and custome rom TWRP? and is that xz2 dual and single sim share the same TWRP also the same custome rom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Stock ROM twrp for the stock ROM.

Custom ROM twrp for custom ROMs based on SODP.

No diff between count of sim slots. Just a recovery, no network application. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
Bah

So that means if I want to install Omni rom i have to install custom TWRP first, in the same time if i want to install custom stock rom that I have to change TWRP to stock rom TWRP first, correct?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The TWRP is in the bootimage, it gets removed if anything replaces the bootimage ramdisk/partition.

Install first the custom rom, after that the TWRP.

At the moment there are no .zip installers for the custom roms.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
Dual SIM and single sim share the same rom, correct? Sorry to bother you but the last thing I don't want to do is bricked my phone at the first time?

---------- Post added at 07:53 PM ---------- Previous post was at 07:51 PM ----------

Ok i got it thx ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome. :)

If you're using a dual sim device, please install the dual sim patcher.

And if you use magisk, first install the bundled 18.1, boot it once and the upgrade to 19.3 or the mighty bootloop comes. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
For saving the troubles can I just directly install 19.3 with TWRP at the first time?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Hello. Do you have a sollution for this problem? I am stuck in recovery-no os installed. And I cant boot to flashmode/fastboot, because it will everytime boot me into the recovery... Now I am stuck in recovery and cant do anything...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Try the hardware button combination with plugged USB cable and PC connection instead of the twrp buttons to restart into bootloader.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Thats the problem... I am using volume and after some time USB cable... Still booting into recovery. All drivers are properly installed, I flashed TWRP succesfully yesterday and installed existenZ pie addon.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can you use charge, adb, mtp in twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Nothing worked for me. Took the phone to sony repair center and they verdict is that it is deffinitelly bricked. Will try to play with it, but now I dont have much time, I am repairing clutch on my car right now :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Have fun :)

And you're sure that the USB cable or the PC USB port was the source of problem?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Heard that the magisk bootloop may got fixed

https://github.com/topjohnwu/Magisk/issues/1537

Feel free to test this canary.

I'll add magisk 19.4 after its release in my twrp bundle if you don't report problems in combination with the tama devices.

Please test

1. Update from an older magisk version

2. Fresh installation on a clean bootimage.

I heard from at least one user that the device is now in "core only mode" meaning that it doesn't load magisk modules.

https://github.com/topjohnwu/Magisk/issues/1645
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Confirmed 19.4 not bootlooping on XZ2c, eXistenZ Pie, latest stock fw... (as well as modules, safety net, [with Xposed module])...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] longshenaizhong:
Hello, I use your latest twrp(img) to flash M-ROM for xz3, then the phone will restart indefinitely, when using his old twrp(zip) will lose fingerprints, I contacted M-ROM, he has no xz3, so can't test, can you solve this Question?:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just use my newest twrp without the zip file :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] longshenaizhong:
i have used it , no problem with stock rom, but there is a problem when flashing the M-ROM
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Is it a custom Rom or stock ROM?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
I can't get into recovery after these steps :crying:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Stock recovery, custom Rom recovery?

Which installed Firmware Version?

Which twrp Version?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
I flash Omni firsh then custom recovery no stop
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Omni works?

What did you to use twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot flash system system.img

fastboot flash vendor vendor.img

fastboot flash oem Xperia9.0oem.img

fastboot flash userdata userdata.img

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

fastboot flash boot twrp-xz2c.img then reboot devices

---------- Post added at 12:30 PM ---------- Previous post was at 12:28 PM ----------

I didn't try to boot devices after flash Omni I straight flash recovery
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So you used the custom ROM variant of the June twrp?

And it does just restart after fastboot boot?

Was the newest stock firmware installed first (and maybe booted once if you want a baseband update)?

Could you try fastboot reboot bootloader first before booting twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
I can't flash system.img
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cartman56:
My firmware is pie the newest build
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
I am not a dev at all, but if the problem is the missing sdcard support shouldn't that be just a matter of adding a proper entry in fstab? :confused: for some devs around here shouldn't that be pretty easy? or maybe you can compare the fstab from the xa2 zip?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
My bootloader is still locked so I can't test myself.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
In my AOSP ROM build the sdcard is not usable. :)

In the TWRP devices config, I have the right sdcard entry in the recovery.fstab. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
All builds stuck at teamwin splash screen.

4 guys in "2018-09-17_01:00+2:00" and "2018-09-18_21:50+2:00".
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thanks for testing!

I will build TWRP with the AOSP kernel, this evening.

But it will be buggy. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
Same here. [MENTION=6031898]MartinX3[/MENTION] there's a fstab.tama in the device tree from sony devs, and the emulated storage is not mounted at /data/media. If thats what you mean by sdcard
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeahr, I copied it from the AOSP sources. :)

But I won't hack around the code, because they will fix it anyway in the AOSP code.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
If we could only boot up device with aosp kernel with a working recovery (fastboot boot aosp_recovery.img), we don't even need to mess with the stock kernel already installed (we're already able to easily create and flash an magisk/rooted stock kernel).

Thinking about flashing customs roms and general mods only, I think we can play around that way!

Btw, [MENTION=8363210]sToRm//[/MENTION] ... Is an working aosp recovery root shell enough to push XperiFix patches/files? Or does XperiFix really need twrp to do its magic?

[MENTION=6031898]MartinX3[/MENTION] Many thanks for your efforts in trying to bring us the twrp :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

According to [MENTION=1337045]nasko_spasko[/MENTION] he was unable to apply a zip according to signature verification in the aosp default recovery.

It need to be deactivated first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Exactly bro [MENTION=599722]niaboc79[/MENTION] and sorry other bro [MENTION=6031898]MartinX3[/MENTION] my bl is still locked also, so can't test either :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am optimistic using the aosp kernel.

It has a recovery we can replace.

So the kernel supports it. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
can't wait to root my phone without loosing camera functionalities... hope we can achieve that soon! :angel::fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Everyone that is so grateful that [MENTION=6031898]MartinX3[/MENTION] puts his free time on something that benefits you while he has a personal life to deal with could always... donate? Otherwise it's just a bunch of words that means nothing.

Without people like [MENTION=6031898]MartinX3[/MENTION], [MENTION=8363210]sToRm//[/MENTION] and others that make things for us Android would be like Apple. Using an Android phone without root is just disgusting.

That's why I always unlock the bootloader on all my Sony phones and even with my latest XZ2P and rooted with Magisk.

Yes the camera breaks but since people like I previously mentioned exist we have a chance to the camera functionality back.

For me root will always be a priority but that's just me and I don't buy phones for the camera but everyone different so eh.

I used to be an ungrateful **** thinking we're entitled to devs free time but I've since changed my ways of thinking and now instead appreciate and am incredibly grateful for the devs.

This is also why I will prebuy a license for [MENTION=8363210]sToRm//[/MENTION] XperiFix tool because he made me able to use the camera on my pink XZPs which one of them I gave to my brother which value the camera a ton.

So I see it as giving back by buying a license even if I can't use it right now for the XZP2 but hopefully sooner than later.

So, don't just post a bunch of nonsense saying how grateful you are, show it and throw the devs a bone to keep them motivated.

Buying a service, license just feels so much better than taking it for free. You know you support the devs with something they can use.

This is why I prefer paid apps over free apps. I prefer paid things over free things overall anyway. It just feels better.

Sorry for rant but I felt like saying this after I remembered how many posts I saw in the XZP thread by [MENTION=8363210]sToRm//[/MENTION] when he first started it.

Countless of thank you thank you I will donate posts but he then said not many donated and if they did it was just scraps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
This is not the right thread for this but ?

I totally disagree about all!

Devs don't need money, they need to be thanked and that's all, nobody force them to develop.

Donations are used to buy devices to work on and maybe buy a coffee, so even 1$ is enough.

The community has started to sucks when devs started to ask money to provide things. This is a community of developers who are doing this by pleasure during free time. If they feel that they need to be paid for what they are doing, better for them to leave XDA. To earn money I've got a real job!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
You're exactly what I used to be. Exactly the same mindset as well! I'm so glad I changed.

Being a leech is not fun. Thinking the devs owe the community for starting a project.

It's exactly the same bull**** with modding games, one side wants it to be free and claims "it's in the spirit of the modding community for it to be free".

For some people, devving, modding is their real job.

How is a thank you going to help them? How is countless copy-paste posts saying "I look forward to until you have fixed it" going to help the dev?

Why is there a donation system part of XDA if not to support the devs?

Good for you if you want to dev for free but not everyone wants to spend 1K hours for ungrateful ****s.

This is the whole reason the previously named dev put a license on his software and good on him for doing that!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
1000% agree with this !! This site is not here to earn money, we do here things for free and its a shame that devs asking for money indeed it looks then they a poor in real life -__-"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
[MENTION=6031898]MartinX3[/MENTION] I had the same problems booting official TWRP with fastboot boot command, months ago on different devices. The problem then was the UI that couldn't be loaded because of unknown bugs. I then replaced the libmintwrpui lib (don't remind the exact name, sorry) in the recovery image with the Oreo version of the One Plus 3 or 5 TWRP and it worked perfectly. Maybe it's the same situation. Just an idea...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, but I don't use this lib.

I created the device sources like the ones from XA2 (with adapting the correct configs and using the libs shipped with the XA2).

I extracted the libs from the last firmware.

This evening, I will rebuild it with the AOSP kernel and use the libs from the OEM package instead.

(I use only the ones with the same name used in the XA2 device sources).

https://github.com/TeamWin/android_device_sony_pioneer/tree/android-8.1/recovery/root/vendor/lib64