yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I'm using linux, the drivers are inside the kernel and working out of the box.

In windows I think you need to install the drivers in the device manager while your phone is in fastboot mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] livitamin3:
Re:Flash failed

I am so sorry that my English is so bad that I can not read out what you said

If you asked me about the rom where I download

I was download it from "https://xdaforums.com/xperia-xz3/development/rom-sonyaosp-rom-10-0-t3975023" here and I download the version of XZ3 (instead of XZ3 dual)（Because some people said H9493 should flash this version）

If you asked me the partitation that I used to flash the system

It was "A";);)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But mentioned omnirom

The 10-er rom with 4.14 kernel is still early work in progress
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] livitamin3:
RE: However,I tried to flash the "PIE" but it still failed

sometimes it reboot when the "powered by andriod"appeared;)

and sometimes it showed the WRONG and soon shutdown

(I do not know are there any body need to spend so long time to enter the recovery)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's weird, others here with XZ3 devices are happily using this rom

Can you reboot straight into TWRP after a crash happen and give me the pstore files?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] livitamin3:
Yes,I can reboot it into TWRP, but I am sorry I do not know how to do to store the "pstore files".By the way, build up the Gcam for xz3 please.

It is my pleasure to help you build a more wonderful rom:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's described in the bug section on the first page

If you can make a device specific gcam, please do it :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MrMmmkay:
New Firmware 52.0.A.11.32 for XZ2P is out :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, I will do it in my next available free time :)

And this time I will keep at least the twrp for the previous stock firmware version xD
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
16.11.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
[MENTION=6031898]MartinX3[/MENTION]

Latest twrp doesn't boots on 52.0.A.11.32. Tried UK and DE firmware region + 2 times I downloaded twrp files, phone freezes when u flash img through twrp and reboot phone to twrp. ;/

---------- Post added at 10:14 PM ---------- Previous post was at 10:14 PM ----------

[/COLOR [MENTION=6031898]MartinX3[/MENTION]

Latest twrp doesn't boots on 52.0.A.11.32. Tried UK and DE firmware region + 2 times I downloaded twrp files, phone freezes when u flash img through twrp and reboot phone to twrp. ;/
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can you give me the adb dmesg and adb logcat?

It did work on the XZ2C :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
I get this message when I try to create dmesg.log:

1|H8266:/ $ adb shell su -c dmesg > dmesg.log

/system/bin/sh: can't create dmesg.log: Read-only file system
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please either use "adb shell dmesg" or direct the output on your internal storage / sdcard. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
127|H8266:/ $ dmesg > /sdcard/dmesg.log

dmesg: klogctl: Permission denied
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You forgot the su to give you admin rights
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
There you go.

https://drive.google.com/open?id=1UYtCRxwAhyaDjHrDnKkvN2MDWfaSf7R0
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
i have a problem with 11.32, after boot twrp.img, the twrp cannot decrypt my xz2
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Your DMESG is completely fine.

Are you sure it is from the freeze?

In your DMESG is a normal system start with google apps.

And if TWRP freeze I additionally need the /tmp/recovery.log file.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I need a dmesg and the /tmp/recovery.log from the freeze.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
I don't know if my phone is special or something, but su and pull doesn't works for me.

H8266:/ $ pull /tmp/recovery.log > /sdcard/recovery.log

/system/bin/sh: pull: not found

127|H8266:/ $ su pull /tmp/recovery.log > /sdcard/recovery.log

/system/bin/sh: su: not found

127|H8266:/ $
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It is "adb pull" from your computer, not in the "adb shell"

You can also execute "adb shell bla" to execute commands.

About su, I'm sorry that I forgot that you mean the stock ROM.

It needs magsik, before you can execute "su"

But are you really sure that your normal android system freezes? TWRP doesn't interfere with the normal android boot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
I mean, when I try boot to twrp using power button + volume down it stucks at twrp logo. This is what I got from recovery.log :

adb: error: failed to stat remote object '/tmp/recovery.log': No such file or directory
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Is there no recovery.log in the temp folder?

"adb shell ls /tmp -l"

And what says the dmesg?

"adb shell dmesg > dmesg.log" will create the dmesg file on your computer.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell ls /tmp -l

ls: /tmp: No such file or directory

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell dmesg > dmesg.txt

dmesg: klogctl: Permission denied

C:\Program Files (x86)\Minimal ADB and Fastboot>
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And the phone is in the frozen TWRP logo?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
Yep. Also tried rolling back to oreo then again to latest pie firmware but still nothing.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
TWRP is root by default and the last time you gave me your DMESG it was from the android system.

So are you really sure trying to acquire the dmesg from TWRP?

Using oreo with my orep twrp (I uploaded the latest oreo firmware) should work too, since it worked in the past.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yanun:
Okay, previous dmesg was from system so my bad. Now I got it from twrp. Log is in attachments

Btw, Is there any improvement in terms of camera on OmniRom/SODP based roms? Last time I've used OmniRom all was ok but not camera. Even in good daylight conditions photos looked very bad.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you !

Oh no

Omnirom still didn't update the security patch level, so I did hope simply raising the security path level would fix it, but no

Damn damn damn

Camera improvements will come with Android 10.0 and kernel 4.14 (starting with OEMv2)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
17.11.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rossxander:
I don't know if in all of the 448 pages of this thread, the question was posted, but my XZ2 (bootloader unlocked under Android 8) who is on Android 9 (52.0.A.8.83) has a L3 certification with Widevine. That's weird because Sony says the phone will have the L1 certification with Android 9.

*Widevine is the certification for playing HD video from Netflix/PrimeVideo on a phone (L3 = 480p & L1 = >480p)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Darren_J:
?Saw this a little bit too late. Maybe quote it into the instructions? Just picked up the phone two days ago and just flashed TWRP into my system following the instructions, and got stuck at the TWRP Logo. Was wondering what went wrong but well, at least we can still Fastboot into TWRP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I will, thank you :silly: :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Darren_J:
Thank you! This should save many people ;) Just wondering if we could download previous builds. I'm running eXistenZ and it's currently based on 52.0.A.10.6, just figured that it would be great to have the matching files flashed. It is fine if not though since it's November and another patch should come in another while :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I hope so :)

Not based on 11.3 October?

The 11.3 twrp and the 11.3 working perfectly together in terms of decryption.

I was sadly too fast on the October release and removed the September release in the believing everywhere will be 11.3 October asap. :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Darren_J:
I believe so :eek:

This is from the Changelog.

eXistenZ Pie v11.0.0

Quote:

Based on firmware 52.0.A.10.6

I should say that it is me who's too slow to flash this ROM :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
:cool:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Darren_J:
I'd wanna try that!

?

Hope it comes out to the public soon
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Fw 11.3 is oct patch and i dunno :)

I have it already in that case but dunno if it even works on Nov patch.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JeffLeeXZ2C:
TWRP freezes

Hello. Sorry for my bad English.

Newbie to here, so I don't know here is the right place to troubleshoot my problem.

My device is XZ2C (H8314) with latest firmware 52.0.A.11.32.

Bootloader unlocked, stock rom.

https://xdaforums.com/showpost.php?p=77177196&postcount=2

I followed this.

When I do 3-1, there were only 10 randomly named folders.

So I copied image file to external sd card and choose it.

There's an error about bootctrl but TWRP finished it anyway, and phone rebooted to OS.

When I try to go into recovery mode maunally (vol down + power), TWRP freezes.

Relevant Posts I founded:

https://xdaforums.com/xperia-xz2/de...h-recovery-t3821597/post77786174#post77786174

https://xdaforums.com/xperia-xz2/de...h-recovery-t3821597/post80515179#post80515179

https://xdaforums.com/xperia-xz2/de...h-recovery-t3821597/post80040982#post80040982

What did I do wrong?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
what you did wrong ? did you followed the steps in the 2nd post here and that are these ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you both read the news on the first page? :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Which news....

Didn't saw any or i missed it ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] orapyt:
I believe TWRP installed doesn't work because the security patch level is different than the latest version. TWRP will work through fastboot only.

Go to the last page of the TWRP discussion and MartinX3 made a comment on it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JeffLeeXZ2C:
Oh no I didn't see that. Still Phone is not bricked and I'll wait it. Thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Don't worry, the phone won't brick.

You just get stuck on the TWRP screen, if you boot a "installed" TWRP.

Android will boot normal and "fastboot boot twrp.img" will boot a working twrp except the userdata decryption.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, on the first page I collect all news and write them separately in a new message each time, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
How can I install twrp on android 8? I downgraded to android 8.0 (51.1.A.4.173) in order to fix my black camera but i can't install twrp. I have bought xperiFix but it says that I need to boot in twrp manually and i can't do that... any tips?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Download the TWRP matching your firmware.

Disable vbmeta.

Flash the TWRP on boot.

Boot into TWRP.

Flash the kernel installer and the TWRP installer.

Reboot into TWRP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
I installed 51.1.A.11.51 and also downloaded the 51.1.A.11.51 twrp files but still can't boot in to the recovery . I get stuck on SONY logo and a blue led then i use they key combo to restart the phone and it boots in to android normaly. I use the "fastboot boot twrp.img" command to get in to the recovery.

EDIT: Never mind i figured it out myself

You have to flash it to the boot partition and then when you power the phone you should hold the volume down and boom you will be in the recovery :)

WARRNING EDIT2

Do not flash it to the boot partition. You will be able to enter recovery but it will bootloop your phone so I am back to where i was figuring out how to install the recovery
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BENETNATH:
Hi,

i've got a xz2c running the latest version (11.32).

Can you confirm that if i just want to root and get magisk ineed to :

1) unlock bootlaoder

2) download the archive named 2019-11-16_10-27-04_twrp_stock_xz2c_52.0.A.11.32.tar.gz from the stock folder

3) fastboot boot it , then flash magisk

4) install magisk app

and that's all ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the bootloader hint on the first page. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the instructions and avoid the "install ramdisk" step for now. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
I tried many ways to get in fastboot and non of them worked. I was not able to get the "fastboot boot twrp.img" to work. The only way I can get in to twrp is by flashing it to boot but then I am unable to boot the device I can only enter the recovery.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So you booted into fastboot mode with "adb reboot bootloader"?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
Yes i did and when i run the command "fastboot boot twrp.img" all i get is a black screen with the blue led on.

I got no errors in the command prompt so it is sending everything correctly

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot twrp8.img

downloading 'boot.img'...

OKAY [ 0.732s]

booting...

OKAY [ 5.680s]

finished. total time: 6.415s

The only thing I can do is reset the phone with the key combination to get it out of the black screen.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe you need to wait longer or accidentally mixed the stock and sodp twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TacoLoco:
Hey guys,

I have the newest Update from Sony installed (Android 9, November 2019) and successfully unlocked the device.

Now I want to install TWRP and your Android 10 AOSP ROM..

Do I have to execute the following command before booting into TWRP?

- (Optional; If you modify the system or need the camerafix.zip)fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Sorry, don't understand why and if this is needed.. Also I wonder, why not install TWRP?

Thank you very much!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
At the moment there is no TWRP for SODP 10.0 available and the 10.0 ROM with kernel 4.14 is work in progress.

To test it and share bug reports please follow the instructions.

The disabling of the vbmeta is needed if you modify any of the system partitions, which then will violate the generated hashvalues in the vbmeta table and deny the booting.

It is a security feature from google to prevent the phone from booting if it has been hacked.

You're welcome!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TacoLoco:
So for installing a custom ROM I need to disable vbmeta? And what do you mean with no AOSP 10 Recovery available? Does this mean I cannot install it and only direct boot to it?

Sorry for the dumb questions, but I'm a bit lost, want to install a custom ROM in the next step, maybe Pie if this is more a daily driver..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The 9.0 ROMs are daily driver, just follow the instructions.

But the camera is worse then in the 10.0 testing. There the camera development continues.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TacoLoco:
Okay, so I'll stay at Stock Pie Form the Moment.. Did manage to magisk root and debloat it.. Will later move directly to Q.. Thanks for your hard Work!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

Have fun!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
[MENTION=6031898]MartinX3[/MENTION] is there a fixed stock twrp for 11.32? Or you are forcusing to android 10 :) anyway, thank for your nice work!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

At the moment I wait for the OmniROM November security patch.

Just changing the security patch level text field to November didn't help sadly.

Something changed which must be backported to 9.0 on OmniROM :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
Sony Xperia XZ2C H8314

Android 9

Build number 52.0.A.11.3

The bootloader can be unlocked

Sony says I have the latest firmware, but I also downloaded UK 52.0.A.11.32

I do not know the original region of the phone, and I do not know if it matters, so I did not install the firmware. Should I?

I downloaded all the relevant files from your site. (If I flash new firmware, I will download the relevant files to those, of course.)

I do not want Android 10 (for now). I do not want a custom ROM. I just want root.

Considering the above, am I correct that the procedure is:

1. Unlock bootloader

Boot into fastboot

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

3. fastboot boot twrp.img

4. fastboot boot recovery

From TWPR

5. Advanced menu -> "Install recovery ramdisk" -> Choose twrp.img (from the card, where we copied a second copy of TWPR.)

6. Wipe->Advanced Wipe -> Choose Cache Data

7. Flash magisk.zip

Reboot into system

8. Install "Magisk Manager.apk"

Is the above procedure correct? Why do some people advise to flash kernel?

Is it 100% that the camera will not be affected?

Thank you very much and rest assured that your clarification will not only help me, but many other users who have the same questions. Your hard work is highly appreciated!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you very much :)

The previous region doesn't matter, but you should use your region for the best mobile experience

Just fastboot boot twrp and flash magisk

Please don't install the ramdisk for now, since the decryption did break with the November security patch.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
This means, I SHOULD update the firmware.

Also, OMIT step 5 (install ramdisk)... and step 6,,, but all the rest is ok.

What about the camera?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ah you mean you want to unlock?

On custom ROMs -> work in progress

On stock -> I didn't saw a change
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
I am sorry, I do not understand your "answers" to my clear, I think, questions. Maybe I am more stupid than I thought. I will, hence, leave it until I have a more clear idea of what is going on. Thank you for your time.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I just mean, that after a bootloader unlock on the newest PIE stock ROM the camera won't be broken. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION] ... after i update xz2 firmware .32 ...i reboot to twrp abd stuck on twrp screen ... already do vmeta but still stuck.... please help
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
According to the latest news please only use "fastboot boot twrp.img" for now :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
Only fastboot boot twrp.img or with vbmeta.. And after do that.. Twrp remain or have to do again... Confused
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Until the now broken decryption works again you need to "fastboot boot" every time you want to use twrp. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zarbix:
is there any news on this? TWRP is failing to decrypt the storage of my bootlooping stock Pie due to not working EdXposed :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BananaJoh:
Problems with TWRP and SonyAOSP Pie

Hey, I'm about to switch from my old Samsung Galaxy Ace 3 (with LineageOS) to a Sony Xperia XZ2 Compact (Dual) and want to flash and root it (to get a clean, rooted OS).

Unlocking after upgrading to the latest firmware went fine (came with Pie).

I followed the guide in the SonyAOSP 9.0.0_r46 thread and flashed everything.

Then I wanted to fastboot boot into TWRP (I'm aware I shouldn't install it ;) ).

- The sodp version starts but touch isn't working (known error afaik).

- Current stock TWRP doesn't boot (phone reboots, unlocked bootloader warning pops up, then display turns off and stays black).

I tried the different vbmeta images with the corresponding TWRP version and the one included with the AOSP in addition. - No success, even with the "--disable-verity --disable-verification" flags and oem image reflashed to oem_a and oem_b.

I also did the whole flashing procedure twice, because the first try went to the _b partitions ... at least the AOSP ROM boots fine now :fingers-crossed: .

Any ideas regarding my TWRP problem?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly no

I wait for a response from the twrp team :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the stuff in the testing folder for 4.9 on the dhs file server mirror :)

I sadly didn't had time to finish the creation of my own omnirom fork with up-to-date SODP 4.9 P stuff (which includes the touch fix and the October security update)

My newest SonyAOSP release should have the fix but the twrp doesn't

So only grep the twrp from the testing folder.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BananaJoh:
Thanks for the hint. TWRP from the testing folder worked like a charm ;)

Now trying to setup NanoDroid ...

BTW: What's the latest working Magisk version? Last messages I found were about 19.4 and it seems to work (no installation problems so far).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome and have fun :)

As far as I know magisk was broken between 19.1 and 19.3 on most of the Sony xperias

I use 20.0 :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION] do you have twrp for xz2 dual 52.0.A.8.131?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just for 52.0.A.11.3 and 52.0.A.11.32

Oh and also for 52.0.A.3.84

Please just use the newest TWRP and do a "fastboot boot twrp.img"

You can't decrypt the userdata, but the other stuff may still work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
is there a solution for install magisk without installing twrp, i'm using 11.32 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
if you don't want to fastboot boot twrp.img and use TWRP to do that, you can unpack the boot.sin file into a boot.img, patch it with the magisk manager app and flash it in fastboot.

But disable the vbmeta with the parameters first. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
This is what I do every month. Works perfectly. No need to use twrp at all.

Edit: I exclude userdata.sin and vbmeta.sin (no need to flash it and disable it again) when using newflasher on the new update.