You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Add action.sh support to run autopif.sh from root managers
This commit is contained in:
9
module/action.sh
Normal file
9
module/action.sh
Normal 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user