Disable Zram Magisk ((full))

First, he turned it off:

If you see /dev/block/zram0 (or similar) with a size >0, ZRAM is enabled.

Paste the following shell script into the service.sh file. This script waits for the device to finish booting, safely turns off the swap space, and resets the zRAM disk size to zero:

If you want, I can generate a ready-to-install Magisk module zip you can download (I will provide the file structure and scripts).

Tap the button at the bottom right to apply the changes. Method 2: Creating a Custom Magisk Boot Script (Advanced) disable zram magisk

How to Disable ZRAM on Android via Magisk: A Complete Guide (2026)

The free app provides a user-friendly interface to see what's happening with your device's storage and swap. If zRAM is disabled, the app will not show any active swap usage.

On modern devices equipped with 8GB, 12GB, or 16GB of physical RAM, zRAM is often redundant and unnecessarily throttles peak performance. Prerequisites Before Proceeding

Long-press the disable_zram.sh file in your file manager and open its or Permissions menu. First, he turned it off: If you see

To help narrow down the next steps for your specific setup, tell me:

echo "id=disable_zram" > /data/adb/modules/disable_zram/module.prop echo "name=Disable zRAM" >> /data/adb/modules/disable_zram/module.prop echo "version=1.0" >> /data/adb/modules/disable_zram/module.prop echo "versionCode=1" >> /data/adb/modules/disable_zram/module.prop echo "author=You" >> /data/adb/modules/disable_zram/module.prop echo "description=Disables zRAM on boot" >> /data/adb/modules/disable_zram/module.prop

If cat /proc/swaps shows zRAM is still active after using Method 2, your device's kernel might be recreating the swap space late in the boot cycle. To fix this, open your script and increase the sleep timer from 5 to 15 or 20 seconds to give the system more time to settle before executing the swapoff command.

Create a new text file inside this folder and name it disable_zram.sh . Tap the button at the bottom right to apply the changes

zRAM is a "compressed swap" in your memory. It creates a virtual block device where data is compressed to save space. Performance Gain

However, many power users prefer to disable ZRAM to reduce CPU overhead, prevent micro-stutters caused by compression/decompression processes, or because they have devices with ample physical RAM (8GB+).

Set the permissions to (rwxr-xr-x). This grants read, write, and execute permissions to the owner, and read/execute permissions to others. Reboot your device. How to Verify That zRAM is Disabled

The extra CPU work required for compression and decompression translates directly to additional power draw. While the impact may be marginal on efficient modern SoCs, every extra CPU cycle contributes to battery drain over the course of a full day's usage. For users who prioritize battery life above all else, disabling zRAM can yield a small but measurable benefit.

Before disabling, verify ZRAM status:

Boot your device into (this temporarily disables all Magisk modules).

disable zram magisk

disable zram magisk
手机版 小黑屋 Time now is:11-09 10:45, 请合理支配时间, Gzip enabled
Code © 2013-2019 anxiangge.cc Corporation
快速回复 返回顶部 返回列表