PlayIntegrityFix/module_resetprop/customize.sh

27 lines
877 B
Bash
Raw Normal View History

2023-11-30 19:28:01 +02:00
# Error on < Android 8.
if [ "$API" -lt 26 ]; then
abort "!!! You can't use this module on Android < 8.0"
fi
# Copy default pif.json if it doesn't exist.
if [ ! -e /data/adb/pif.json ]; then
2023-12-01 12:53:55 +02:00
cp -af $MODPATH/pif.json /data/adb/pif.json
2023-11-30 19:28:01 +02:00
ui_print "- Moved default pif.json file!"
fi
# 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
# use our resetprop
mv -f $MODPATH/bin/$ABI/resetprop $MODPATH
rm -rf $MODPATH/bin
set_perm $MODPATH/resetprop root root 755