Android 从源码中查看当前android版本

Android 从源码中查看当前android版本

1.未编译代码
在/build/core/version_defaults.mk文件,查找PLATFORM_VERSION,或PLATFORM_SDK_VERSION查看版本信息

ifndef PLATFORM_SDK_VERSION
  # This is the canonical definition of the SDK version, which defines
  # the set of APIs and functionality available in the platform.  It
  # is a single integer that increases monotonically as updates to
  # the SDK are released.  It should only be incremented when the APIs for
  # the new release are frozen (so that developers don't write apps against
  # intermediate builds).  During development, this number remains at the
  # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
  # 

猜你喜欢

转载自blog.csdn.net/qq_31939617/article/details/130880482