diff options
author | David Drysdale <drysdale@google.com> | 2022-06-22 07:42:52 +0100 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2022-06-22 10:26:29 +0100 |
commit | 67de148a47955e479ac253989c43a5233d8f87eb (patch) | |
tree | 9a1d28e3651a9d949d3d3b881d08c95395f85887 | |
parent | 29d143b029230766d30bc409b8d5236a1951177d (diff) | |
download | cts-67de148a47955e479ac253989c43a5233d8f87eb.tar.gz |
RESTRICT AUTOMERGE: Skip time checks for key attestation
Various devices have problems with including correct timestamps in
attested keys, so skip the time checks for now.
Bug: 232078430
Test: CtsKeystoreTestCases
Change-Id: Iac924fcc1e35f06f8c7e45f7c30ddab47fdadb9b
-rw-r--r-- | tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java b/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java index f864e52812d..043b5de11cd 100644 --- a/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java +++ b/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java @@ -1104,7 +1104,10 @@ public class KeyAttestationTest { boolean requireCreationDateTime = attestation.getKeymasterVersion() >= Attestation.KM_VERSION_KEYMINT_1; - if (requireCreationDateTime || creationDateTime != null) { + // b/232078430: skip time checks in Android T due to unfixed bug. + boolean doTimeChecks = false; + + if (doTimeChecks && (requireCreationDateTime || creationDateTime != null)) { assertNotNull(creationDateTime); assertTrue("Test start time (" + startTime.getTime() + ") and key creation time (" + |