echo 0 > /sys/block/zram0/disksize 2>/dev/null echo 0 > /sys/block/zram1/disksize 2>/dev/null
: Reduced CPU activity for memory management can lead to minor improvements in battery longevity. disable zram magisk
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. echo 0 >
chmod 755 service.sh chmod 644 module.prop /dev/null echo 0 >
id=disable_zram name=Disable ZRAM version=1.0 versionCode=1 author=Kai description=Completely disables compressed swap at boot.
Before proceeding, ensure your device meets the following:
Improperly modifying memory management can make your device unstable. Do not proceed if you rely on your phone for critical daily tasks.