Android Afficher la version Android actuelle à partir du code source

Android Afficher la version Android actuelle à partir du code source

1. Code non compilé
Dans le fichier /build/core/version_defaults.mk, recherchez PLATFORM_VERSION ou PLATFORM_SDK_VERSION pour afficher les informations de 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
  # 

Supongo que te gusta

Origin blog.csdn.net/qq_31939617/article/details/130880482
Recomendado
Clasificación