diff options
author | Felipe Leme <felipeal@google.com> | 2015-07-13 14:59:35 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2015-07-13 14:59:35 -0700 |
commit | e28d7fc21c40eedcac35c7c00b6464fdf8e34b44 (patch) | |
tree | 675df2a68818fb67d5ca46944684392da3b37f96 /packages/Shell | |
parent | 0bd08fc22ae457791d95a4d557051e6601516bd0 (diff) | |
download | frameworks_base-e28d7fc21c40eedcac35c7c00b6464fdf8e34b44.zip frameworks_base-e28d7fc21c40eedcac35c7c00b6464fdf8e34b44.tar.gz frameworks_base-e28d7fc21c40eedcac35c7c00b6464fdf8e34b44.tar.bz2 |
Set last modified timestamp for the bugreport entry in the zipped file from original file, otherwise it uses the date the zip was created.
BUG: 20447313
Change-Id: Iecbaf3ce2f0e3d82ac31a6c7bfbd8fb3037de5e4
Diffstat (limited to 'packages/Shell')
-rw-r--r-- | packages/Shell/src/com/android/shell/BugreportReceiver.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportReceiver.java b/packages/Shell/src/com/android/shell/BugreportReceiver.java index 6278650..d83b516 100644 --- a/packages/Shell/src/com/android/shell/BugreportReceiver.java +++ b/packages/Shell/src/com/android/shell/BugreportReceiver.java @@ -215,6 +215,7 @@ public class BugreportReceiver extends BroadcastReceiver { ZipOutputStream zos = new ZipOutputStream( new BufferedOutputStream(new FileOutputStream(bugreportZippedFile)))) { ZipEntry entry = new ZipEntry(bugreportFile.getName()); + entry.setTime(bugreportFile.lastModified()); zos.putNextEntry(entry); int totalBytes = Streams.copy(is, zos); Log.v(TAG, "size of original bugreport: " + totalBytes + " bytes"); |