diff --git a/automotive/vehicle/2.0/default/VehicleService.cpp b/automotive/vehicle/2.0/default/VehicleService.cpp index 12e15f9db3..2968232ed4 100644 --- a/automotive/vehicle/2.0/default/VehicleService.cpp +++ b/automotive/vehicle/2.0/default/VehicleService.cpp @@ -33,7 +33,7 @@ int main(int /* argc */, char* /* argv */ []) { auto store = std::make_unique(); auto connector = std::make_unique(); auto hal = std::make_unique(store.get(), connector.get()); - auto service = std::make_unique(hal.get()); + auto service = android::sp::make(hal.get()); connector->setValuePool(hal->getValuePool()); android::hardware::configureRpcThreadpool(4, true /* callerWillJoin */);