In the source code web page, we can find all information we need to get the source code. The whole code is about 2Gb, and we will need 6Gb to compile it. Now, we can only use Unix-like machines to compile it, so if we are working under Windows, we can not do that. In our case, we want only have a look to the source code, we don't want (for now) to compile it.
Lets have a look to the Repository web page we can find a large list of projects. They are the source code of the kernel, framework,libraries, Applications and much more!
First of all we have to know what we are looking for, because if we don't know that, we can become crazy looking inside the project folders.
Imagine that we want to know how the AlarmClock is programed. We find this project as platform/packages/apps/AlarmClock.git.
Inside every project, we can find deferents tags “Summary, shortlog, log...” we are interested in the “summary” and “tree” ones. Why the “summary”? Here we can find all information about the project we need. In the “tree” tag, we can surf trough the project folders and files.
We have to take account that this code is always changing, they are working with a more advanced SDK than ours. So maybe, some of the “main” branches code would not work in our applications because they depends of the news SDK classes. If we want to get the source code of the public SDK (1.0) we have to go to “release-1.0” line, in the “summary” tag.
If we surf trough the “tree” tag, we can see every java, xml and resource files of the project. We can download them individually or as a package.