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
This commit is contained in:
Chris Renshaw
2024-09-12 17:52:08 -03:00
committed by osm0sis
parent 1255a49274
commit 915b87e6be

View File

@@ -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;