How to determine version of Android source code?

落爺英雄遲暮 提交于 2019-12-22 10:27:52

问题


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"/>

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:


回答1:


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.

Example: https://github.com/android/platform_frameworks_base/tree/master/api




回答2:


The AOSP SDK version is defined in build/core/version_defaults.mk.



来源:https://stackoverflow.com/questions/8673456/how-to-determine-version-of-android-source-code

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