From 662b9c59c722204313883f409a8ae26a4ce55ec3 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Fri, 5 Jul 2024 14:15:19 -0300 Subject: [PATCH] Ensure all prop changes bypass property_service - resetprop only bypasses for ro.* properties by default --- module/common_func.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common_func.sh b/module/common_func.sh index 7eb0de52..187f19de 100644 --- a/module/common_func.sh +++ b/module/common_func.sh @@ -4,7 +4,7 @@ resetprop_if_diff() { local EXPECTED="$2" local CURRENT="$(resetprop "$NAME")" - [ -z "$CURRENT" ] || [ "$CURRENT" = "$EXPECTED" ] || resetprop "$NAME" "$EXPECTED" + [ -z "$CURRENT" ] || [ "$CURRENT" = "$EXPECTED" ] || resetprop -n "$NAME" "$EXPECTED" } # resetprop_if_match @@ -13,7 +13,7 @@ resetprop_if_match() { local CONTAINS="$2" local VALUE="$3" - [[ "$(resetprop "$NAME")" = *"$CONTAINS"* ]] && resetprop "$NAME" "$VALUE" + [[ "$(resetprop "$NAME")" = *"$CONTAINS"* ]] && resetprop -n "$NAME" "$VALUE" } # stub for boot-time