Zip the disable_zram folder (not its contents) and flash it via Magisk Manager → Modules → Install from storage. Reboot.
#!/system/bin/sh # Stop zram if active and disable it if [ -e /sys/block/zram0/reset ]; then echo 1 > /sys/block/zram0/reset 2>/dev/null || true fi for d in /sys/block/zram*; do [ -e "$d/disksize" ] && echo 0 > "$d/disksize" 2>/dev/null || true done # Unload zram module if possible /sbin/modprobe -r zram 2>/dev/null || /system/bin/rmmod zram 2>/dev/null || true
Activity * VR-25 commented. VR-25. on Mar 4, 2022. Owner. Sure. Add swap_off; exit to it. * xDoge26 commented. xDoge26. on Mar 17, Magisk-Modules-Alt-Repo/disable-low-ram - GitHub
Most modern Android devices rely on ZRAM to keep multiple apps alive in the background without killing them aggressively.
This is where —the systemless rooting interface—comes in. Using Magisk, we can disable ZRAM entirely without modifying the system partition. But be warned: Disabling ZRAM on a low-RAM device will cause apps to crash and reload frequently.
Zip the disable_zram folder (not its contents) and flash it via Magisk Manager → Modules → Install from storage. Reboot.
#!/system/bin/sh # Stop zram if active and disable it if [ -e /sys/block/zram0/reset ]; then echo 1 > /sys/block/zram0/reset 2>/dev/null || true fi for d in /sys/block/zram*; do [ -e "$d/disksize" ] && echo 0 > "$d/disksize" 2>/dev/null || true done # Unload zram module if possible /sbin/modprobe -r zram 2>/dev/null || /system/bin/rmmod zram 2>/dev/null || true
Activity * VR-25 commented. VR-25. on Mar 4, 2022. Owner. Sure. Add swap_off; exit to it. * xDoge26 commented. xDoge26. on Mar 17, Magisk-Modules-Alt-Repo/disable-low-ram - GitHub
Most modern Android devices rely on ZRAM to keep multiple apps alive in the background without killing them aggressively.
This is where —the systemless rooting interface—comes in. Using Magisk, we can disable ZRAM entirely without modifying the system partition. But be warned: Disabling ZRAM on a low-RAM device will cause apps to crash and reload frequently.