** 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. **
This thread is marked as discontinued. This means that It won't be updated so don't bother asking and I will not publish any more posts here or contribute to the general discussion. However, I might add files from time to time if necessary.
Good News ! 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
- Latest TWRP from here
And obviously :
- ADB and FASTBOOT : https://forum.xda-developers.com/sho....php?t=2317790
- Xperia XZ drivers : https://developer.sonymobile.com/dow...ers/xperia-xz/
- FlashTool : http://www.flashtool.net/downloads.php
What are DRM Keys ?
If you unlocked the bootloader on a Sony Xperia device, you probably know that the potential loss of warranty is not the only disadvantage you have to accept. Another fairly hidden issue is related to various proprietary features such as the X-Reality color mangement, BIONZ image processor and the active noise cancelling techniques. Once you decide to unlock your bootloader, the process also removes a piece of data referred to as the DRM keys. These are tied to various services (such as streaming video and the like) offered by Sony but are also required for the features mentioned above to work properly. Put simply, once the keys are gone, you’ll face issues such as decreased low light camera image quality and the lack of the X-Reality mode.
- RIC disabled
- added DRM patch support
Before proceed backup all you important data like pictures, files to another device.. !
Make sure you follow all steps carefully with caution .. !
01- Flash Oreo FTF via Flashtool (Full wipe is recommened exclude nothing except TA files if there's any)
02- When done flashing unplug device ..
03- Enter fastboot mode and flash TWRP (hold vol up + plug usb)
fastboot flash recovery twrp-3.2.1-0-kagura.img
fastboot flash boot boot.img
05- In TWRP Flash drmfix.zip + SafetyNet Cleaning Tools.zip then Magisk v16.3.zip
06- OPTIONAL Flash ROM Patch to clean system and remove all bloat apps
07- Reboot and enjoy
NEW! TA_POC METHOD (Magisk 15.3+ ONLY / For those who have TA.img backup)
Open command prompt in rootkernel tool folder
Open cmd --> cd "rootkernel tool dir" for ex for my case I extracted to the c: drive to make simple for you
rootkernel kernel.elf boot.img
Say yes (Y) to everything except DRM fix - If you want munjeni's TA PoC option,ensure your TA.img (case sensitive) is located at rootkernel's root folder and say no (N) to DRM fix
Flash patched kernel:
1- Flash Oreo ftf (wiping everything, excluding nothing - except *.ta files - if any)
2- Unplug device and DO NOT turn it on
3- Fastboot newly created boot.img and TWRP recovery
4- Unplug device and DO NOT turn it on again
5- Enter TWRP recovery and flash Magisk 16.3 (16.4 is buggy)
6- OPTIONAL Flash ROM Patch to clean system and remove all bloat apps
7- You're done!
TWRP asking for decryption code / Internal Storage showing 32GB only for XZ DUAL
Enter Fastboot and format user data partitions using this 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 correctly
- Do steps 1-2-3 exactly as listed above
- Boot your phone and compelete the setup wizard, go to settigns and check if storage is not 64gb
- If yes turn off the device and enter TWRP and choose WIPE > Swipe to format data
- Boot your phone again and compelete the setup wizard, go to settings and check if storage it should be 64gb by now
- Now go back to TWRP and complete steps 4-5-6
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
- [MOD][THERMAL FIX] FSC™ 4.0 Improve performance & Eliminate heat
- [XZ/XZs/XP]V1 Dontbelive XPERIA XZ1 StereoMOD
- [Magisk][Module] SELinux Manager by Jman420 (Set to permissive)
- [Magisk][Module] Unified Hosts Adblocker
- [Magisk][Module] Youtube Vanced [Official]
Must have apps
- Gboard - the Google Keyboard
- Kiwi Browser - Fast & Quiet
Credits @serjar for unofficial rootkernel update
Old DRM restore by @tobias.waldvogel
Magisk by @topjohnwu
SafetyNet Cleaner by @sceryavuz
TWRP by TeamWin