diff --git a/automotive/vehicle/2.0/default/VehicleService.cpp b/automotive/vehicle/2.0/default/VehicleService.cpp index 7e8deb6777..5a48284301 100644 --- a/automotive/vehicle/2.0/default/VehicleService.cpp +++ b/automotive/vehicle/2.0/default/VehicleService.cpp @@ -35,7 +35,7 @@ int main(int /* argc */, char* /* argv */ []) { auto userHal = connector->getEmulatedUserHal(); auto hal = std::make_unique(store.get(), connector.get(), userHal); auto emulator = std::make_unique(hal.get()); - auto service = std::make_unique(hal.get()); + auto service = android::sp::make(hal.get()); connector->setValuePool(hal->getValuePool()); configureRpcThreadpool(4, true /* callerWillJoin */);