diff --git a/keystore/keystore_main.cpp b/keystore/keystore_main.cpp index 7b7430f9..02c2139a 100644 --- a/keystore/keystore_main.cpp +++ b/keystore/keystore_main.cpp @@ -114,6 +114,7 @@ KeymasterDevices initializeKeymasters() { LOG(WARNING) << "No secure Keymaster implementation found, but device offers insecure" " Keymaster HAL. Using as default."; result[SecurityLevel::TRUSTED_ENVIRONMENT] = result[SecurityLevel::SOFTWARE]; + result[SecurityLevel::SOFTWARE] = nullptr; } if (!result[SecurityLevel::SOFTWARE]) { auto fbdev = android::keystore::makeSoftwareKeymasterDevice();