如何看 Android Platform 的 PLATFORM_VERSION 版本號碼?

本篇紀錄一下如何看 Android Platform (BSP) 的 PLATFORM_VERSION 版本號碼。
PLATFORM_VERSION 位在 platform/build/core/version_defaults.mk 裡。

Master
https://android.googlesource.com/platform/build/+/refs/heads/master/core/version_defaults.mk

Android 10
https://android.googlesource.com/platform/build/+/refs/tags/android-10.0.0_r17/core/version_defaults.mk
https://android.googlesource.com/platform/build/+/refs/heads/android10-release/core/version_defaults.mk
PLATFORM_VERSION.QP1A := 10

Android 9 Pie
https://android.googlesource.com/platform/build/+/refs/tags/android-9.0.0_r51/core/version_defaults.mk
https://android.googlesource.com/platform/build/+/refs/heads/pie-release/core/version_defaults.mk
PLATFORM_VERSION.PPR1 := 9

Android 8 Oreo
https://android.googlesource.com/platform/build/+/refs/tags/android-8.0.0_r41/core/version_defaults.mk
PLATFORM_VERSION.OPR1 := 8.0.0
https://android.googlesource.com/platform/build/+/refs/heads/oreo-mr1-release/core/version_defaults.mk
PLATFORM_VERSION.OPM1 := 8.1.0

Android 7 Nougat
https://android.googlesource.com/platform/build/+/refs/heads/nougat-release/core/version_defaults.mk
PLATFORM_VERSION := 7.0
https://android.googlesource.com/platform/build/+/refs/heads/nougat-mr2.3-release/core/version_defaults.mk
PLATFORM_VERSION := 7.1.2

Android 6 Marshmallow
https://android.googlesource.com/platform/build/+/refs/heads/marshmallow-release/core/version_defaults.mk
PLATFORM_VERSION := 6.0
https://android.googlesource.com/platform/build/+/refs/heads/marshmallow-mr3-release/core/version_defaults.mk
PLATFORM_VERSION := 6.0.1

Android 5 Lollipop
https://android.googlesource.com/platform/build/+/refs/heads/lollipop-release/core/version_defaults.mk
PLATFORM_VERSION := 5.0.2
https://android.googlesource.com/platform/build/+/refs/heads/lollipop-mr1-cts-release/core/version_defaults.mk
https://android.googlesource.com/platform/build/+/refs/heads/lollipop-mr1-fi-release/core/version_defaults.mk
https://android.googlesource.com/platform/build/+/refs/heads/lollipop-mr1-release/core/version_defaults.mk
PLATFORM_VERSION := 5.1.1

Android 4 KitKat
https://android.googlesource.com/platform/build/+/refs/heads/kitkat-release/core/version_defaults.mk
PLATFORM_VERSION := 4.4
https://android.googlesource.com/platform/build/+/refs/heads/kitkat-mr2.2-release/core/version_defaults.mk
PLATFORM_VERSION := 4.4.4

參考
[1] Where to find the version information in source code on Android platform - Stack Overflow
https://stackoverflow.com/questions/2377225/where-to-find-the-version-information-in-source-code-on-android-platform
[2] Android版本列表 - 維基百科,自由的百科全書
https://zh.wikipedia.org/wiki/Android%E7%89%88%E6%9C%AC%E5%88%97%E8%A1%A8