mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 19:12:38 +02:00
Use quotation marks
This commit is contained in:
parent
7cb8c51905
commit
cc3e72224e
@ -13,29 +13,29 @@ check_reset_prop() {
|
||||
# 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
|
||||
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
|
||||
check_reset_prop "ro.secureboot.lockstate" "locked"
|
||||
|
||||
# Realme
|
||||
check_reset_prop ro.boot.realmebootstate green
|
||||
check_reset_prop "ro.boot.realmebootstate" "green"
|
||||
|
||||
# OnePlus
|
||||
check_reset_prop ro.is_ever_orange 0
|
||||
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
|
||||
check_reset_prop "$PROP" "release-keys"
|
||||
done
|
||||
|
||||
# Other
|
||||
for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do
|
||||
check_reset_prop $PROP user
|
||||
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
|
||||
check_reset_prop "ro.debuggable" "0"
|
||||
check_reset_prop "ro.force.debuggable" "0"
|
||||
check_reset_prop "ro.secure" "1"
|
||||
|
@ -17,7 +17,7 @@ contains_reset_prop() {
|
||||
# Conditional sensitive properties
|
||||
|
||||
# SELinux
|
||||
check_reset_prop ro.boot.selinux enforcing
|
||||
check_reset_prop "ro.boot.selinux" "enforcing"
|
||||
# use delete since it can be 0 or 1 for enforcing depending on OEM
|
||||
if [ -n "$(resetprop ro.build.selinux)" ]; then
|
||||
resetprop --delete ro.build.selinux
|
||||
|
Loading…
Reference in New Issue
Block a user