Disable Zram Magisk 🎉
that allows fine-tuning or complete deactivation. To disable zRAM using this module, add swap_off; exit to its configuration file located at /data/adb/vr25/zram-swap-manager-data/config.txt Manual Scripting : You can create a simple boot script in /data/adb/service.d/ to run the following command on every boot: #!/system/bin/sh swapoff /dev/block/zram0 Use code with caution. Copied to clipboard
While not purely a "disable" tool, this module offers dynamic control over zRAM parameters, giving you fine-grained authority over its behavior. If you're not ready to fully disable zRAM, this is an excellent alternative.
is a powerful Linux kernel feature that has become a staple in modern Android devices. By compressing a portion of your RAM, it effectively creates a virtual swap space, allowing your phone to keep more apps in the background. However, not every user finds ZRAM beneficial. For power users, gamers, or those with devices that have ample physical RAM, ZRAM can sometimes lead to unwanted CPU overhead, lag, or battery drain.
What and Android version are you currently running? How much physical RAM does your phone have? disable zram magisk
To disable zRAM permanently using the methods below, your device must meet the following requirements:
A terminal app installed on your phone (like Termux) to verify your changes.
What is your and how much physical RAM does it have? Are you running a stock ROM or a custom AOSP-based ROM? that allows fine-tuning or complete deactivation
Less available memory overall (you might experience aggressive background app killing), potentially higher battery usage if you use a massive number of apps simultaneously. Methods to Disable ZRAM with Magisk
Create a new file inside this folder and name it something recognizable, such as disable_zram.sh . Step 2: Write the Command Code
This module not only disables zRAM but also replaces it with zswap , a more efficient compression method that selectively compresses only compressible data. Unlike zRAM, which compresses everything blindly, zswap aims to conserve CPU resources by being smarter about what gets compressed. Note: On first boot, this module may boot slowly while it sets up zswap. If you're not ready to fully disable zRAM,
Your device must be rooted with Magisk installed.
Open the and navigate to the Modules tab on the bottom right. Tap Install from storage at the top of the screen.