From 915b87e6be2c66ebfff50fd9b823d680856b53c4 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 12 Sep 2024 17:52:08 -0300 Subject: [PATCH] autopif.sh: retain commented security_patch if present - commenting out the security_patch line is needed if enabling spoofProps (e.g. for api_level) when used with Tricky Store --- module/autopif.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/module/autopif.sh b/module/autopif.sh index b013a7b..1aca455 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -103,6 +103,7 @@ if [ -f "$MIGRATE" ]; then eval TMPVAL=\$$SETTING; [ -n "$TMPVAL" ] && sed -i "s;\($SETTING\": \"\).;\1$TMPVAL;" custom.pif.json; done; + grep -q '//"\*.security_patch"' $OLDJSON && sed -i 's;"\*.security_patch";//"\*.security_patch";' custom.pif.json; fi; cat custom.pif.json; fi;