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
This commit is contained in:
Chris Renshaw
2024-03-27 00:59:20 -03:00
committed by GitHub
parent 36ce25f154
commit 75cf629015

View File

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