Disable Zram Magisk Direct
Before proceeding:
ZRAM creates a compressed block device in RAM that functions as swap space. When the system runs low on memory, it moves inactive pages into this compressed area, effectively increasing usable RAM at the cost of CPU cycles required for compression and decompression. disable zram magisk
Make it executable (chmod 755 service.sh): Before proceeding: ZRAM creates a compressed block device
#!/system/bin/sh
zramctl
Create your own minimal module using Magisk Module Template with a service.sh containing: Zip the disable_zram folder (not its contents) and
#!/system/bin/sh
swapoff /dev/block/zram0
echo 1 > /sys/block/zram0/reset
Zip the disable_zram folder (not its contents) and flash it via Magisk Manager → Modules → Install from storage. Reboot.