Force overwrite json
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
chiteroman
2024-08-16 11:10:30 +02:00
parent 4d8e495e51
commit e184b02f14

View File

@@ -110,12 +110,17 @@ if [ ! -f "$CONFIG_DIR/target.txt" ]; then
extract "$ZIPFILE" 'target.txt' "$TMPDIR"
mv "$TMPDIR/target.txt" "$CONFIG_DIR/target.txt"
fi
if [ ! -f "$CONFIG_DIR/pif.json" ]; then
ui_print "- Adding pif json"
extract "$ZIPFILE" 'pif.json' "$TMPDIR"
mv "$TMPDIR/pif.json" "$CONFIG_DIR/pif.json"
# Check custom fingerprint
if [ -f "/data/adb/pif.json" ]; then
mv -f "/data/adb/pif.json" "/data/adb/pif.json.old"
ui_print "- Backup custom pif.json"
fi
ui_print "- Adding pif json"
extract "$ZIPFILE" 'pif.json' "$TMPDIR"
mv -f "$TMPDIR/pif.json" "$CONFIG_DIR/pif.json"
if [ -d "/data/adb/modules/playintegrityfix" ]; then
ui_print "- PIF module will be removed on next reboot"
touch "/data/adb/modules/playintegrityfix/remove"