Strip out unused parts of keymint
This implementation of keymint is just software-based so can't support
things like key deletion and it's not aware of the device lock state.
Constant fold the security level and stub out operations at the top
level to make the behaviour easier to find.
Bug: 190578423
Test: atest MicrodroidHostTestCases
Change-Id: Ic49c4515ea0490ba864b56b5487ac0a877970616
diff --git a/microdroid/keymint/service.cpp b/microdroid/keymint/service.cpp
index 2cdad0f..325e852 100644
--- a/microdroid/keymint/service.cpp
+++ b/microdroid/keymint/service.cpp
@@ -34,7 +34,7 @@
// Add Keymint Service
std::shared_ptr<MicrodroidKeyMintDevice> keyMint =
- ndk::SharedRefBase::make<MicrodroidKeyMintDevice>(SecurityLevel::SOFTWARE);
+ ndk::SharedRefBase::make<MicrodroidKeyMintDevice>();
auto instanceName = std::string(MicrodroidKeyMintDevice::descriptor) + "/default";
LOG(INFO) << "adding keymint service instance: " << instanceName;
binder_status_t status =