ar
Feedback
CoreShift

CoreShift

الذهاب إلى القناة على Telegram

Developer-facing tooling only. Not intended for casual or personal use. Assumes you understand shell behavior, Android service boundaries, and the side effects of touching ART, app-ops, system properties, and device_config. Group chat - @diky_IC

إظهار المزيد
697
المشتركون
لا توجد بيانات24 ساعات
+37 أيام
+1130 أيام
أرشيف المشاركات
pm list packages -3 \ | awk -F: '{print $2}' \ | xargs -n1 -P5 sh -c 'pm compile -m everything --full "$1"' _
compile 5x faster

Continuously frees RAM by compacting all apps every few seconds. The module runs a background loop that repeats Android’s built-in memory-compaction command for all user apps. Note: using the action button runs a single one-time compaction only; it does not keep looping.

pm list packages --user 0 -u \ | sed 's/package://' \ | xargs -n1 -P4 sh -c ' p="$1" pm delete-dexopt "$p" 2>/dev/null || : ' sh
Delete dexopt but faster

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 -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

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 }' | sort
See apps dexaot compile status percentage example:
[status=speed]: 85.98% [status=unknown]: 13.64% [status=verify]: 0.38%

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

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

cmd deviceidle whitelist \ | awk -F',' '{print $(NF-1)}' \ | xargs -r -n1 -P8 sh -c 'cmd deviceidle sys-whitelist "-$1" && cmd deviceidle whitelist "-$1"' _
remove all the deviceidle whitelist

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