MemoryOPT-1.0.0-stable
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()andis_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
awkwithsedand 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/statusdirectly 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
.awaitonexecute_root_command() - Replaced
for_eachwithforloop - Closures cannot be async