seclususs/qos-android — reverse-engineered prompt
Reverse engineered prompt
Build me an Android root performance module called QoS that helps keep the phone responsive by watching kernel pressure signals and tuning CPU scheduling and storage I/O in the background.
It should install as a Magisk module, start a small protected userspace daemon, and only run on devices that support PSI at /proc/pressure. If PSI is missing, it should clearly warn the user and refuse to apply changes. The daemon should read CPU and I/O pressure, temperature, and storage state, then adjust safe kernel tunables through sysfs to reduce lag without fighting other performance modules.
Also make a simple Android management app where the user can see daemon status, enable or disable the module, view basic live pressure and tuning state, and adjust advanced scheduler or storage settings if they know what they’re doing. Please include strong warnings because this touches kernel behavior and can cause instability. Look up current Android, Magisk, Rust, C++, and Kotlin docs if needed.
Want more depth? Deep Reverse