summaryrefslogtreecommitdiffstats
path: root/packages/Shell/src
diff options
context:
space:
mode:
authorIan Pedowitz <ijpedowitz@google.com>2015-06-18 07:42:28 -0700
committerIan Pedowitz <ijpedowitz@google.com>2015-06-18 07:43:56 -0700
commitbd82c7d364ac9b38b4e6b22cfa9634185d04b836 (patch)
treed36d7568738506f395d91a6bf825f9034e9ba994 /packages/Shell/src
parent8c6750ff0eb2d07039336bf25dc87f10464c42db (diff)
downloadframeworks_base-bd82c7d364ac9b38b4e6b22cfa9634185d04b836.zip
frameworks_base-bd82c7d364ac9b38b4e6b22cfa9634185d04b836.tar.gz
frameworks_base-bd82c7d364ac9b38b4e6b22cfa9634185d04b836.tar.bz2
Renaming bugreport.txt to bugreportFile.getName()
Many times to file a bug, its necessary to take several bugreports and attach them all to the same bug. With the current implementation, all extracted files are bugreport.txt which makes it difficult to attach several bugreports to the same bug, and reference them throughout the bug uniquely. Bug: 20447313 Change-Id: I22d2286d06c8dfb82273b5b98c48b21f77941b15
Diffstat (limited to 'packages/Shell/src')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportReceiver.java b/packages/Shell/src/com/android/shell/BugreportReceiver.java
index 13747ed..0005d6e 100644
--- a/packages/Shell/src/com/android/shell/BugreportReceiver.java
+++ b/packages/Shell/src/com/android/shell/BugreportReceiver.java
@@ -199,7 +199,7 @@ public class BugreportReceiver extends BroadcastReceiver {
try (InputStream is = new FileInputStream(bugreportFile);
ZipOutputStream zos = new ZipOutputStream(
new BufferedOutputStream(new FileOutputStream(bugreportZippedFile)))) {
- ZipEntry entry = new ZipEntry("bugreport.txt");
+ ZipEntry entry = new ZipEntry(bugreportFile.getName());
zos.putNextEntry(entry);
int totalBytes = Streams.copy(is, zos);
Log.v(TAG, "size of original bugreport: " + totalBytes + " bytes");