From 75cf629015bf7e2d5e949be6e1aad5b53c91c448 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Wed, 27 Mar 2024 00:59:20 -0300 Subject: [PATCH] Fix mistakenly forced scripts-only mode on clean installs - use manual opt-in trigger of a scripts-only-mode file existing in the PIF module subdirectory - clarify installer message since Magisk Zygisk actually functions on Android < 8 now, but the Zygisk attestation fallback and device spoofing aren't necessary to pass on these (and also some later) devices --- module/customize.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/customize.sh b/module/customize.sh index c583def..59afc02 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -1,6 +1,7 @@ # Allow a scripts-only mode on older Android without Zygisk -if [ "$API" -lt 26 -o ! -d /data/adb/modules/playintegrityfix/zygisk ]; then - ui_print "! Installing global scripts only for Android < 8.0; no Zygisk device spoofing possible" +if [ "$API" -lt 26 -o -f /data/adb/modules/playintegrityfix/scripts-only-mode ]; then + ui_print "! Installing global scripts only for Android < 8.0; Zygisk attestation fallback and device spoofing disabled" + touch $MODPATH/scripts-only-mode rm -rf $MODPATH/classes.dex $MODPATH/common_setup.sh $MODPATH/custom.pif.json \ $MODPATH/example.app_replace.list $MODPATH/example.pif.json $MODPATH/migrate.sh $MODPATH/zygisk \ /data/adb/modules/playintegrityfix/custom.app_replace.list \