From 200d40c127ad6abd262aaa42c05f3490bde1b2fe Mon Sep 17 00:00:00 2001 From: pershoot <190600+pershoot@users.noreply.github.com> Date: Thu, 8 Aug 2024 18:08:58 -0400 Subject: [PATCH] autopif.sh: Do not execute killgms.sh if not in default directory --- module/autopif.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/module/autopif.sh b/module/autopif.sh index 5d6f85c8..3e88519f 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -110,7 +110,9 @@ if [ "$DIR" = /data/adb/modules/playintegrityfix/autopif ]; then cp -fv $NEWNAME ..; fi; -if [ -f /data/adb/modules/playintegrityfix/killgms.sh ]; then - item "Killing any running GMS DroidGuard process ..."; - sh /data/adb/modules/playintegrityfix/killgms.sh 2>&1; +if [ "$DIR" = /data/adb/modules/playintegrityfix/autopif ]; then + if [ -f /data/adb/modules/playintegrityfix/killgms.sh ]; then + item "Killing any running GMS DroidGuard process ..."; + sh /data/adb/modules/playintegrityfix/killgms.sh 2>&1; + fi; fi;