From 16b147e939703bb0c3c3c877ffd70db435f5d61a Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sun, 9 Jun 2019 23:41:07 -0300 Subject: [PATCH] Backend: only take relevant files for debug .tgz - per suggestion from eng.stk avoid archiving all of $home since /tmp in recovery might hold sensitive crypto data - restrict tar to $home (i.e. /tmp/anykernel by default) and $parent/recovery.log (i.e. /tmp/recovery.log) - probably no need to be verbose when making the archive, it kinda clutters up the end of the captured log --- META-INF/com/google/android/update-binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index fc3b94b..9d30527 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -38,7 +38,7 @@ debugging() { case $(basename "$ZIPFILE" .zip) in *-debugging) ui_print " " "Creating debugging archive in $DIR..."; - $bb tar -czvf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $parent/*; + $bb tar -czf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $home $parent/recovery.log; ;; esac; }