summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;