Also, Apple was down to 90 days of operating cash and almost went bankrupt in 1997.
It's really hard to argue counterfactuals on this one. Perhaps the smartphone would have been built by Google anyway. I can't really imagine how, given the state of the mobile phone market at the time of the iPhone's release.