From 7f1f5ced937cac0561635c3e1706dfd95b067cfe Mon Sep 17 00:00:00 2001 From: Wang Han Date: Tue, 30 Mar 2021 15:50:12 +0800 Subject: [PATCH] Include util_functions.sh from magisk --path (#434) --- core/template_override/post-fs-data.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/template_override/post-fs-data.sh b/core/template_override/post-fs-data.sh index a549936e..4e0451a5 100644 --- a/core/template_override/post-fs-data.sh +++ b/core/template_override/post-fs-data.sh @@ -33,8 +33,8 @@ MODDIR=${0%/*} MAGISK_VERSION=$(magisk -v) MAGISK_VER_CODE=$(magisk -V) -[ ! -f /data/adb/riru/util_functions.sh ] && exit 1 -. /data/adb/riru/util_functions.sh +[ ! -f $(magisk --path)/.magisk/modules/riru-core/util_functions.sh ] && exit 1 +. $(magisk --path)/.magisk/modules/riru-core/util_functions.sh LSPD_VERSION=$(grep_prop version "${MODDIR}/module.prop") LSPD_VERSIONCODE=$(grep_prop versionCode "${MODDIR}/module.prop")