From b772cca3ac3a7d8376829a2279c6200f68ea7dbf Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sun, 26 Jan 2020 10:32:11 -0400 Subject: Backend: put debugging down where it belongs too --- META-INF/com/google/android/update-binary | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 34dfc6c..709ef00 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -132,15 +132,6 @@ umount_all() { $BB umount -l /data; fi) 2>/dev/null; } -debugging() { - case $(basename "$ZIPFILE" .zip) in - *-debugging) - ui_print " " "Creating debugging archive in $DIR..."; - test -f /tmp/recovery.log && local log=/tmp/recovery.log; - $BB tar -czf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $AKHOME $log; - ;; - esac; -} setup_env() { $BOOTMODE || $BB mount -o bind /dev/urandom /dev/random; umount_all; @@ -179,6 +170,15 @@ restore_env() { done; $BB umount -l /dev/random) 2>/dev/null; } +debugging() { + case $(basename "$ZIPFILE" .zip) in + *-debugging) + ui_print " " "Creating debugging archive in $DIR..."; + test -f /tmp/recovery.log && local log=/tmp/recovery.log; + $BB tar -czf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $AKHOME $log; + ;; + esac; +} cleanup() { cd $(dirname $AKHOME); rm -rf $AKHOME; -- cgit v1.2.3