PlayIntegrityFix/module/customize.sh

28 lines
968 B
Bash
Raw Normal View History

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
abort "!!! You can't use this module on Android < 8.0"
2023-11-24 21:58:30 +02:00
fi
2023-12-03 22:12:15 +02:00
# Check custom pif.json
if [ -e /data/adb/pif.json ]; then
ui_print "!!! WARNING, You are using a custom pif.json. Module will use it."
ui_print "!!! If you want to use recommended one, remove this file."
ui_print "!!! To remove it, execute as root: rm -f /data/adb/pif.json"
fi
2023-11-30 19:28:01 +02:00
# 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
2023-11-30 19:28:01 +02:00
ui_print "!!! SafetyNet-Fix module will be removed on next reboot."
fi
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"
fi
2023-12-03 22:12:15 +02:00
# curl
mv -f $MODPATH/bin/$ABI/curl $MODPATH
rm -rf $MODPATH/bin
set_perm $MODPATH/curl root root 777