yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sacktreter:
Thank you for the hint. The next few days I'll be looking at this app and reporting my results.

(I have to work in the week so my time is limited for this issue)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
Friendly reminder I have a XZ2c holding back to October 2018 patch level for a reason.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] giaoer:
hi ,super J4nn, xperia mirror link is dead . would you mind update it?

my respect!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] junaid89:
I need to downgrade my XZ2P to H8116-52.1.A.0.618 so I can root it, can anybody provide it? Xperifirm only got the latest firmware
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sacktreter:
Hi, look here and take search function. Good luck.

https://androidfilehost.com/?w=files&flid=283735
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] walking_stone:
can you make an update for SO-05K (XZ2 Compact Docomo) support?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yosiaryan:
i tried to use terminal emulator on android and tried it but i got this error " /sbin read-only" what should i do?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yosiaryan:
thanks in advance for making this temproot work, sorry if my english is really bad. I'm trying to make a temproot Sony xz2 with a terminal emulator with a tutorial like Sony xz1

by pushing busybox and configuring it exactly like sony xz1 and managed to get into the root shell everything works normally no error but when i type ./magisk-start.sh -2 i get an error like this , can you help me find a solution for this problem ?

thank you very much
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Yosiaryan:
terima kasih sebelumnya untuk membuat temproot ini berfungsi, maaf jika bahasa Inggris saya sangat buruk. Saya mencoba membuat temproot Sony xz2 dengan emulator terminal dengan tutorial seperti Sony xz1

dengan mendorong busybox dan mengonfigurasinya persis seperti sony xz1 dan berhasil masuk ke shell root semuanya berfungsi normal tidak ada kesalahan tetapi ketika saya mengetik ./magisk-start.sh -2 saya mendapatkan kesalahan seperti ini, dapatkah Anda membantu saya menemukan solusi untuk masalah ini?

Terima kasih banyak
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sacktreter:
I was rooting my phone. There is no way to get root temporary and have a phone with all root features. But the idea of temp root is really good and a reason for invest more time.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
@j4nn I tried to replace one of the list firmware with my firmware and got results like this

./data/local/tmp/tama-mroot

[+] Detected SO-04K-52.1.B.0.188 target

[+] Mapped 200000

[+] selinux_enforcing before exploit: 1

[+] pipe file: 0xffffffef7242a700

[+] file epitem at ffffffef247c0e80

[+] Reallocating content of 'write8_inode' with controlled data.....[DONE]

[+] Overwriting 0xffffffef7242a720 with 0xffffffef247c0ed0...[DONE]

[+] Write done, should have arbitrary read now.

[+] file operations: ffffff8e8801ebf8

[+] kernel base: ffffff8e86e80000

[+] Reallocating content of 'write8_selinux' with controlled data.[DONE]

[+] Overwriting 0xffffff8e89290000 with 0x0...[DONE]

[+] init_cred: ffffff8e8902fcd0

[+] memstart_addr: 0x752f544e41495241

[+] First level entry: ee122003 -> next table at fffffff2acc8cdbf

Then reboots itself, does this have a chance for temproot?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] j4nn:
@Rhamadhany, yes, it seems it could eventually work. But you need to find the firmware for download or at least the kernel image binary from it to check about some offsets.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
@j4nn I couldn't find the download link for this firmware, I got it from ota update. Btw how to get the offset?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] j4nn:
@Rhamadhany, try to find any downloadable oreo

android 10

firmware, flash that and try the exploit. If you got similar output for a downloaded fw, kernel can be analyzed to find out the offsets (it is not just one offset).

edit: correction - this exploit is not for oreo, but for only few versions of android 10 fw
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ps24u:
j4nn, there is still no temp root solution for 52.1.A.3.49 , correct ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
Likeny already did flash with oreo firmware but get a corrupt firmware message I tried some but the result is the same. Unless version 9 it can, and if upgraded ota will go to 52.1.B.0.188
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] j4nn:
I got confused with another exploit, this exploit is for tama platform with few specific android 10 fw versions.

You need to find downloadable android 10 fw and test with that.

Edited the previous post to fix the confusion.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
Firmware SO-04K-52.1.B.0.188 it uses Android 10. But this firmware can only be obtained with ota update, I've tried in the same way add android 9 firmware list to the exploit, which can be downloaded manually, but nothing happens. So I don't think it can be exploited.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
But I'm a little confused here, a few months earlier when I did an update ota of 52.1.B.0.188 will go to 52.1.B.0.232, but different from now. Now If done ota update of 52.1.B.0.188 will go directly to the last Firmware 52.1.B.0.332
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] andikanexon:
Can i update to magisk 23.0 using the same command ?

cause magic 22.0 and lower has a problem with google api and make the device not passed safetynet.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
@j4nn I got an idea. i downgrade to android 9 then upgrade back to android 10 using xperia companion, then i took the xperia companion cache from my pc and got a file. when i extracted it it produced a payload.bin, then i searched for some dumpers and got one that managed to extract it. and get the file like in the photo. But I don't know how to get the offset 🤔
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
but I also can't unpack boot.img I tried several unpacked but the result is not support
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yosia_ryan:
Help me try temproot without pc with method like sony xz1 and get error like this : bad system call like error occurred on mount tmpfs none /sbin
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
Don't you have root access in terminal? try using it to change adb port to 5555 if it works then connect using adb WiFi using termux or something else. So you can run it via adb on termux
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yosia_ryan:
Thanks for the advice can it be done without a pc? I mean, I don't have a pc at all 😁 hehehe , by the way I have root shell access tama-mroot in terminal as in the picture and I have tried it but failed to execute mount -t tmpfs -o mode=755 tmpfs /sbin

I get an error like this: bad system call
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yosia_ryan:
@j4n

@j4nn
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
Idk, just try it then you will know. When you have a root shell try doing the command

setprop service.adb.tcp.port 5555

stop adbd

start adbd

If that works without problem you can connect it via termux or any other adb shell, on termux like "adb connect localhost" then you can wake up magisk from there I guess
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] darckangel523:
some links for xz3 japan versions

sov39

"https://drive.google.com/open?id=1ng5lh5KsKCkz5BVAQkDDVTJdD2JUToJE">52.0.C.0.372<

"https://drive.google.com/file/d/1WJ7kmZlrueQBEfLzMsB8s_9xWOevG9yx/view?usp=sharing">52.0.C.1.127<

"https://drive.google.com/file/d/1yFqYJU6dvjfGMNMuDHV6pFFwHlWH7fmD/view?usp=sharing">52.0.C.5.46<

"https://drive.google.com/open?id=1sUjj0qqbTZKNsa92kbHM7Befm8S6gkW9">52.0.C.5.90<

"https://drive.google.com/file/d/1eFJ4mM_EXIpteQrOxvJyD29_2bwPFDPq/view?usp=sharing">52.0.C.5.133<

"https://drive.google.com/file/d/1bm2E8w7VhOh7ycfePLNHq3sveQz5mcKI/view?usp=sharing">52.0.C.5.199<

"https://drive.google.com/open?id=1UCrgPBZVRkRlMUPSAw1ci88_2PCBZKdh">52.0.C.5.238<

"https://drive.google.com/file/d/1kWZqya2p-g7PNh1Eg-Nnrh__T9xJUfom/view?usp=sharing">52.0.C.5.282<

"https://drive.google.com/file/d/1Ohv2F4pTH23ILhXz2yuJZXeI11uarjOj/view?usp=sharing">52.0.C.5.295<

"https://drive.google.com/file/d/1Lygv5CyWTe-BHJVNzBDsB80ucQ3i8fzj/view?usp=sharing">52.1.C.0.192<

"https://drive.google.com/open?id=1Q8_uGq8YI06qvD8ySzpVT1Tp6phRAMKn">52.1.C.0.220<

"https://drive.google.com/file/d/12kVKXN7gYr60vBA4V6400qH3x_01B3-C/view?usp=sharing">52.1.C.0.268<

"https://drive.google.com/file/d/1Ete4y2Z1HzcS6j32U0n725ZEMjjx20pc/view?usp=sharing">52.1.C.0.301<

801SO

"https://drive.google.com/open?id=1WsedT0Hc6RtvT12hNOvGvFuKmqrZiBhE">52.0.D.0.368<

"https://drive.google.com/file/d/1c0WvFNIdfPvTfU65cR6MQrQg2p5fU45m/view?usp=sharing">52.0.D.1.131<

"https://drive.google.com/file/d/13NtsRQficWyoiqpaFr_ZhxQT800SdUfV/view?usp=sharing">52.0.D.5.44<

"https://drive.google.com/file/d/1-3qO4UFur7LuvDW6Ba34AZQsqjWnerS5/view?usp=sharing">52.0.D.5.78<

"https://drive.google.com/file/d/1_dWO6w-s4k1NYgvZvtOQUnWxDiy6qofg/view?usp=sharing">52.0.D.5.107<

"https://drive.google.com/file/d/1goEfuE4NBWYn_Y7GfcGspyOzpsg-lDyD/view?usp=sharing">52.0.D.5.133<

"https://drive.google.com/file/d/16KUu3Esk1OFT1hAv9LJBxo8VdfogY137/view?usp=sharing">52.0.D.5.164<

"https://drive.google.com/open?id=1WtM2dY8BmcsdJ80IgR2qKd_udywCaUbV">52.0.D.5.192<

"https://drive.google.com/file/d/1j62v1SmDM3SA33fWEBk6hEPYy-vqZif3/view?usp=sharing">52.0.D.5.266<

"https://drive.google.com/file/d/1ie9sZqRHV36RnqDbKybOWOu5DZaLUK7x/view?usp=sharing">52.1.D.0.178<

"https://drive.google.com/file/d/1u01dyo0A0s1y8hexV0rs0wTMYA3o4DTe/view?usp=sharing">52.1.D.0.215<

"https://drive.google.com/file/d/1t7LK8AzLCxXtQGq2R3qnQvbllkA2mDlI/view?usp=sharing">52.1.D.0.244<

"https://drive.google.com/file/d/1ND0O34iw8iwfZXcfjY5jP-g8YO5xe28d/view?usp=sharing">52.1.D.0.290<

"https://drive.google.com/file/d/18rGab7r0A2RF5kn1X5oUG77o1CEan122/view?usp=sharing">52.1.D.0.324<
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yosia_ryan:
Yes, thank you very much, this seems to work remotely from adb pc to cellphone, btw my friend also succeeded by using another device that has been rooted and used as adb to temproot this is useful for people who don't have a pc, and my curiosity has not answered i am very new to this , can you tell me why when mount -t tmpfs mode=755 none /sbin it generates bad system call i try to enable -V there it says max 2 arguments

Please tell me why such an error? I'm dying of curiosity :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yosia_ryan:
I found this:

Port detected diag with qualcom qpst

The connection method is by ip address in the same network jaringan

Can it flash boot and unlock this sony xz2 bootloader? Here there is a flash menu with an .img extension too

I've already backed up qcn and it worked, it's also useful for buckup & restore qcn for locked imei devices from every country

Sorry it's too long, I hope someone can answer my curiosity, thank you

@j4nn and Team and friend in XDA
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jrharbort:
Any chance someone has a copy of 52.1.A.0.532 firmware for H9493? I can't seem to locate an archive. Sony does make the .tar.bz2 dev source available, but I lack the tools/expertise for recompiling linux kernels.

Open source archive for 52.1.A.0.532 | Developer World

developer.sony.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Drie93:
Yay, doing it without pc😍
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
@j4nn I found it. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] KadalSepatuan:
which xz3 au rom support temproot btw? did you found it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rhamadhany:
Can't au use global firmware? So use the firmware that is on the temproot j4nn list
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] longtrick:
Hey can you send me that payload.bin and thank you for that
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jrharbort:
I'm considering trying to flash the H9493 with one of the 52.1.A.0.618 version firmwares instead, any reason this might not work before I try it? This model does have 6GB RAM versus the 4GB of the other variants, but that's really the only hardware difference. 🤔
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] felixby:
plzz hlp me i download it this rom 52.1.A.0.618 xz3 h8416 and is zip ext if i unziped get 3 zip how i can convert to ftf extention or haw i can install this rom zip file all this for root my device locked
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] imranclick:
Hi, right now I using Xperia XZ2 Premium AU unit with android 10 global rom. I want to enable VoLTE for Malaysia carrier. But I only found XZ2 Premium Dual have Malaysia Customization. How do I customize XZ2 Premium Dual ROM to XZ2 Premium Single rom, only for customization carrier
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
Its possible to unlock bootloader on xperia xz2 that running temproot? I have xperia xz2 but bootloader unlock allowed is no, another one lg v50 that running temproot can be unlock bootloader with xbl partition
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hibikase:
Yes very very possible. But use S1 Unlock Tool
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
I want unlock bootloader with temproot method, not using s1 unlock tool because its paid and not related with temproot.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hibikase:
So far there's no way.

But maybe you can try.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
If you still happen to have this firmware available, would you mind uploading it, and letting me know its link? Thanks, anyway!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
Can you make for H8216_52.1.A.3.49?

Firmware H8216_52.1.A.0.618 very buggy, battery drain too fast, auto restart power off and cannot using screen mirroring, its cant be using daily driver
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] andikanexon:
I accidently deleted magisk manager random package name. So after i temproot again, my xz2 didnt detect rooted device. Because the random package apps is removed. How i can restore my hidden magisk manager so my device can detect root again sir ?

Thanks for advance
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bayu elf sabayonz:
so, i do this temproot so i can increase the ram swap on xperia xz2,, the problem is some apps detect root and i cant use it, is it possible to disable temproot without reboot ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cyrup:
Hi guys, anyone tried using xz2 premium dual firmware that is provided here for the single sim?

I can't find a link for this build 52.1.A.0.618 for single sim. I want to temproot my XZ2 Premium.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] diba pranasta:
First you are awesome mate. And the next can you make its possible to Sov39? please.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
temp root exploit for sony xperia XZ2/XZ2c/XZ2p/XZ3 with android 10 firmware
​

Get a root shell with still locked bootloader.

The main thread is located in xz2 forum section here.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] SGH-i200:
Great news! I just bought a used XZ2c without knowing your latest success. This is a very pleasant surprise! :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] SGH-i200:
Warning: "H8314_Proximus (Vfe) BE_1313-6147_52.1.A.0.618_R1C" is the last firmware available via XperiFirm that is a target for the exploit. Other firmware versions must be searched elsewhere. I downloaded this one before it is to late.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=1995555]SGH-i200[/MENTION], I can upload also H8314_Customized FR_1313-2468_52.1.A.0.618_R4C if you like. Or any other mentioned in the main thread.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
implemented magisk setup from temproot

finally got magisk from temp root working including permission asking feature - released as tama-mroot.zip - get it here
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ahzam:
Did it actually work, I am facing issue while accessing `/data/local/tmp` directory using adb

127|H8324:/data $ ls
ls
ls: .: Permission denied
1|H8324:/data $ ls -al

---------- Post added at 06:38 PM ---------- Previous post was at 06:27 PM ----------

I was able to copy the zip files from within the adb shell after copying the files to /sdcard/tmp location and then accessing /data/local/tmp
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3022535]ahzam[/MENTION], that's normal behaviour of standard adb shell user. You just need to 'adb push the-files /data/local/tmp' and within 'adb shell' just 'cd /data/local/tmp'.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ahzam:
Thanks, now the root is done, but it goes off with reboots, and trick to keep this on after reboot?

I was not able to install Xposed, and not able to run the rootcloak as well. This root is of little use I guess.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3022535]ahzam[/MENTION], hey, this is a temp root, so it is obvious you lose it with reboot.

Normally only adb shell is provided with an exploit. I have implemented a working start of magisk from the exploit including asking for su permission from apps.

That allows great use of the temp root vs plain temp root shell.

Not only that you may backup locked TA for eventual restore of drm keys.

You can permanently modify oem partition for debloat or ims support.

Or you can use backup apps that require root.

Or iptables based firewall is great too you know.

There may be many other working use cases, like ads removal, if implemented properly (system less-ly), not tested though.

Do you think that's little use? If someone is not allowed to BL unlock (or does not want to) it looks like it actually is something!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] tb_:
Is there any way I can get the customized de h8324 Image or knows how I could get it?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
If you can find it somewhere...

You may download H8324_Customized FR_1313-2469_52.1.A.0.618_R2C.zip and skip flashing oem*.sin if you are running a Customized DE android 10 fw already.

I can upload following versions:

H8116_Customized IBE_1313-3189_52.1.A.0.618_R3C

H8166_Customized FR_1313-2540_52.1.A.0.618_R4C

H8216_Customized UK_1313-4679_52.1.A.0.618_R5C

H8266_Customized FR_1313-2481_52.1.A.0.618_R4C

H8296_Customized TW_1313-6119_52.1.A.0.618_R4C

H8314_Customized FR_1313-2468_52.1.A.0.618_R4C

H8324_Customized FR_1313-2469_52.1.A.0.618_R2C

H8416_Customized IBE_1316-6423_52.1.A.0.618_R5C

H9436_Customized FR_1316-3076_52.1.A.0.618_R6C

H9493_Customized HK_1316-2331_52.1.A.0.532_R2C
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] tb_:
Can I flash a oem from a newer android 10 version?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ahzam:
Thank you [MENTION=4418980]j4nn[/MENTION], looking for some more information, is there a way to run these scrips phone directly? I started using the firewall, but I had to connect to ADB to regain root.

I have been using some banking application, which after detecting root do not work, and that happens with this temp-root as well, is there a way to hide the root from these app. I tried to install rootcloak, but that didn't work. And final question, I have is how do I move an application Android Firewall for example to permanent app with root access if there is a way to do so.

I appreciate your help!!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3022535]ahzam[/MENTION], that's right, the exploit needs to be run from adb. It would need to be extended to allow privilege escalation from an untrusted app context, i.e. to run it from a normal app / terminal emulator on the phone without use of adb. As it is temproot, you need to start it after each reboot.

Cannot help you with hiding, did not test that.

But I would assume magiskhide could eventually work. If it did not for some app, it may help to restart (and data erase) such app. Due to magisk started late from exploit instead of during boot, some modules may get started too late and therefore look like not working - restarting involved apps/services could help.

When an app asks for root, there is an option if it should be allowed once or permanently. Just select what you need. If you want to change that decision later, you can do that in magisk manager.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Dom195:
magiskpolicy is inaccessible or not found

Hi [MENTION=4418980]j4nn[/MENTION]! Thanks for giving me hope using my old H8324 XZ2c dual in a new way with temp root!

I followed your instructions and all worked so far. But now I´m stuck at the point where I want wo activate temp root and start magisk.

The command "./tama-mroot" works as expected but at the next step "./magisk-start.sh -1" I always get the error that the magiskpolicy is inaccessible or not found.

"root_by_cve-2020-0041:/data/local/tmp # ./magisk-start.sh -1

+ FRESH=false

+ '[' -1 '=' --fresh ']'

+ '[' ! -e /data/adb/magisk/busybox ']'

+ ./magiskpolicy --live --magisk 'allow dumpstate * * *'

./magisk-start.sh[33]: ./magiskpolicy: inaccessible or not found"

Maybe it´s easy to solve or I do something wrong but I´m a newbie at this and don´t find a mistake.

Do you have an idea what´s the problem?

Thanks in advance for your answer!

Also thanks [MENTION=9680881]ferluna18[/MENTION] for the perfect guide to downgrade my XZ2c with locked bootloader to a FW that works with the temp root.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10933679]Dom195[/MENTION], have you run the prepare step, with the unzip and magisk-setup.sh? That should make magiskpolicy available.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Dom195:
[MENTION=4418980]j4nn[/MENTION] Yes, I did it.

But when I typed "chmod 755 tama-mroot magisk-setup.sh magisk-start.sh" in the adb shell I got no reaction. Unfortunately my skill are far too low to understand what this command exactly is for. But in another comment I saw in the code that there also was no reaction. Therefore I didn´t see a problem with that. I looked at it once again, compared it with my cmd and on my phone it doesn´t seem to unzip the magisk-v20.4.zip file.

I just did it again. Do you see any mistake here?:

"D:\Downloads>adb push tama-mroot.zip Magisk-v20.4.zip /data/local/tmp

tama-mroot.zip: 1 file pushed, 0 skipped. 0.3 MB/s (21355 bytes in 0.064s)

Magisk-v20.4.zip: 1 file pushed, 0 ski...d. 24.9 MB/s (5942417 bytes in 0.228s)

2 files pushed, 0 skipped. 18.2 MB/s (5963772 bytes in 0.313s)

D:\Downloads>adb shell

H8324:/ $ cd /data/local/tmp

H8324:/data/local/tmp $ unzip tama-mroot.zip

Archive: tama-mroot.zip

replace magisk-start.sh? [y]es, [n]o, [A]ll, [N]one: y

inflating: magisk-start.sh

replace magisk-setup.sh? [y]es, [n]o, [A]ll, [N]one: y

inflating: magisk-setup.sh

replace tama-mroot? [y]es, [n]o, [A]ll, [N]one: y

inflating: tama-mroot

H8324:/data/local/tmp $ chmod 755 tama-mroot magisk-setup.sh magisk-start.sh

H8324:/data/local/tmp $ ./magisk-setup.sh

+ '[' '' '=' --cleanup ']'

+ ZIPFILE=Magisk-v20.4.zip

+ '[' ! -d magisk ']'

H8324:/data/local/tmp $ ls

Magisk-v20.4.zip magisk-setup.sh magisk-v20.4.zip tama-mroot

magisk magisk-start.sh magiskpolicy tama-mroot.zip

H8324:/data/local/tmp $ "

Thanks in advance!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10933679]Dom195[/MENTION], it looks ok, so continue with next steps...