No hardcode temp dir

This commit is contained in:
Nullptr
2024-01-04 03:44:57 +08:00
parent 32931cf3a8
commit 043cfd93d6
11 changed files with 56 additions and 50 deletions

View File

@@ -26,7 +26,11 @@ create_sys_perm() {
chcon u:object_r:system_file:s0 $1
}
TMP_PATH="/debug_ramdisk/zygisksu"
if [ "$(which magisk)" ]; then
export TMP_PATH="$(magisk --path)/zygisksu"
else
export TMP_PATH="/debug_ramdisk/zygisksu"
fi
create_sys_perm $TMP_PATH