# Error on < Android 8. if [ "$API" -lt 26 ]; then abort "- !!! You can't use this module on Android < 8.0" fi # safetynet-fix module is obsolete and it's incompatible with PIF. if [ -d /data/adb/modules/safetynet-fix ]; then rm -rf /data/adb/modules/safetynet-fix rm -f /data/adb/SNFix.dex ui_print "! safetynet-fix module will be removed. Do NOT install it again along PIF." 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 # Remove xiaomi.eu apps if [ -d "/product/app/XiaomiEUInject" ]; then directory="$MODPATH/product/app/XiaomiEUInject" [ -d "$directory" ] || mkdir -p "$directory" touch "$directory/.replace" ui_print "- XiaomiEUInject app removed." fi if [ -d "/product/app/XiaomiEUInject-Stub" ]; then directory="$MODPATH/product/app/XiaomiEUInject-Stub" [ -d "$directory" ] || mkdir -p "$directory" touch "$directory/.replace" ui_print "- XiaomiEUInject-Stub app removed." fi # Remove EliteRoms app if [ -d "/system/app/XInjectModule" ]; then directory="$MODPATH/system/app/XInjectModule" [ -d "$directory" ] || mkdir -p "$directory" touch "$directory/.replace" ui_print "- XInjectModule app removed." fi if [ -d "/system/app/EliteDevelopmentModule" ]; then directory="$MODPATH/system/app/EliteDevelopmentModule" [ -d "$directory" ] || mkdir -p "$directory" touch "$directory/.replace" ui_print "- EliteDevelopmentModule app removed." fi if [ -f "/data/adb/pif.json" ]; then mv -f "/data/adb/pif.json" "/data/adb/pif.json.old" ui_print "- Backup old pif.json file" ui_print "- Module will use the default one" ui_print "- If you want to use your custom fingerprint, remove .old extension" fi ui_print "! If you don't pass DEVICE verdict after install (and reboot)" ui_print "! Check kernel release name (In Shell run: 'uname -r')" ui_print "! Google banned few strings in kernel to avoid users using custom kernels" ui_print "! Try to use stock kernel or not banned one" ui_print "! Kernels with 'bad' strings like 'lineageos' are banned!" ui_print "! Check official XDA post to know more about this" ui_print "! If you are using stock ROM without custom kernel just ignore this"