Disable Zram Magisk May 2026
The Ultimate Guide to Disabling ZRAM on Android using Magisk
4. Verification
To confirm the module is active and ZRAM is disabled:
-
Check Memory Info: Open a terminal (ADB or terminal emulator) and run: disable zram magisk
cat /proc/meminfoLook for
SwapTotal. It should read0 kB. Alternatively, checkfree -m. The Ultimate Guide to Disabling ZRAM on Android -
Check Module Status: Inside the Magisk app, the "ZRAM Disabler" module should be checked and active. Check Memory Info: Open a terminal (ADB or
Step 1: Create the Folder Structure
Using a root-enabled file manager (like Mixplorer or Root Explorer), navigate to /data/adb/modules/.
Create a new folder named disable_zram.
Runs before services fully start
swapoff /dev/block/zram0 2>/dev/null echo 1 > /sys/block/zram0/reset 2>/dev/null echo 0 > /sys/block/zram0/disksize 2>/dev/null
Place this in /data/adb/modules/disable_zram/post-fs-data.sh and set chmod 755.