Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f735851f authored by Alex Klyubin's avatar Alex Klyubin
Browse files

Use Jan 1 2009 as timestamp in OTA update ZIPs.

This is a follow-up to 6c41036b where
I forgot to update a section of OTA update ZIP code.

Bug: 26864066
Change-Id: Idbcde71d6377a16807e41c999120eeddd5b4d8a4
parent 8c4f25f1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);