Remember Nokia. They produced mobile phones with excellent quality, extreme ruggedness, good battery life, and good voice quality. Their manufacturing was highly automated and their costs were low. They focused on their core business. Recently, their CEO said "We did everything right, and we lost anyway".
On the other hand, Google has repeatedly failed to develop a second big money-making product. They failed at social. They failed at fiber-to-the-home. Android is a loss leader to drive ad traffic. Automatic driving may pay off, but that is being a component supplier to an car company, not a high-profit business. Google's second venture into smartphones might be a success, but that remains to be seen.