summaryrefslogtreecommitdiff
path: root/META-INF
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-01-26 10:32:11 -0400
committerosm0sis <osm0sis@outlook.com>2020-01-26 10:34:27 -0400
commitb772cca3ac3a7d8376829a2279c6200f68ea7dbf (patch)
tree9606d7d796deb31591ce228135ffad48e3306e29 /META-INF
parent062b44c75a967a9d2a603459e1092f09e380e825 (diff)
Backend: put debugging down where it belongs too
Diffstat (limited to 'META-INF')
-rwxr-xr-xMETA-INF/com/google/android/update-binary18
1 files 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;