From e3450660582c77a1b0cb00e3962af2142ba071d5 Mon Sep 17 00:00:00 2001 From: Eran Messeri Date: Wed, 9 Nov 2022 10:58:06 +0000 Subject: [PATCH] Update the KeyMint version to 3 Part of the change to support 2nd IMEI attestation. Bug: 244732345 Test: atest keystore2_test android.keystore.cts.DeviceOwnerKeyManagementTest Change-Id: I59544e1e8019869cadeb7b46800c9b519048934c --- trusty/keymaster/keymint/TrustyKeyMintDevice.cpp | 2 +- trusty/keymaster/keymint/service.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trusty/keymaster/keymint/TrustyKeyMintDevice.cpp b/trusty/keymaster/keymint/TrustyKeyMintDevice.cpp index 7d58162cc..b696ff931 100644 --- a/trusty/keymaster/keymint/TrustyKeyMintDevice.cpp +++ b/trusty/keymaster/keymint/TrustyKeyMintDevice.cpp @@ -91,7 +91,7 @@ void addClientAndAppData(const vector& clientId, const vector& } // namespace ScopedAStatus TrustyKeyMintDevice::getHardwareInfo(KeyMintHardwareInfo* info) { - info->versionNumber = 2; + info->versionNumber = 3; info->securityLevel = kSecurityLevel; info->keyMintName = "TrustyKeyMintDevice"; info->keyMintAuthorName = "Google"; diff --git a/trusty/keymaster/keymint/service.cpp b/trusty/keymaster/keymint/service.cpp index 3447b27b4..14549d2b7 100644 --- a/trusty/keymaster/keymint/service.cpp +++ b/trusty/keymaster/keymint/service.cpp @@ -41,7 +41,7 @@ std::shared_ptr addService(Args&&... args) { int main() { auto trustyKeymaster = std::make_shared(); - int err = trustyKeymaster->Initialize(keymaster::KmVersion::KEYMINT_2); + int err = trustyKeymaster->Initialize(keymaster::KmVersion::KEYMINT_3); if (err != 0) { LOG(FATAL) << "Could not initialize TrustyKeymaster for KeyMint (" << err << ")"; return -1;