Google sells their OS to the phone manufacturer.
In fact, Android has over 80% of the worldwide market share.
And android is Google.
https://www.idc.com/promo/smartphone-market-share/os
Is that why Google pays Samsung $3.5 billion? Very odd definition of "sells".