Fix detect resetprop

This commit is contained in:
shìwēi nguyen 2023-11-27 14:29:30 +07:00 committed by GitHub
parent 599c27e833
commit 4641985342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
RESETPROP="${0%/*}/resetprop" RESETPROP="${0%/*}/resetprop"
if [ -x "$RESETPROP" ]; then if [ -e "$RESETPROP" ]; then
chmod 755 $RESETPROP chmod 755 $RESETPROP
else else
RESETPROP="resetprop" RESETPROP="resetprop"
@ -32,7 +32,7 @@ maybe_set_prop vendor.boot.mode recovery unknown
# Hiding SELinux | Permissive status # Hiding SELinux | Permissive status
if [ -n "$(getprop ro.build.selinux)" ]; then if [ -n "$(getprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux $RESETPROP --delete ro.build.selinux
fi fi
# Hiding SELinux | Use toybox to protect *stat* access time reading # Hiding SELinux | Use toybox to protect *stat* access time reading
@ -77,4 +77,4 @@ fi
check_resetprop ro.build.type user check_resetprop ro.build.type user
check_resetprop ro.debuggable 0 check_resetprop ro.debuggable 0
check_resetprop ro.secure 1 check_resetprop ro.secure 1
}& }&