PlayIntegrityFix/module/customize.sh

40 lines
1.2 KiB
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
2023-12-11 01:22:38 +02:00
abort "- !!! You can't use this module on Android < 8.0"
2023-11-24 21:58:30 +02:00
fi
2023-12-11 01:22:38 +02:00
# safetynet-fix module is obsolete and it's incompatible with PIF.
if [ -d /data/adb/modules/safetynet-fix ]; then
2024-01-12 14:32:32 +02:00
rm -rf /data/adb/modules/safetynet-fix
rm -f /data/adb/SNFix.dex
2023-12-20 14:16:05 +02:00
ui_print "! safetynet-fix module will be removed. Do NOT install it again along PIF."
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
2023-12-20 14:16:05 +02:00
ui_print "! WARNING, MagiskHidePropsConf module may cause issues with PIF."
2023-12-11 01:22:38 +02:00
fi
2024-03-02 01:31:12 +02:00
# Check custom fingerprint
2024-02-16 03:50:50 +02:00
if [ -f "/data/adb/pif.json" ]; then
2024-03-02 01:31:12 +02:00
ui_print "- You are using custom fingerprint!"
2024-03-02 15:41:33 +02:00
ui_print "- If you fail DEVICE verdict, remove /data/adb/pif.json file"
2024-03-02 01:31:12 +02:00
ui_print "- If pif.json file doesn't exist, module will use default one"
fi
2024-03-18 01:34:07 +02:00
# Conflict apps
2024-03-06 17:30:03 +02:00
APPS="
2024-03-02 01:31:12 +02:00
/system/app/EliteDevelopmentModule
/system/app/XInjectModule
/system/product/app/XiaomiEUInject
/system/product/app/XiaomiEUInject-Stub
/system/system_ext/app/hentaiLewdbSVTDummy
/system/system_ext/app/PifPrebuilt
"
2024-03-02 19:16:43 +02:00
2024-03-06 17:30:03 +02:00
for app in $APPS; do
2024-03-18 01:34:07 +02:00
if [ -d "$app" ]; then
ui_print "- ${app##*/} app found! You should uninstall it manually!"
fi
2024-03-06 17:30:03 +02:00
done