From e9c7ca93bcc5331309e3b7add91d4745078bb756 Mon Sep 17 00:00:00 2001 From: chiteroman <98092901+chiteroman@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:35:18 +0200 Subject: [PATCH] Revert "Use quotation marks" This reverts commit cc3e72224e3657612538d650af8993a60e144e35. --- module/post-fs-data.sh | 24 ++++++++++++------------ module/service.sh | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/module/post-fs-data.sh b/module/post-fs-data.sh index efd0416..2609c7d 100644 --- a/module/post-fs-data.sh +++ b/module/post-fs-data.sh @@ -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 diff --git a/module/service.sh b/module/service.sh index e7a019c..6deaac0 100644 --- a/module/service.sh +++ b/module/service.sh @@ -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