简体   繁体   English

如何浏览特定版本的 Android 源代码?

[英]How to browse Android source code at a particular version?

I know that android source code is kept here: https://android.googlesource.com/ , but I can't see any way to browse an old version of the code.我知道 android 源代码保存在这里: https://android.googlesource.com/ ,但我看不到任何方式来浏览旧版本的代码。
How would I view, say, dalvik/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java in Froyo?我将如何查看dalvik/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java

Try clicking on the platform/dalvik repository.尝试单击platform/dalvik存储库。 Then scroll down to either one of the tags, or else the froyo-release branch (under Branches ).然后向下滚动到任一标签,或者froyo-release分支(在Branches下)。 Then just keep following the tree links until you get to the right directory.然后继续跟随tree链接,直到到达正确的目录。 Then click on the the file you're interested in.然后单击您感兴趣的文件。

Eg https://android.googlesource.com/platform/dalvik/+/froyo-release/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java例如https://android.googlesource.com/platform/dalvik/+/froyo-release/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java

您可以在AndroidxRef.com 上在线浏览任何版本,以下是您要查找的文件 -- http://androidxref.com/2.2.3/xref/prebuilt/sdk/4/android.jar

This week Google unveiled their official Code Search with Cross References for the Android Open Source Project .本周,谷歌公布了他们针对 Android 开源项目的带有交叉引用的官方代码搜索
To see Froyo's LinkedBlockingQueue source code you can navigate to this page .要查看 Froyo 的 LinkedBlockingQueue 源代码,您可以导航到此页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM