From 93ba4cca6861256ef6a9b844770561b93c1118c7 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 27 Apr 2021 23:28:31 +0800 Subject: [PATCH] Fix copy sepolicy rules when install module --- scripts/util_functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 00b026378..d2e7eb2e4 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -608,6 +608,7 @@ copy_sepolicy_rules() { local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules if [ -L $active_dir ]; then RULESDIR=$(readlink $active_dir) + [ "${RULESDIR:0:1}" != "/" ] && RULESDIR="$(magisk --path)/.magisk/mirror/$RULESDIR" elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then RULESDIR=/data/unencrypted/magisk elif grep -q ' /cache ' /proc/mounts; then