Sony Support for Magisk

Search This thread
Currently one of the issues with Magisk is that it doesn't support stock Sony kernels because according to @topjohnwu:
Currently Known Issues (v10.2):
  • Sony devices generally: Stock Sony boot images seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer).
    If you know any addition information about Sony boot image modifications, please contact me

There have been some recent developments in the Sony forums and there is now a tool (RootKernel) for modifying the stock Sony kernel on most Sony devices (Z1-Z5, X, XZ, etc. Android 5.x - 7.x). This tool is able to disable dm-verity, disable Sony RIC, inject TWRP, inject root, and inject Xposed. This tool does not inject Magisk, nor do I believe that the tool should, I think it would be more beneficial to the community for Magisk to support Sony kernels.

With that said I am hoping that the information in this thread can serve to help add Sony support to Magisk. Source code for the Root Kernel tool and Sony boot.img can be found in the links below.

Source Code for RootKernel tool - https://github.com/tobiaswaldvogel/android_rootkernel
Source Code for modifying Sony boot.img - https://github.com/tobiaswaldvogel/and_boot_tools
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Currently one of the issues with Magisk is that it doesn't support stock Sony kernels because according to @topjohnwu:
    Currently Known Issues (v10.2):
    • Sony devices generally: Stock Sony boot images seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer).
      If you know any addition information about Sony boot image modifications, please contact me

    There have been some recent developments in the Sony forums and there is now a tool (RootKernel) for modifying the stock Sony kernel on most Sony devices (Z1-Z5, X, XZ, etc. Android 5.x - 7.x). This tool is able to disable dm-verity, disable Sony RIC, inject TWRP, inject root, and inject Xposed. This tool does not inject Magisk, nor do I believe that the tool should, I think it would be more beneficial to the community for Magisk to support Sony kernels.

    With that said I am hoping that the information in this thread can serve to help add Sony support to Magisk. Source code for the Root Kernel tool and Sony boot.img can be found in the links below.

    Source Code for RootKernel tool - https://github.com/tobiaswaldvogel/android_rootkernel
    Source Code for modifying Sony boot.img - https://github.com/tobiaswaldvogel/and_boot_tools
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone