diff options
-rwxr-xr-x | META-INF/com/google/android/update-binary | 5 | ||||
-rw-r--r-- | META-INF/com/google/android/updater-script | 1 | ||||
-rwxr-xr-x | tools/ak3-core.sh | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 4fff323..252ff0a 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -10,8 +10,9 @@ $BOOTMODE || ps -A 2>/dev/null | grep zygote | grep -v grep >/dev/null && BOOTMO $BOOTMODE && DIR=/sdcard || DIR=$(dirname "$ZIPFILE"); +test -d /postinstall/tmp && POSTINSTALL=/postinstall; +test "$AKHOME" || AKHOME=$POSTINSTALL/tmp/anykernel; test "$ANDROID_ROOT" || ANDROID_ROOT=/system; -test "$AKHOME" || AKHOME=/tmp/anykernel; ui_print() { until [ ! "$1" ]; do @@ -318,7 +319,7 @@ do_modules() { $BB mount -o rw,remount -t auto /system; $BB mount -o rw,remount -t auto /vendor 2>/dev/null; for module in $(find . -name '*.ko'); do - modtarget=$(echo $module | $BB cut -c2-); + modtarget=$POSTINSTALL$(echo $module | $BB cut -c2-); if [ ! -e $modtarget ]; then case $module in */vendor/*) modcon=vendor;; diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index 8582673..f927e87 100644 --- a/META-INF/com/google/android/updater-script +++ b/META-INF/com/google/android/updater-script @@ -1 +1,2 @@ +#FLASHAFTERUPDATEV2 # Dummy file; update-binary is a shell script. diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 9c325d0..b9d238f 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -685,6 +685,9 @@ setup_ak() { test "$slot" && slot=_$slot; fi; if [ "$slot" ]; then + if [ -d /postinstall/tmp -a ! "$slot_select" ]; then + slot_select=inactive; + fi; case $slot_select in inactive) case $slot in |