]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/commitdiff
Require KM4 attestations contain the right version
authorShawn Willden <swillden@google.com>
Tue, 31 Jul 2018 19:47:37 +0000 (13:47 -0600)
committerShawn Willden <swillden@google.com>
Fri, 17 Aug 2018 12:58:12 +0000 (06:58 -0600)
Note that devices with KM4 will fail to pass VTS after this
lands, until the fix from Qualcomm arrives.

Test: VtsHalKeymasterV4_0TargetTest
Bug: 112040197
Bug: 80246122
Change-Id: Ie2cd917af704b9f19de3537297b3a7e4f0c861e9

keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp

index ccb51ecfb18cc44031438be1d9cfbfac9786c920..612426453aeee0538f0a9f98df41399ad78bcc84 100644 (file)
@@ -308,7 +308,7 @@ bool verify_attestation_record(const string& challenge, const string& app_id,
 
     expected_sw_enforced.push_back(TAG_ATTESTATION_APPLICATION_ID, HidlBuf(app_id));
 
-    EXPECT_GE(att_keymaster_version, 3U);
+    EXPECT_EQ(att_keymaster_version, 4U);
     EXPECT_EQ(security_level, att_keymaster_security_level);
     EXPECT_EQ(security_level, att_attestation_security_level);