PlayIntegrityFix/module/post-fs-data.sh

30 lines
767 B
Bash
Raw Normal View History

2024-07-24 14:41:18 +03:00
# Remove Play Services from the Magisk Denylist when set to enforcing.
2024-07-21 19:34:45 +03:00
if magisk --denylist status; then
magisk --denylist rm com.google.android.gms
fi
2024-07-24 14:41:18 +03:00
resetprop_if_diff() {
local NAME="$1"
local EXPECTED="$2"
local CURRENT="$(resetprop "$NAME")"
[ -z "$CURRENT" ] || [ "$CURRENT" = "$EXPECTED" ] || resetprop -n "$NAME" "$EXPECTED"
}
# RootBeer, Microsoft
resetprop_if_diff ro.build.tags release-keys
2024-07-21 19:34:45 +03:00
# Samsung
resetprop_if_diff ro.boot.warranty_bit 0
resetprop_if_diff ro.vendor.boot.warranty_bit 0
resetprop_if_diff ro.vendor.warranty_bit 0
resetprop_if_diff ro.warranty_bit 0
2024-07-21 19:34:45 +03:00
# OnePlus
resetprop_if_diff ro.is_ever_orange 0
2024-07-21 19:34:45 +03:00
# Other
2024-07-24 14:41:18 +03:00
resetprop_if_diff ro.build.type user
resetprop_if_diff ro.debuggable 0
resetprop_if_diff ro.secure 1