Use quotation marks

This commit is contained in:
chiteroman 2024-07-22 11:55:24 +02:00
parent 7cb8c51905
commit cc3e72224e
2 changed files with 13 additions and 13 deletions

View File

@ -13,29 +13,29 @@ check_reset_prop() {
# Conditional early sensitive properties # Conditional early sensitive properties
# Samsung # Samsung
check_reset_prop ro.boot.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.boot.warranty_bit" "0"
check_reset_prop ro.vendor.warranty_bit 0 check_reset_prop "ro.vendor.warranty_bit" "0"
check_reset_prop ro.warranty_bit 0 check_reset_prop "ro.warranty_bit" "0"
# Xiaomi # Xiaomi
check_reset_prop ro.secureboot.lockstate locked check_reset_prop "ro.secureboot.lockstate" "locked"
# Realme # Realme
check_reset_prop ro.boot.realmebootstate green check_reset_prop "ro.boot.realmebootstate" "green"
# OnePlus # OnePlus
check_reset_prop ro.is_ever_orange 0 check_reset_prop "ro.is_ever_orange" "0"
# Microsoft # Microsoft
for PROP in $(resetprop | grep -oE 'ro.*.build.tags'); do for PROP in $(resetprop | grep -oE 'ro.*.build.tags'); do
check_reset_prop $PROP release-keys check_reset_prop "$PROP" "release-keys"
done done
# Other # Other
for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do
check_reset_prop $PROP user check_reset_prop "$PROP" "user"
done done
check_reset_prop ro.debuggable 0 check_reset_prop "ro.debuggable" "0"
check_reset_prop ro.force.debuggable 0 check_reset_prop "ro.force.debuggable" "0"
check_reset_prop ro.secure 1 check_reset_prop "ro.secure" "1"

View File

@ -17,7 +17,7 @@ contains_reset_prop() {
# Conditional sensitive properties # Conditional sensitive properties
# SELinux # 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 # use delete since it can be 0 or 1 for enforcing depending on OEM
if [ -n "$(resetprop ro.build.selinux)" ]; then if [ -n "$(resetprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux resetprop --delete ro.build.selinux