If Android had to be released under the GPL (and
only under the GPL, or at least a compatible
copyleft license), Google would have a hard time keeping a growing number of core Android components like its Mail and Map clients or even the new on - screen keyboard (again, more about that in the next section) closed — and Google's hardware partners would have to release their proprietary enhancements such as Samsung's Touchwiz and HTC Sense under the GPL, which would run counter to their objective of differentiation because their competitors could then use the same code.
However, if that implementation is a derivative work of the OpenJDK (as it appears to be even when you copy
only APIs), then the GPL requires you to make your derivative implementation available under the GPL as well, per the GPL's
copyleft rules.