This module provides the compatible Magisk-mirroring (i.e., unmodified original system files (in a mounted state) mainly referred from the module installation script “customize.sh”) for installing pure Magisk modules on incompatible Magisk variants and KernelSU (including APatch).
For example, a typical Magisk module modifying an existing system file on “/vendor/etc” (say “/vendor/etc/audio_policy_configuration.xml”) needs its unmodified original file for generating new one from it as intendedly by editing some parts in the original one, and putting it in “${MODPATH}/system/vendor/etc” so that Magisk shall overlay it on the original one on “/vendor” after booting up.
Because system files on “/vendor” might be modified already by other Magisk modules and even by the module itself (which has already been installed) when installing or updating the module in the Magisk manager, the module (usually “customize.sh”) possibly fails to install or installs wrongly in silence by their interference. For avoiding such situation, experienced Magisk module developers use mirrored system files under “$(magisk –path)/.magisk/mirror” that are unmodified original. However some recent Magisk variants (e.g., Magsik alpha, Kitsune Magisk, and KernelSU) don’t provide this mirrored system files to developers for some non-technical reason.
For resolving this situation, this module puts a tiny script in “/data/adb/post-fs-data.d” and patches and forces the Magisk variants to provide the mirrored system files when installing, updating and even executing Magisk modules thereafter (but mainly for “customize.sh”).
Without this module, developers must move some code (referring to unmodified original system files) in “customize.sh” into “post-fs-data.sh” (for handling almost unmodified original ones just before Magisk starts magic mounting) involuntarily for supporting such variants. It’s very unfortunate, I think.
Although some people might think “customize.sh” could refer to the original sytem files by mounting mirrors in it, it isn’t possible by normal means because system files have been mounted in a shared mode before installing magisk modules in the Magisk manager, and the mirrors provide only possibly modified ones by already installed Magisk modules.
Remark only for KernelSU (including APatch): Because KernelSU doesn’t allow any command named “magisk” to place in “/data/adb/ksu/bin” (or “/data/adb/ap/bin”), this module puts “ksu-magisk” command there instead (for both KernelSU and APatch). As the result, you have to replace all “magisk –path” command executions with “ksu-magisk –path” in all magisk standard shell scripts of a (pure) magisk modue ZIP file you intend to install. Typically you can do this by inserting alias magisk='ksu-magisk'
line at the first line below the shebang line and its following comment ones for all the scripts.
This module was made, and has been tested slightly on Magisk alpha, Kitsune Magisk and KernelSU (including APatch), as a help for installing my other pure magisk modules on them.
See also my magisk modules, “Audio misc. settings” , “DRC remover”, “USB Samplerate Unlocker” and “Hifi Maximizer”.
DISCLAIMER
I am not responsible for any damage that may occur to your device, so it is your own choice to attempt this module. This module doesn’t guarantee any magisk module to be able to install and run on incompatible magisk variants and KernelSU.
Download
Module Info
Other modules
Audio Wizard DTSX Ultra Asus Zenfone 6 Magisk Module
Audio Wizard DTSX Ultra Asus Zenfone 6 Magisk Module DISCLAIMER Asus & DTS Apps and blobs are owned by Asus� & DTS�. The MIT license specified here is for the Magisk Module only, not for Asus & DTS apps and blobs. Descriptions Equalizer sound effect ported from Asus Zenfone 6 …...
Bootloop Protector
Rooting your Android device with Magisk opens a world of customization possibilities through modules. However, a faulty module can lead to a dreaded bootloop, leaving your device stuck in an endless cycle of restarts. Thankfully, bootloop protector modules exist to save the day. What is a Bootloop? …...
Benchkit
Benchkit is a developer-centric toolkit module for Android with a plethora of tools for in-depth profiling and benchmarking. Many of the tools are focused on kernel benchmarking, but userspace (i.e. Android) benchmarking is also covered by some of them. This module aims to make empirical data-driven …...
Proximity Sensor Disabler
Descriptions Removes android.hardware.sensor.proximity feature systemlessly Disables proximity sensor completely in some supported ROMs Disables proximity fusion sensor in some ROMs Requirements Magisk or KernelSU installed Installation Guide & Download Link Install this module …...
Chroot Distro Magisk Ksu Module
Install linux distributions on android with chroot warning : this work only on rooted android devices chroot-distro path : /data/local/chroot-distro/ Android paths on distributions : /dev /sys /proc /dev/pts /sdcard /system /storage /data usage help chroot-distro help list of available linux …...
Swappines Fix Magisk Ksu Module
This module gives more priority to some processes by decreasing the value of swappines so that they remain in RAM. Link Download ...
Dolby Atmos Moto G52 Magisk Kernelsu Module
Dolby Atmos Moto G52 Magisk or kernelsu Module DISCLAIMER Motorola & Dolby apps and blobs are owned by Motorola™ & Dolby™. The MIT license specified here is for the Magisk Module only, not for Motorola & Dolby apps and blobs. Descriptions Equalizer soundfx ported from Motorola Moto G52 …...
Zygisk Detach
Detaches installed apps from Play Store against its aggressive updating policy which ignores the auto-update option user sets. How Hooks libbinder with zygisk Usage Enable zygisk in Magisk or ZygiskNext module if you are on KernelSU Flash zygisk-detach module Reboot Run the cli in termux: su -c …...
Audio Effect Deep Field vivo Pad2 Magisk Module
DISCLAIMER vivo apps and blobs are owned by vivo�. The MIT license specified here is for the Magisk Module only, not for vivo apps and blobs. Descriptions Equalizer soundfx ported from vivo Pad2 (DPD2221) and integrated as a Magisk Module for all supported and rooted devices with Magisk Deep Field …...
AdGuardDNS4Magisk
To make it short: a DNS server listen and give you the corresponding IP address of your website request, and its domain name (forum.xda-developers.com for example). For the long version a little reading is necessary: https://en.wikipedia.org/wiki/Domain_Name_System The purpose of this module? …...