A lot was said on this subject so i wont extend too much but i’ll do several things.
First of all i will point out the the article that helped me do it:
http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/ i think the article is clear and gives you a hint where and what to look for in the source code in it’s next generations.
Next i will point out that even though i did everything it said i had some problem with .pst based projects that were checkout out from the CVS. for some reason i could not see the source code.
Only after I’ve created a new project and tried to browse it did i succeeded, so take it into account.
Next i’m gonna tell you how basically you can get the source code:
- take this file in python, i must say i can’t remember where i got it from, but the guy who wrote it did a great job
it wasn’t me, just to make it clear… - you have to get a linux machine (you might succeed with cygwin…)
- get the source code from git, follow the instructions here: http://source.android.com/
- you will likely get some network error , i did not succeed to get the source in a single attempt, and after that when i think, i mostly succeed but not always, just keep on running ./repo sync or ./repo init -u… until it’s done, i think the first times it took me like 2 days to get it all done.
- use the python script to get pack the source code into java packages.
- now you can open the source code in the right platform directory under ‘sources’ directory.
- you can use ./repo init -b cupcake or ./repo init -b android-sdk-1.5_r3 to get the right tag of the SDK sources before you pack it.
- if you are lazy check the links below I’ve made some ready made sources for 1.5, 1.6 and head (2.0) versions.
here are the links:
aaaaaaaa
- 1.5_R3: http://rapidshare.com/files/304445926/sources_1.5_r3.zip
- 1.6_R2: source code 1.6_r2
- 2.0 (Master branch): http://rapidshare.com/files/304452966/sources-master.zip
- 2.1_r2: 2.1_r2 sources
- 2.2: 2.2 sources
Enjoy