ksud, kernel: update explanation and fix some issues (#194)

This commit is contained in:
skbeh
2023-02-04 13:16:51 +08:00
committed by GitHub
parent 4da829792f
commit 9f4a8d3dfc
3 changed files with 12 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
#!/system/bin/sh
############################################
# KernelSU installer script
# Credit to Magisk!!!
# mostly from module_installer.sh
# and util_functions.sh in Magisk
############################################
umask 022
@@ -418,8 +419,5 @@ NVBASE=/data/adb/ksu
TMPDIR=/dev/tmp
# Some modules dependents on this
MAGISK_VER=25.2
MAGISK_VER_CODE=25200
# KSU to recognize
KSU=true
export MAGISK_VER=25.2
export MAGISK_VER_CODE=25200

View File

@@ -40,6 +40,7 @@ fn exec_install_script(module_file: &str) -> Result<()> {
"PATH",
format!("{}:{}", env_var("PATH").unwrap(), defs::BINARY_DIR),
)
.env("KSU", "true")
.env("OUTFD", "1")
.env("ZIPFILE", realpath)
.stderr(Stdio::null())