yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Guides, News, & Discussion] toxic-hero:
i flashed Magisk, it said success, but there was no root after i booted device. i haven't done the full wipe, but everything works just fine, except for root.

anyone managed to preserve data partition from nougat but also succeeded in rooting Oreo (Magisk or SuperSu)?
[Sony Xperia XZ Guides, News, & Discussion] kfrin:
Hi [MENTION=5033594]korom42[/MENTION]!

Thank you very much for this great tut, I'm now rooted and drmfixed on latest Oreo on my F8331!
[Sony Xperia XZ Guides, News, & Discussion] quera:
I'm still trying to figure out which is the magic that makes root. I did a clean flash, wiped everything.

I'm investigating, when I find out I'm gonna share
[Sony Xperia XZ Guides, News, & Discussion] Pandemic:
Did you do exactly what the installation steps said my friend?

Like flash oreo ftf

Dont boot up

Fastboot recovery

Then Fastboot boot.img

Then holdpower button + volume key down when it boot up

Release Power key but keep pressing volume down

You enter then twrp

Flash drm fix

Flash safetynet clean tool

Flash magisk

Reboot

Thats it and then you have it all working!!

Verstuurd vanaf mijn G8231 met Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] Xperia S black:
It's really easy to install and root Oreo... Just read before you install..

Enviado desde mi F8331 usando Xperia News
[Sony Xperia XZ Guides, News, & Discussion] Pandemic:
Like my son of 3 years can do it also.

Verstuurd vanaf mijn G8231 met Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] quera:
Yes, I did exactly how it is written.

Magisk is installed, but I have no root functionality.

Edit: Are you guys using "adb push" with drmfix, safetynet and magisk? I'm doing it then I flash it. I noticed my twrp is not mounting some partitions.

Magisk is breaking safetynet for me
[Sony Xperia XZ Guides, News, & Discussion] simax:
Is it an oreo problem or why do I have sound stuttering in system sounds or WhatsApp voicemails?

Could it be there kernel? How is the kernel modified anyway?

Edit:

What I also noticed is that it kinda gets stuck when powering it off (at the shutting down phone window)

And when turned off and plugged on charger, I need to boot it twice as it just goes back to the charging screen the first time.

That looks like a kernel problem as well.
[Sony Xperia XZ Guides, News, & Discussion] Xperia S black:
There is my screen shot
[Sony Xperia XZ Guides, News, & Discussion] quera:
Maybe is it because of this error messages..? Do you get this red messages too?
[Sony Xperia XZ Guides, News, & Discussion] mymoneyad:
guys, at these steps:

do i need a SD card to copy those .zip to first then plug in?

or we copy .zip to our computer then use adb to flash it onto phone?

im really new to this kind of flash :confused:
[Sony Xperia XZ Guides, News, & Discussion] Marília de Oliveira:
[MENTION=5033594]korom42[/MENTION] It works. Thanks :D
[Sony Xperia XZ Guides, News, & Discussion] Xperia S black:
check

root end theme whit substratum
[Sony Xperia XZ Guides, News, & Discussion] quera:
AFAIK, there are two ways to do it.

1) At TWRP, plug your phone to USB and use command "adb push drmfix.zip /sdcard/", and the same for the other 2 files

2) Put your files at micro sdcard and inside TWRP, touch "install" and the navigate do /sdcard1/
[Sony Xperia XZ Guides, News, & Discussion] nurav666:
Hi guys,

I just had a question regarding keeping my phone rooted on Oreo. I haven't used Magisk before, so in the step where you flash Magisk, can I just flash SuperSU? Will that achieve the same purpose with regards to rooting the phone?
[Sony Xperia XZ Guides, News, & Discussion] quera:
Unfortunately if you do that phone will start bootlooping. I've tested it.
[Sony Xperia XZ Guides, News, & Discussion] shazwansulleh:
TQ for your work. I really appreciate it. It's work with magisk and everything. But I have one problem. I need to uninstall all the bloatware. After I install system app remover from Google play store, and try uninstall it as usual, it didn't work. It failed. What should I do and suggest me an app similar to this. Thanks in advance.
[Sony Xperia XZ Guides, News, & Discussion] SkyrenOfficial:
Not working on my F8331, may be the cause I deleted fwinfo.xml from the pre-compiled ftf? Should I redownload?
[Sony Xperia XZ Guides, News, & Discussion] quera:
I found a solution for my XZ.

TWRP was not able to decrypt userdata partition, for some unknown reason, so I flashed Oreo again and ran a

fastboot format userdata

Now root works. Maybe this can help someone.
[Sony Xperia XZ Guides, News, & Discussion] snake218:
Delete manually using file explorer, find app folder and delete
[Sony Xperia XZ Guides, News, & Discussion] GenomeX:
All root needed apps work for me

Install busybox
[Sony Xperia XZ Guides, News, & Discussion] DaRk-L0rD:
Thanks for posting this one mate! Great work!
[Sony Xperia XZ Guides, News, & Discussion] enjelpuspa:
Thank you very much for providing this useful great thread and stuffs inside :)
[Sony Xperia XZ Guides, News, & Discussion] korom42:
TWRP 3.2.0 is out with better support for oreo .. link .. maybe this fixes the decryption issues for some devices

Any anyone confirm if it works fine ?

Edit : yes it's working ?
[Sony Xperia XZ Guides, News, & Discussion] koekoek91:
TWRP 3.2.0 works fine on my XZ running Oreo.

Thanks for the thread:svetius:
[Sony Xperia XZ Guides, News, & Discussion] Rook7sk:
Делаю всё по инструкции(1 способ) зависаетн при загрузге на логотипе sony.что делать помогите

MODEDIT by [MENTION=3843529]gregbradley[/MENTION] English translation added

I do everything according to the instructions (1 way) freeze when downloading the logo sony.chto do help

4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature).

4. Используйте английский язык.

Мы понимаем, что со всеми разными национальностями не все хорошо говорят по-английски, но, пожалуйста, попробуйте. Если вы действительно не можете публиковать сообщения на английском языке, используйте онлайн-переводчик. Вы можете включать свое оригинальное сообщение на свой родной язык, ниже английского перевода. (Это правило охватывает ваши сообщения, записи профиля и подпись).
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
Can anybody tell how to do future OTA software updates after this? I am a noob at these things.
[Sony Xperia XZ Guides, News, & Discussion] simax:
Correct me if I'm wrong, but afaik you can't do OTA updates with unlocked bootloader and root etc.

If you want OTA updates you need to be on stock and with your drm keys (that you lose if you haven't backed them up before unlocking bootloader)
[Sony Xperia XZ Guides, News, & Discussion] :
Hello everyone, i cant seem to download the Oreo kernel

I highly suggest that the file is uploaded to google drive, mediafire is a pain in the ass
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
same problem here. i followed all the steps and and I have done full wipe. flashed magisk after doing full wipe, but there is no root.

Can it be that my firmware is different this is happening?

Or can it be that I am using TWRP 3.2.1-0 ?

---------- Post added at 04:34 PM ---------- Previous post was at 04:14 PM ----------

Did you figure it out? I am having same issues
[Sony Xperia XZ Guides, News, & Discussion] FreshlyBaked 420:
From what I have read 14.5 works

---------- Post added at 05:19 PM ---------- Previous post was at 05:18 PM ----------

From what I have read 14.5 works for root
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
i did flash 14.5 Magisk. all the other versions are casuing a bootloop but this one is not causing bootloop. But I am unable to get root, neither the magisk app is installing. Can anyone send the link of ftf on which root woked for f8332?

---------- Post added at 06:30 PM ---------- Previous post was at 05:42 PM ----------

i was trying with Magisk 14.5 (1456) which didnt work but the 14.5 (1455) works! But still I didnt get root instead, I got a magisk manager app installed, Can anybody guide me how to proceed further to root

I got an option to instal magisk14.0 zip through the magisk manager file and when I install that, i am again stuck at sony logo. There was another option to patch the boot image and root. Does anyone know how to do it??
[Sony Xperia XZ Guides, News, & Discussion] reini99:
no root after encryption - oreo

Hello...

magisk 14.5 (1456) works , no problem but after encryption, the root is lost. magisk app is ok, but the superuser within the magisk app is has disappeared........

Does anybody have the same Problem
[Sony Xperia XZ Guides, News, & Discussion] korom42:
Go method 2 with full wipe

Really ? NO you can't get OTA after unlocking bootloader and rooting

Gotcha will update link as soon as possible

Make sure you followed steps carefully .. you must be messing something(back up every thing and do full wipe). Sometimes if you get magisk app installed but no root just reflash msgisk it should fix

If root is suddenly lost just reflash Magisk it's a magisk bug
[Sony Xperia XZ Guides, News, & Discussion] quera:
Hi friend, yes, although some people here did not believe me that I followed all the steps carefully, magisk installed but not root can happen.

It happens because TWRP cannot decrypt data partition, so you need to format it.

Here's how I fixed:

1) Follow [MENTION=5033594]korom42[/MENTION] steps

2) Immediately after step 4, format userdata partition: "fastboot format userdata"

3) Go back to step 5.
[Sony Xperia XZ Guides, News, & Discussion] caqo71:
I 'm starting to have random reboots , anyone else?

I use my phone like always, I haven't installed any apk more than the usual I use. Where are more kernels?

Thanks
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
I tried this method but ended up having same results. I did fastboot format userdata, and it said process finished.

I did a full wipe but each time I flash the firmware it says that this device was reset, please login into the user account to proceed. Even after doing full wipe the reset protection is not going.

I installed AOSP and then a custom kernal boot img.,, and followed the 2nd method but ended up with same result. NO ROOT, MAGISK IS NOT INSTALLING, and any other versions except 14.5 is resulting in a boot loop. Any suggestions?
[Sony Xperia XZ Guides, News, & Discussion] reini99:
Hello...

magisk 14.5 (1456) works , no problem but after encryption, the root is lost. magisk app is ok, but the superuser within the magisk app is has disappeared........

Does anybody have the same Problem
[Sony Xperia XZ Guides, News, & Discussion] korom42:
Clear magisk app data from settings then reflash msgisk it cold be a magisk bug
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
I just noticed that there is a new firmware for oreo. Is it okay if we flash that firmware?
[Sony Xperia XZ Guides, News, & Discussion] korom42:
Sure but there's no rootable kernel or drm fix yet just be patient
[Sony Xperia XZ Guides, News, & Discussion] pergoteborg:
Hi.

Is drmfix.zip generic?

Does it work for any OREO fw ?

May it work for any Sony OREO phone, s.a XZ1?
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
I just tried to install the lastest firmware 41.3.A.2.24 with the given boot_oreo kernel and flashed magisk. Everything works perfectly fine. DRM is fixed, got root access, safteynet is working. Thanks [MENTION=5033594]korom42[/MENTION]
[Sony Xperia XZ Guides, News, & Discussion] korom42:
No it might brick other devices !!

yes it will work but you'll loose the goodies of this new .24 update which includes a newer kernel with December security patch better wait until the release of rootable kernel for this new fw
[Sony Xperia XZ Guides, News, & Discussion] Pandemic:
Nah the update contains only the december security patch, other buildnr and fixed the small lag

Verstuurd vanaf mijn G8231 met Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] juanpirulo:
have you guys tried to build your own kernel with serajr¨s tool? . have a look at this . cheers

https://xdaforums.com/showpost.php?p=74724162&postcount=2793
[Sony Xperia XZ Guides, News, & Discussion] igvk:
That method works great!

I actually had troubles using kernel from this thread on my XZ Dual, but serajr's Rootkernel tool worked very well.
[Sony Xperia XZ Guides, News, & Discussion] ulysse132:
I have the same issue and I don't know how to fix it. Anyone has an idea ? I updated my phone to the last version (december).
[Sony Xperia XZ Guides, News, & Discussion] Mazellat:
Can I use 401's kernel file for lastest version of Oreo 41.3.A.2.24 ? [MENTION=2117430]koromo[/MENTION]42

I am using XZ Dual F8332
[Sony Xperia XZ Guides, News, & Discussion] anubhabr50:
I tried this. No issues except a small unusual lag.
[Sony Xperia XZ Guides, News, & Discussion] tahung9x:
Why does not drm work?

Gửi từ F8332 của tôi bằng cách sử dụng Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] kientrongtran:
for anyone who might need it. Below I attached the boot.img I made from this guide (https://xdaforums.com/showpost.php?p=74724162&postcount=2793) here for Xperia XZ's F8332 dual firmware 41.3.A.2.24. Then follow the guide with twrp and magisk, all have been working well for me so far, no errors, However, im not sure that the DRM fix totally works though.

I upgraded from the first version of 8.0 to this one, you can keep the data, but if twrp asks for password that you can't get pass then you'd need to clean install everything.

boot.img
[Sony Xperia XZ Guides, News, & Discussion] 3mozz:
can you please make it for XZs oreo?
[Sony Xperia XZ Guides, News, & Discussion] IkerAGZ:
Hey, this issue is caused by the magisk 14.5 that was the last available when this guide was created, this version had a bug that caused it to create empty tasks that collapsed the device. The first posts about that were here: https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589/page452

I've been using the actual version (15.2) for some weeks and i've not experienced any issues like crashes or random reboots, so flash the new magisk and everything should work fine.
[Sony Xperia XZ Guides, News, & Discussion] 3mozz:
does it work with XZs? im on the same firmware.

also find a way to fix drm. but im using highly modified custom kernal so i wish i could use this and stay stock with drm fixed.
[Sony Xperia XZ Guides, News, & Discussion] Pandemic:
Oke who can try this on fw .24? latest magisk 15.2 with not broken drm, thanks to my bro [MENTION=5733862]BlackSoulxxx[/MENTION]

Flash with twrp: https://drive.google.com/file/d/1OeIzp5FIUKpROwYtQ1XWf4KQf25jdRby/view?usp=drivesdk

Verstuurd vanaf mijn G8231 met Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] buzenm:
can i use magisk 15.3?
[Sony Xperia XZ Guides, News, & Discussion] IkerAGZ:
I'm using it and I don't see any problems or bugs. I think there's no problem on updating it, should keep working and fix bugs. Just dont downgrade to v14.x
[Sony Xperia XZ Guides, News, & Discussion] josephnero:
Hi. Will you update the kernel to the latest FW?
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
Did anyone try to flash his DK.ftf with this?

I had bootloops afterwards and "unknown error" on all keys in service menu. Do I have to modify the flashscript (DK.fsc) to get my Fido keys back?

Is there a plan to release a version for the current Oreo update?

regards

Rashka

Xperia XZ Kagura (F8331)
[Sony Xperia XZ Guides, News, & Discussion] hoaiphong1:
I do not know how to with kernel.elf ... please guide in more detail: D
[Sony Xperia XZ Guides, News, & Discussion] korom42:
It's alread explained in tool's thread

[url]https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605[/URL]

Here's how it's done anyway

Open command prompt in rootkernel tool folder after you extracted it

or

Open cmd --> cd "rootkernel tool dir" for example in my case

cd C:\Users\[B]Admin[/B]\Downloads\rootkernel_v5.23_Windows_Linux_UNOFFICIAL_2.1_OREO

Then run this code

rootkernel kernel.elf boot.img

Say yes (Y) to everything - If you want munjeni's TA PoC option, ensure your TA.img (case sensitive) is located at rootkernel's root folder, and say no (N) to DRM fix

Flash patched kernel:
[Sony Xperia XZ Guides, News, & Discussion] snake218:
not working for me, sim not detected.

magisk and drmfix is not working even if i chose TA PoC option (put my TA.img in folder), tried without installing magisk. if i install magisk later, magisk works, but drm not working, and sim not detected either.

Edit: works, but drm functionally broken. i follow all steps except using PoC option (this isn't working)
[Sony Xperia XZ Guides, News, & Discussion] hoaiphong1:
thank you, i made it ... but still the fix point drm key has not been: D
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
I'm a little struggled here....

Tried the TA_PoC variant 3 times... all keys shows "error" an my sim card won't be recognized... any idea?

regards

Rashka
[Sony Xperia XZ Guides, News, & Discussion] korom42:
Make sure you are using Magisk 15.3 (1531) that I linked and the boot.img that you created for

Ta_Poc Method

or Magisk 14.5 for

drm patch zip method

+ given boot.img and follow the instructions exactly as described , make sure your rom is clean wipe data,cache and dalvik !

Only If none of that works maybe you want to try with supersu instead of magisk .. download from attachements use magisk uninstaller and flash back stock kernel then go TWRP again and flash SuperSU
[Sony Xperia XZ Guides, News, & Discussion] snake218:
Thanks for replying. In my case yes, fresh wipe everything flashtool install, used magisk 15.3 and files given in link. Tried with and without PoC, was able to make it work but drm fix was broken no matter what.

With the first method is working, but i used magisk 14.3 since it's more stable, less prone to bootloops when installing or modind things (maybe just my phone?) So now I'm at .58 with magisk 14.3, all working so far. I tried xposed too, install but seems make system a little laggy, if i unistall it (from xposed app or flashing Uninstaller in trwp) it gets stuck in logo bootloop. As a quick solution, installed xposed module again from twrp, and disabled (switch off) from app.

Sorry for the little off topic. Was thinking flashing again, but I don't see anyone reporting that you can have both magisk 15.3 and drm fix working? If so, what are exact steps?

---------- Post added at 11:46 AM ---------- Previous post was at 11:15 AM ----------

Had same issue, sadly it seems PoC it's not working atm, at least for the Xperia XZ.
[Sony Xperia XZ Guides, News, & Discussion] hoaiphong1:
Can you tell more about Ta_Poc method, TA.img is in which folder & naming?

Thank you
[Sony Xperia XZ Guides, News, & Discussion] korom42:
You find all the files in the requirements section except TA.img which you better been saving it somewhere safe :o
[Sony Xperia XZ Guides, News, & Discussion] hoaiphong1:
I can do it, thank you very much
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
Damn... In that case I'll do the drmfix with magisk 14.3 until it works with TA_PoC.

I really use fido key features very often, but downgrade to nougat is not an option.

Flash the DK.ftf like we did on nougat won't work either, or is there a workaround I don't know?
[Sony Xperia XZ Guides, News, & Discussion] snake218:
Don't know about DK.ftf, didn't try, but with magisk 14.3 and drm fix work great. I don't use at all fido key so for me that is not a problem. You can try with DK, worst that can happen its you have to reflash.
[Sony Xperia XZ Guides, News, & Discussion] GenomeX:
DRMfix not work for me too!!!

I use seraji tool and say Y to all answers,

Flash twrp, then boot.img then DRMfix from recovery. (not systemless root)

I back to AOSP...

Sony ROM always have a joke, some fw have battery drain, some fw bug in lmk, some have adaptive brightness bug, some time problem with root, some fw have heat problem...

Never seen Sony release a good update from 6.0.1 until 8.0.0
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
Ok, did the first option with Dr fix and magisk 14.5

Drm keys are fine, inkluding fido.. But...

Magisk won't save my root permissions.

F.e. I start titanium backup and grant permanent root. If I restart titanium I'll be prompted to grant access again.

the magisk superuser list stays empty. Tried it with 4 apps. Result is the same.

Any idea?
[Sony Xperia XZ Guides, News, & Discussion] Mazellat:
Hi everyone my friends. I am usng Flashtool v0.9.23.2 and I want to flash Sony's last FW which 41.3.A.2.58. But I get this error. I tried deleting "prepared" folder in firmwares folder. What can I do to solve this? Is this error about with Flashtool version? [MENTION=599722]niaboc79[/MENTION] [MENTION=2902434]Pandemic[/MENTION] [MENTION=5033594]korom42[/MENTION]
[Sony Xperia XZ Guides, News, & Discussion] korom42:
- Update your flashtool program you are using an outdated version

- Make sure you have emough feee space on your c drive > 10GB

- Try delete and re downloading firmware maybe the files are corrupt
[Sony Xperia XZ Guides, News, & Discussion] xnevergonex:
Hi everybody , I follow exactly these steps on this thread after unlock bootloader:

1. Flash Latest Stock Oreo Ftf

2. Flash TWRP

3. Flash Kernel

4. Flash DRM Fix + Safetynet Clearing Tool + Magisk v14.5 (by TWRP)

I don't reboot all through the flashing.

After flashing, I reboot system (on TWRP) and it's automatically boot into TWRP.

I cannot boot into system, it's still TWRP again and again.

How can I fix this error?

Many Thanks!
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
But you've flashed twrp into the right position?

Kernel :

Flashboot Flash boot boot.img

Twrp :

Flashboot flash recovery twrp.img

I've once accidently flashed twrp to boot partition and got the same error
[Sony Xperia XZ Guides, News, & Discussion] xnevergonex:
Yes, I flash TWRP first and Kernel after that and cannot boot into system.

I try follow steps in this thread and it works ?

https://xdaforums.com/xperia-xz/development/rom-existenz-n-v1-0-0-23-12-16-t3524599

But at this time, when I reboot system holding volumne down, I cannot boot into TWRP.

I dont know what is the problem here.

I used to root my previous Z2 without UB and it's so easy, but XZ is so complicated ?

Can anyone help me ?
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
OK, I got this one fixed.

Uninstalled magisk manager 5.5.x, wiped cache and dalvik-cache reflashed magisk 14.5

Works with all Drm keys including fido active.
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
(update)

I got random reboots once or twice a day.

Last one a few minutes ago. My phone wasn't used for over 30 minutes and in my pocket. So it wasn't something I've done.

Any idea?
[Sony Xperia XZ Guides, News, & Discussion] Pandemic:
Keep pressing volume down not holding, it may take a few seconds but kee pressing volume down and tadaaa there is twrp ;)

Verstuurd vanaf mijn G8231 met Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] xnevergonex:
I did a clean flash again and I can see TWRP now [emoji12]

Thank you friend :)

Gửi từ F8332 của tôi bằng cách sử dụng Tapatalk
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
Hi capo, did you get rid of the random reboots?
[Sony Xperia XZ Guides, News, & Discussion] Xperia S black:
Hello Karoma42. what windows did you use to create the boot img.?? I have been following the way you explain. Tu create that. But the program didn't recognize my TA. Img... Thank you very much.

Enviado desde mi F8331 usando Xperia News
[Sony Xperia XZ Guides, News, & Discussion] snake218:
Hi, what magisk version are you using? Are your drm features working?
[Sony Xperia XZ Guides, News, & Discussion] MKRashka:
Jep, everything is working fine except off the random reboots.

I'm using magisk 14.5 with Drm fix, all keys active, fido provisioned.