Force custom.pif.json to latest Advanced Settings during install

This commit is contained in:
Chris Renshaw
2025-07-27 22:06:26 -03:00
committed by GitHub
parent 7ec4d37949
commit 18eeb7d92d

View File

@@ -39,11 +39,11 @@ if [ -d "$MODPATH/zygisk" ]; then
fi
# Migrate custom.pif.json to latest defaults if needed
if [ -f "$MODPATH/custom.pif.json" ] && ! grep -q "api_level" $MODPATH/custom.pif.json; then
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
ui_print "- Running migration script on custom.pif.json:"
ui_print " "
chmod 755 $MODPATH/migrate.sh
sh $MODPATH/migrate.sh --install --advanced $MODPATH/custom.pif.json
sh $MODPATH/migrate.sh --install --force --advanced $MODPATH/custom.pif.json
ui_print " "
fi