From 6e833553cc87f38fd0054c2f42d3642a2ce6d185 Mon Sep 17 00:00:00 2001 From: ayasa520 <55699692+ayasa520@users.noreply.github.com> Date: Sat, 29 Apr 2023 18:03:21 +0800 Subject: [PATCH] update --- src/META-INF/com/google/android/update-binary | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/META-INF/com/google/android/update-binary b/src/META-INF/com/google/android/update-binary index 5e552e9..e8c0881 100644 --- a/src/META-INF/com/google/android/update-binary +++ b/src/META-INF/com/google/android/update-binary @@ -6,10 +6,22 @@ ############################################ umask 022 +########## +# Presets +########## OUTFD=$2 ZIPFILE="$3"; +NVBASE=/data/adb +TMPDIR=/dev/tmp +export MAGISK_VER=25.2 +export MAGISK_VER_CODE=25200 +# Detect whether in boot mode +[ -z $BOOTMODE ] && ps | grep zygote | grep -qv grep && BOOTMODE=true +[ -z $BOOTMODE ] && ps -A 2>/dev/null | grep zygote | grep -qv grep && BOOTMODE=true +[ -z $BOOTMODE ] && BOOTMODE=false + ui_print() { if $BOOTMODE; then echo "$1" @@ -342,6 +354,7 @@ install_module() { MODNAME=`grep_prop name $TMPDIR/module.prop` MODAUTH=`grep_prop author $TMPDIR/module.prop` MODPATH=$MODULEROOT/$MODID + # Create mod paths rm -rf $MODPATH @@ -418,15 +431,5 @@ install_module() { ui_print "- Done" } -########## -# Presets -########## - -# Detect whether in boot mode -[ -z $BOOTMODE ] && ps | grep zygote | grep -qv grep && BOOTMODE=true -[ -z $BOOTMODE ] && ps -A 2>/dev/null | grep zygote | grep -qv grep && BOOTMODE=true -[ -z $BOOTMODE ] && BOOTMODE=false +install_module -NVBASE=/data/adb -TMPDIR=/dev/tmp -BBDIR="/tmp/busybox";