yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
Hello storm :)

superb work. but i got a problem. recently i upgraded to oreo and didnt like it so went back to 7.137 stock firmware. after reading this thread i followed everything carefully. installed recovery and all things went smooth but when i boot the phone after flashing those three files (kernel,magisk and drmpatch) the phone gets stuck on sony logo. have to flash stock firmware again to revive it. also in xperifirm 45.0.A.7.137_R7A is not available(its same version as the kernel you provided)

The modified kernel you provided is for R7A. and i think it is the problem. after i flash recovery then in recovery flash those three files then clear dalvik and cache and then phone doesnt boot.

what should i do now?
[Sony Xperia XZ Premium Guides, News, & Discussion] oneheart:
It looks like the kernel doesn't match. You try to restore the kernel(or restore full backup), and the patch fails，then startup success
[Sony Xperia XZ Premium Guides, News, & Discussion] jianlin3062:
Can not back up my own KEY? Like Xperia Z5？
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
so what should i do now? i cant find the 1.137_R7A firmware anywhere.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
No, read OP.

You can't. It part of having unlocked bootloader.

No that doesn't matter. Any of the 137 fw works. All you have to do is literally flash, go straight into fastboot, flash kernel, twrp and then boot straight into twrp to flash magisk and drmfix.

I'm using G8141_Customized CE1_1308-5321_45.0.A.7.137_R6A for example and it worked fine on all my xpz's.

No.
[Sony Xperia XZ Premium Guides, News, & Discussion] Mobfigurz:
I am in the same boat as SaadKhalid, my phone will not boot, stuck at the Sony Logo but I can force it down and get into TWRP, but nothing more. I used Newflasher to flash the system with stock files, but nothing changes. I am worried now.
[Sony Xperia XZ Premium Guides, News, & Discussion] oneheart:
https://xpericheck.com/device/G8142 here
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
cant download from alfafile. it says file limit is 1.00gb
[Sony Xperia XZ Premium Guides, News, & Discussion] oneheart:
I want to know where you're from，You should find a simpler way, such as a software

https://pan.baidu.com/wap/link?surl=1chNHnC&
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Good morning. Do you have the G8141 or G8142 (dual)? What is your installed firmware version?
[Sony Xperia XZ Premium Guides, News, & Discussion] Let1107:
How do you did a downgrade to android 7.1.1?
[Sony Xperia XZ Premium Guides, News, & Discussion] Emiliano7774:
please!! sorry for the bad inglish

I'm the same !! I'm a guy from Argentina and I'm right now going through this situation !! help now please !!!!!!

i'm i get the dual version. My phone does not work
[Sony Xperia XZ Premium Guides, News, & Discussion] Let1107:
pudistes repararlo?
[Sony Xperia XZ Premium Guides, News, & Discussion] Emiliano7774:
Yes. But with a old kernel. The dry fix is totally invalid here. I'm frustrated. ?. Something solution of my problem?

Sh-t
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
We can fix all, but I need more informations about what you did exactly. Did you flash the G8142 kernel or G8141? Was your device rooted or stock before?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Added patched AndroPlus_v06 kernel. Should work with both versions (G8141 & G8142).

Please give a feedback.

[MENTION=8265262]Saadkhalid786[/MENTION] [MENTION=8674853]Emiliano7774[/MENTION] You can try this, too!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Added patched AndroPlus_v04 kernel for 45.0.A.7.90. Please test it and give feedback!
[Sony Xperia XZ Premium Guides, News, & Discussion] JesperE:
Great work! However I don't have windows (and don't intend to get it either) so I can't use your XperiFIX.

Do I understand you correctly if I believe that following the instructions in the link above will give exactly the same results as if I used XperiFIX? And when (if) you complete the bounty for Z1 Compact (https://xdaforums.com/xperia-xz1/how-to/xz1-xz1-compact-lb-root-drm-backup-t3672176), will I be able to follow the instructions in the link in the quote above to root the Z1, or will there be another set of instructions somewhere which doesn't require win?

Regards / Jesper
[Sony Xperia XZ Premium Guides, News, & Discussion] ponytojas:
Why R4B? I'm using R6A without problem....

Don't think that customization cares, while it's Oreo everything should be ok
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
That doesn't matter in the slightest.

No you don't need win. You just need to be able to unlock bootloader, flash kernel+twrp via commandtool and then put files on your internal/external memcard and you're good to go.
[Sony Xperia XZ Premium Guides, News, & Discussion] Indashio:
Camara working good photo and video and all configuration but when move to all function camera stopped Not showing list Sony add-ons to camera. Luckily 3d creator and are effect possible opened from icon in launcher.
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
Keep in mind, the mentioned thread and tool is for the XZ1 (compact), not the Z1.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
[MENTION=8004595]FartyParty[/MENTION]

do you use twrp from official site, the original one.

or the modded one by storm
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Works here, so its on your end.

The one storm added is the one released by Myself5.

But yes, everyone is using that one because there's only that one.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Android 8.0 drmfix??? Works or not?
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Read OP.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
I have all read but I see too much bugs and idk I wait [MENTION=236992]Storm[/MENTION] answer
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
No you haven't. If you had you would know the answer by now :).
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
No, that's wrong. The TWRP version for Nougat is by Myself5. The TWRP for Oreo is a modded one (I did it) with different sources and other kernel. The Nougat TWRP (official) doesn't boot on stock Oreo.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Yes, DRMpatch for Oreo is included in XperiFIX. I updated the first post.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
I update to from setting did it work?
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Oh, sorry. I guess there's no benefit in using yours over myself5 if you're on nougat? I guess yours also have the restore bug?
[Sony Xperia XZ Premium Guides, News, & Discussion] Indashio:
Re. Camera application menu not working

I change phone name in build.prop Do you think it's through it?
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
Did you get these issue's too ? i guess not...

It did not work for me and like i mentioned before it work's now as i described and did this step by step earlier,.

It also states it on the first page thread "G8141 47.1.A.3.254 R4B". Read again.

I wrote this stuff to simplify Things for other people, if the app does not work for someone.

I wrote that whole thing to show up another method nothing more and nothing less.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
The version for Nougat is the official one. Just the Oreo TWRP is a mod by me. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] atl001:
Hello, and thank you sToRm and others for all this work! (ps. I sent a donation a few days ago!)

My phone (just updated to Oreo) hangs after reboot to TWRP, and for all my efforts and searching on the internet, I cannot get the phone to reconnect to my PC to complete the process. And TWRP is unresponsive to screen input. My ADB driver seems ok as the PC recognizes my phone when it's not in recovery (or fastboot). And fastboot works in fastboot mode as well. Does anyone have any ideas or suggestions?

Many thanks!
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
No and that just proves my point. You can use whatever fw you want as long as it's 137.
[Sony Xperia XZ Premium Guides, News, & Discussion] ryanz999:
make sure you're running the program as administrator mate mine was doing the same until i did
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
For me it didn't but now it does. proves my point.
[Sony Xperia XZ Premium Guides, News, & Discussion] atl001:
Thanks for the suggestion! Doesn't work for me, though. The phone disappears from the Device Manager list when it boots to recovery, and it doesn't come back with replugging the USB, trying different USB ports, trying the three ADB driver options, running as administrator, etc. Luckily the phone responds to the Vol+ plus Power buttons, otherwise it would be rather brick-like.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Did you install xz premium driver?
[Sony Xperia XZ Premium Guides, News, & Discussion] enige1993:
I changed my mind, the device worked, but by my mistake I installed a magisk module that now blocks the phone boot.

To be exact is this: https://xdaforums.com/showpost.php?p=72625558&postcount=264

Now I do not know what to do. I got the phone locked now, would anyone know how to help me?:crying::crying:
[Sony Xperia XZ Premium Guides, News, & Discussion] atl001:
In normal phone operation the PC uses the Sony sa0116 ADB Interface Driver (downloaded from Sony). In fastboot mode it comes up as "Android Device" and doesn't take the Sony driver. I use the Android ADB drivers and tried each of the three options (ADB Interface, Bootloader Interface, Composite ADB Interface).

Thanks for your help
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
No, that's not how it works. You can use whatever version of the 137 fw you want and you don't need to use R4B specifically.

Flash Magisk uninstaller via twrp/adb.
[Sony Xperia XZ Premium Guides, News, & Discussion] enige1993:
What a stupid thing I am. :silly:

Really I love you for your anser :D

But the recovery that I did not work, I did the fix with Oreo. :(

All the guides I found to flash .zip files use "adb sideload" but with a working recovery. :eek:
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Just do the fix again, that will remove Magisk.
[Sony Xperia XZ Premium Guides, News, & Discussion] arjun.arora:
Hey buddy, can you shed some info on how to update to oreo, my device is on nougat with bootloader unlocked. It was easy with flashtool but I guess it's not compatible with XZP.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Download Oreo with XperiFirm, get Newflasher.

Copy all Newflasher files and drop them in the fw folder.

Connect your phone in flashmode and double click Newflasher.exe.

This will wipe the phone but it is possible to do an upgrade without losing data.

You can also use Titanium Baclup.

When you're on Oreo you can use storms tool.
[Sony Xperia XZ Premium Guides, News, & Discussion] arjun.arora:
Thanks, a couple of questions, should I drop the newflasher files in the compiled ftf folder, also, can I downgrade to nougat afterwards if need arises..
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Yes and yes :).
[Sony Xperia XZ Premium Guides, News, & Discussion] arjun.arora:
Thanks a ton buddy..
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Previously on Android 7 Nougat my bootloader was able to be unlocked without any problem. However, after flashing to Android 8.0 Oreo my bootloader has been locked and cannot be unlocked. Why? In developer options I am attempting to select the option ''OEM unlocking'' and it keeps going back off.

Also when dialling '' *#*#7378423#*#* '' in the phone dialler it now says bootloader unlock ''no''

Why before it said yes it can be locked and now it cannot be unlocked? Previously it was unlocked and now it seems to have locked itself. I have root working on Magisk but do not have recovery and unable to unlock bootloader. :(

I'm currently using Android Oreo and unable to unlock bootloader or boot into recovery. Any suggestions? Thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
But once you've unlocked you can't relock, it's literally impossible since keys are gone so it's probably just a text bug.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Hmmmm. Because previously when I ran the XperiaFix application it seems to of gone just fine without any errors. I have root via Magisk and DRM keys hack as I tested the camera and Sony enhancements, all working fine.

Issue is I had no recovery. After trying several times to boot into recovery it would not do so.

Where may I download the recovery for Oreo and manually flash via Fastboot commands otherwise is it worth installing XperiaFix again?? What do you suggest? I require recovery quite badly! Even before when I managed to boot into recovery, it would freeze, not even able to use volume keys. CPU temp was even stuck on 0 degrees.

Thanks FartyParty.
[Sony Xperia XZ Premium Guides, News, & Discussion] xpt1:
after root i have an info on my Screen " Warrantytimeservice" how to remove it???
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
@ FartyParty

and for all who want to update without loosing any data

if you are rooted and have kernel ex: boot.img

download ftf from xperifirm and let extract to .ftf to complete the job with flashtool

after use prfcreator and create an .zip flashable file.

if you are rooted you can flash directly

if not rooted

for non root user

extract flashable.zip

then copy system.sin file to adb file location then

fastboot flash system system.sin

wait till finish

or you can use it in newflasher

no data loosed and if modem updated it will be update

thank you
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
The 137 part was just an example but ok, you can just whatever version of the OREO (254) fw you want.

No I don't know everything but I know you were wrong and that you for some reason can't accept that.

I've been wrong and guess what, I corrected myself and moved on.
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
is it just me or have Sony now removed their bootloader unlock for the XZp
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
It's never been on the list. Select XZ.
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
perfect :good:
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
For me the bootloader unlock also removed after upgrading to Oreo.

I had no recovery. After trying several times to boot into recovery it would not do so.

Where may I download the recovery for Oreo and manually flash via Fastboot commands otherwise is it worth installing XperiaFix again?? What do you suggest? I require recovery quite badly! Even before when I managed to boot into recovery, it would freeze, not even able to use volume keys. CPU temp was even stuck on 0 degrees.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
Got error with cam

[MENTION=8363210]sToRm//[/MENTION]

Some green pic after patch
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
The phone doesn't relock itself, it cannot relock itself.

Once you unlock it, you cannot relock it.

You can try the XperiFIX again or simply flash the kernel+twrp manually.

You could also flash Nougat again and have a fully working twrp.

The kernel.img, twrp.img can be found in the data folder inside XperiFIX
[Sony Xperia XZ Premium Guides, News, & Discussion] enige1993:
I have already tried it several times, but with no results, nothing changes.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Do a full Oreo flash.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
I will try flashing the twrp once again, will get back to you.

Ps. Can I flash just the recovery or must I flash both the recovery and kernel?
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
For flashing ur devuce with new flasher

You can keep these files and no loosing data if you want to use the new flasher

Some ome delete partition.zip file
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Good FAQ :).
[Sony Xperia XZ Premium Guides, News, & Discussion] enige1993:
Have I to do backup of .TA?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
You can't
[Sony Xperia XZ Premium Guides, News, & Discussion] shoey63:
Pointless. TA no longer contains DRM keys. They are in an unknown location which can't be determined without root. TA backup can't be done without root either. And you can't root without unlocking the bootloader and wiping the keys.
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
Meh,

I cant unlock the damed bootloader,

mine is listed as "Bootloader unlock allowed: No" when I attempt to use fastboot to do it comes up command not allowed.

changing OEM unlocking flag to enabled makes no difference and doesn't persist after a reboot

any ideas?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Are you on Oreo or Nougat? Is it a clean system or was it rooted before?

If my DRMpatch is installed, the configuration shows that unlock is not allowed, but it's already unlocked.

I don't know if there are devices which are blocked from unlocking by factory.

Maybe you could try to flash another firmware?
[Sony Xperia XZ Premium Guides, News, & Discussion] shoey63:
If you have that message, you will never be able to unlock. Blame your carrier. They have obviously asked Sony to provide them with bootloader unlockable phones.
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
Its never been rooted / unlocked, camera works fine which I take to be a measure of that success. would changing the firmware to a different carrier / generic, version make any difference? or is this locked down at a lower level?
[Sony Xperia XZ Premium Guides, News, & Discussion] oneheart:
Is the kernel base on kernel AndroPlus Kernel ？
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
HI [MENTION=236992]Storm[/MENTION] I need help to do it in oreo i cant when it reboot in recovery your app just dindt do nothing and I see the touch dindt work in android 8.0
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Did both, not working. I have root but no recovery. :(

Is there any way even to get a temporary recovery? Just to flash a zip? I need to flash SuperSU and the only way is via recovery.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I will include a patched AndroPlus Kernel in the next XperiFIX update. You can choose the stock or AndroPlus kernel then.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
okey bro

i will try

hope twrp works with like it is working with his kernel

thank u
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
I need help!!! android 8.0 cant remove read only message when I try to install drmpatch and root
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
@ sToRm, I managed to boot into TWRP, however it is frozen. I have the lock key, if the touch screen does not work, how am I to even use the volume keys to use the recovery?

The top left hand corner is showing ''CPU 0 Celcius''

I did however notice the battery dropped in recovery which means it is somewhat working, however, how to bypass the ''Swipe To Unlock'' issue as we cannot use the touch screen??
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Why the f*** hell nobody reads the instructions and notes?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
The clue to resolving your issues is

"Bootloader unlock allowed: No"
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
That isn't a solution to resolve anything. That might well be staying a fact, but as far as I know, that's an unproven fact as well. Unless someone know if there is a means to allow unlock or not.
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
Of course I read but you said recovery works but not touch, have to use the volume keys. But how to use volume keys if we cannot swipte to unlock when in recovery?

Sorry if I missed something!!
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
If it says u can't unlock the bootloader u can't unlock the bootloader
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Hi can you help me? do you have system read only in TWRP because i have and I dont know how to remove it I think i wonna downgrade to nougat
[Sony Xperia XZ Premium Guides, News, & Discussion] kanej2006:
I need help myself, lol.

Issue is recovery is not working for most people in Oreo, simply freezes and is unresponsive.

As Storm already mentioned, the only way to properly use recovery is by downgrading to Nougat otherwise be patient. :(:(
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
Hello [MENTION=236992]Storm[/MENTION]

i have a problem. on oreo the xperifix gets stuck on "booting the recovery" even after unplug and replug its stuck. cant move the window seemse like the app is stuck. i have R2B oreo for SA and unable to apply drm fix stuff on oreo. tried manually too but since twrp doesnt have tocuh support for oreo im unable to flash drm fix and magisk. please enlighten me.

many said that the R2B part should not matter but for me i think it does. on nougat i couldnt boot untill i flashed CE1 firmware(the firmware whose modified kernel is in your download) and everything went normal with that.

Can you maybe modify the SA R2B kernel to see if that helps?

Thank You.
[Sony Xperia XZ Premium Guides, News, & Discussion] atl001:
As an update, I was able to install the Sony driver for fastboot operation in addition to ADB operation, by first uninstalling the Google drivers. But it doesn't make a difference, the phone has no connection with the PC during recovery, nothing shows up in Device Manager at all. I'm also on R2B Oreo, G8142.

Is there any setting on the phone that might affect whether it has ADB connection during recovery? Obviously USB debugging is enabled, and the PC is authorized, and I've tried (pre-)setting different modes of USB operation (MIDI, file transfer).
[Sony Xperia XZ Premium Guides, News, & Discussion] weso565:
WarrantytimeService nervt!

WTF?!

Was ist das und wie bekomme ich das wech?! :rolleyes:
[Sony Xperia XZ Premium Guides, News, & Discussion] JesperE:
Ooops... ...thanks for that clarification. I believe I was just too eager to find a solution so I didn't read carefully enough. :rolleyes:
[Sony Xperia XZ Premium Guides, News, & Discussion] Compist:
Didn't work :(

I tried this fix, but it didn't work for me.

XZ Premium Dual Sim (G8142) running Oreo.

I have the CE1 firmware installed to enable the fingerprint reader.

When I tried to use your XperiFix so I could reenable all the camera features, it gets stuck at "booting recovery".

On my phone screen, it says enter password on a menu with mount/dismount at the top. The touchscreen doesn't work at this point.

I read your FAQ about the functionality of TWRP, so I waited a few minutes, then I unplugged the cord and replugged it in. At this point it booted the phone into it's existing firmware, and the tool ran through it's remaining functions, then stated it was complete. When I test the phone.... no change.

Any idea what's happening?
[Sony Xperia XZ Premium Guides, News, & Discussion] whoosename:
Do this:
[Sony Xperia XZ Premium Guides, News, & Discussion] Compist:
Worked!

You Sir, are a genius! Thank you!
[Sony Xperia XZ Premium Guides, News, & Discussion] Mangtas_666:
You can't unlock the bootloader if it says "Bootloader Unlock Allowed: NO"
[Sony Xperia XZ Premium Guides, News, & Discussion] atl001:
Worked for me too! Thank you!
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Do you have nougat or oreo:confused::confused::confused: