mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-22 17:01:49 +00:00
parent
fb8dc07599
commit
aa02057895
@ -595,7 +595,7 @@ copy_sepolicy_rules() {
|
|||||||
local RULESDIR
|
local RULESDIR
|
||||||
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
|
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
|
||||||
if [ -L $active_dir ]; then
|
if [ -L $active_dir ]; then
|
||||||
RULESDIR=$(readlink -f $active_dir)
|
RULESDIR=$(readlink $active_dir)
|
||||||
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
|
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
|
||||||
RULESDIR=/data/unencrypted/magisk
|
RULESDIR=/data/unencrypted/magisk
|
||||||
elif grep -q ' /cache ' /proc/mounts; then
|
elif grep -q ' /cache ' /proc/mounts; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user