diff --git a/module/src/post-fs-data.sh b/module/src/post-fs-data.sh index 815744c3..980a552c 100644 --- a/module/src/post-fs-data.sh +++ b/module/src/post-fs-data.sh @@ -26,11 +26,8 @@ create_sys_perm() { chcon u:object_r:system_file:s0 $1 } -if [ "$(which magisk)" ]; then - export TMP_PATH="$(magisk --path)/zygisksu" -else - export TMP_PATH="$(ksud path)/zygisksu" -fi +TMP_PATH=/sbin +[ -f /sbin ] || TMP_PATH=/debug_ramdisk create_sys_perm $TMP_PATH diff --git a/module/src/zygisk-ctl.sh b/module/src/zygisk-ctl.sh index abcf75a4..ba843a81 100644 --- a/module/src/zygisk-ctl.sh +++ b/module/src/zygisk-ctl.sh @@ -1,9 +1,6 @@ MODDIR=${0%/*}/.. -if [ "$(which magisk)" ]; then - export TMP_PATH="$(magisk --path)/zygisksu" -else - export TMP_PATH="$(ksud path)/zygisksu" -fi +TMP_PATH=/sbin +[ -f /sbin ] || TMP_PATH=/debug_ramdisk exec $MODDIR/bin/zygisk-ptrace64 ctl $*