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
This commit is contained in:
parent
7bc5a7ef5f
commit
e345066058
|
@ -91,7 +91,7 @@ void addClientAndAppData(const vector<uint8_t>& clientId, const vector<uint8_t>&
|
|||
} // namespace
|
||||
|
||||
ScopedAStatus TrustyKeyMintDevice::getHardwareInfo(KeyMintHardwareInfo* info) {
|
||||
info->versionNumber = 2;
|
||||
info->versionNumber = 3;
|
||||
info->securityLevel = kSecurityLevel;
|
||||
info->keyMintName = "TrustyKeyMintDevice";
|
||||
info->keyMintAuthorName = "Google";
|
||||
|
|
|
@ -41,7 +41,7 @@ std::shared_ptr<T> addService(Args&&... args) {
|
|||
|
||||
int main() {
|
||||
auto trustyKeymaster = std::make_shared<keymaster::TrustyKeymaster>();
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue