diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 1062a16..9872084 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -14,7 +14,7 @@ $BOOTMODE || DIR=$(dirname "$ZIPFILE"); [ $DIR == "/sideload" ] && DIR=/tmp; [ -d /postinstall/tmp ] && POSTINSTALL=/postinstall; -[ "$AKHOME" ] || AKHOME=$POSTINSTALL/tmp/anykernel; +[ "$AKHOME" ] || export AKHOME=$POSTINSTALL/tmp/anykernel; [ "$ANDROID_ROOT" ] || ANDROID_ROOT=/system; ui_print() { @@ -488,7 +488,7 @@ ui_print "Installing..."; # hack to maintain support for anykernel.sh files that weren't updated correctly along with the AK core CORE=$(grep -oE 'ak.*core.sh' anykernel.sh); [ -f tools/$CORE ] || ln -s $AKHOME/tools/ak*-core.sh $AKHOME/tools/$CORE; -home=$AKHOME ash anykernel.sh; +ash anykernel.sh; if [ $? != 0 ]; then abort; fi; diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index 0cbef42..7095161 100644 --- a/META-INF/com/google/android/updater-script +++ b/META-INF/com/google/android/updater-script @@ -3,4 +3,4 @@ # Dummy file; update-binary is a shell script (DO NOT CHANGE) # # -# AK_BASE_VERSION=20230423 +# AK_BASE_VERSION=20230503 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 5b5ecb0..aae06ad 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -4,6 +4,7 @@ [ "$OUTFD" ] || OUTFD=$1; # set up working directory variables +[ "$AKHOME" ] && home=$AKHOME; [ "$home" ] || home=$PWD; bootimg=$home/boot.img; bin=$home/tools;