From a407a01b342284a316cd8bd5b29f7f6788dffb7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LY=EF=BC=88=E9=80=80=E7=BD=91/offline=EF=BC=89?= <51789698+Young-Lord@users.noreply.github.com> Date: Sun, 11 Aug 2024 15:32:27 +0800 Subject: [PATCH] fix wrong module name in `customize.sh` --- module/build.gradle.kts | 3 ++- module/template/customize.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/build.gradle.kts b/module/build.gradle.kts index ed3e019..789f2e7 100644 --- a/module/build.gradle.kts +++ b/module/build.gradle.kts @@ -111,7 +111,8 @@ afterEvaluate { "DEBUG" to if (buildTypeLowered == "debug") "true" else "false", "SONAME" to moduleId, "SUPPORTED_ABIS" to supportedAbis, - "MIN_SDK" to androidMinSdkVersion.toString() + "MIN_SDK" to androidMinSdkVersion.toString(), + "MODULENAME" to moduleName ) filter("tokens" to tokens) filter("eol" to FixCrLfFilter.CrLf.newInstance("lf")) diff --git a/module/template/customize.sh b/module/template/customize.sh index 32c747f..efcda2c 100644 --- a/module/template/customize.sh +++ b/module/template/customize.sh @@ -12,7 +12,7 @@ if [ "$BOOTMODE" ] && [ "$KSU" ]; then if [ "$(which magisk)" ]; then ui_print "*********************************************************" ui_print "! Multiple root implementation is NOT supported!" - ui_print "! Please uninstall Magisk before installing Zygisk Next" + ui_print "! Please uninstall Magisk before installing @MODULENAME@" abort "*********************************************************" fi elif [ "$BOOTMODE" ] && [ "$MAGISK_VER_CODE" ]; then