From 1d004623dcf7f3a7a479989188a9adfe0c4ca23c Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:13:29 +0800 Subject: [PATCH] module/autopif: better process kill --- module/autopif.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/autopif.sh b/module/autopif.sh index 980e785..159bd1b 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -21,7 +21,7 @@ set_random_beta() { DEVICE=$(echo "$PRODUCT" | sed 's/_beta//') } -# lets use tmpfs for processing +# lets try to use tmpfs for processing TEMPDIR="$MODDIR/autopif" [ -w /sbin ] && TEMPDIR="/sbin/autopif" [ -w /debug_ramdisk ] && TEMPDIR="/debug_ramdisk/autopif" @@ -85,4 +85,7 @@ cd "$MODPATH" echo "- Cleaning up ..." rm -rf "$TEMPDIR" -su -c killall com.google.android.gms.unstable || echo "" +for i in $(busybox pidof com.google.android.gms.unstable); do + echo "- Killing pid $i" + kill -9 $i +done