Open service.sh with a text editor and add the following lines:
Disabling ZRAM on a rooted Android device using Magisk is a powerful tweak for users who prioritize raw CPU performance over aggressive background app retention. The best method depends on your technical comfort level: disable zram magisk
The easiest method is to install a pre-made module. While there isn’t an official “Disable ZRAM” module in Magisk’s repo, you can create your own or use (a popular module that disables all swap, including ZRAM). Open service