2023-11-30 19:28:01 +02:00
|
|
|
# Error on < Android 8.
|
2023-11-24 21:58:30 +02:00
|
|
|
if [ "$API" -lt 26 ]; then
|
2023-11-29 06:19:14 +02:00
|
|
|
abort "!!! You can't use this module on Android < 8.0"
|
2023-11-24 21:58:30 +02:00
|
|
|
fi
|
|
|
|
|
2023-11-30 19:28:01 +02:00
|
|
|
# Copy default pif.json if it doesn't exist.
|
|
|
|
if [ ! -e /data/adb/pif.json ]; then
|
|
|
|
mv -f $MODPATH/pif.json /data/adb/pif.json
|
|
|
|
ui_print "Moved default pif.json file!"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# SafetyNet-Fix module is obsolete and it's incompatible with PIF.
|
2023-11-29 06:19:14 +02:00
|
|
|
if [ -d /data/adb/modules/safetynet-fix ]; then
|
|
|
|
touch /data/adb/modules/safetynet-fix/remove
|
2023-11-30 19:28:01 +02:00
|
|
|
ui_print "!!! SafetyNet-Fix module will be removed on next reboot."
|
2023-11-29 18:55:27 +02:00
|
|
|
fi
|
2023-11-29 06:19:14 +02:00
|
|
|
|
2023-11-30 19:28:01 +02:00
|
|
|
# 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"
|
2023-11-29 17:19:43 +02:00
|
|
|
fi
|