PlayIntegrityFix/module/post-fs-data.sh

37 lines
876 B
Bash
Raw Normal View History

2024-02-07 19:03:56 +02:00
# Remove Play Services from Magisk Denylist when set to enforcing
if magisk --denylist status; then
magisk --denylist rm com.google.android.gms
fi
# Remove safetynet-fix module if installed
if [ -d /data/adb/modules/safetynet-fix ]; then
rm -rf /data/adb/modules/safetynet-fix
rm -rf /data/adb/SNFix.dex
fi
2024-02-08 13:33:37 +02:00
resetprop_if_diff() {
local NAME="$1"
local EXPECTED="$2"
local CURRENT="$(resetprop "$NAME")"
[ -z "$CURRENT" ] || [ "$CURRENT" = "$EXPECTED" ] || resetprop "$NAME" "$EXPECTED"
}
2024-02-16 03:50:50 +02:00
resetprop_if_diff ro.build.tags release-keys
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.boot.warranty_bit 0
2024-02-16 03:50:50 +02:00
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.vendor.boot.warranty_bit 0
2024-02-16 03:50:50 +02:00
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.vendor.warranty_bit 0
2024-02-16 03:50:50 +02:00
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.warranty_bit 0
resetprop_if_diff ro.is_ever_orange 0
resetprop_if_diff ro.build.type user
2024-02-16 03:50:50 +02:00
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.debuggable 0
2024-02-16 03:50:50 +02:00
2024-02-08 13:33:37 +02:00
resetprop_if_diff ro.secure 1