mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 19:12:38 +02:00
30 lines
767 B
Bash
30 lines
767 B
Bash
# Remove Play Services from the Magisk Denylist when set to enforcing.
|
|
if magisk --denylist status; then
|
|
magisk --denylist rm com.google.android.gms
|
|
fi
|
|
|
|
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
|
|
|
|
# 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
|
|
|
|
# OnePlus
|
|
resetprop_if_diff ro.is_ever_orange 0
|
|
|
|
# Other
|
|
resetprop_if_diff ro.build.type user
|
|
resetprop_if_diff ro.debuggable 0
|
|
resetprop_if_diff ro.secure 1
|