getprop | grep '\[persist.log.tag' | sed -n 's/^\[\(persist.log.tag[^]]*\)\].*/\1/p' | grep -v '^$' | xargs -r -n1 -P8 sh -c 'command -v setprop >/dev/null 2>&1 && setprop "$1" S' _turn all the persist log tag to S, need reboot to apply changes
remove all the deviceidle whitelistcmd deviceidle whitelist \
| awk -F',' '{print $(NF-1)}' \
| xargs -r -n1 -P8 sh -c 'cmd deviceidle sys-whitelist "-$1" && cmd deviceidle whitelist "-$1"' _
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