commit | 3a9d425ec6db298deef9fc2e9a5eb6ac6182201e | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Wed Feb 28 06:23:52 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Feb 28 06:23:52 2024 +0000 |
tree | acd60cb33c8c9d8a5727328d24e99f864dd4071c | |
parent | 5b12266e15396a676c70ee5d909a06425ab4aaf7 [diff] | |
parent | 8351f33b2b5a4be356605251e2ea26c3c03d946f [diff] |
KeyMint: use a smaller invalid IMEI value am: 8351f33b2b Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2977372 Change-Id: Iddbd097cc4fae62eb0dac0ec7e7e5bb997f14a59 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/security/keymint/aidl/vts/functional/AttestKeyTest.cpp b/security/keymint/aidl/vts/functional/AttestKeyTest.cpp index 6d289ec..4ae0383 100644 --- a/security/keymint/aidl/vts/functional/AttestKeyTest.cpp +++ b/security/keymint/aidl/vts/functional/AttestKeyTest.cpp
@@ -939,7 +939,9 @@ .Authorization(TAG_ATTESTATION_ID_MODEL, "malicious-model"); if (isSecondImeiIdAttestationRequired()) { - attestation_id_tags.Authorization(TAG_ATTESTATION_ID_SECOND_IMEI, "invalid-second-imei"); + // Note: the invalid value here is < 16 bytes long to avoid triggering any implementation + // checks on valid IMEI lengths. + attestation_id_tags.Authorization(TAG_ATTESTATION_ID_SECOND_IMEI, "invalid-imei2"); } vector<uint8_t> key_blob; vector<KeyCharacteristics> key_characteristics;