mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-20 03:15:00 +08:00
23 lines
758 B
Bash
23 lines
758 B
Bash
# Error on < Android 8.
|
|
if [ "$API" -lt 26 ]; then
|
|
abort "!!! You can't use this module on Android < 8.0"
|
|
fi
|
|
|
|
# Check pif.json
|
|
if [ ! -f /data/adb/pif.json ]; then
|
|
mv -f $MODPATH/pif.json /data/adb/pif.json
|
|
ui_print "- Moved pif.json template, you must modify it."
|
|
fi
|
|
|
|
rm -f $MODPATH/pif.json
|
|
|
|
# SafetyNet-Fix module is obsolete and it's incompatible with PIF.
|
|
if [ -d /data/adb/modules/safetynet-fix ]; then
|
|
touch /data/adb/modules/safetynet-fix/remove
|
|
ui_print "! SafetyNet-Fix module will be removed on next reboot."
|
|
fi
|
|
|
|
# MagiskHidePropsConf module is obsolete in Android 8+ but it shouldn't give issues.
|
|
if [ -d /data/adb/modules/MagiskHidePropsConf ]; then
|
|
ui_print "! WARNING, MagiskHidePropsConf module may cause issues with PIF"
|
|
fi |