HChenX/AppRetention ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android Xposed or LSPosed style module that helps keep apps alive in the background by hooking the system kill logic, not by using a fake foreground service or battery tricks.

I want it to work mainly on newer Android versions and common custom ROMs like HyperOS, AOSP, and Samsung One UI, with clear notes if some parts are only partially supported. The app should let me enable it in the hooking app, choose the right system scope, and then stop the system from killing apps for normal background cleanup, process limits, idle cleanup, or scheduled task cleanup. It should be clear that it does not block crashes, ANRs, app self kill, uninstall, updates, or low memory kills.

Please make it easy to install and use, with a simple interface and helpful warnings about possible battery use, system lag, or boot issues. If you need current docs or APIs, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab