diff options
Diffstat (limited to 'identity/aidl/default/service.cpp')
-rw-r--r-- | identity/aidl/default/service.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/identity/aidl/default/service.cpp b/identity/aidl/default/service.cpp index 1ff52f9773..ed3c4cbcce 100644 --- a/identity/aidl/default/service.cpp +++ b/identity/aidl/default/service.cpp @@ -16,6 +16,7 @@ #define LOG_TAG "android.hardware.identity-service" +#include <aidl/android/hardware/security/keymint/IRemotelyProvisionedComponent.h> #include <android-base/logging.h> #include <android/binder_manager.h> #include <android/binder_process.h> @@ -32,6 +33,7 @@ using ::android::base::LogSeverity; using ::android::base::StderrLogger; using ::aidl::android::hardware::identity::IdentityCredentialStore; +using ::aidl::android::hardware::security::keymint::IRemotelyProvisionedComponent; using ::android::hardware::identity::FakeSecureHardwareProxyFactory; using ::android::hardware::identity::SecureHardwareProxyFactory; @@ -47,10 +49,13 @@ int main(int /*argc*/, char* argv[]) { InitLogging(argv, ComboLogger); sp<SecureHardwareProxyFactory> hwProxyFactory = new FakeSecureHardwareProxyFactory(); + const std::string remotelyProvisionedComponentName = + std::string(IRemotelyProvisionedComponent::descriptor) + "/default"; ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr<IdentityCredentialStore> store = - ndk::SharedRefBase::make<IdentityCredentialStore>(hwProxyFactory); + ndk::SharedRefBase::make<IdentityCredentialStore>(hwProxyFactory, + remotelyProvisionedComponentName); const std::string instance = std::string() + IdentityCredentialStore::descriptor + "/default"; binder_status_t status = AServiceManager_addService(store->asBinder().get(), instance.c_str()); |