查看Android源码的当前版本

下载好的源码,如何快速查看当前的版本是多少呢?

查找这个文件:

/build/core/version_defaults.mk

查看文件中的:

ifeq "" "$(PLATFORM_VERSION)"
  # This is the canonical definition of the platform version,
  # which is the version that we reveal to the end user.
  # Update this value when the platform version changes (rather
  # than overriding it somewhere else).  Can be an arbitrary string.
  PLATFORM_VERSION := 4.1.2
endif

他的位置比较靠前,打开就能看到了,明显,版本是4.1.2嘛,哈哈。很方便吧。

猜你喜欢

转载自dingran.iteye.com/blog/1927444