diff --git a/trusty/keymaster/keymint/service.cpp b/trusty/keymaster/keymint/service.cpp index 4060278d4..d5a77fb3e 100644 --- a/trusty/keymaster/keymint/service.cpp +++ b/trusty/keymaster/keymint/service.cpp @@ -31,7 +31,7 @@ using aidl::android::hardware::security::sharedsecret::trusty::TrustySharedSecre template std::shared_ptr addService(Args&&... args) { - std::shared_ptr service = std::make_shared(std::forward(args)...); + std::shared_ptr service = ndk::SharedRefBase::make(std::forward(args)...); auto instanceName = std::string(T::descriptor) + "/default"; LOG(ERROR) << "Adding service instance: " << instanceName; auto status = AServiceManager_addService(service->asBinder().get(), instanceName.c_str());