diff options
author | Chris Renshaw <osm0sis@outlook.com> | 2019-06-09 23:41:07 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-09 23:41:07 -0300 |
commit | 16b147e939703bb0c3c3c877ffd70db435f5d61a (patch) | |
tree | 114d3af79994ef7e5f16269ec472a62495035dbe /META-INF | |
parent | e4497f231eeeb9ae4ce1c40bda48e22b8c48483a (diff) |
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
Diffstat (limited to 'META-INF')
-rwxr-xr-x | META-INF/com/google/android/update-binary | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |