How to browse Android source code at a particular version?

十年热恋 提交于 2019-12-10 10:47:41

问题


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.
How would I view, say, dalvik/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java in Froyo?


回答1:


Try clicking on the platform/dalvik repository. Then scroll down to either one of the tags, or else the froyo-release branch (under Branches). Then just keep following the tree links until you get to the right directory. Then click on the the file you're interested in.

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




回答2:


You can browse any version online on AndroidxRef.com and following is your file that you are looking for -- http://androidxref.com/2.2.3/xref/prebuilt/sdk/4/android.jar



来源:https://stackoverflow.com/questions/4504576/how-to-browse-android-source-code-at-a-particular-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!