Revert "preserve previous setting on installation and action.sh"
Some checks failed
Android CI / build (push) Has been cancelled

This reverts commit e6261c628e.
This commit is contained in:
chiteroman 2025-03-19 16:59:17 +01:00
parent 8148964fec
commit 7a12ee9bda
No known key found for this signature in database
GPG Key ID: 49B8638F84128889
2 changed files with 1 additions and 14 deletions

View File

@ -98,12 +98,6 @@ sdk_version="$(getprop ro.build.version.sdk)"
sdk_version="${sdk_version:-25}"
echo "Device SDK version: $sdk_version"
# Preserve previous setting
spoofVending="$(grep -oE '"spoofVendingSdk": [01]' "$MODDIR/pif.json" | cut -d' ' -f2)"
if [ -z "$spoofVending" ] || [ "$spoofVending" != 1 ]; then
spoofVending=0
fi
echo "- Dumping values to pif.json ..."
cat <<EOF | tee pif.json
{
@ -111,8 +105,7 @@ cat <<EOF | tee pif.json
"MANUFACTURER": "Google",
"MODEL": "$MODEL",
"SECURITY_PATCH": "$SECURITY_PATCH",
"DEVICE_INITIAL_SDK_INT": $sdk_version,
"spoofVendingSdk": $spoofVending
"DEVICE_INITIAL_SDK_INT": $sdk_version
}
EOF

View File

@ -60,12 +60,6 @@ if [ -d "/data/adb/modules/MagiskHidePropsConf" ]; then
ui_print "! WARNING, MagiskHidePropsConf module may cause issues with PIF."
fi
# Preserve previous setting
spoofVending="$(grep -oE '"spoofVendingSdk": [01]' "/data/adb/modules/playintegrityfix/pif.json" | cut -d' ' -f2)"
if [ -n "$spoofVending" ] && [ "$spoofVending" -eq 1 ]; then
sed -i 's/"spoofVendingSdk": 0/"spoofVendingSdk": 1/' "$MODPATH/pif.json"
fi
# Check custom fingerprint
if [ -f "/data/adb/pif.json" ]; then
ui_print "- Backup custom pif.json"