如何确定Android源$ C ​​$ C的版本?

问题描述:

我有Android源$ C ​​$ C的副本,但不知道它是什么版本的安卓(我前一阵子下载了它,并可以不记得我是否同步到回购与否的头)。

I have a copy of the Android source code, but don't know what version of android it is (I downloaded it a while ago and can't remember if I synced to the head of the repo or not).

这有没有办法确定这一点?我看着在清单中的一对夫妇的示例项目和他们的状态:

It there a way to determine this? I've looked in the manifest for a couple of the sample projects and they state:

<uses-sdk android:targetSdkVersion="11"/>

所以我觉得我可以假设它要么是11或以上,但我不能确定是哪一个。这是文件结构看起来是这样的:

so I think I can assume it is either 11 or above, but I'm not certain which one. This is what the file structure looks like:

我想这就是平台/ 目录。如果是这样,拿在框架/基/ API 一起来看看。你会发现一个文本文件重新presenting该公司一直致力于每个API级别 - 发现在该目录中的回答最大编号的文件

I assume that's the platform/ directory. If so, take a look in frameworks/base/api. You'll find a text file representing each API level that's been committed -- find the largest numbered file in that directory for your answer.

例如: https://github.com/android/platform_frameworks_bas​​e/tree/master/ API