diff --git a/module/autopif.sh b/module/autopif.sh index 99ee380..11eee78 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -14,12 +14,6 @@ case "$0" in esac; DIR=$(dirname "$(readlink -f "$DIR")"); -if [ "$DIR" = /data/adb/modules/playintegrityfix ]; then - DIR=$DIR/autopif; - mkdir -p $DIR; -fi; -cd "$DIR"; - if ! which wget >/dev/null; then if [ -f /data/adb/magisk/busybox ]; then wget() { /data/adb/magisk/busybox wget "$@"; } @@ -35,6 +29,12 @@ fi; item() { echo "\n- $@"; } +if [ "$DIR" = /data/adb/modules/playintegrityfix ]; then + DIR=$DIR/autopif; + mkdir -p $DIR; +fi; +cd "$DIR"; + if [ ! -f apktool_2.0.3-dexed.jar ]; then item "Downloading Apktool ..."; wget --no-check-certificate -O apktool_2.0.3-dexed.jar https://github.com/osm0sis/APK-Patcher/raw/master/tools/apktool_2.0.3-dexed.jar 2>&1 || exit 1; @@ -64,19 +64,27 @@ grep -o '