yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] vicl89:
For me it only flashes recovery but doesn't flash the kernel and doesn't root. I'm on the latest firmware on Oreo (47.1A.5.51) Any clues??

UPDATE: IT FLASHES THE KERNEL AND RECOVERY BUT IT DOESN'T FLASH THE ROOT NEITHER THE DRM FIX. ANY CLUES?
[Sony Xperia XZ Premium Guides, News, & Discussion] Indashio:
I don't see on the list in xperifix new version 47.1.A.5.51 Old number version working with this version firmware ?
[Sony Xperia XZ Premium Guides, News, & Discussion] F1Fanatic27:
Did the same for me, but you can just manually copy the files to the phone, boot into recovery and flash them. You can only flash the DRMpatch and Magisk (they're the only zip files), but that works for me as the kernel flashed okay (I would hope so anyway as that's the first thing that XperiFix does), it just missed DRMpatch and Magisk as the program tried to do it before recovery was even open.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Sure, updated XperiFIX yesterday. Download and install the new version.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
If XperiFIX doesn't flash the zips, the PC doesn't recognize your device in ADB recovery mode. That's a driver problem. A few users had this.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
the driver is in device manager name sony 00116 i think

it is working with me like a charme
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Something funny, I have 1 computer and 2 laptops. On 1 laptop I'm having the Sony 00116i adb device driver, works like a charm.

On the second laptop, I have Samsung ADB drivers, also works fine, haha.

Anyone having issues with Sony drivers, simply get it from Sony website.

Official drivers for XZ Premium - https://developer.sonymobile.com/downloads/drivers/xperia-xz-premium-driver/

Manually update the drivers via Pc/Manage/Device Manager and update or install ADB Driver.
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
Flash it manually
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
This does not really relate to this thread, but some users had issues with their camera.

It may be a Sony Oreo problem and have nothing to do with Xperiafix. I did find on GSMARENA a post about a new Sony XZ Premium security patch for November as well as camera improvements and fix .

https://www.gsmarena.com/newscomm-28183.php

Now that we have working recovery with touch, once this patch has been uploaded, we could simply flash it via TWRP??
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
Thank you @sToRm :)

used manual method and successfully flashed the 5.51 oreo and flashed DRM fix and kernel. everything is so far so good. why the heat issue though? every OREO i installed i faced excessive heatup and battery drain. this is the only reason i kept returning to nougat.

twrp touch is working fine with OREO thanks to you

regards.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Strange, bad luck for you. :(

I've been on both Nougat and Oreo. Both very similar. I have no battery drain in either nor overheating.

Battery life is equal. Oreo is only snappier and faster, good improvement. Ram management is also better than Nougat.

Even with heavy gaming I've never had the phone get hot or overheat. Perhaps it is your device? If you have insurance or guarantee, try to replace your Xperia XZ Premium with another, see if it helps.

In fast, the XZ Premium is the first Sony I've had where I cannot feel any heat at all even in intense gaming!! Well done to Sony.
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
no problem in gaming. it looks like an app is running and making all the cores run at full speed. cant be identified in battery stats tho. till now i have changed from nougat to oreo and vice versa about 100 times. heating issue appears and disappears sometimes. ill recalibrate the battery to see if it helps. and you forgot the fact that im on this thread cause i unlocked and rooted it :D
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Current XperiFIX version has the updated files included. Just update the firmware and then use XperiFIX again.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Ah yes, could be a bad app, 90% probable cause.

Amazing, thank you so much, great to hear! May I ask, where do we get the updated firmware? I don't wish to flash an entire 2.70Gb rom or is there no other way just for the update?

Thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] Shellyaffff:
Can i update to oreo and keep my system as it is and if i have andro plus kernel will i get auto update
[Sony Xperia XZ Premium Guides, News, & Discussion] ryanz999:
HI mate how did you get it to install im stuck the same bootloop through magisk and cant install through any of the apps
[Sony Xperia XZ Premium Guides, News, & Discussion] zoolapie:
XperiFIX don't works for me in Oreo. Can i have only DrmPatch to patch it manualy?
[Sony Xperia XZ Premium Guides, News, & Discussion] Nikom69:
For me, litlle pb exists.

I upgraded my g8141 to newer fw 5.5.51. (clean install with newflasher, all erase).

After that, i take the new v. (09/11) of your [MENTION=8363210]sToRm//[/MENTION] tool. On my pc and device, it seems good but when i reboot my device, i don't have any app like magisk ? (however i had it when i was on 7.1).

I tried to flash with twrp the drm patch wich found in device, but doesn't work.

Could someone help me please ?

(congrats for your unbelievable work [MENTION=8363210]sToRm//[/MENTION])
[Sony Xperia XZ Premium Guides, News, & Discussion] Emiliano7774:
It's done! Thx a lot. Really a lot. I'm donating in a few days. Sorry for my bad inglish and let's make more good work! Regards!

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

The files to patch manually lie in the folder of xperiFIX
[Sony Xperia XZ Premium Guides, News, & Discussion] Nikom69:
Perfect ! Works for me. Now i'll try to install SuperSU 2.79 and adway. Hope i'll not have any su binary pb (occupied or impossible to update like i had on 7.1)

Thanks everybody !
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Don't install SuperSU after Magisk. You don't need it...
[Sony Xperia XZ Premium Guides, News, & Discussion] Nikom69:
ok ;)

maybe that's why i had issues on 7. ?

[at this moment, my device stay on "Xperia screen"... i think i'll have to remake everything :(]
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Try to boot TWRP and wipe cache + dalvik. Maybe that helps. If Magisk is on your device, you don't need SuperSU because Magisk is similar to it. But it has way more functionality. If you flash both, the system will get unstable...
[Sony Xperia XZ Premium Guides, News, & Discussion] Nikom69:
Perfect. In first, you do a perfect job, in second you take the time to answer with details at any questions........... ahaha!!

Thanks a lot lot lot !!

(my english is not very very goog, but i think you can understand !) :laugh:
[Sony Xperia XZ Premium Guides, News, & Discussion] MrColaOne:
Missing DLL

Hi at all,

i have a big problem, when launching xperfix (as administrator) missing a dll (libwinpthread-1.dll). How can i fix it?

thank you!!
[Sony Xperia XZ Premium Guides, News, & Discussion] F1Fanatic27:
Just search it up on Google and download, then put it in the XperiFix folder. Worked for me.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
I just flashed the latest 47.1.A.5.51 R2B firmware. I ran the latest XperiaFix, however, I do not have Magisk installed. Recovery is available and working but no Magisk, strange.

Good news, I manually flashed Magisk via recovery and it is working with root!!
[Sony Xperia XZ Premium Guides, News, & Discussion] nintendolinky:
Any reason why the touchscreen doesn't work in TWRP
[Sony Xperia XZ Premium Guides, News, & Discussion] enige1993:
Perfect ?.

Thank. [MENTION=8363210]sToRm//[/MENTION] [MENTION=8004595]FartyParty[/MENTION]

Francesco.
[Sony Xperia XZ Premium Guides, News, & Discussion] ishemes:
Please read the thread. It is really annoying to get questions about a problem that was discussed in the thread for a few days and then a developer works on the problem through the night and then a fix comes out and then somebody asks if there is a reason why there is this problem...
[Sony Xperia XZ Premium Guides, News, & Discussion] nintendolinky:
So why doesn't the touchscreen work? would have been far easier for you to just answer the question. :)
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
It works. I fixed TWRP in the last XperiFIX update. If not, you used the wrong version.
[Sony Xperia XZ Premium Guides, News, & Discussion] nintendolinky:
Thanks mate, sorted.
[Sony Xperia XZ Premium Guides, News, & Discussion] AlexSkiff:
How I did it.

I tell how I did it. May be It can be useful.

I upgraded to Oreo and the camera stopped working. I've done XperiFix many times, but it did not help. Then I carefully read the posts from sToRm and other and decided to do everything manually. I'll describe how I did.

1. Downloaded using XperiFirm latest Oreo 8.

2. In the folder with this firmware, deleted the file "userdata_X-FLASH...sin

3. Using newflasher, I installed Oreo on the device.

4. As sToRm wrote, with fastboot installed TWRP (fastboot flash recovery twrp.img).

5. I went into TWRP mode and connected usb to the computer and copied files from the folder XperiFix to the device - kernel.img, Magisk, Drmpatch. If you can not copy files to the device, make a new TWRP installation ( see 4) until you can do it.

and then I did as Storm wrote:

"" 2 - Kernel "which you copied to your device., That you do not have a phone. First, go back (back button) and continue with the following point ...

4. Flash root (Magisk)

Just as the kernel was installed, you can now install Magisk. Search the archive for Magisk (Magisk-v14.0.zip) in the folder "3 - Root", which you copied to the mobile phone. Select the archive for installation. Then go back again without a reboot and continue with the next point!

5. Flash DRMfix (sToRm_restore DRMfix)

As with the Kernel and Magisk, you can also install the DRMpatch (DRMpatch-sToRm.zip) from the folder "4 - DRMpatch". Select the archive for installation.

Finally, you can "clear cache & dalvik" aaaaaaaaaaaand REBOOT! "

Now camera work!

Thank so much sToRm and all Developers!!! YOU are the BEST!
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
I did EXACTLY what you did, not for the camera issue but something else. For some reason, after flashing the Xperifix, I had no Magisk or root. Recovery was present but for some reason no root or Magisk.

I however manually flashed via recovery DRM fix and Magisk, same ones found in the folder of Xperifix.

Rebooted the phone and both root and Magisk visible and working. No issues with camera or anything else.
[Sony Xperia XZ Premium Guides, News, & Discussion] AlexSkiff:
Userdate file

And what about "userdata ...sin"? Before you flash, are you remove this file from FW folder?
[Sony Xperia XZ Premium Guides, News, & Discussion] Devries:
Hello, is this drm patch need specific kernel signature?

I will also make a custom kernel for XZP, can I integrate the patch you released directly?

Thanks
[Sony Xperia XZ Premium Guides, News, & Discussion] burtallicus:
Great job sToRm//

so to be clear .... there is still no way to back-up DRM keys of actual device ? and this DRM fix is just circumventing the fact that they are missing, right? i mean ... upon booting "the DRM" is tricked into belive that the keys are there?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
If you want to use the patch with your own kernel, you should include the exports for the preloaded libs in your ramdisk.

file: RAMDISK/init.environ.rc

After that you can flash your kernel and also flash my DRMpatch (DRMpatch-sToRm.zip) which contains the preloaded libs and the patched secd (required).
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Yepp.
[Sony Xperia XZ Premium Guides, News, & Discussion] gerald.mrrsn:
Stoked to see this ?

Thank you so much for your hard work.. I'm on the new oreo update now and love the new update so I'd definitely like to stay on it, so I was just wondering if you'll be posting a updated Kernal for oreo anytime soon or is it not possible yet? Sorry I don't know much about the more technical stuff besides on the basics that most ppl with modded phones know already ? I can't wait till you do anywho so I could unlock my phones potential finally ?
[Sony Xperia XZ Premium Guides, News, & Discussion] bosskillers:
hello Storm I wanted to say thank you for this work, immediately after you posted the tutorial I got to work, the phone and root, TWRP, MAGISK and Xposed are on it, I'll be able to have fun week end is a great day for the holders of the XZ Premium
[Sony Xperia XZ Premium Guides, News, & Discussion] will0n:
What about the bounty thread? Any pp link?

And a noob question here: does it matter if I update the firmware to Oreo before unlocking and recovering the drm key?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
If you want to donate, there is a link in the first post of this thread.

Oreo? Please read the first post. The patch is not tested with Oreo! It's for Nougat latest x.137.

I will try to patch Oreo later.
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
There's a donation link right below every of his posts.

The patch doesn't work for Oreo yet, see first post.

This patch doesn't backup/recover your DRM keys, see first post.
[Sony Xperia XZ Premium Guides, News, & Discussion] gerald.mrrsn:
Awesome all I was just wondering was when you'd possibly post a updated one for oreo ? cause I'm so stoked I can't wait to try it out, possibly when I get my pay soon I'll hook you up with a donation as the oreo update and your hard work just made my day today ?
[Sony Xperia XZ Premium Guides, News, & Discussion] richardwia:
hi sToRm，did you get the bravia engine patch in the drm fix package?

it also be a important elment.

thks
[Sony Xperia XZ Premium Guides, News, & Discussion] will0n:
Thank you for informing. :)
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
WARNING!

There are a few users reporting problems with the kernel (sticked in Sony boot). It's because they used the wrong kernel version!

Please note: BEFORE you flash the kernel, make sure you have the right version! Phone Settings -> About -> Model / Build number

In the downloads you find kernels for different versions. You can flash the patched AndroPlus kernels (from me) also, if you have problems with the stock kernels. Check the relevant version here https://kernel.andro.plus/yoshino.html and then flash my patched kernels of AndroPlus (in the download pack or under the alternative downloads).

Because some users had AndroPlus_v05 kernel on their phones, I will patch this kernel right now and add the download link in the first post. They can flash this kernel and after that Magisk and DRMpatch, as in the description.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
It should work. I used the old drmfix by tobias.waldvogel and included it. So it should be the same functionality on XZP as it was on older devices.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
INFO:

I had a look into Oreo firmware and noticed that Sony must read my threads and brainstorming here! They changed some things in relevant system files to hide strings by reverse engineering their stuff! The "huj huj huj" is deleted and the subs changed. Also they changed the functions a little bit, so that it's different than before. Hahaha... They really think I am stupid as ****, huh? Give me a few days. I will flash Oreo and do my job. LMAO...
[Sony Xperia XZ Premium Guides, News, & Discussion] richardwia:
Thank you so much
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
[MENTION=236992]Storm[/MENTION]

Hello! i saw that you added g8142 R5A firmware so using xperifirm i downloaded and flashed CE1_R5A firmware and then followed OP and its all successful now :)

thank you for your response

I really appreciate those weeks you spent on it and did not give up.

---------- Post added at 10:32 AM ---------- Previous post was at 10:30 AM ----------

i got G8142 Dual sim variant. its all successful now :D

---------- Post added at 10:33 AM ---------- Previous post was at 10:32 AM ----------

by using munjeni's newflasher.
[Sony Xperia XZ Premium Guides, News, & Discussion] burtallicus:
guys, do you think that this could lead to a root without unlocking bootloader?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Nice to hear that! :cowboy:
[Sony Xperia XZ Premium Guides, News, & Discussion] niil:
Great job!!! Thank you! But 2 days ago I upgraded it to Oreo.(((( Whats about patch for Oreo rom?
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
You remove it if you want to keep your data when updating fw.
[Sony Xperia XZ Premium Guides, News, & Discussion] AlexSkiff:
I dont know

I dont know, why it's need, but sToRM told about it. I think doesn't relation between your data and "userdata" file. Probably, this file has relation to the kernel that we are flashing with TWRP.
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
I'm getting a fastboot.exe error.. "The application was unable to start correctly (0xc000007b), Click OK to close the application."

Made sure I have the XZP drivers installed. Currently on W10 fall creators' update, 64 bit. Any ideas?

EDIT: Just did the manual way and it worked fine.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
No, the userdata.sin wipes the users data and apps if you flash it.
[Sony Xperia XZ Premium Guides, News, & Discussion] shafiq01:
Greetings [MENTION=236992]Storm[/MENTION]

G8441 aka XZ1 Compact has same firmware version, could I use same fix as for G8141

Maybe not, unless i want a brick hehe..

Anyway, you said when twrp is okay on oreo

You would consider the new phones.

Do you need anything to proceed, the let me know

Thx
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
No, I recommend to wait. Actually I check the other devices. Don't flash the files for XZP, I am sure it can brick your device.
[Sony Xperia XZ Premium Guides, News, & Discussion] shafiq01:
Thx I will use another phone in the meantime then

Don't like those green pictures. Just unlocked it yesterday. What will happen next year with H devic es i wonder.. Then we start the chase again hehe
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
If you want to, you can test my fix for XZ1c. I will send you a PM with more details and the files tomorrow.
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
I can see you have your problems with the XZP, but you would make lots of XZ1 compact users happy if you could port your amazing work across.

Happy to donate in recognition of your top work.
[Sony Xperia XZ Premium Guides, News, & Discussion] shafiq01:
That could be awesome. Thx..
[Sony Xperia XZ Premium Guides, News, & Discussion] Aerocap:
You can get the working file here: https://www.dll-files.com/download/...1.dll.html?c=a1ZwSTdtR2JQQkJvRTlQWE9laytMQT09

Then just do as [MENTION=5186629]F1Fanatic27[/MENTION] said.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
[MENTION=8363210]sToRm//[/MENTION]

i found that drm not fixed in 3rd party camera applications

i used some others app others than sony camera but pics not fine more of noise and grain

they are fine before the unlock

sony stock camera is great.

can u take a look of it.

thank you bro
[Sony Xperia XZ Premium Guides, News, & Discussion] enricostella:
Hi,

first of all MANY THANKS to sToRm// for your great work, it saves my XZP (G8141) this week :)

As a Mac user, I had to "cheat" a little bit in order to get the XZP working.

I've tried Xperifix on a PC but get also the "libwinpthread-1.dll" error so I decided to flash it manually via Fastboot on my Mac and then via TWRP.

IT WORKS LIKE A CHARM !!!

If it can help Mac users, I proceeded as follow (of course, with unlocked bootloader):

1. Clean install of Oreo 47.1.A.5.51_R2B downloaded with Xperifirm (G8141_Customized FR_1308-9476_47.1.A.5.51_R2B although I'm from Switzerland) and flashed with newflasher_v10 and I did the first start/configuration of the mobile.

2. Grabbed the 4 files from Xperifix folder C:\XperiFIX\DATA\XZP\G8141\Oreo2 (I hope it's not a problem for you sToRm// to proceed like that) and copied in the SD card of the XZP.

3. Put the XZP on recovery mode and then Flashed TWRP file from the XperiFIX folder via fastboot on Mac.

4. Reboot the mobile in TWRP mode and then finally flashed the kernel, magisk and drmpatch in this order as explained on the tutorial.

5. clear cache & dalvik and reboot et voilà, I was the happiest man in the world !!

THANK YOU ONCE AGAIN VERY VERY MUCH, I will donate by end of month :)

CHeers

Enrico
[Sony Xperia XZ Premium Guides, News, & Discussion] YasuHamed:
sir [MENTION=8363210]sToRm//[/MENTION]

for devices xperia X and XZ

for android 7 and below, we had been using script by [MENTION=357342]tobias.waldvogel[/MENTION] at https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

it doesn't support oreo

can you add patch for OREO ? for X and XZ please ? they came on android6 hence the old method of dirty cow script works, i have my TA.IMG.

possible sir ?
[Sony Xperia XZ Premium Guides, News, & Discussion] ken2802:
So unlocking the bl will wipe the device?
[Sony Xperia XZ Premium Guides, News, & Discussion] ponytojas:
Yes
[Sony Xperia XZ Premium Guides, News, & Discussion] Shellyaffff:
latest oreo how can i use super su i dont want magisk
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Flash SuperSU.zip with twrp

---------- Post added at 09:54 PM ---------- Previous post was at 09:52 PM ----------
[Sony Xperia XZ Premium Guides, News, & Discussion] Shellyaffff:
Downloaded and installed new oreo latest one now I have no Internet data everything else works fine I'm on o2 but installed virgin firmware new one
[Sony Xperia XZ Premium Guides, News, & Discussion] Tonyevol:
Did you try to put your operator carrier internet data settings manually?
[Sony Xperia XZ Premium Guides, News, & Discussion] Shellyaffff:
No

---------- Post added at 11:00 PM ---------- Previous post was at 10:58 PM ----------

Just did it's worked set it up
[Sony Xperia XZ Premium Guides, News, & Discussion] ryanz999:
just connect to wifi and go into settings / network and internet / click on internet settings and it will automatically download them for you
[Sony Xperia XZ Premium Guides, News, & Discussion] fir978978978:
I ask whether it is supported by the device?

My XZP

Model: G8142 @ Android: 8.0.0 @ Build: 47.1.A.3.254 1308-6877 R6B

I ask whether it is supported by the device?
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Yes, which it states in the OP.
[Sony Xperia XZ Premium Guides, News, & Discussion] jsbutran:
Please help. Not able to set up ADB and fastboot on my windows 10. Windows does not recognize the device connected in fastboot mode. how to go about it.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
When you boot into fastboot and then go into device manager, are there any yellow triangles?

If there are right click and update drivers, browse for driver manually, pick from a list, select android, select ADB driver and install.
[Sony Xperia XZ Premium Guides, News, & Discussion] ken2802:
a few question based on that:

Can i back up the apps with the xperia companion and then restore the apps with it afterwards once the drm fix is applied?

Does magisk work on the device?

can i later if i ever want to go back to stock with bl lock?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
XperiFIX Update ++++++++++

- Fixed missing libwinpthread-1.dll. Now included in my new AndroidLib build.

- Fixed missing start menu link to XperiFIX.