diff options
author | Shawn Willden <swillden@google.com> | 2020-09-30 22:39:22 -0600 |
---|---|---|
committer | Max Bires <jbires@google.com> | 2021-02-16 07:40:59 -0800 |
commit | 274bb55f102d1adaac99f41ae4f6dcde9d2c13d2 (patch) | |
tree | 703ca1e28eb1bfde864a316396fa6bc3211254e5 /security/keymint/aidl/default/service.cpp | |
parent | 06811c8124c8e724ed4a41ae54a33a6b97981f4d (diff) |
Add RemotelyProvisionedComponent HAL.
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I51fb01f4c52949c81f3ad2d694a4afdf0fa67788
Diffstat (limited to 'security/keymint/aidl/default/service.cpp')
-rw-r--r-- | security/keymint/aidl/default/service.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/keymint/aidl/default/service.cpp b/security/keymint/aidl/default/service.cpp index 75b394e187..bcebbaf8cf 100644 --- a/security/keymint/aidl/default/service.cpp +++ b/security/keymint/aidl/default/service.cpp @@ -25,7 +25,10 @@ #include <AndroidSharedSecret.h> #include <keymaster/soft_keymaster_logger.h> +#include "RemotelyProvisionedComponent.h" + using aidl::android::hardware::security::keymint::AndroidKeyMintDevice; +using aidl::android::hardware::security::keymint::RemotelyProvisionedComponent; using aidl::android::hardware::security::keymint::SecurityLevel; using aidl::android::hardware::security::secureclock::AndroidSecureClock; using aidl::android::hardware::security::sharedsecret::AndroidSharedSecret; @@ -45,7 +48,6 @@ int main() { // Zero threads seems like a useless pool, but below we'll join this thread to it, increasing // the pool size to 1. ABinderProcess_setThreadPoolMaxThreadCount(0); - // Add Keymint Service std::shared_ptr<AndroidKeyMintDevice> keyMint = addService<AndroidKeyMintDevice>(SecurityLevel::SOFTWARE); @@ -53,6 +55,8 @@ int main() { addService<AndroidSecureClock>(keyMint); // Add Shared Secret Service addService<AndroidSharedSecret>(keyMint); + // Add Remotely Provisioned Component Service + addService<RemotelyProvisionedComponent>(keyMint); ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach } |