Use custom.pif.json for custom spoofing, restore after update, fix lines

This commit is contained in:
osm0sis
2023-11-29 11:19:43 -04:00
parent 06aa2d83e9
commit 502dae9c45
5 changed files with 19 additions and 6 deletions

View File

@@ -9,6 +9,12 @@ if [ -d /data/adb/modules/safetynet-fix ]; then
ui_print "- 'safetynet-fix' module will be removed on next reboot"
fi
# Copy any custom.pif.json to updated module
if [ -f /data/adb/modules/playintegrityfix/custom.pif.json ]; then
ui_print "- Restoring custom.pif.json"
cp -af /data/adb/modules/playintegrityfix/custom.pif.json $MODPATH/custom.pif.json
fi
# Clean up any leftover files from previous deprecated methods
rm -f /data/data/com.google.android.gms/cache/pif.prop /data/data/com.google.android.gms/pif.prop
rm -f /data/data/com.google.android.gms/cache/pif.json /data/data/com.google.android.gms/pif.json
rm -f /data/data/com.google.android.gms/cache/pif.json /data/data/com.google.android.gms/pif.json

View File

@@ -6,4 +6,4 @@ fi
# Remove safetynet-fix module if installed
if [ -d /data/adb/modules/safetynet-fix ]; then
touch /data/adb/modules/safetynet-fix/remove
fi
fi

View File

@@ -68,4 +68,4 @@ fi
resetprop_if_diff ro.boot.verifiedbootstate green
resetprop_if_diff ro.boot.veritymode enforcing
resetprop_if_diff vendor.boot.vbmeta.device_state locked
}&
}&