Disable Zram Magisk Page
for d in /sys/block/zram*; do [ -e "$d/disksize" ] && echo 0 > "$d/disksize" 2>/dev/null; done; ( [ -e /sys/block/zram0/reset ] && echo 1 > /sys/block/zram0/reset 2>/dev/null ) || true; /sbin/modprobe -r zram 2>/dev/null || true
If you modified kernel parameters, a dirty flash of your ROM’s boot image or a Magisk uninstall will restore default behavior.
If you prefer an existing module, some custom ROMs or the MagiskHide Props Config module allow you to add custom boot scripts via system.prop – but direct script method is cleaner. disable zram magisk
Magisk allows for "systemless" modification. By altering the system via a Magisk module, the actual system partition remains read-only. This ensures that the device can still pass Google's SafetyNet/Play Integrity checks (usually) and allows for easy removal of the modification if system instability occurs. for d in /sys/block/zram*; do [ -e "$d/disksize"
Before proceeding: