DRM Fix for Android Pie - Sony Xperia XZ Premium Questions & Answers

Hello,
Could you confirm me or not that for last two Android Pie firmware DRM Fix doesn't exist? Recently I have backup my TA and with XperiFix I got functional OREO with widevine L1. No errors in Security (service menu) after that. Of course I restore my TA.
Next I flashed one of recent Pie and I have a problem with keys. Widevine is only level 3 and security tab has many errors. I found some patched kernels from janjan but not for current software. I flashed kernel which hide bootloader status that it doesn’t help. Maybe someone has idea why?

jugglerpl said:
Hello,
Could you confirm me or not that for last two Android Pie firmware DRM Fix doesn't exist? Recently I have backup my TA and with XperiFix I got functional OREO with widevine L1. No errors in Security (service menu) after that. Of course I restore my TA.
Next I flashed one of recent Pie and I have a problem with keys. Widevine is only level 3 and security tab has many errors. I found some patched kernels from janjan but not for current software. I flashed kernel which hide bootloader status that it doesn’t help. Maybe someone has idea why?
Click to expand...
Click to collapse
Use this kernel by shoey63 (flash in twrp, flash magisk after and reboot).
Its built from latest .107 sources, and has double tap to wake included. To activate the double tap to wake, install the module linked and reboot.
Im assuming you have g8141, if you need the g8142 kernel, let me know.

Hi. Thanks for reply. I have G8142. Could you provide me version for dual sim?

jugglerpl said:
Hi. Thanks for reply. I have G8142. Could you provide me version for dual sim?
Click to expand...
Click to collapse
No problem, same as above, flash the kernel in twrp, and then magisk v(whatever) and reboot.

Thanks a lot! My problem was related with not fully flashed Pie firmware by Newflasher. I flashed with Flashtool and now everything is ok. But your answer was helpful too all the best for you!

Hi i bought a refurbished XZP and it came with the bootloader unlocked, so i don't have a backup of the drm keys, is there a way to recover that???

kalel29 said:
Hi i bought a refurbished XZP and it came with the bootloader unlocked, so i don't have a backup of the drm keys, is there a way to recover that???
Click to expand...
Click to collapse
No, they're gone.

Beetle84 said:
No, they're gone.
Click to expand...
Click to collapse
not even a kernel that fake the drm keys? like the xperifix program??? but that only works on oreo and i don't want to downgrade.

kalel29 said:
not even a kernel that fake the drm keys? like the xperifix program??? but that only works on oreo and i don't want to downgrade.
Click to expand...
Click to collapse
No, the kernels are for people who have a ta backup, and yeah, xperifix died on Oreo.

Related

Fingerprint scanner and video recording not working after unlocking bootloader.

I unlocked my bootloader and relocked it with flashtool. Now I can only take photos on the camera app (same results with 3rd party apps). Any kind of video recording lags extremely or just gives me a blank screen and the fingerprint scanner doesn't respond. Like it's turned off. Any ideas how to fix this? I'm using the z5 premium e6853.
Thanks.
Mike3009 said:
I unlocked my bootloader and relocked it with flashtool. Now I can only take photos on the camera app (same results with 3rd party apps). Any kind of video recording lags extremely or just gives me a blank screen and the fingerprint scanner doesn't respond. Like it's turned off. Any ideas how to fix this? I'm using the z5 premium e6853.
Thanks.
Click to expand...
Click to collapse
How did you relock bootloader? with TA backup?
Try to use patched kernel.
Thanks for the reply. I actually just was about to report back that I fixed the issue. I flashed over the drm workaround with twrp.
I found it here:
https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
Happy to say everything is working perfectly now.
Will this work for 7 nougat on a z5?
I'm not sure. I flashed back to marshmallow to get it working. Then upgraded to the latest official firmware after.
i have even flashed back to marshmallow and still fingerprint is not working - has all the apk but doesnt look like its activating @Mike3009 are you able to give me the steps you used - i have tried numerous different processes
smiley.raver said:
i have even flashed back to marshmallow and still fingerprint is not working - has all the apk but doesnt look like its activating @Mike3009 are you able to give me the steps you used - i have tried numerous different processes
Click to expand...
Click to collapse
I'm pretty new to all of this so I'm not sure if this is the most efficient way to do it but here's what I did.
first I downloaded the official marshmallow firmware from xperiafirm and flashed it over with the latest version of flashtool. If you're bootloader isn't already unlocked, you should unlock it in flashtool. (needs to stay unlocked after too for this to work. I tried relocking it after and lost functionality) after you've flashed it over you need to get a modified kernel for your phone and firmware version. Flash that over and install the latest twrp. After that install the drm fix. Test if everything is working and if it is, download the latest official firmware from xperiafirm and flash over with flashtool.
Mike3009 said:
I'm pretty new to all of this so I'm not sure if this is the most efficient way to do it but here's what I did.
first I downloaded the official marshmallow firmware from xperiafirm and flashed it over with the latest version of flashtool. If you're bootloader isn't already unlocked, you should unlock it in flashtool. (needs to stay unlocked after too for this to work. I tried relocking it after and lost functionality) after you've flashed it over you need to get a modified kernel for your phone and firmware version. Flash that over and install the latest twrp. After that install the drm fix. Test if everything is working and if it is, download the latest official firmware from xperiafirm and flash over with flashtool.
Click to expand...
Click to collapse
Tried all that lol aw well I'm due for a new phone in a few months. I know mine isnt hardware related, but just something missing. Do you remember with MM firmware you got?
smiley.raver said:
Tried all that lol aw well I'm due for a new phone in a few months. I know mine isnt hardware related, but just something missing. Do you remember with MM firmware you got?
Click to expand...
Click to collapse
Try this drm fix. http://www.theandroidsoul.com/restore-drm-xperia-z5/
As for my marshmallow firmware, I'm in Taiwan so I used the only one listed on xperiafirm for Taiwan. Sorry I'm not able to use a Pc now to confirm.
are you on android 7.1.1?
Oops double post...sorry. Look below.
Yes. I didn't know to back up my drm keys before unlocking my bootloader and thought I was screwed. Now I'm on the latest 7.1.1, all drm functions working and I have root access. This drm fix works perfectly on the z5 premium e6853.(other models too but I can't personally verify)

Just have bought XZ Premium - downgrade to Nougat & unlock bootloader question

Hello dear Veterans,
I have XZ P with Oreo on it, and backed up TA with this tool https://forum.xda-developers.com/xz-premium/how-to/ta-backup-g814x-t3691603
Next, I have to downgrade and do xperifix, right?
But where do I get the FTF for latest nougat, and how do I flash it? Before I used to have a Z3, it was pretty easy with flashtool.
I can also unlock the bootloader, root, twrp on oreo then flash a 7.1.1 rom, right, but where do I find those...?
I don't want Oreo because I have privacy-related apps and they don't run well on Oreo, plus in Oreo the ID of apps are separate and it makes titaniumbackup obsolete...
amakuramio said:
Hello dear Veterans,
I have XZ P with Oreo on it, and backed up TA with this tool https://forum.xda-developers.com/xz-premium/how-to/ta-backup-g814x-t3691603
Next, I have to downgrade and do xperifix, right?
But where do I get the FTF for latest nougat, and how do I flash it? Before I used to have a Z3, it was pretty easy with flashtool.
I can also unlock the bootloader, root, twrp on oreo then flash a 7.1.1 rom, right, but where do I find those...?
I don't want Oreo because I have privacy-related apps and they don't run well on Oreo, plus in Oreo the ID of apps are separate and it makes titaniumbackup obsolete...
Click to expand...
Click to collapse
if you are looking to retain your DRM keys - there is no way at present (it provides info and insite and only partially backs it up). so before you go unlocking your bootloader be aware of that incase you were wanting to keep your drm keys.
if not and just want to root your phone then have a look at XperiFix
https://forum.xda-developers.com/xz...hack-mod-sony-xperia-xz-premium-twrp-t3695171
smiley.raver said:
if you are looking to retain your DRM keys - there is no way at present (it provides info and insite and only partially backs it up). so before you go unlocking your bootloader be aware of that incase you were wanting to keep your drm keys.
if not and just want to root your phone then have a look at XperiFix
https://forum.xda-developers.com/xz...hack-mod-sony-xperia-xz-premium-twrp-t3695171
Click to expand...
Click to collapse
Thank you, the problem is I want to know how to downgrade to nougat with drm keys gone but still the same functions. If there was a tutorial it would be great
Impossible to downgrade without ftf...
I have it, but I'm out of the country till 13 april.
You can search it on a polish forum
You can download the FTF using Xperifirm, then flash using flashtool.
https://drive.google.com/uc?id=0B5QU4Xnc0g7jMUZJSEhEOHFUODQ&export=download
more here: https://www.xperiasite.pl/forum/395...rt_by=Z-A&sort_key=start_date&topicfilter=all
---------- Post added at 06:29 PM ---------- Previous post was at 06:29 PM ----------
https://drive.google.com/uc?id=0B5QU4Xnc0g7jMUZJSEhEOHFUODQ&export=download
more here: https://www.xperiasite.pl/forum/395...rt_by=Z-A&sort_key=start_date&topicfilter=all

Possible attack vector for TA backup

So it looks like XperiFix is pretty far behind in terms of device support, XZ2 is in experimental status since August with no sources for recovery, and it's likely that XZ3 will take a long time. We can unlock the boot loader but at huge risk to our camera functionality (green photos or nothing at all depending on how badly Sony has shafted us this time).
Prior to any further action or research a reliable way to backup the TA partition to enable a full BL relock in case of trouble seems prudent.
The XZ3 ships with the August patch level in .220. As of writing there is a system update available and I'm guessing it will update the ROM to the September patch level. Google Project Zero has published an exploit that is fixed with the September patch level: OATmeal on the Universal Cereal Bus: Exploiting Android phones over USB. The article is vague about the attack surface of Android Pie but it seems that on Oreo and earlier the patch can be executed on a locked phone, and that while there is some mitigation present in Pie, it should still be possible to execute the patch on an unlocked phone running Pie.
Of course this wouldn't give us root on a locked BL because of the boot signature verification (just a bricked phone if we attempt to modify boot.img), but it should be possible to at least dump the TA partition, allowing the bootloader to be safely unlocked and relocked with DRM keys intact.
Hopefully some developers and security researchers will show some interest in Sony's new flagship so ROM development can flourish here on XDA.
Hey @mufunyo
I created TWRP for the XZ2, XZ2C and XZ2P.
It took a long time, because the bootloader was locked until the September Firmware Update, which prevents modified bootimages to boot.
Because the Sony AOSP Project did need the time to integrate the TAMA Plattform with its new 4.9 Kernel.
The XZ2 Tamaline is the first Sony Device who as the 4.9 Kernel, instead of the 4.4 Kernel.
Of course this took time.
They are working hardly to migrate the older device to Kernel 4.9, too.
I am in contact with @sToRm// to get the DRMFix fully working. I use my own device for his testing purposes.
Everything is fine, except a little bug in the bootimage patcher routine, which is preventing the system to load the already finished DRMFix.
Btw. WIth the "manual" loaded DRMFIX (yes, hacky, to test it) we achieve to activate every feature which would need a locked bootloader (DRM).
SInce the XA2 and XZ2 we also still can shot pictures with the stock app, only the preview is black.
And the video playback will still work.
https://forum.xda-developers.com/xp...recovery-twrp-3-2-2-0-touch-recovery-t3821597
PS:
Since the XZ3 is part of the TAMALine, too, I could create a TWRP too.
Of course I would need a person which wants to test it with me and will unlock his bootloader.
And the bootloader need to be capable booting modified bootimages.
MartinX3 said:
Since the XZ3 is part of the TAMALine, too, I could create a TWRP too.
Of course I would need a person which wants to test it with me and will unlock his bootloader.
And the bootloader need to be capable booting modified bootimages.
Click to expand...
Click to collapse
Of course I would be willing to test with my own XZ3. However I would want to wait for the XZ2 DRM fix to be fully working before committing to it, if you can understand. I've had dust between the sensor and lens of my Z2 and Z5 (loose back cover and cracked screen respectively), so this is the first time in years I actually have a fully working phone camera, haha.
mufunyo said:
Of course I would be willing to test with my own XZ3. However I would want to wait for the XZ2 DRM fix to be fully working before committing to it, if you can understand. I've had dust between the sensor and lens of my Z2 and Z5 (loose back cover and cracked screen respectively), so this is the first time in years I actually have a fully working phone camera, haha.
Click to expand...
Click to collapse
Of course, follow the twrp xz2 thread
I will make a status update after storms DRMfix installation routine works
The fix itself is working, I tested it in the XZ2 XZ2C and XZ2P
You can write me a PM, after you wants to test
But we first make sure that there is no Sony bootloader upgrade needed to boot modified bootimages
The XZ2 and XZ2c is sharing now the same firmware as the XZ3 (all are Tama platform)
After I adapt twrp on pie and someone helps me, I could start tryjng to create twrp for the XZ3.
if u haven't already created twrp for xz3, im willing to help!!! want to root my xz3 badly...
MartinX3 said:
The XZ2 and XZ2c is sharing now the same firmware as the XZ3 (all are Tama platform)
After I adapt twrp on pie and someone helps me, I could start tryjng to create twrp for the XZ3.
Click to expand...
Click to collapse
clyde112 said:
if u haven't already created twrp for xz3, im willing to help!!! want to root my xz3 badly...
Click to expand...
Click to collapse
The single problem was the missing tester.
No one asked me :silly:
But let's wait for the next monthly patch or I would need to patch the twrp again. :silly:
Send me a message after you receives it
But be aware that I only have limited free time to work on it
ok sounds great, I understand/appreciate your limited free time.
looking forward to this, will pm u after monthly patch!
MartinX3 said:
The single problem was the missing tester.
No one asked me :silly:
But let's wait for the next monthly patch or I would need to patch the twrp again. :silly:
Send me a message after you receives it
But be aware that I only have limited free time to work on it
Click to expand...
Click to collapse
MartinX3 said:
The single problem was the missing tester.
No one asked me :silly:
Click to expand...
Click to collapse
I got in contact with @sToRm// already but he says he doesn't have a DRM fix for Pie yet, so I'm holding off for that.
How to enable oem unlocking in XZ3 H9493
MartinX3 said:
Hey @mufunyo
I created TWRP for the XZ2, XZ2C and XZ2P.
It took a long time, because the bootloader was locked until the September Firmware Update, which prevents modified bootimages to boot.
Because the Sony AOSP Project did need the time to integrate the TAMA Plattform with its new 4.9 Kernel.
The XZ2 Tamaline is the first Sony Device who as the 4.9 Kernel, instead of the 4.4 Kernel.
Of course this took time.
They are working hardly to migrate the older device to Kernel 4.9, too.
I am in contact with @sToRm// to get the DRMFix fully working. I use my own device for his testing purposes.
Everything is fine, except a little bug in the bootimage patcher routine, which is preventing the system to load the already finished DRMFix.
Btw. WIth the "manual" loaded DRMFIX (yes, hacky, to test it) we achieve to activate every feature which would need a locked bootloader (DRM).
SInce the XA2 and XZ2 we also still can shot pictures with the stock app, only the preview is black.
And the video playback will still work.
https://forum.xda-developers.com/xp...recovery-twrp-3-2-2-0-touch-recovery-t3821597
PS:
Since the XZ3 is part of the TAMALine, too, I could create a TWRP too.
Of course I would need a person which wants to test it with me and will unlock his bootloader.
And the bootloader need to be capable booting modified bootimages.
Click to expand...
Click to collapse
My H9493 (HONGKONG) couldn't enable oem unlocking in developer options. I have tried Pattern+VPN+Google account, no luck.
I think no official unlock is available currently for XZ3.
Since you cannot find the device name on the Sony dev page.
jamesys said:
My H9493 (HONGKONG) couldn't enable oem unlocking in developer options. I have tried Pattern+VPN+Google account, no luck.
Click to expand...
Click to collapse
It's a bug.
They will fix it.
Maybe with next monthly update.
Bootloader unlock bug got fixed und may be released with the December update.
https://github.com/sonyxperiadev/bug_tracker/issues/211#issuecomment-440851984
MartinX3 said:
Bootloader unlock bug got fixed und may be released with the December update.
https://github.com/sonyxperiadev/bug_tracker/issues/211#issuecomment-440851984
Click to expand...
Click to collapse
That mean, we become custom ROMs for this phone?
GreyFox777 said:
That mean, we become custom ROMs for this phone?
Click to expand...
Click to collapse
The XZ2c, XZ2 and XZ3 are very similar.
I wouldn't wonder, if someone would maintain these devices at once.
Maybe the XZ2P, too.
But at first we need to be patient.
We XZ2 owners for our first Custom Stock Room yesterday.
You may loose your camera after unlocking.
On the XZ2/compact/premium the december patch broke the camera for unlocked devices. It shoot green pictures.
Downgrading to the november patch fixed it.
But we only have a working camera on the XZ2 devices, because we used a drmfix on oreo before.
I don't know if the same problem will happen on the XZ3, but if you really need the camera, i would wait for one to test the unlocking first.
At the moment, there is no PIE DRMfix.
PS:
Of course, AOSP will have a working camera, but the camera is not fully implemented at the moment.
But it will.
Is it possible to enable RAW Support on rooted AOSP-Roms on Xperia Phones? Maybe GCam works then? This phone really needs it!
Last hope before selling this beautiful phone.
madphone said:
Is it possible to enable RAW Support on rooted AOSP-Roms on Xperia Phones? Maybe GCam works then? This phone really needs it!
Last hope before selling this beautiful phone.
Click to expand...
Click to collapse
No, because RAW is not disabled there. :silly:
The entire camera2api is available. But please look into the bugtracker of my aosp rom in the xz2 ROM thread to know at which time the camera got fully implemented.
MartinX3 said:
You may loose your camera after unlocking.
On the XZ2/compact/premium the december patch broke the camera for unlocked devices. It shoot green pictures.
Downgrading to the november patch fixed it.
But we only have a working camera on the XZ2 devices, because we used a drmfix on oreo before.
I don't know if the same problem will happen on the XZ3, but if you really need the camera, i would wait for one to test the unlocking first.
At the moment, there is no PIE DRMfix.
PS:
Of course, AOSP will have a working camera, but the camera is not fully implemented at the moment.
But it will.
Click to expand...
Click to collapse
Wait, so unlocking the bootloader only affects the camera on the stock ROM, while a custom one is a totally different story? Did I get that right?
TunerCP said:
Wait, so unlocking the bootloader only affects the camera on the stock ROM, while a custom one is a totally different story? Did I get that right?
Click to expand...
Click to collapse
Unlock the bootloader on latest PIE.
The preview and photos will be fine.
Except the low light anti noise feature.
The aosp has its own hardware drivers, independent from stock.
But there are many partitions in the phone from the stock used by aosp except the big ones you flash.

Pie root and Magisk help?

Hi guys,
I need help. Last time i root some phone it was lg g2.
I just upgrade my Xzp to Pie.
Can someone give me link to Root for Pie and for Magisk that work on 9.0
And will i crash something if i root(camera etc)..
Sry I'm noob, i was out for a long time so here is a lot of topic.
If someone can give me link for root that work in 9.0 i would much appreciate
You'd better wait for DRMfix bofore rooting~
Wait that why i ask for help..I don`t know steps..I thought Sony let bootloader to be unlocked.
If i unlock bootloader and root i will lose drm keys?
No need drm fix for pie install pie and magistik that all
RedJHoN said:
No need drm fix for pie install pie and magistik that all
Click to expand...
Click to collapse
But you'll permanently lose the DRM :crying::crying:
You don't need the anymore camera works better
I be flashed last update .33 Chinese and fast twrp magistik and gapps

Chinese version questions

Hello, after reading the guides to restore the smartphone (https://forum.xda-developers.com/oneplus-8/how-to/op8-unbrick-tool-to-restore-device-to-t4085877) I have some Doubts. Let's suppose that I have a Chinese version (IN2010) that had HydrogenOS and OxigenOS (global version) has been installed. If I wanted to restore the smartphone to the global version because I have a brick, what firmware should I use?
Thanks
sakun-ice said:
Hello, after reading the guides to restore the smartphone (https://forum.xda-developers.com/oneplus-8/how-to/op8-unbrick-tool-to-restore-device-to-t4085877) I have some Doubts. Let's suppose that I have a Chinese version (IN2010) that had HydrogenOS and OxigenOS (global version) has been installed. If I wanted to restore the smartphone to the global version because I have a brick, what firmware should I use?
Thanks
Click to expand...
Click to collapse
It would be the international firmware IN21AA
I flashed IN21AA without issues. Wiped device via fastboot -w and everything works fine.
craznazn said:
I flashed IN21AA without issues. Wiped device via fastboot -w and everything works fine.
Click to expand...
Click to collapse
can you verify widevine version? I have IN2010, I unlocked the Bootloader, rooted, lost Widevine L1, then I relocked Bootloader, and got L1 back, but fingerprint broken, to fix that I tried few things, but now I've lost Widevine L1. so what version of Widevine you have?
sakun-ice said:
Hello, after reading the guides to restore the smartphone (https://forum.xda-developers.com/oneplus-8/how-to/op8-unbrick-tool-to-restore-device-to-t4085877) I have some Doubts. Let's suppose that I have a Chinese version (IN2010) that had HydrogenOS and OxigenOS (global version) has been installed. If I wanted to restore the smartphone to the global version because I have a brick, what firmware should I use?
Thanks
Click to expand...
Click to collapse
Hi, Do you think you can share your persist.img file? I've also IN2010 so maybe it will help me fixing my fingerprint issue.
Thanks
ismailonrails said:
Hi, Do you think you can share your persist.img file? I've also IN2010 so maybe it will help me fixing my fingerprint issue.
Thanks
Click to expand...
Click to collapse
I still don't have the phone, but once I have it I can upload the backup
sakun-ice said:
I still don't have the phone, but once I have it I can upload the backup
Click to expand...
Click to collapse
Did you send it for RMA?
ismailonrails said:
Did you send it for RMA?
Click to expand...
Click to collapse
No no, No, I bought it and it is on the way, it will arrive on Tuesday or Wednesday. But first I want to try it for a few days.

Categories

Resources