yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] munjeni:
This is from G8141_Customized CE1_1308-5321_45.0.A.1.229_R6A -> https://pastebin.com/J2qCCmpM I don't think there is something changed in case lock <-> unlock because of the dmverity!
[Sony Xperia XZ Premium Guides, News, & Discussion] zxz0O0:
The device key is used to decrypt credentials for various Sony apps. On older Sony phones (e.g. Z3C), there is over 200 credentials. While the device key is device specific, these credentials are not. The drm fix works by hardcoding these credentials and hooking the function to return them when they are requested. The original function would fail to get the credentials because the device key is missing.

Maybe Sony changed these credentials / added additional ones and that's why the drm fix is not working anymore.
[Sony Xperia XZ Premium Guides, News, & Discussion] beta199:
Hi, I have a locked, untouched phone, happy to help, can I get the build.prop file?
[Sony Xperia XZ Premium Guides, News, & Discussion] the_brad:
https://drive.google.com/uc?id=0BzEmiGcuf7IiRnVURVoxaFQyaUk&export=download

This one is from an unlocked G8141 running 45.0.A.7.120 (in the case, there might be any differences to munjeni's version).
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
The reason why I asked for the build.prop is, that there are some properties which are checked in the secd. When I change them, the FIDO_KEY and ATTEST_KEY change from "Not provisioned" to "Provisioned" in the service menu.

Changed:

# FIDO key provision state and version
persist.keyprovd.fido.prov=false
persist.keyprovd.fido.version=0

# Attestation Key provision state and version
persist.keyprovd.attest.prov=false
persist.keyprovd.attest.version=0

# Suntory BLOBs have been processing state
persist.keyprovd.suntory.prov=false

to:

# FIDO key provision state and version
persist.keyprovd.fido.prov=1
persist.keyprovd.fido.version=0

# Attestation Key provision state and version
persist.keyprovd.attest.prov=1
persist.keyprovd.attest.version=0

# Suntory BLOBs have been processing state
persist.keyprovd.suntory.prov=1

Strange...
[Sony Xperia XZ Premium Guides, News, & Discussion] zxz0O0:
Hook the send function in credmgr and log the calls which have the first int of the buffer as 1. That's how the cred request worked in earlier versions. Would be interesting to see what's sent back.
[Sony Xperia XZ Premium Guides, News, & Discussion] shadimar69:
Let me be the second to say....

WOOOOOOOOOOOOOOOOooooooooooooooooooooooooo000000000000000000000000000000ooooooooooooooooooooooooo!!!!!! :D

Also Thank You for all the hard work and persistence. :good:
[Sony Xperia XZ Premium Guides, News, & Discussion] Mobius-1:
Kick ass m8. Awesome to hear. Love that feeling of solving a hard problem, revel in it and enjoy :) I'm assuming you cracked this on Nougat? Wonder if it's version agnostic or if something has changed in the Oreo update.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
As soon as I have a fully working "fix pack" for Nougat, I will patch Oreo, too.

Will upgrade the next days, if I got time for it.

;)
[Sony Xperia XZ Premium Guides, News, & Discussion] ishemes:
I am SO FRICKING HAPPY that you bought the same phone I did! Thank you for keeping at it and keeping us up to date. :D :D :D
[Sony Xperia XZ Premium Guides, News, & Discussion] xshunin:
Heck yeah! :D So happy to hear that. So I won't update to Oreo just yet I guess.
[Sony Xperia XZ Premium Guides, News, & Discussion] schickel:
Sauber Bursche!

Hey, we have to go to Augustiner and you get from me a Mass or two or three ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] LukeyWolf:
Nice one, congratulations you should be proud and to those f***s over at the bounty thread that gave up, this is what being patient gets you and thanks for all the dedication and hardwork hope to see you on the xda news area bit!
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
Wouldn't be opposed to be in on that ;D

So to sum up, there's no way yet to back up the TE-partition/DRM keys, and when I unlock my BL, they're still be lost.

But with the now working DRM fix in place, programs installed would still think they're there in case I have my BL unlocked and work without problems? (camera, display etc)
[Sony Xperia XZ Premium Guides, News, & Discussion] ponytojas:
First of all, congratulations, you get it and it's awesome

Could be interesting if you can release some guide of how you get it and what steps you follow, just for future devices and developers can have some way to start to try to make the fix, and not need to start from scratch as you.

And again, congratulations, you're the men
[Sony Xperia XZ Premium Guides, News, & Discussion] benengyj:
Holy ****. Great job!
[Sony Xperia XZ Premium Guides, News, & Discussion] RS7Quattro:
F**k yeah. You have it. Congratulations!!!! Now i still checking this Thread for 24/7 To get more information.

Kauft diesem Mann ein Bier!
[Sony Xperia XZ Premium Guides, News, & Discussion] onkelfeix:
Looks like it was a good timing buying the XZp last week :)

Great job , i'm really looking forward to root/flash custom roms .... have been using my Galaxy S6 for ~3 years almost the whole time rooted or at least with custom roms and forgot how bad is to not have a debloated device without built-in adblocker etc
[Sony Xperia XZ Premium Guides, News, & Discussion] ex3meex:
I fukin love this guy, thanks storm!!! you're doin a great job here bro:svetius:
[Sony Xperia XZ Premium Guides, News, & Discussion] serajr:
It will just be epic! :fingers-crossed:
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Congratulations STORM, MACS1209, MUNJENI AND PBARRETTE!!! ?????????????
[Sony Xperia XZ Premium Guides, News, & Discussion] Charos87:
For those of us who still wish to honour our pledge, do you have a PayPal address or such we can donate to? I know my pledge wasn't much but I will still donate what I can!
[Sony Xperia XZ Premium Guides, News, & Discussion] Strungout01:
You the man Storm!!! I have been waiting for this day for a long time, now we can finally start developing the phone with full functionality! You are awesome!
[Sony Xperia XZ Premium Guides, News, & Discussion] iKlutz:
[MENTION=8004595]FartyParty[/MENTION] you'll be pleased mate!
[Sony Xperia XZ Premium Guides, News, & Discussion] Mobfigurz:
If you look at each of his posts you will see information under the username and one of the things that stands out is a big yellow 'Donate to me' button, click that and donate whichever amount you can afford.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Really nice! I rooted my XZP right after I bought it and had no chance to try the camera in full functionality. Today I took the first pictures with the original quality. Awesome! Haha... Love it!
[Sony Xperia XZ Premium Guides, News, & Discussion] xshunin:
Will there be a guide later? All the numerous threads with spread information are a bit much for me to process.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Sure ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] raphaelyuxun:
I'm a Sony user from China. I love the phone and my friends like the look of it as well. But the problem is, I didn't do my homework before I bought it since it was pretty much an impulsive purchase: mainland China version of XZ Premium totally removed Google Framework and nothing in the Chinese community can install a working one on the phone either. It sucks cuz many foreign APPs won't install or run properly without Google Framework, including Whatsapp, Twitch and many games. For the time being I had to use two phones to meet my working needs. Jesus that was terrible experience. I Googled about rooting the phone but got stopped by the fact of irreversible DRM lock and camera malfunction. Then I tried HK firmware but faced a choice between OTA upgrade and VoLTE, one had to go and I couldn't really make the choice.

Then I saw this thread, and kept checking it for a while with pretty much all of my hope of a perfect phone. Recently Oreo came around and just a few hours ago I decided to give up VoLTE and just flash the HK 8.0 firmware. Malfunction reports of the HK and Malaysian firmware were all over the Chinese community but really I gave up. I was like "f**k this sh*t man, I just want a phone with Google service". Just before I finish downloading the HK firmware, I gave one last peek to this thread and saw your post. I swear to god I woke up quite a few people in my floor since it was around midnight here :p I think I spilled several gallons of excitement on my floor.

Thanks man, really. I did nothing but waiting, yet still gave up. But you didn't, even after more than half a year after its debut. Hats off.

idk if I can still recover my Paypal but if I can't I will get a new one. Good job man, you saved my days with XZP. Thank you so much for your perseverance.

From an almost desperate Chinese user

LMAO it seems I put too much unnecessary information here. Sorry if it spammed or took you too much time. Just wanna show how much your work affected me and how grateful I am. Thanks again.
[Sony Xperia XZ Premium Guides, News, & Discussion] Superfish86:
This has made my day bro. Been checking almost every day for months. G f***** g.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Hahahaha... This made me smile :) Nice to hear that. I think there will be a lot of happy users out there. And yeah... It took tons of hours of brain**** and I was almost at give up stage, just because the bad things that happened the last months (3 persons of my family died, stress at work,...). But finally I got my balls back and did it.

I have the flashable fix and also the kernel ready. I will test some things and try to optimize it. Then I will create a new thread with download and instructions. It will be really easy :cowboy:

After that, I want to upgrade to Oreo and do the job again. Now I have a clue where the relevant functions are.

Everybody is welcome to donate. Would make me happy, because I love pizza. There were discussions about a paid fix, but I don't really want to do that. Donations keep up the work (I invested tons of hours at night and had to work on the next day... Haha...). Maybe I can create a fix for other devices, too. And also there is my tool (Windows) for other things on XZP. Maybe I can create a full and easy tool for all.

Cheers!

Cheers!
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
WTF?? Holy candy! GZ!!

I just called my brother that I gave my other Pink XZP and he got superhappy :).

He also have his rooted, magisk'd and xposed.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
Cheers

Try your file with sony xz1 and i will donate for you.

Sold my xzp and got xz1

Both have same chip and system

Thank you
[Sony Xperia XZ Premium Guides, News, & Discussion] whoosename:
Here you are! Transaction ID:01464016SP136263J
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
If somebody has a rooted XZ1, I can do that. I have only a XZP here to test things. ?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Thank you :good: nom nom nom :D
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Do you have any ETA when you might be ready to let us test it :)?
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
[MENTION=507649]devs[/MENTION]: I wonder if we change video capture to 4k 60fps in devices xml and qualcomm libs, what happens?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
There's always one......
[Sony Xperia XZ Premium Guides, News, & Discussion] Saadkhalid786:
i just knew it :D

Devs here rock (big time) :)

i had a feeling that devs are very very close to success and IT HAPPENED :DDDD
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Yes, deal with it.
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
Would rather people like you were just patient, asking for an ETA won't make the release come any quicker so just appreciate what's been done and wait until it's ready
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Keep wishing, I will not stop asking for ETAs because you want me to.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Relax, it's an awesome day ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
Tomorrow i will get one xz1 , xzp is big for me i sold it
[Sony Xperia XZ Premium Guides, News, & Discussion] Knowbody42:
Hopefully the Oreo update doesn't break Storm's DRM fix.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I will crack Oreo, too. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] supermaus100:
When can you count on the DRM Fix?
[Sony Xperia XZ Premium Guides, News, & Discussion] ishemes:
I just realized that this is a DRM fix. Meaning that the phone still works after your patch, even if the DRM keys are gone right? Well... That really pisses me off! It means Sony is not afraid that somebody will steal their proprietary code and removed this proprietary code during the unlocking process. Instead they just leave everything intact but do not let us use the phone to its full potential anymore. That's like punishing us for trying to enjoy their phone more...

I really don't understand that position Sony takes and they make me feel stupid for spending money on a Sony phone...
[Sony Xperia XZ Premium Guides, News, & Discussion] Mackay53:
When it's ready
[Sony Xperia XZ Premium Guides, News, & Discussion] chesterr:
Congratulations brother, amazing work. We're hoping to see the release soon. And hoping after this you'll be working on TA backup. :highfive:

I am like chanting your name here man "sToRM sToRm sToRm" :D , So excited. :)
[Sony Xperia XZ Premium Guides, News, & Discussion] Stillmoving:
oh ，I can't wait ， thanks
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
For release? :good::good::cyclops::cyclops:
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
i got my xz1.

what i want now is the kernel (the modded one to have root)

any help.

aftee that i will root and test your work or if any ta backup i will backup and root.

now waiting for your oreo files

have a good day
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I will release it today or tomorrow. For xz1 I could patch the kernel and release it, too. Have to check the firmware files before.
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
Keep in mind, the XZ1 series phones come with Oreo out of the box.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
WOHO, can't wait to tell my bro when you've released it. So that's another reason why I'm excited for release :P.
[Sony Xperia XZ Premium Guides, News, & Discussion] jianlin3062:
Donation, support Alipay payment? I come to China.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
i can pay with internet visa card here in my cou try don't have paypal ?

---------- Post added at 03:22 PM ---------- Previous post was at 03:20 PM ----------

xz1 and xzp have same oreo serie firmware

47xxxxxxx

i will test you file if it is working with mine
[Sony Xperia XZ Premium Guides, News, & Discussion] Devries:
Hello, could you please give us a paypal donate link, that's we can use alipay.
[Sony Xperia XZ Premium Guides, News, & Discussion] MichelFell:
I will also donate

Gesendet von meinem G8141 mit Tapatalk
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
There is a donation button in my profile. If you open xda with your webbrowser you can see it. :) Big thanks to all, you are awesome!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
It must be the exact same firmware (not version) for the device. The fix has a patched system binary. So it's not universal. But I will compare the relevant files later.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Will you make a patch for each new fw then? Also the first patch will be the most recent Nougat one right? Because I will not go Oreo for a long while because we just got Xposed.
[Sony Xperia XZ Premium Guides, News, & Discussion] supermaus100:
Storm, when will you publish the patch? ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] Niko of Death:
So the patch is not a permanent fix? Or does it only need to be on the specific firmware when applying?
[Sony Xperia XZ Premium Guides, News, & Discussion] bosskillers:
Hi Storm tonight it's me who pays the pizza, I made you a donation for your beautiful work and waiting for the continuation for our precious XZP ..: p
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
He needs to make a patch for each fw. So you would need a patch for your fw. You can't apply a patch for another version.

The previous drm fix were systemless meaning you could apply it regardless of fw version. This new fix is not.
[Sony Xperia XZ Premium Guides, News, & Discussion] Niko of Death:
So would it not be possible to revert back to factory state?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Yes, I will do that. I can patch older versions, too if needed. There will be a new thread with a complete guide from unlock to root to fix. ?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
All informations (faq) will be included in the new thread then. ?
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
This patch wont restore your drm keys if thats what you're thinking.

So even if you restore the software on your phone it will still be unlocked.

You cannot restore your phone 100% unless you backed up drm keys.

The drm fix tricks the system thinking you still have the keys.
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hush , hush, huj, huj, where is The New thread?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
On my desktop in a txt file ? Working on it
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hello Storm!

In your opinion, which type of files are involved for a camera mod for XZP? Camera app, qualcomm isp lib, device. xml and others I assume... Can you list them based on your experienced opinion?
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Can I install the new update from settings my phone is unclocked
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
If you have unlocked bootloader then no.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
I didn't find a thread for it and I need a computer to update it? The new version is 47.1.A.3.254
[Sony Xperia XZ Premium Guides, News, & Discussion] xshunin:
Geeez :D You are too fast! (I also paid you a pizza as well)

Can't wait to finally utilize 100% of my phone soon <3
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
This thread is about drm fix and not how you update fw but you would need to use your computer yes.

---------- Post added at 06:33 PM ---------- Previous post was at 06:00 PM ----------

HYPE [MENTION=8363210]sToRm//[/MENTION]
[Sony Xperia XZ Premium Guides, News, & Discussion] serajr:
Your posts are some kind of imminent heart attack for many users around here, including me :p Why do you do that?

Just kidding bro!! Keep up the outstanding job... you ****** rock \m/
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
I realized something. Will we be able to flash Magisk with the new kernel? Right now people are using AndroPlus kernel.

So when an new update hits we flash AndroPlus, TWRP, Magisk.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Hahahaha... The only important thing is that I DON'T GET an heart attack BEFORE I release the fix... Hahaha... So... Just pray :laugh:
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I patched the original kernel to have 99% original system. AndroPlus is very good, but I wanted nearly stock. You can root the kernel from me with Magisk or other tools, like you want.
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Aha :)! As long as I can reflash Magisk I'm fine.

HYPE!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Yepp, you can. :)

So...

I'm at home now. The beast is ready, too. Now let's get this done. :cowboy:

Give me a few hours...
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
Wow! Nice setup :o. Must be efficient when working etc!
[Sony Xperia XZ Premium Guides, News, & Discussion] alexander1995:
Thanks a lot, mate. Must buy you a beer!
[Sony Xperia XZ Premium Guides, News, & Discussion] onkelfeix:
Nice setup indeed :)

That's what I'm wishing for at work , I'd be safe from Nerfgun Attacks ....

Thanks alot for your work!!
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Like a PROOOOOOO
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Ready?

Here we go: https://xdaforums.com/xz-premium/development/hack-mod-sony-xperia-xz-premium-twrp-t3695171
[Sony Xperia XZ Premium Guides, News, & Discussion] Knowbody42:
Is there much difference in how the DRM fix will work in Oreo?
[Sony Xperia XZ Premium Guides, News, & Discussion] supermaus100:
On my Sony XZP 8141 the installation worked. I then restarted, but it remains with the Sony logo hanging. What can I do? Or do I have to restore afterwards?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
You need the right kernel version for your firmware! You can try the AndroPlus_v06_sToRm kernel from my sToRm_restore_PACK, too.
[Sony Xperia XZ Premium Guides, News, & Discussion] ex3meex:
NICE WORK STORMMMM!!!! you rock, congratilatuons mate :D and thanks too to all devs like munjeni that they tryed to help storm to reach this final DRM patch fix

Btw i still didn't unlock my XZP (but i'm in 8.0 android oreo now) if i can help you storm just tell me bro :)

Now I hope that we may have the camera2 api in the future to take beautiful photo :))))))) YEAAAH!!!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
You could try to send me your /data/credmgr/credmgr.db. Then I can compare it to the old one. If the credentials are the same, there is a 90% chance we can get this thing done in a few days.
[Sony Xperia XZ Premium Guides, News, & Discussion] lu99ke:
Wow .. you have one of those 100" curved monitors that has black lines through it.. awesome!!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Hahahahaha... Yepp... sToRm-special ?
[Sony Xperia XZ Premium Guides, News, & Discussion] lu99ke:
By the way... Not invested in a DRM fix as my BL is locked..but... Awesome work man - well done!!

Credit where credit is due you have made many people very happy! Rock on!

Peace out...
[Sony Xperia XZ Premium Guides, News, & Discussion] ex3meex:
I can't find the credmgr directory, i go on system directory and after data so the path is: /data but i can't find your credmgr folder

P.S. my device is XZP 8142 android 8.0 and i didn't do root or unlock bootloader stuffs, it's all original software parts xD
[Sony Xperia XZ Premium Guides, News, & Discussion] FartyParty:
You can't help if you don't have an unlocked bootloader/root. No access to the folders he's asking for without root.
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
Hi storm what's happening if i have update it to android did the DRM patch work??? Now I'm in nougat .
[Sony Xperia XZ Premium Guides, News, & Discussion] Hotfingers:
To see what happened - take a look at the new thread: -

https://xdaforums.com/xz-premium/development/hack-mod-sony-xperia-xz-premium-twrp-t3695171
[Sony Xperia XZ Premium Guides, News, & Discussion] Aerocap:
OMG, YOU DID IT. . . . . . . . . :laugh::highfive::o:svetius::svetius::svetius:
[Sony Xperia XZ Premium Guides, News, & Discussion] avi312singh:
Well done mate!

---------- Post added at 11:59 PM ---------- Previous post was at 11:57 PM ----------

Did you get it working on XZ1?
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
Bought xz premium, xz1 didn't have any twrp or kernel
[Sony Xperia XZ Premium Guides, News, & Discussion] munjeni:
Congrats! You done it!!!