After disabling ZRAM, your device will rely solely on physical RAM. To prevent the Out-Of-Memory (OOM) killer from murdering every background app, adjust the vm.swappiness parameter.
By default, Android sets swappiness to 100–180 (aggressive swapping). With ZRAM gone, set it to 0 (swap never used) or 10 (very rare swapping if a swap file exists).
Run:
su
echo 0 > /proc/sys/vm/swappiness
To make it permanent, add this line to your service.sh script from Method 2.
for d in /sys/block/zram*; do [ -e "$d/disksize" ] && echo 0 > "$d/disksize" 2>/dev/null; done; ( [ -e /sys/block/zram0/reset ] && echo 1 > /sys/block/zram0/reset 2>/dev/null ) || true; /sbin/modprobe -r zram 2>/dev/null || true
Inside the disable_zram folder, create a text file named module.prop. Paste the following content into it:
id=disable_zram
name=Disable ZRAM
version=v1.0
versionCode=1
author=YourName
description=Disables ZRAM swap to free up CPU cycles.
This method disables ZRAM instantly, but the change is lost after a reboot. Use it for testing before making a permanent change.