Fix custom.pif.json migration check on clean installs

This commit is contained in:
Chris Renshaw
2025-08-30 23:04:07 -03:00
committed by GitHub
parent 8f06a06659
commit 6506283874

View File

@@ -39,12 +39,14 @@ if [ -d "$MODPATH/zygisk" ]; then
fi fi
# Migrate custom.pif.json to latest defaults if needed # Migrate custom.pif.json to latest defaults if needed
if [ -f "$MODPATH/custom.pif.json" ] && ! grep -q "api_level" $MODPATH/custom.pif.json || ! grep -q "verboseLogs" $MODPATH/custom.pif.json || ! grep -q "spoofVendingSdk" $MODPATH/custom.pif.json; then if [ -f "$MODPATH/custom.pif.json" ]; then
ui_print "- Running migration script on custom.pif.json:" if ! grep -q "api_level" $MODPATH/custom.pif.json || ! grep -q "verboseLogs" $MODPATH/custom.pif.json || ! grep -q "spoofVendingFinger" $MODPATH/custom.pif.json; then
ui_print " " ui_print "- Running migration script on custom.pif.json:"
chmod 755 $MODPATH/migrate.sh ui_print " "
sh $MODPATH/migrate.sh --install --force --advanced $MODPATH/custom.pif.json chmod 755 $MODPATH/migrate.sh
ui_print " " sh $MODPATH/migrate.sh --install --force --advanced $MODPATH/custom.pif.json
ui_print " "
fi
fi fi
# Clean up any leftover files from previous deprecated methods # Clean up any leftover files from previous deprecated methods