@gaius: Now I'm blocked from responding to you. The only source code I could find for Microsoft, is for debugging, and doesn't give you access to all the source. You have to use a smart card that they send as well.
Here is the license for Android:
https://source.android.com/setup/licenses
Where is the license for Winblows?