[core] Use util function to check riru version (#433)
This commit is contained in:
parent
e2b15b05dd
commit
8bc0991275
|
|
@ -33,8 +33,8 @@ MODDIR=${0%/*}
|
||||||
MAGISK_VERSION=$(magisk -v)
|
MAGISK_VERSION=$(magisk -v)
|
||||||
MAGISK_VER_CODE=$(magisk -V)
|
MAGISK_VER_CODE=$(magisk -V)
|
||||||
|
|
||||||
[ ! -f "$MODDIR/riru.sh" ] && exit 1
|
[ ! -f /data/adb/riru/util_functions.sh ] && exit 1
|
||||||
. $MODDIR/riru.sh
|
. /data/adb/riru/util_functions.sh
|
||||||
|
|
||||||
LSPD_VERSION=$(grep_prop version "${MODDIR}/module.prop")
|
LSPD_VERSION=$(grep_prop version "${MODDIR}/module.prop")
|
||||||
LSPD_VERSIONCODE=$(grep_prop versionCode "${MODDIR}/module.prop")
|
LSPD_VERSIONCODE=$(grep_prop versionCode "${MODDIR}/module.prop")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue