print sepolicy rules dir

This commit is contained in:
vvb2060 2021-07-27 17:37:22 +08:00 committed by John Wu
parent 9c09ad3b62
commit 477ff12cde

View File

@ -628,7 +628,15 @@ copy_sepolicy_rules() {
elif grep -q ' /mnt/vendor/persist ' /proc/mounts; then elif grep -q ' /mnt/vendor/persist ' /proc/mounts; then
RULESDIR=/mnt/vendor/persist/magisk RULESDIR=/mnt/vendor/persist/magisk
else else
return ui_print "- Unable to find sepolicy rules dir"
return 1
fi
if [ -d ${RULESDIR%/magisk} ]; then
ui_print "- Sepolicy rules dir is ${RULESDIR%/magisk}"
else
ui_print "- Sepolicy rules dir ${RULESDIR%/magisk} not found"
return 1
fi fi
# Copy all enabled sepolicy.rule # Copy all enabled sepolicy.rule