Add new verified boot error props deletion

This commit is contained in:
Chris Renshaw
2025-01-18 00:00:41 -04:00
committed by GitHub
parent df5d5b7ce9
commit 9b3801a117
3 changed files with 14 additions and 2 deletions

View File

@@ -11,8 +11,8 @@ resetprop_if_match vendor.boot.mode recovery unknown
# SELinux
resetprop_if_diff ro.boot.selinux enforcing
# use delete since it can be 0 or 1 for enforcing depending on OEM
if ! $SKIPDELPROP && [ -n "$(resetprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux
if ! $SKIPDELPROP; then
delprop_if_exist ro.build.selinux
fi
# use toybox to protect stat access time reading
if [ "$(toybox cat /sys/fs/selinux/enforce)" = "0" ]; then