From 6fc8cc7e8ecf81a8761e40c97178c99fe71d32bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BB=E3=83=AA=E3=82=AB=E3=83=BB=E3=82=B7=E3=83=AB?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=AB?= <64072399+natsumerinchan@users.noreply.github.com> Date: Mon, 3 Apr 2023 22:32:13 +0800 Subject: [PATCH] ksud: modules_update will be mounted to /data/adb/modules_update (#336) https://github.com/tiann/KernelSU/commit/ee09b9f9f4c1b42da3af5cc4df96629e4f6c0745 and https://github.com/tiann/KernelSU/pull/327 have moved `/data/adb/ksu/modules` to `/data/adb/modules`,but `modules_update` has not to do it.Many modules hard-coded this directory. --- userspace/ksud/src/defs.rs | 2 +- userspace/ksud/src/installer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/ksud/src/defs.rs b/userspace/ksud/src/defs.rs index b19a1ad8..17843abf 100644 --- a/userspace/ksud/src/defs.rs +++ b/userspace/ksud/src/defs.rs @@ -14,7 +14,7 @@ pub const MODULE_UPDATE_IMG: &str = concatcp!(WORKING_DIR, "modules_update.img") pub const MODULE_UPDATE_TMP_IMG: &str = concatcp!(WORKING_DIR, "update_tmp.img"); // warning: this directory should not change, or you need to change the code in module_installer.sh!!! -pub const MODULE_UPDATE_TMP_DIR: &str = concatcp!(WORKING_DIR, "modules_update/"); +pub const MODULE_UPDATE_TMP_DIR: &str = concatcp!(ADB_DIR, "modules_update/"); pub const DISABLE_FILE_NAME: &str = "disable"; pub const UPDATE_FILE_NAME: &str = "update"; diff --git a/userspace/ksud/src/installer.sh b/userspace/ksud/src/installer.sh index 7d52582f..a0edb34a 100644 --- a/userspace/ksud/src/installer.sh +++ b/userspace/ksud/src/installer.sh @@ -337,7 +337,7 @@ install_module() { [ ! -f $TMPDIR/module.prop ] && abort "! Unable to extract zip file!" local MODDIRNAME=modules - $BOOTMODE && MODDIRNAME=ksu/modules_update + $BOOTMODE && MODDIRNAME=modules_update local MODULEROOT=$NVBASE/$MODDIRNAME MODID=`grep_prop id $TMPDIR/module.prop` MODNAME=`grep_prop name $TMPDIR/module.prop`