From 4641985342236f61f756116ffe6b84958f6198d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sh=C3=ACw=C4=93i=20nguyen?= <84650617+HuskyDG@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:29:30 +0700 Subject: [PATCH] Fix detect resetprop --- module/service.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/service.sh b/module/service.sh index 0cdd82a..e032ef2 100644 --- a/module/service.sh +++ b/module/service.sh @@ -2,7 +2,7 @@ RESETPROP="${0%/*}/resetprop" -if [ -x "$RESETPROP" ]; then +if [ -e "$RESETPROP" ]; then chmod 755 $RESETPROP else RESETPROP="resetprop" @@ -32,7 +32,7 @@ maybe_set_prop vendor.boot.mode recovery unknown # Hiding SELinux | Permissive status if [ -n "$(getprop ro.build.selinux)" ]; then - resetprop --delete ro.build.selinux + $RESETPROP --delete ro.build.selinux fi # Hiding SELinux | Use toybox to protect *stat* access time reading @@ -77,4 +77,4 @@ fi check_resetprop ro.build.type user check_resetprop ro.debuggable 0 check_resetprop ro.secure 1 -}& \ No newline at end of file +}&