From fbb792ef13817aecb0d8e0e173b0fae5cec8f9db Mon Sep 17 00:00:00 2001 From: Nullptr Date: Fri, 5 Jan 2024 17:11:50 +0800 Subject: [PATCH] Minor changes --- module/src/post-fs-data.sh | 7 ++----- module/src/zygisk-ctl.sh | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) 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 $*