diff --git a/module/action.sh b/module/action.sh new file mode 100644 index 0000000..7e4f753 --- /dev/null +++ b/module/action.sh @@ -0,0 +1,9 @@ +MODPATH="${0%/*}" + +set +o standalone +unset ASH_STANDALONE +sh $MODPATH/autopif.sh || exit 1 + +echo -e "\nDone!" +echo -e "\nClosing dialog in 10 seconds ..." +sleep 10 diff --git a/module/autopif.sh b/module/autopif.sh index 5319a20..de82d4a 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -20,7 +20,7 @@ esac; DIR=$(dirname "$(readlink -f "$DIR")"); item() { echo "\n- $@"; } -die() { echo "Error: $@!"; exit 1; } +die() { echo "\nError: $@!"; exit 1; } find_busybox() { [ -n "$BUSYBOX" ] && return 0; @@ -127,6 +127,6 @@ if [ "$DIR" = /data/adb/modules/playintegrityfix/autopif ]; then cp -fv $NEWNAME ..; 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; + sh /data/adb/modules/playintegrityfix/killgms.sh 2>&1 || true; fi; fi;