OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c4f25f
)
Use Jan 1 2009 as timestamp in OTA update ZIPs.
author
Alex Klyubin
<klyubin@google.com>
Tue, 9 Feb 2016 21:09:57 +0000
(13:09 -0800)
committer
Alex Klyubin
<klyubin@google.com>
Tue, 9 Feb 2016 21:09:57 +0000
(13:09 -0800)
This is a follow-up to
6c41036bcf35fe39162b50d27533f0f3bfab3028
where
I forgot to update a section of OTA update ZIP code.
Bug:
26864066
Change-Id: Idbcde71d6377a16807e41c999120eeddd5b4d8a4
tools/signapk/src/com/android/signapk/SignApk.java
patch
|
blob
|
history
diff --git
a/tools/signapk/src/com/android/signapk/SignApk.java
b/tools/signapk/src/com/android/signapk/SignApk.java
index
8f40220
..
4d6744a
100644
(file)
--- a/
tools/signapk/src/com/android/signapk/SignApk.java
+++ b/
tools/signapk/src/com/android/signapk/SignApk.java
@@
-722,9
+722,6
@@
class SignApk {
int hash = getDigestAlgorithm(publicKey, minSdkVersion);
- // Assume the certificate is valid for at least an hour.
- long timestamp = publicKey.getNotBefore().getTime() + 3600L * 1000;
-
Manifest manifest = addDigestsToManifest(inputJar, hash);
copyFiles(manifest, inputJar, outputJar, timestamp, 0);
addOtacert(outputJar, publicKeyFile, timestamp, manifest, hash);