The easiest and safest way to disable zRAM is by using a Magisk module. Magisk modules run scripts systemlessly, meaning they inject code during the boot process without altering your core system files. Step 1: Download or Create a zRAM Disabler Module
If you are unsure whether your changes took effect, you can verify zRAM is disabled by downloading a terminal app (like ) and running the command: cat /proc/swaps . If the output is empty or only shows your file-based swap as inactive, zRAM has been successfully deactivated. disable zram magisk
Tap the button at the bottom right to apply the changes. Method 2: Creating a Custom Magisk Boot Script (Advanced) The easiest and safest way to disable zRAM
If you see an active row showing /dev/block/zram0 with a size value greater than 0, the script failed to run or ran too early in the boot sequence. If the output is empty or only shows
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.