OSDN Git Service

releasetools: Use fixed timestamp in otacerts.zip.
authorTao Bao <tbao@google.com>
Tue, 12 Apr 2016 06:05:52 +0000 (23:05 -0700)
committerTao Bao <tbao@google.com>
Tue, 12 Apr 2016 06:10:00 +0000 (23:10 -0700)
commit7ee3a9678e7191c48f0ba4e04792fe97925c1aa1
treeda8de82f68ff20644ca9c1d6c978c560edcac80e
parentca0df0c249593148f4bc036cac2662b3066b7fb5
releasetools: Use fixed timestamp in otacerts.zip.

We were using zipfile.write() to write system/etc/security/otacerts.zip
when signing for release. It led to unexpected timestamp change in the
generated otacerts.zip and non-idempotent signed images when signing the
same target_files.zip.

Replace with common.ZipWrite() to always use a fixed timestamp.

Bug: 28122968
Change-Id: Ia6cf4b7d380cbf72ed7050ebb60c932dc8826d87
tools/releasetools/sign_target_files_apks.py