One year after the first Android announcement, Google open sources Android. The source has about 2.1GB, but you need to use Linux or Mac if you want to build it. Alternatively, you can inspect the code online.
Android comes with a list of applications that provide basic features: a phone application, a web browser, a media player, but all of them can be replaced. Even if T-Mobile G1 has a lot of strange limitations, like the requirement to have a Gmail account or the limit of maximum 5 additional email accounts, it's important to remember that G1 is the first, but not the only Android phone and these issues could be solved by third-party applications and future mobile phones.
Source:→ Google System