[GUIDE][Oreo 8.0] Stock Kernel + ROOT + TWRP + DRM Fix | 41.3.A.2.149

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
You can patch it yourself.
Read the thread.

*edit*
Magisk Update v17 via magisk manager got me into a bootloop - not sure what happened there.
Had to reflash patched stock boot image, updated twrp to twrp-3.2.3-0-dora.img while I'm at it. Then usual routine of flashing DRM-fix_System_Mode.zip, SafetyNet Cleaning Tools.zip and Magisk-v17.1.zip.

All works, magisk now up2date and working again.

*Edit*
To fix the only 32Gb internal memory isue on F8132 go into twrp wipe \ advanced \ and resize /data.
 
Last edited:

leandrox

Senior Member
Nov 26, 2010
52
5
0
Seattle
Hi all,
I was able to go through the installation and it went well, it seems. The system is running smoothly and without major problems. The only problem I can see is that the DRM keys appear not to be recovered, as I don't get the KEYS [OK] status, even when I flashed the DRMfix during the installation process.
1) Is there something I can do to fix this?
2) Should I try to do it? What would I be missing if not?
Thanks!
 

chihi2110

Member
Dec 9, 2014
31
3
0
Ho Chi Minh city
Stock Kernel + ROOT + TWRP + DRM Fix​



Code:
** Your warranty is now void.
**
** I am not responsible for bricked devices, dead SD cards,
** thermonuclear war, or you getting fired because the alarm app failed. Please
** do some research if you have any concerns about features included in this MOD
** before flashing it! You are choosing to make these modifications, and if
** you point the finger at me for messing up your device, I will laugh at you.
**
Requirements
If you haven't unlocked bootloader yet check this guide
Good News ! For advanced users If you have TA.img backup of your device I highly suggest using this tool to patch stock kernel using your own TA image to have drm working with latest Magisk 16.3. Follow TA_POC METHOD instructions below .

- Kernel (boot.img) + Magisk + DRM fix patch : Here
- Latest TWRP from here[/B]
And obviously :
- ADB and FASTBOOT : https://forum.xda-developers.com/showthread.php?t=2317790
- Xperia X PERFORMANCE drivers : https://developer.sonymobile.com/downloads/drivers/xperia-x-performance-driver/
- FlashTool : http://www.flashtool.net/downloads.php


What are DRM Keys ?


Kernel features
this is pure stock kernel of the mentioned above firmware with
- RIC disabled
- added DRM patch support


Instructions
Before proceed backup all you important data like pictures, files to another device.. !
Make sure you follow all steps carefully with caution .. !



TWRP asking for decryption code / Internal Storage showing 32GB only for DUAL Model
Turn off the phone (from TWRP if you can or hold vol up and power button till the phone vibrates 3 times)
Enter Fastboot and format user data partitions using this code
Code:
fastboot format userdata
If you are getting error try from TWRP recovery > WIPE > Swipe to format data
Now start your phone and set it up the issue should be resolved.
If still storage is not showing do clean installation in Flashtool wiping everything and exclude nothing then follow then instructions above .. I also noticed that flashing the correct XZ DUAL boot.img the first time before first boot fix this

To check drm keys type *#*#7378423#*#* on your phone and go to Service Test > Security
If you have all [Key OK] they are OK! like the pictures I attached below


Extras (Recommended)


Credits @serjar for unofficial rootkernel update
Old DRM restore by @tobias.waldvogel
Magisk by @topjohnwu
SafetyNet Cleaner by @sceryavuz
TWRP by TeamWin
I have a sov33 but f8131 rom, can i follow this guide? Thank you!
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
849
113
Thank you very much for your answer, i'm appriceate to hear that. But when i try to unlock bootloader by following this guide, at the line Bootloader unlock allowed: no, i don't know how to fix it.
this guide is good
Xperia Xp came out on Android 6.0.1 you need to downgrade to Android 6.0.1 version via FLASHTOOL (Xperifirm) or search (see images)
-as download completed and you close the XPERIFIRM---
- flashtool will AUTOMATICALLY starts pareparing TFT file (will ask you Include FCS script, click OK) any other error click OK .. and
- ftf file creation will be finished
- now you can flash android 6 on your Xp
see my post https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7


boot Xp on Android 6 and extract TA.img via dirty-cow script
https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236

once done, then upgrade to android 8 download the latest version using flashtool xperifirm, latest then unlock your bootloader!
https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

now you are on android 8 and boot is unlocked and to obtain root and device to work properly! we need to
1. flash twrp on xperia Xp --- https://dl.twrp.me/dora/
2. FLASH MODDED kernel, please send me kernel.sin file of your android 8 yasuhamed @ gmail.com / and i will send u back the modded kernel to flash. via flashtool , fastboot mode...

3. now boot in to twrp (press power buttong + volume down button UNTIL you see twrp logo) we need to flash drmfix ----- CLICK HERE TO DOWNLOAD
4. Flash MAGISK take 17.1, as magisk 18 is for Pie... I may work, you can test... CLICK HERE
5 clear cache and REBOOT Xperia Performance
6. first reboot may goto bootloop but finally device will wake ROOTED


my detail post on XPERIA X SUZU ,,,
https://forum.xda-developers.com/xperia-x/how-to/root-xperia-x-f5122-android-n-34-2-2-47-t3594502
 

Attachments

Last edited:

chihi2110

Member
Dec 9, 2014
31
3
0
Ho Chi Minh city
this guide is good
Xperia Xp came out on Android 6.0.1 you need to downgrade to Android 6.0.1 version via FLASHTOOL (Xperifirm) or search (see images)
-as download completed and you close the XPERIFIRM---
- flashtool will AUTOMATICALLY starts pareparing TFT file (will ask you Include FCS script, click OK) any other error click OK .. and
- ftf file creation will be finished
- now you can flash android 6 on your Xp
see my post https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7


boot Xp on Android 6 and extract TA.img via dirty-cow script
https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236

once done, then upgrade to android 8 download the latest version using flashtool xperifirm, latest then unlock your bootloader!
https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

now you are on android 8 and boot is unlocked and to obtain root and device to work properly! we need to
1. flash twrp on xperia Xp --- https://dl.twrp.me/dora/
2. FLASH MODDED kernel, please send me kernel.sin file of your android 8 yasuhamed @ gmail.com / and i will send u back the modded kernel to flash. via flashtool , fastboot mode...

3. now boot in to twrp (press power buttong + volume down button UNTIL you see twrp logo) we need to flash drmfix ----- CLICK HERE TO DOWNLOAD
4. Flash MAGISK take 17.1, as magisk 18 is for Pie... I may work, you can test... CLICK HERE
5 clear cache and REBOOT Xperia Performance
6. first reboot may goto bootloop but finally device will wake ROOTED


my detail post on XPERIA X SUZU ,,,
https://forum.xda-developers.com/xperia-x/how-to/root-xperia-x-f5122-android-n-34-2-2-47-t3594502
Wow, that was a huge guide just for me! Is it work well with SOV33?
 

R_captivate

Senior Member
Feb 16, 2012
95
6
0
For me is working all fine except that the storage shows 32GB instead of 64GB. I tried the fastboot option and it didn't recognize it. Also the safetynet check in Magisk is giving me the ctsprofile:false F8132. Any advice?
 
Last edited:

hn40cn

Member
Feb 18, 2016
19
5
0
28
Tokyo
Google Drive link fix

Stock Kernel + ROOT + TWRP + DRM Fix​



Code:
** Your warranty is now void.
**
** I am not responsible for bricked devices, dead SD cards,
** thermonuclear war, or you getting fired because the alarm app failed. Please
** do some research if you have any concerns about features included in this MOD
** before flashing it! You are choosing to make these modifications, and if
** you point the finger at me for messing up your device, I will laugh at you.
**
Requirements
If you haven't unlocked bootloader yet check this guide
Good News ! For advanced users If you have TA.img backup of your device I highly suggest using this tool to patch stock kernel using your own TA image to have drm working with latest Magisk 16.3. Follow TA_POC METHOD instructions below .

- Kernel (boot.img) + Magisk + DRM fix patch : Here
- Latest TWRP from here[/B]
And obviously :
- ADB and FASTBOOT : https://forum.xda-developers.com/showthread.php?t=2317790
- Xperia X PERFORMANCE drivers : https://developer.sonymobile.com/downloads/drivers/xperia-x-performance-driver/
- FlashTool : http://www.flashtool.net/downloads.php


What are DRM Keys ?


Kernel features
this is pure stock kernel of the mentioned above firmware with
- RIC disabled
- added DRM patch support


Instructions
Before proceed backup all you important data like pictures, files to another device.. !
Make sure you follow all steps carefully with caution .. !



TWRP asking for decryption code / Internal Storage showing 32GB only for DUAL Model
Turn off the phone (from TWRP if you can or hold vol up and power button till the phone vibrates 3 times)
Enter Fastboot and format user data partitions using this code
Code:
fastboot format userdata
If you are getting error try from TWRP recovery > WIPE > Swipe to format data
Now start your phone and set it up the issue should be resolved.
If still storage is not showing do clean installation in Flashtool wiping everything and exclude nothing then follow then instructions above .. I also noticed that flashing the correct XZ DUAL boot.img the first time before first boot fix this

To check drm keys type *#*#7378423#*#* on your phone and go to Service Test > Security
If you have all [Key OK] they are OK! like the pictures I attached below


Extras (Recommended)


Credits @serjar for unofficial rootkernel update
Old DRM restore by @tobias.waldvogel
Magisk by @topjohnwu
SafetyNet Cleaner by @sceryavuz
TWRP by TeamWin
Hello,

it seems that in the section "Requirements" the link prefaced with
- Kernel (boot.img) + Magisk + DRM fix patch
is poorly formatted (seems like the beginning of the link part has a redundant "http://" tag right before the link).

For all those who try to get to those files - turn on the Inspector in your browser, find the element of the link and copy the valid Google Drive link.

With kind regards,
hn40cn
 

biansishuo

Member
Apr 17, 2019
6
0
0
29
Beijing
”Good News ! For advanced users If you have TA.img backup of your device I highly suggest using this tool to patch stock kernel using your own TA image to have drm working with latest Magisk 16.3. Follow TA_POC METHOD instructions below .”
where is the instructions?

---------- Post added at 02:26 PM ---------- Previous post was at 02:15 PM ----------

When I unlocked bootloader, i have lost drmkey. So how to fix it, I tried flash patch drm fix in this topic, but dose it not work, please help me.
the same question with you,I have tried to use the rootkernel tools to make a boot.img but it print "can't creat" and shut down.