Place this in /data/adb/modules/disable_zram/post-fs-data.sh and set chmod 755 .
Magisk has become the gold standard for these modifications because it allows for "systemless" changes. Unlike traditional "root" methods that modify the disable zram magisk
For a permanent solution that survives reboots, create a custom boot script managed by Magisk. Place this in /data/adb/modules/disable_zram/post-fs-data
To revert: