2023-12-01 01:28:01 +08:00
|
|
|
# Error on < Android 8.
|
2023-11-25 03:58:30 +08:00
|
|
|
if [ "$API" -lt 26 ]; then
|
2023-12-11 07:22:38 +08:00
|
|
|
abort "- !!! You can't use this module on Android < 8.0"
|
2023-11-25 03:58:30 +08:00
|
|
|
fi
|
|
|
|
|
2023-12-11 07:22:38 +08:00
|
|
|
# safetynet-fix module is obsolete and it's incompatible with PIF.
|
2023-11-29 12:19:14 +08:00
|
|
|
if [ -d /data/adb/modules/safetynet-fix ]; then
|
2024-01-12 20:32:32 +08:00
|
|
|
rm -rf /data/adb/modules/safetynet-fix
|
|
|
|
rm -f /data/adb/SNFix.dex
|
2023-12-20 20:16:05 +08:00
|
|
|
ui_print "! safetynet-fix module will be removed. Do NOT install it again along PIF."
|
2023-11-30 00:55:27 +08:00
|
|
|
fi
|
2023-11-29 12:19:14 +08:00
|
|
|
|
2023-12-01 01:28:01 +08:00
|
|
|
# MagiskHidePropsConf module is obsolete in Android 8+ but it shouldn't give issues.
|
|
|
|
if [ -d /data/adb/modules/MagiskHidePropsConf ]; then
|
2023-12-20 20:16:05 +08:00
|
|
|
ui_print "! WARNING, MagiskHidePropsConf module may cause issues with PIF."
|
2023-12-11 07:22:38 +08:00
|
|
|
fi
|
|
|
|
|
2024-03-02 07:31:12 +08:00
|
|
|
# Check custom fingerprint
|
2024-02-16 09:50:50 +08:00
|
|
|
if [ -f "/data/adb/pif.json" ]; then
|
2024-05-23 17:21:43 +08:00
|
|
|
mv -f "/data/adb/pif.json" "/data/adb/pif.json.old"
|
|
|
|
ui_print "- Backup old pif.json"
|
|
|
|
fi
|