Skip to content

zwajton/OomAdjuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OomAdjuster

A Magisk module keeps important apps like PolygonX safe from being terminated by Android's low memory killer (OOM).

Root handler program

This module requires that your phone is rooted. Root handler programs that this module is working on:

  • Magisk 29+
  • Kitsune
  • Apatch
  • KSU

What the module does

This Magisk module automatically protects PolygonX (com.evermorelabs.polygonx) from being killed by Android’s memory management. It works by:

  • Locking OOM Score: Sets oom_score_adj to -1000 for PolygonX, making it the least likely to be killed by the system.
  • CPU Priority: Increases the CPU priority using renice for smoother performance.
  • CGroup Boost: Moves the app to the top-app CPU and scheduler groups.
  • Phantom Process Tweaks: Applies system tweaks to allow more cached/phantom processes and prevent aggressive background process killing (especially on Android 10+).
  • Cache Management: Monitors RAM usage and automatically drops system caches if memory usage exceeds 80%.
  • App Compaction: Compacts app memory when RAM is high.
  • LRU Deprioritization: Every 60 seconds, scans for background/empty processes and either deprioritizes or force-stops them to keep more memory available for Pokémon GO and PolygonX.
  • Watchdog: Restarts PolygonX if it crashes or is killed.
  • Pokémon Go memory killer (95% system RAM or 2800MB PoGo usage) All actions are logged to /data/adb/modules/oom_adjuster/oom_adjuster.log for troubleshooting.

Install

  1. Download the OOM Adjuster zip file from releases.
  2. Open root manager (Magisk, Magisk Alpha, Kitsune, APatch or KernelSU).
  3. Go to Modules
  4. Tap Install from storage
  5. Select the .zip file you just downloaded
  6. Reboot device as required

About

A Magisk module keeps important apps safe from being terminated by Android's low memory killer (OOM).

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages