Report Trusty KeyMint as KmVersion::KEYMINT_2
Bug: 194358913 Test: TreeHugger, VtsAidlKeyMintTargetTest Change-Id: Ic5e321c739a66a384907539a339511e5418e9c6a
This commit is contained in:
parent
c594ada00b
commit
37514bb907
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ void addClientAndAppData(const vector<uint8_t>& clientId, const vector<uint8_t>&
|
|||
} // namespace
|
||||
|
||||
ScopedAStatus TrustyKeyMintDevice::getHardwareInfo(KeyMintHardwareInfo* info) {
|
||||
info->versionNumber = 1;
|
||||
info->versionNumber = 2;
|
||||
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_1);
|
||||
int err = trustyKeymaster->Initialize(keymaster::KmVersion::KEYMINT_2);
|
||||
if (err != 0) {
|
||||
LOG(FATAL) << "Could not initialize TrustyKeymaster for KeyMint (" << err << ")";
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue