Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
The community reviewed whether to reopen this question 4 months ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
一切内容都镜像在 omapzoom.org 上。 一些代码也镜像在github上。
例如,联系人在这里。
自 2019 年 12 月起,您可以使用 AOSP 新的官方公共代码搜索工具:cs.android。 com。 还有
Android 官方源码浏览器(基于 Gitiles) 具有构成 android 的许多不同部分的 Web 视图。 一些项目(例如 Kernel)已被删除,它现在仅指向可克隆的 git 存储库。
要在本地获取所有代码,您可以使用 repo 帮助程序,或者您只能克隆单个存储库。
以及其他:
Everything is mirrored on omapzoom.org. Some of the code is also mirrored on github.
Contacts is here for example.
Since December 2019, you can use the new official public code search tool for AOSP: cs.android.com. There's also the
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.
To get all the code locally, you can use the repo helper program, or you can just clone individual repositories.
And others:
2020:官方AOSP代码搜索https://cs.android.com/
可以查看源码<通过 http://developer.android.com,当您正在阅读 API 时,GitHub 上会有一个指向匹配源代码的链接,您只需添加 Chrome 上的 Android SDK 参考搜索插件。
我在这里写了一篇博客:
http://blog.blundellapps.com/add-source- code-links-to-android-apis/
2020: The official AOSP code search https://cs.android.com/
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.
I blogged about it here:
http://blog.blundellapps.com/add-source-code-links-to-android-apis/
前几天我偶然发现了 Android XRef 并发现它很有用,特别是因为它得到了 OpenGrok 的支持,OpenGrok 提供了非常出色的功能和令人眼花缭乱的快速搜索。
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.
我找到了一种仅获取“联系人”应用程序的方法:
目前这对我来说已经足够好了,但不能解决在网络上浏览代码的问题。
I've found a way to get only the Contacts application:
which is good enough for me for now, but doesn't answer the question of browsing the code on the web.
您可以使用“代码搜索”从智能手机浏览 Android SDK 示例:
https://market.android.com/details?id=sqwady.codesearch
You can browse Android SDK samples from your smartphone using "Code Search":
https://market.android.com/details?id=sqwady.codesearch
这个 Eclipse 插件允许内联源代码查看,甚至可以单步执行 Android 源代码:
http://code .google.com/p/adt-addons/
(编辑:特别是“Android Sources”插件:http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/)
This eclipse plugin allows for inline source viewing and even stepping inside the Android source code:
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/)
gitweb 将允许您通过浏览器浏览代码(和更改)。
http://git.or.cz/gitwiki/Gitweb
(不知道是否有人已经为 Android 设置了一个公共 gitweb,但这可能不太难。)
gitweb will allow you to browse through the code (and changes) via a browser.
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.)