From 3f6d11247201ef98483dbc9f36c1dc59820c8979 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Fri, 14 Feb 2020 14:05:09 -0400 Subject: AK3+Backend: fix truncated recovery.log with FlashAfterUpdate --- META-INF/com/google/android/update-binary | 4 ++-- tools/ak3-core.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 55d7625..ad1cb8e 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -17,7 +17,7 @@ test "$ANDROID_ROOT" || ANDROID_ROOT=/system; ui_print() { until [ ! "$1" ]; do echo "ui_print $1 - ui_print" > $OUTFD; + ui_print" >> $OUTFD; shift; done; } @@ -26,7 +26,7 @@ ui_printfile() { ui_print "$line"; done < $1; } -show_progress() { echo "progress $1 $2" > $OUTFD; } +show_progress() { echo "progress $1 $2" >> $OUTFD; } file_getprop() { $BB grep "^$2=" "$1" | $BB cut -d= -f2-; } setup_mountpoint() { test -L $1 && $BB mv -f $1 ${1}_link; diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 6d60158..0806a8a 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -16,7 +16,7 @@ split_img=$home/split_img; ui_print() { until [ ! "$1" ]; do echo -e "ui_print $1 - ui_print" > /proc/self/fd/$OUTFD; + ui_print" >> /proc/self/fd/$OUTFD; shift; done; } -- cgit v1.2.3