Launcher program, HOWTO install and upgrade Elite Dangerous game.
Show you how to instead of fully disabling it (swappiness/compression).
Games demand consistent CPU/RAM performance. ZRAM activity can cause frame drops.
id=disable_zram name=Disable ZRAM version=v1.0 versionCode=1 author=YourName description=Disables ZRAM swapping to improve performance. Use code with caution. disable zram magisk
If your script executes too early during the kernel initialization phase, it may cause temporary system instability. If this occurs, increase the sleep timer in your script from 20 or 30 seconds up to 60 seconds to allow the OS to stabilize before disabling swap.
#!/system/bin/sh # Wait for the boot to finish while [ "$(getprop sys.boot_completed)" != "1" ]; do sleep 5 done # Disable ZRAM swapoff /dev/block/zram0 echo 1 > /sys/block/zram0/reset Use code with caution. Zip the disable_zram folder. Install: Flash this zip in the Magisk App. How to Verify ZRAM is Disabled After rebooting, you should verify that the change worked. Open a terminal app (like Termux) or use ADB shell. Run the command: cat /proc/swaps Show you how to instead of fully disabling
If your phone only has 4GB or 6GB of physical RAM, disabling zRAM might cause background apps to close more aggressively. You may notice browser tabs reloading or music apps shutting down when you switch tasks.
By disabling zRAM, you force Android to use pure, raw physical RAM. Apps will launch and switch faster because they remain entirely uncompressed in memory. Prerequisites id=disable_zram name=Disable ZRAM version=v1
It is highly recommended to only disable zRAM if your device has 6GB of physical RAM or more . Disabling it on low-RAM devices (4GB or less) can cause frequent app crashes and system instability.
To disable zram using Magisk, you'll need to:
Open the Magisk app, navigate to , and delete or toggle off the zRAM disabler module.
If you prefer not to manage an entire module, Magisk allows you to place standalone execution scripts directly into its system directories. Magisk will run these scripts automatically every time your phone turns on.