feat: option to update to latest canary version

about - Update to latest canary version
This commit is contained in:
KOWX712
2025-06-05 14:53:45 +08:00
parent 97bd0083c1
commit 1acb97d1b6
9 changed files with 117 additions and 20 deletions

View File

@@ -56,7 +56,9 @@ check_update() {
[ -f "$MODDIR/disable" ] && rm -f "$MODDIR/disable"
LOCAL_VERSION=$(grep '^versionCode=' "$MODPATH/update/module.prop" | awk -F= '{print $2}')
if [ "$REMOTE_VERSION" -gt "$LOCAL_VERSION" ] && [ ! -f "/data/adb/modules/TA_utl/update" ]; then
if [ "$MAGISK" = "true" ]; then
if [ "$CANARY" = "true" ]; then
exit 1
elif [ "$MAGISK" = "true" ]; then
[ -d "/data/adb/modules/TA_utl" ] && rm -rf "/data/adb/modules/TA_utl"
cp -rf "$MODPATH/update" "/data/adb/modules/TA_utl"
else