Skip to content

MemoryOPT-1.0.0-stable

Choose a tag to compare

@ellenoireQ ellenoireQ released this 17 Dec 03:13
· 1 commit to main since this release
2418499

New Features

  • protect_self() - New function to protect MemOpt app from OOM Killer

    • Sets OOM score to highest protection leve
    • Automatically called every time memopt_lmk() and is_fat_process() runs
    • Prevents MemOpt from being killed when RAM is full
  • Stable release - version 1.0.0

Fixes & Optimizations

is_fat_process() - Fat Process Detection

  • Fixed shell command escaping - Replaced awk with sed and shell parameter expansion to avoid syntax errors on Android shell
  • Batch pidof command - All pidof executed in 1 command
  • Direct /proc read - Read /proc/PID/status directly in Rust for VmRSS and VmSwap
  • Fallback root read - If direct read fails, fallback to su -c cat
  • Full memory info - Display RSS, Swap, and Total memory for each process
  • Removed 10 package limit - Now checks all packages, not just the first 10
  • SYSTEM_PACKAGES protection - Uses full list of system packages that should never be killed
  • New thresholds:
    • Total memory > 100 MB → FAT
    • Swap > 30 MB → FAT
  • Batch kill - All FAT processes killed in 1 command
  • High CPU Usage
  • Settings - add join telegram button

get_app_mem_safe() - OOM Protection for Apps

  • Fixed async/await - Added missing .await on execute_root_command()
  • Replaced for_each with for loop - Closures cannot be async