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"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Conditional early sensitive properties
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Microsoft, RootBeer
|
|
|
|
resetprop_if_diff ro.build.tags release-keys
|
|
|
|
|
|
|
|
# Other
|
|
|
|
resetprop_if_diff ro.build.type user
|
|
|
|
resetprop_if_diff ro.debuggable 0
|
|
|
|
resetprop_if_diff ro.secure 1
|