Actually I forgot when the Sun/Oracle sale happened. Android 1.0 was released before Oracle bought Sun. Though I suppose there was always the possibility of legal action by Sun.
Schmidt (being an ex-Sun executive) reached out to Sun to talk about an alliance.
http://icdn4.digitaltrends.com/image/google-schmidt-610x452....