2024-07-24 19:35:19 +08:00
|
|
|
MODPATH="${0%/*}"
|
|
|
|
. $MODPATH/common_func.sh
|
|
|
|
|
2024-07-22 00:34:45 +08:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# Conditional early sensitive properties
|
|
|
|
|
|
|
|
# Samsung
|
2024-07-24 19:35:19 +08:00
|
|
|
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-22 00:34:45 +08:00
|
|
|
|
|
|
|
# Xiaomi
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff ro.secureboot.lockstate locked
|
2024-07-22 00:34:45 +08:00
|
|
|
|
|
|
|
# Realme
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff ro.boot.realmebootstate green
|
2024-07-22 00:34:45 +08:00
|
|
|
|
|
|
|
# OnePlus
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff ro.is_ever_orange 0
|
2024-07-22 00:34:45 +08:00
|
|
|
|
|
|
|
# Microsoft
|
|
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.tags'); do
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff $PROP release-keys
|
2024-07-22 00:34:45 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
# Other
|
|
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff $PROP user
|
2024-07-22 00:34:45 +08:00
|
|
|
done
|
2024-07-24 19:35:19 +08:00
|
|
|
resetprop_if_diff ro.debuggable 0
|
|
|
|
resetprop_if_diff ro.force.debuggable 0
|
|
|
|
resetprop_if_diff ro.secure 1
|