ps -A \
| awk '/u0/ { split($NF,a,":"); print a[1] }' \
| sort -u \
| xargs -r -n1 -P4 sh -c 'am force-stop "$1" 2>/dev/null' _force stop running apps
ps -A \
| grep -Ev 'gms|ia.mo|ext|systemui|termux' \
| awk '/u0/ { split($NF,a,":"); print a[1] }' \
| sort -u \
| xargs -r -n1 -P8 sh -c '
pkg="$1"
echo "$pkg"
cmd appops set "$pkg" RUN_IN_BACKGROUND ignore
' _cmd to deny apps from running in the background
cmd package list packages | cut -d: -f2 |
while IFS= read -r pkg; do
dumpsys package "$pkg" 2>/dev/null | grep 'reason'
done |
cut -d: -f2 |
awk '{count[$1]++; total++}
END {
for (s in count)
printf "%s: %.2f%%\n", s, (count[s]/total)*100
}' |
sortSee apps dexaot compile status percentage
example:
[status=speed]: 85.98%
[status=unknown]: 13.64%
[status=verify]: 0.38%
pm list packages -3 \
| cut -d: -f2 \
| xargs -r -n1 -P3 sh -c 'pm compile -m speed "$1"' _compile 3rd party apps to speed, not using -f so its skipping already compiled apps
pm list packages -U \
| awk -F'[: ]' '{print $2, $4}' \
| awk '$1 && $2' \
| xargs -n 2 sh -c '
n="$1"
u="$2"
am compact some "$n" "$u" 2>/dev/null || :
am compact full "$n" "$u" 2>/dev/null || :
' _compact all apps
pm list packages --user 0 -u \
| sed 's/package://' \
| xargs -n1 -P4 sh -c '
p="$1"
pm delete-dexopt "$p" 2>/dev/null || :
' shDelete dexopt but faster
pm list packages -3 \
| awk -F: '{print $2}' \
| xargs -n1 -P5 sh -c 'pm compile -m everything --full "$1"' _compile 5x faster
MODDIR=/data/data/com.android.shell/AxManager/plugins/Runtimexargs -n1 -P8 sh -c '
pkg="$1"
dumpsys package "$pkg" 2>/dev/null | grep -F "reason" || true
' _ <"$MODDIR/compile.txt" \
| cut -f2 -d: \
| awk '{count[$1]++; total++} END{for (s in count) printf "%s: %.2f%%\n", s, (count[s]/total)*100}' \
| sort -nr
find compile status for apps inside the file
❤1
ps -o pid,user,comm \
| awk '$2=="shell" && $3!="sh" && $3!="ps" && $3!="grep" {print $1}' \
| while read pid; do
kill -9 "$pid" 2>/dev/null
doneKill all the shell server
installed_packages="$(pm list packages | cut -d: -f2)"
pm list packages -u | cut -d: -f2 | while IFS= read -r a; do
echo "$installed_packages" | grep -Fxq "$a" || pm install-existing "$a"
doneto get your uninstalled apps pkg id, you can do a lot of thing to it like pm delete dexopt them
Changelog
• Script cleaned and refactored.
• Mode state moved to /data/local/tmp/ so reflashing applies changes immediately.
• Execution flow simplified and redundant logic removed.
• Script cleaned and refactored.
• Mode state moved to /data/local/tmp/ so reflashing applies changes immediately.
• Execution flow simplified and redundant logic removed.
Changelog:
• Added a new softreboot tool, experimental and may behave unpredictably.
• Added a default or “none” mode so the module can return to its normal mode without applying any specific behavior.
• Added a new softreboot tool, experimental and may behave unpredictably.
• Added a default or “none” mode so the module can return to its normal mode without applying any specific behavior.
Changelog:
• Improved gaming mode with updated performance parameters and tighter behavior tuning.
• Added notification support for on-device status signaling.
• Added automatic ionice-based renice handling for all the mode.
• Added full revert options for the associated tools.
• Added automated mode-tweak detection inside the action.
• Thanks to t.me/dcx401 and t.me/Koneko_dev for their contributions.
- old mode tweaks are now killed automatically when flashing a new mode
Bug Fix: adjusted running-script detection to avoid matching the action script itself by excluding the current process ID.
• Improved gaming mode with updated performance parameters and tighter behavior tuning.
• Added notification support for on-device status signaling.
• Added automatic ionice-based renice handling for all the mode.
• Added full revert options for the associated tools.
• Added automated mode-tweak detection inside the action.
• Thanks to t.me/dcx401 and t.me/Koneko_dev for their contributions.
- old mode tweaks are now killed automatically when flashing a new mode
Bug Fix: adjusted running-script detection to avoid matching the action script itself by excluding the current process ID.
❤2
Read the must-read file carefully.
This module is for nonroot use, and its configuration is hardcoded for AxManager and for my device.
Adjust everything as required for your own setup.
Download
Credits: @HoyoSlave @Dcx400
This module is for nonroot use, and its configuration is hardcoded for AxManager and for my device.
Adjust everything as required for your own setup.
Download
Credits: @HoyoSlave @Dcx400
Changelog:
• Improved the action interface to enhance overall user experience.
• Applied further optimizations to the script for cleaner and more efficient operation.
• Moved force-stop into setup so it doesn’t trigger on mode changes.
• Cleaner action code thanks to t.me/koneko_dev.
• Added new mode to rerun setup.
Download Here
• Improved the action interface to enhance overall user experience.
• Applied further optimizations to the script for cleaner and more efficient operation.
• Moved force-stop into setup so it doesn’t trigger on mode changes.
• Cleaner action code thanks to t.me/koneko_dev.
• Added new mode to rerun setup.
Download Here
Runtime is essentially complete. If there’s interest, I can either continue expanding it with additional tools or shift focus to another module, feel free to suggest the direction.
while IFS= read -r p; do
[ -z "$p" ] && continue
{ cmd } &
doneto run while read in pararel
Should I release a new module that functions like runtime but remains universal across devices by excluding any tools, and what would be an appropriate name for it?
Note: mode will be preserved.
Note: mode will be preserved.
❤5
Module Name: CoreShift
Version: 69.0
Developer: Diky
Function: Targeted system-refinement module that traces and optimizes processing pipelines while enforcing strict background controls on system apps.
Status: Refined
Notes: Cleaned codebase, reduced overhead, tightened background controls
Download: Download Here
Credit: Dcx | Koneko | Hoyoslave
Changelog:
• Added Network Control Utility for blocking app internet access.
Note: Behavior varies by device; not guaranteed to work universally.
• Improved help output for clearer, more user-friendly instructions.
❤1
Run the following commands in your terminal to display their usage information:
modenet