WeirdMidas/SkySceneAddon ? reverse-engineered prompt
Reverse engineered prompt
Build me a Magisk module for Android that helps memory management on both older and newer devices.
I want it to improve smoothness under heavy use by tuning swapping, ZRAM, cached process limits, and low memory behavior, while still being safe enough to use on regular rooted phones. It should let me edit a couple of simple text files after reboot, one for memory tuning settings and one for apps I want to keep in the background, then apply those changes on the next boot.
Please make it work for Android 8 and above, keep SELinux enabled, and support different behavior for older LRU based systems and newer MGLRU based systems. If possible, include reasonable defaults for ZRAM size and compression, and make sure it does not try to do anything with CPU, GPU, or storage performance. If you need to, look up current Android memory tuning docs online before finishing.
Are you gonna build this?
make sure you review the code using coderabbit