mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 19:12:38 +02:00
e9c7ca93bc
This reverts commit cc3e72224e
.
42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Remove Play Services from Magisk DenyList when set to Enforce in normal mode
|
|
if magisk --denylist status; then
|
|
magisk --denylist rm com.google.android.gms
|
|
fi
|
|
|
|
check_reset_prop() {
|
|
local NAME=$1
|
|
local EXPECTED=$2
|
|
local VALUE=$(resetprop $NAME)
|
|
[ -z $VALUE ] || [ $VALUE = $EXPECTED ] || resetprop $NAME $EXPECTED
|
|
}
|
|
|
|
# Conditional early sensitive properties
|
|
|
|
# Samsung
|
|
check_reset_prop ro.boot.warranty_bit 0
|
|
check_reset_prop ro.vendor.boot.warranty_bit 0
|
|
check_reset_prop ro.vendor.warranty_bit 0
|
|
check_reset_prop ro.warranty_bit 0
|
|
|
|
# Xiaomi
|
|
check_reset_prop ro.secureboot.lockstate locked
|
|
|
|
# Realme
|
|
check_reset_prop ro.boot.realmebootstate green
|
|
|
|
# OnePlus
|
|
check_reset_prop ro.is_ever_orange 0
|
|
|
|
# Microsoft
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.tags'); do
|
|
check_reset_prop $PROP release-keys
|
|
done
|
|
|
|
# Other
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do
|
|
check_reset_prop $PROP user
|
|
done
|
|
check_reset_prop ro.debuggable 0
|
|
check_reset_prop ro.force.debuggable 0
|
|
check_reset_prop ro.secure 1
|