Make scripts-only mode opt-in only

- older custom ROMs may be able to pass only with the Zygisk components active, since the custom ROM doesn't have the correct stock ROM values
This commit is contained in:
Chris Renshaw
2024-03-28 11:33:08 -03:00
committed by GitHub
parent 8414785806
commit 8215587745

View File

@@ -1,6 +1,6 @@
# Allow a scripts-only mode on older Android without Zygisk
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"
# Allow a scripts-only mode on older Android (<10) which may not require the Zygisk components
if [ -f /data/adb/modules/playintegrityfix/scripts-only-mode ]; then
ui_print "! Installing global scripts only; 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 \