Disable Zram Magisk Review

If zRAM is disabled, this will output 0 .

October 26, 2023 Subject: Procedures and Implications of Disabling ZRAM via Magisk Target Audience: Advanced Android Users, Developers, Modifiers

#!/system/bin/sh

If you're unsure about disabling zram or have a device with sufficient RAM, it's recommended to leave zram enabled. However, if you're experiencing issues or want to try out this modification, make sure to monitor your device's performance and adjust as needed. disable zram magisk

Save the file.

for zram in /dev/block/zram*; do if [ -e "$zram" ]; then swapoff "$zram" 2>/dev/null echo 1 > /sys/block/$zram## //reset 2>/dev/null echo 0 > /sys/block/$zram## //disksize 2>/dev/null fi done

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 zRAM is disabled, this will output 0

Package and install:

This post shows two safe methods to disable zram on Android devices with Magisk installed: (A) a Magisk module that disables zram at boot, and (B) a one-line init.d-style script injected via Magisk. Use method A if you want an easy reversible option; use B for minimal changes.

To revert:

Run in terminal as su :

If you prefer not to use a third-party module, you can create a simple boot script.

The module is an open-source tool designed specifically to disable compressed-memory swap on Android devices. It's particularly recommended for devices with 2GB of RAM or more, where swap mechanisms can cause lag and UI pauses. Save the file

This method is highly device-specific and may work on older stock ROMs. It involves commenting out a line in the build.prop file to prevent a system script from creating the zRAM disk.

You were not leaving your cart just like that, right?

You were not leaving your cart just like that, right?

Enter your details below to save your shopping cart for later. And, who knows, maybe we will even send you a sweet discount code :)

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.
disable zram magisk

Hey Capt!

JOIN OUR NEWSLETTER