Add action.sh support to run autopif.sh from root managers

This commit is contained in:
Chris Renshaw
2024-09-25 12:43:39 -03:00
committed by GitHub
parent 27fc24337b
commit 8c216e2d40
2 changed files with 11 additions and 2 deletions

9
module/action.sh Normal file
View File

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

View File

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