OSDN Git Service

Remove changing uids/timestamps from zip/jar files
authorDan Willemsen <dwillemsen@google.com>
Tue, 27 Oct 2015 23:25:29 +0000 (16:25 -0700)
committerDan Willemsen <dwillemsen@google.com>
Thu, 29 Oct 2015 18:57:16 +0000 (11:57 -0700)
commit3c2c064c8791ed2d4b9d6780d7b87f406ab78f10
treeec43ed4f83e762658d81cd6567ce1638a6097b96
parentc448e91c3d3d095f8f200c9925f7db2ad525132f
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
13 files changed:
core/Makefile
core/definitions.mk
core/droiddoc.mk
core/java_library.mk
core/tasks/cts.mk
core/tasks/sdk-addon.mk
core/tasks/tools/package-modules.mk
tools/zipalign/README.txt
tools/zipalign/ZipAlign.cpp
tools/zipalign/ZipEntry.cpp
tools/zipalign/ZipEntry.h
tools/zipalign/ZipFile.cpp
tools/zipalign/ZipFile.h