History log of /build/tools/zipalign/ZipFile.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b46507ff9eba4266e9db4eb2bb7f0b6ad4483892 16-Feb-2017 Narayan Kamath <narayan@google.com> zipalign: remove support for adding members from gzip sources.

This was vestigial code and never actually called anywhere.

Test: make
Bug: 35246701
Change-Id: I9297ac5fa030d369946857414155450635b65410
/build/make/tools/zipalign/ZipFile.cpp
221c1c027a2b4145b0f094dfec0686f773cbf2b6 05-Oct-2016 Yunlian Jiang <yunlian@google.com> Fix an uninitialized value warning.

Warning from the static analyzer:

build/tools/zipalign/ZipFile.cpp:503:5: warning: Function call argument
is an uninitialized value
pEntry->setDataInfo(uncompressedLen, endPosn - startPosn, crc,

Specifically, it's referencing `crc`, which would be uninitialized if we
hit either of these two error cases, since we'd return `NO_ERROR`.

Note that the warning is still there, but that's only because the static
analyzer can't see the asserts. If we #undef NDEBUG in the file, then
the warning disappears.

Bug: none
Test: With NDEBUG undefined, the warning is gone.
Change-Id: Iaed66127746c38add2c842ab027f2e1982d0e2fd
/build/make/tools/zipalign/ZipFile.cpp
af1d7411825e589f09074c04bbbd80497b60e9e9 12-Feb-2016 Aurimas Liutikas <aurimas@google.com> Fix 2 unused parameter warnings in zipalign.

ZipFile parameter was not used and therefore can be removed.

Bug: 26936282
Change-Id: Id2b6e693b40571b7e7486304a6effaedc1b3c940
/build/make/tools/zipalign/ZipFile.cpp
41bc424c323f86806f04acd22304d4d149bc5dbe 04-Nov-2015 Dan Willemsen <dwillemsen@google.com> Use explicitly sized types in zipalign/ziptime

getLongLE would return a 64-bit number with the upper 32-bits set when
decoding a 32-bit number with the top bit set. Per the zip file format,
it was only expected to return a 32-bit number. Use explicitly sized
types so that we use the proper sizes and don't do any implicit
extensions.

Change-Id: I5a4304dc99ce5f8f17284d4ca3094ae115207a1e
/build/make/tools/zipalign/ZipFile.cpp
b589ae4e2661d42cbdc0a44193e2df384424e483 29-Oct-2015 Dan Willemsen <dwillemsen@google.com> Revert "Remove changing uids/timestamps from zip/jar files"

This reverts commit 3c2c064c8791ed2d4b9d6780d7b87f406ab78f10.

zipalign depends on libandroidfw, and some setups don't include frameworks/base.

Bug: 24201956
Change-Id: I48ee95808924f6b2221f0a49ab205c2565096b1f
/build/make/tools/zipalign/ZipFile.cpp
3c2c064c8791ed2d4b9d6780d7b87f406ab78f10 28-Oct-2015 Dan Willemsen <dwillemsen@google.com> Remove changing uids/timestamps from zip/jar files

Pass -X to zip so that Unix UID/GID and extra timestamps aren't
saved into the zip files.

Add a new option to zipalign, -t, to replace all timestamps with static
timestamps (2008 Jan 1 00:00:00). Use this for all non-APK zip files.
APK zip timestamps are set based on the certificate date in SignApk.

Bug: 24201956
Change-Id: Ifb619fc499ba9d99fc624f2acd5f8de36d78ef8e
/build/make/tools/zipalign/ZipFile.cpp
093d04c631aa2a4af3317912e9561672c5642bb8 08-Jul-2014 Raph Levien <raph@google.com> Add Zopfli-recompress option to zipalign

Zopfli provides compression roughly 5% better than zlib, while remaining
completely compatible with zlib decoders. This patch adds a "-z" option
to zipalign, recompressing all compressed files within the zip archive.

Change-Id: If177ca4b82ec701b7446861b2cfe08c6bd403813
/build/make/tools/zipalign/ZipFile.cpp
f14d85d6fcb740930f15325611609406d658684c 07-May-2013 Mathias Agopian <mathias@google.com> libutils clean-up

Change-Id: I93a0fef582580282d62379ddba3ae2d50f3ea0c5
/build/make/tools/zipalign/ZipFile.cpp
0bf80735eceecb02141655d7295f0ff5301a75a7 23-Mar-2012 Colin Cross <ccross@android.com> build: move Zip* from libandroidfw to libutils

ZipUtils is needed by build/tools, move it from libandroidfw
(frameworks/base) to libutils (frameworks/native).

Change-Id: I188247d058f1baa0ebd14282208d496c4ba061be
/build/make/tools/zipalign/ZipFile.cpp
6b0a355b37715666fad8839b817cc0f7f22a49b6 18-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring: build fix

Change-Id: If9f1b8a6a9eafa9ea17a3b994941c5c369be2130
/build/make/tools/zipalign/ZipFile.cpp
ca1df5a380069163bbabc7cfed1d48829b8e135e 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ieea4e4511e1a95caeea42cd0a0c1147ebf9c2f48
/build/make/tools/zipalign/ZipFile.cpp
c0b74df335aa99e3c3f6f752de531836faa0c7c5 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I817c12b1e97bee598097d02c70d509f7ab70576a
/build/make/tools/zipalign/ZipFile.cpp
15fab1aa8c1ac4d92222dba349c473a8edd7ce99 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I9281fd27af8c6ec29ebdca60b22f6c9d5ff8deed
/build/make/tools/zipalign/ZipFile.cpp
2da72c6265bab1322876fa9702f7580bff7fd8be 20-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: Ie7704789e47b9553d02e3f6ed89c3ceab532119c
/build/make/tools/zipalign/ZipFile.cpp
3344b2e9b27466111524dfcfb64d7258153e0cb7 05-Jun-2009 Mathias Agopian <mathias@google.com> break dependency on utils/ZipEntry.h and utils/ZipFile.h
/build/make/tools/zipalign/ZipFile.cpp