Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GrapheneOS/Auditor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d08a8bfa59a377ea0c34d43a7b0fc0c536577dc1
Choose a base ref
..
head repository: GrapheneOS/Auditor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 77ad4f75f4b7c55ee0ffa01108be18939828b197
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/src/main/java/app/attestation/auditor/AttestationProtocol.java
Original file line number Diff line number Diff line change
@@ -1077,7 +1077,7 @@ private static VerificationResult verify(final Context context, final byte[] fin
editor.putInt(KEY_PINNED_APP_VERSION, verified.appVersion);
editor.putInt(KEY_PINNED_APP_VARIANT, verified.appVariant);
editor.putInt(KEY_PINNED_SECURITY_LEVEL, verified.securityLevel); // new field
editor.putLong(KEY_VERIFIED_TIME_LAST, new Date().getTime());
editor.putLong(KEY_VERIFIED_TIME_LAST, System.currentTimeMillis());
editor.apply();
} else {
verifySignature(attestationCertificates[0].getPublicKey(), signedMessage, signature);
@@ -1104,7 +1104,7 @@ private static VerificationResult verify(final Context context, final byte[] fin
editor.putInt(KEY_PINNED_APP_VARIANT, verified.appVariant);
editor.putInt(KEY_PINNED_SECURITY_LEVEL, verified.securityLevel);

final long now = new Date().getTime();
final long now = System.currentTimeMillis();
editor.putLong(KEY_VERIFIED_TIME_FIRST, now);
editor.putLong(KEY_VERIFIED_TIME_LAST, now);