Zip the disable_zram folder (not its contents) and flash it via Magisk Manager → Modules → Install from storage. Reboot.
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
Run the following commands in a root terminal: Zip the disable_zram folder (not its contents) and
cat /proc/swaps
Expected output if disabled:
Filename Type Size Used Priority
If you see a /dev/block/zram0 entry, ZRAM is still active. Expected output if disabled: Filename Type Size Used
Also check:
ls -l /sys/block/zram*
If the directory exists but the swap is off, it’s fine. The device itself may still be present.