我在哪里可以在网上找到Android的源代码?

时间:2022-01-17 15:04:41

Particularly, where can I browse the source code for any android source application(e.g.the contact application) ? Is the only way to go to download all there is?

特别是,我可以在哪里浏览任何android源程序的源代码(例如。联系人应用程序)?去下载所有东西的唯一方法是什么?

8 个解决方案

#1


313  

Everything is mirrored on omapzoom.org. Some of the code is also mirrored on github.

所有的东西都在omapzoom.org上反映出来。一些代码也被镜像到github上。

Contacts is here for example.

联系人就在这里。

Android official source browser (based on Gitiles) has a web view of many of the different parts that make up android. Some of the projects (such as Kernel) have been removed and it now only points you to clonable git repositories.

Android官方源代码浏览器(基于Gitiles)提供了许多组成Android的不同部分的web视图。一些项目(如内核)已经被删除,现在它只指向clonable repository。

To get all the code locally, you can use the repo helper program, or you can just clone individual repositories.

要在本地获取所有代码,可以使用repo helper程序,或者可以克隆单独的存储库。

And others:

及其他:

#2


190  

I usually refer this site for the android source code.

我通常参考这个网站的android源代码。

http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

Just want to provide more options :-)

只是想提供更多的选择:-)

#3


59  

You can view the source code through http://developer.android.com, when you're reading the API there will be a link to the matching source code on GitHub, you just need to add the Android SDK Reference Search Plugin on Chrome.

您可以通过http://developer.android.com查看源代码,当您阅读API时,GitHub上将会有一个到匹配源代码的链接,您只需在Chrome上添加Android SDK参考搜索插件即可。

I blogged about it here:
http://blog.blundellapps.com/add-source-code-links-to-android-apis/

我在这里写了一篇博客:http://blog.blundellapps.com/add- code-link to android-apis/

我在哪里可以在网上找到Android的源代码?

#4


41  

I stumbled across Android XRef the other day and found it useful, especially since it is backed by OpenGrok which offers insanely awesome and blindingly fast search.

前几天,我偶然发现了Android XRef,并发现它很有用,特别是它有OpenGrok公司的支持,它提供了令人惊叹的快速搜索。

#5


6  

I've found a way to get only the Contacts application:

我找到了一种只获取联系人申请的方法:

git clone https://android.googlesource.com/platform/packages/apps/Contacts

which is good enough for me for now, but doesn't answer the question of browsing the code on the web.

这对我来说已经足够了,但是还不能回答在web上浏览代码的问题。

#6


1  

You can browse Android SDK samples from your smartphone using "Code Search": https://market.android.com/details?id=sqwady.codesearch

您可以使用“代码搜索”从智能手机上浏览Android SDK示例:https://market.android.com/details?id=sqwady.codesearch

#7


1  

This eclipse plugin allows for inline source viewing and even stepping inside the Android source code:

这个eclipse插件允许内联源代码查看,甚至可以进入Android源代码:

http://code.google.com/p/adt-addons/

http://code.google.com/p/adt-addons/

(edit: specifically the "Android Sources" plugin: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/)

(编辑:特别是“Android source”插件:http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.update/)

#8


0  

gitweb will allow you to browse through the code (and changes) via a browser.

gitweb将允许您通过浏览器浏览代码(和更改)。

http://git.or.cz/gitwiki/Gitweb

http://git.or.cz/gitwiki/Gitweb

(Don't know if someone has already setup a public gitweb for Android, but it's probably not too hard.)

(不知道是否有人已经为Android设置了一个公共的gitweb,但它可能并不太难。)

#1


313  

Everything is mirrored on omapzoom.org. Some of the code is also mirrored on github.

所有的东西都在omapzoom.org上反映出来。一些代码也被镜像到github上。

Contacts is here for example.

联系人就在这里。

Android official source browser (based on Gitiles) has a web view of many of the different parts that make up android. Some of the projects (such as Kernel) have been removed and it now only points you to clonable git repositories.

Android官方源代码浏览器(基于Gitiles)提供了许多组成Android的不同部分的web视图。一些项目(如内核)已经被删除,现在它只指向clonable repository。

To get all the code locally, you can use the repo helper program, or you can just clone individual repositories.

要在本地获取所有代码,可以使用repo helper程序,或者可以克隆单独的存储库。

And others:

及其他:

#2


190  

I usually refer this site for the android source code.

我通常参考这个网站的android源代码。

http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

Just want to provide more options :-)

只是想提供更多的选择:-)

#3


59  

You can view the source code through http://developer.android.com, when you're reading the API there will be a link to the matching source code on GitHub, you just need to add the Android SDK Reference Search Plugin on Chrome.

您可以通过http://developer.android.com查看源代码,当您阅读API时,GitHub上将会有一个到匹配源代码的链接,您只需在Chrome上添加Android SDK参考搜索插件即可。

I blogged about it here:
http://blog.blundellapps.com/add-source-code-links-to-android-apis/

我在这里写了一篇博客:http://blog.blundellapps.com/add- code-link to android-apis/

我在哪里可以在网上找到Android的源代码?

#4


41  

I stumbled across Android XRef the other day and found it useful, especially since it is backed by OpenGrok which offers insanely awesome and blindingly fast search.

前几天,我偶然发现了Android XRef,并发现它很有用,特别是它有OpenGrok公司的支持,它提供了令人惊叹的快速搜索。

#5


6  

I've found a way to get only the Contacts application:

我找到了一种只获取联系人申请的方法:

git clone https://android.googlesource.com/platform/packages/apps/Contacts

which is good enough for me for now, but doesn't answer the question of browsing the code on the web.

这对我来说已经足够了,但是还不能回答在web上浏览代码的问题。

#6


1  

You can browse Android SDK samples from your smartphone using "Code Search": https://market.android.com/details?id=sqwady.codesearch

您可以使用“代码搜索”从智能手机上浏览Android SDK示例:https://market.android.com/details?id=sqwady.codesearch

#7


1  

This eclipse plugin allows for inline source viewing and even stepping inside the Android source code:

这个eclipse插件允许内联源代码查看,甚至可以进入Android源代码:

http://code.google.com/p/adt-addons/

http://code.google.com/p/adt-addons/

(edit: specifically the "Android Sources" plugin: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/)

(编辑:特别是“Android source”插件:http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.update/)

#8


0  

gitweb will allow you to browse through the code (and changes) via a browser.

gitweb将允许您通过浏览器浏览代码(和更改)。

http://git.or.cz/gitwiki/Gitweb

http://git.or.cz/gitwiki/Gitweb

(Don't know if someone has already setup a public gitweb for Android, but it's probably not too hard.)

(不知道是否有人已经为Android设置了一个公共的gitweb,但它可能并不太难。)