[ROOT][Kernel][TWRP][DRM] repack of stock kernel with dm-verity & SONY RIC off

zacharias.maladroit

Recognized Developer
Hi guys,

are you aware that by following:

[ROOT][Kernel][TWRP] repack of the stock kernel with dm-verity and SONY RIC off

you'll get a repackaged stock kernel that

  • has potentially root (option)
  • a recovery TWRP to which you can boot via volume key combination during boot (didn't read about it for Xperia M4 Aqua yet, but on Z5 it works),
  • dm-verity & Sony RIC DISABLED (additional security which messes with rooting and modifying /system - thus needs to be disabled, also leads to non-booting phone when system is modified)
  • DRM emulated (restored) so that camera quality is same like before bootloader unlock, picture/image enhancement working (BRAVIA/XREALITY engine)

@madsin has followed the steps and supposedly was successful:

https://forum.xda-developers.com/showpost.php?p=69236873&postcount=1338


@AndyPhoenix9879 is your custom kernel using a repackaged stock ramdisk with the drm emulation ? https://forum.xda-developers.com/m4-aqua/development/kernel-sky-melon-t3532944
@dani020110 the same question to you: is your custom kernel using a repackaged stock ramdisk with drm emulation ? https://forum.xda-developers.com/m4-aqua/development/kernel-foykernel-t3536004
 

LilBlinx

Recognized Contributor
Jun 17, 2012
2,029
5,569
203
Skopje
I'm posting this here since I'm not sure yet if I'll unlock bootloader & lose the TA partition data/keys

or I should flash back to Lollipop, root (with locked bootloader), backup the keys, then unlock the bootloaders [for my Z5 that option wasn't available at the time to backup & restore the keys]
What you've just posted is used on both kernels. It works on MM even with stock kernel but the recovery and xposed option doesn't. I haven't tried backing up the keys with MM since there is no root but I've used the second method and it works.
 
Last edited:

dani020110

Senior Member
Mar 30, 2015
284
211
0
Lima
Hi guys,

are you aware that by following:

[ROOT][Kernel][TWRP] repack of the stock kernel with dm-verity and SONY RIC off

you'll get a repackaged stock kernel that

  • has potentially root (option)
  • a recovery TWRP to which you can boot via volume key combination during boot (didn't read about it for Xperia M4 Aqua yet, but on Z5 it works),
  • dm-verity & Sony RIC DISABLED (additional security which messes with rooting and modifying /system - thus needs to be disabled, also leads to non-booting phone when system is modified)
  • DRM emulated (restored) so that camera quality is same like before bootloader unlock, picture/image enhancement working (BRAVIA/XREALITY engine)

@madsin has followed the steps and supposedly was successful:

https://forum.xda-developers.com/showpost.php?p=69236873&postcount=1338



@AndyPhoenix9879 is your custom kernel using a repackaged stock ramdisk with the drm emulation ? https://forum.xda-developers.com/m4-aqua/development/kernel-sky-melon-t3532944

@dani020110 the same question to you: is your custom kernel using a repackaged stock ramdisk with drm emulation ? https://forum.xda-developers.com/m4-aqua/development/kernel-foykernel-t3536004
Hi there! It's really nice to see you here!
1. Yeah I'm using that tool to get root access
2. I tried that recovery, but it wasn't working correctly
3. As far as I know, we don't have that kind of security here, we can modify /system flawlessly without using that option
4. I haven't tried that drm restoration yet, because I thought it wouldn't work
Anyway this is the ramdisk I'm using https://github.com/dani020110/destiny_build_tools/commits/master/ramdisk

---------- Post added at 06:22 PM ---------- Previous post was at 06:21 PM ----------

I'm posting this here since I'm not sure yet if I'll unlock bootloader & lose the TA partition data/keys

or I should flash back to Lollipop, root (with locked bootloader), backup the keys, then unlock the bootloaders [for my Z5 that option wasn't available at the time to backup & restore the keys]
When I was at lollipop I did that trick to backup my drm keys, and then unlocked my bootloader
Anyway you can try the universal dirty cow one
 
  • Like
Reactions: zacharias.maladroit

zacharias.maladroit

Recognized Developer
GREAT!! :D Today I do the same with a kernel from Xperia E5 .
Yes, it's awesome that we have those great devs/minds at XDA who empower us,

[much thanks to @tobias.waldvogel ]

otherwise we would lose important features and had to do compromises

when in fact we root and unlock the bootloader to have *more* features in first place ! :)
 
  • Like
Reactions: LilBlinx

MAREK10747

Senior Member
Feb 4, 2016
379
171
43
Ehh not working this fix on my kernel , but I'm a first dev modding this phone ^^ .
Now I added few mods to my kernel , and version 8.1 be ready soon :)
 

MAREK10747

Senior Member
Feb 4, 2016
379
171
43
I looking for helpers to create new kernel for Sony Xperia E5 with OC and new governors . I don't know how to use a ubuntu to recompile kernel ...