问题
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