
And updater-script (empty file is fine).
#MAGISK
The constant compression and decompression require CPU cycles , which can cause micro-stutters and increased battery drain on devices that already have 8GB–16GB of RAM and don't need the extra space. Method 1: Use a Dedicated Magisk Module (Recommended)
Reboot. After boot, verify with cat /proc/swaps – ZRAM should be gone. disable zram magisk
Are you looking to improve or battery life ?
Create module.prop :
How to Disable zRAM on Android via Magisk On Android devices, creates a compressed block device in your RAM that acts as swap space. While it helps lower-end devices handle more background apps, it can cause CPU overhead or "stuttering" on high-end devices. Using Magisk allows you to disable this system-level feature persistently without needing to re-apply commands after every reboot. 1. Using a Magisk Module (Easiest Method) And updater-script (empty file is fine)
The most stable method to disable ZRAM is by creating a simple Magisk module that executes a script during the boot process to reset the ZRAM device.
Before proceeding, consider the trade-offs based on expert and community feedback: Impact of Disabling zRAM Performance
Android handles its zRAM initialization very early in the boot sequence through the init system ( init.rc configurations). Attempting to permanently turn off zRAM by modifying system files directly will break your device's cryptographically verified boot security (Android Verified Boot / dm-verity). After boot, verify with cat /proc/swaps – ZRAM
To disable , the standard approach is to create or use a Magisk module that executes a shell script during the boot process. Since zRAM is often re-enabled by the Android system or specific vendor services (like Samsung's or Xiaomi's Memory Extension ), a script ensures it stays off. Feature Overview: zRAM Disabler Module
id=disable_zram name=ZRAM Disabler version=v1.0 versionCode=1 author=YourName description=Disables ZRAM swap device to free up CPU cycles and physical RAM space.