Browsing Android source code in eclipse.

November 9th, 2009 by codeScriber Leave a reply »

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 :-)

Advertisement

20 comments

  1. avatar Nixn.dev says:

    Thanks very much!

  2. avatar Karv says:

    Thank u!

  3. avatar codeScriber says:

    Welcome :-) spread it out!!! ;-)

  4. avatar gosling sun says:

    thx very much

  5. avatar Johannes says:

    This might be the phyton source

  6. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your blog? My website is in the exact same niche as yours and my users would definitely benefit from a lot of the information you provide here. Please let me know if this ok with you. Regards!

  7. avatar codeScriber says:

    please tell me in advance what you are going to quote, naturally if you are quoting 60% of the article better just add a link to it….

  8. avatar proxy online says:

    Superb Post.thanks for share..more wait ..

  9. avatar Reva Vause says:

    Blog Xing, add your blogs here: http://www.blogxing.ru

  10. avatar loabs says:

    Thanx dude :)

  11. My partner and I stumbled over here different page and thought I may as well check things out. I like what I see so i am just following you. Look forward to going over your web page for a second time.

  12. avatar admin says:

    您是谁 ?

  13. avatar liu says:

    Hello ,do you have the source code android4.0 or android4.1.2 Following is my email, thank you!

    liuleii@126.com

  14. avatar admin says:

    4.x comes with the source in the SDK.No need for me to post it.

Leave a Reply

Theme Tweaker by Unreal