lululoid/LMKD-PSI-Activator — reverse-engineered prompt
Reverse engineered prompt
Build me a Magisk module for rooted Android phones that improves RAM management by turning on LMKD PSI mode instead of relying on the old minfree levels approach.
I want it to manage ZRAM and swap smarter, so it can create or remove swap when needed, support multiple ZRAM devices if the phone has them, adjust swappiness in real time based on CPU, memory, and IO pressure, and enable kernel features like UFFD garbage collection or ZRAM deduplication when they are available.
Please include a simple config.yaml saved in internal storage under Android/fmiop so users can change thresholds, swappiness range, ZRAM behavior, and sleep deactivation settings without rebuilding the module. Add Magisk action support for manual swap control, logging that users can view with logcat or in an archives folder, and a clear warning for MIUI users because VPNs and background apps may get killed too aggressively.
Look up current Magisk module docs online if you need to.
Want more depth? Deep Reverse