Posts Tagged ‘android browse source’

Browsing Android source code in eclipse.

November 9th, 2009

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:

  1. 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…
  2. you have to get a linux machine (you might succeed with cygwin…)
  3. get the source code from git, follow the instructions here: http://source.android.com/
  4. 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.
  5. use the python script to get pack the source code into java packages.
  6. now you can open the source code in the right platform directory under ‘sources’ directory.
  7. 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.
  8. 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. 1.5_R3: http://rapidshare.com/files/304445926/sources_1.5_r3.zip
  2. 1.6_R2: source code 1.6_r2
  3. 2.0 (Master branch): http://rapidshare.com/files/304452966/sources-master.zip
  4. 2.1_r2: 2.1_r2 sources
  5. 2.2: 2.2 sources

Enjoy :-)

Theme Tweaker by Unreal