Source code for Android has been released
(for linux and macos, but not for windows)

http://source.android.com/download