A1 Memory Management

OneB1ank

Magisk KernelSU
Richard8
Version
2.83 MB
Size
Nov 26, 2023
Updated

Module Info

  • Contributors OneB1ank
  • Source Code View Repository
  • Tags
    #A1 Memory Management #Memory Management #App Hibernation #LMKD #Magisk Module #KernelSU #arm64-v8a

About this module

A1 Memory Management is a root module that controls background apps to reduce memory use. It decides which background processes stay alive, puts apps to sleep to cut CPU and memory use, and stops the Low Memory Killer Daemon from killing background processes. module.prop names HChai as the author.

Requirements

  • Android 8 to 14.
  • arm64-v8a only. The installer aborts on other platforms.
  • Magisk 20.4 or newer. The README says KernelSU is "mostly compatible".

What it installs

  • The main HC_memory program and libhook_lmkd.so, which hooks LMKD.
  • A helper app, com.hchai.rescueplan, installed with pm install.
  • A system.prop that sets persist.vendor.qti.memory.enable, persist.sys.spc.enabled and ro.lmk.kill_heaviest_task to false.

Configuring it

  • Simple toggles: run amui in Termux, or run /sdcard/Android/HChai/HC_memory/terminal.sh in MT Manager. Use the arrow keys to move around and Enter to save.
  • App lists: edit 名单列表.conf in /sdcard/Android/HChai/HC_memory/.
  • All parameters: edit config/memory.json in the module folder, /data/adb/modules/Hc_memory/. The README says the built-in config suits most devices.
  • Logs: /sdcard/Android/HChai/HC_memory/Run.log.

Removing it

Remove the module in your root manager and reboot. uninstall.sh deletes /sdcard/Android/HChai/HC_memory, /data/HC_memory and /data/HC_language, and uninstalls the helper app, so back up your lists first if you want to keep them.