diff options
author | Dianne Hackborn <hackbod@google.com> | 2019-10-22 15:58:17 -0700 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2020-02-11 13:20:20 +0000 |
commit | 25648e60b2c460eb4dc375677f3627c90ef9b104 (patch) | |
tree | cfaa2826a0b9bbed9bf62806854b4a4b5b0e3594 /tools/buildinfo.sh | |
parent | 7f4a2cdb6819f62e19a6970e3df57f5417fabc2f (diff) | |
download | platform_build-25648e60b2c460eb4dc375677f3627c90ef9b104.tar.gz platform_build-25648e60b2c460eb4dc375677f3627c90ef9b104.tar.bz2 platform_build-25648e60b2c460eb4dc375677f3627c90ef9b104.zip |
Reland: Rework platform version to hide codenames.
The public platform version no longer can be a codename, it is
always the most recently released platform. A new build property
and API provides either the offical version or the current codename
as appropriate. This will avoid breaking apps that look at the
platform version while development is under a codename.
Changes from the original version:
- Logic for emitting system properties has also been added to
buildinfo_common.sh to make sure that ro.${partition}.build.*
are consistent with ro.build.*.
- We also use PLATFORM_VERSION_LAST_STABLE as the value set in the
boot image os_version header / hash tree additional headers to
ensure they match with the ro.build.version.release system property.
This is hopefully a temporary workaround while we stop using the
system property for this purpose.
Bug: 143175463
Test: manual
Change-Id: Iaeefb35137de01c6ea57115d8830dd9bc30eccba
Diffstat (limited to 'tools/buildinfo.sh')
-rwxr-xr-x | tools/buildinfo.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh index 436cf5c78e..9bee115484 100755 --- a/tools/buildinfo.sh +++ b/tools/buildinfo.sh @@ -11,8 +11,8 @@ echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION" echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT" echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES" -echo "ro.build.version.release=$PLATFORM_VERSION" -echo "ro.build.version.release_or_codename=$PLATFORM_VERSION_LAST_STABLE" +echo "ro.build.version.release=$PLATFORM_VERSION_LAST_STABLE" +echo "ro.build.version.release_or_codename=$PLATFORM_VERSION" echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" echo "ro.build.version.base_os=$PLATFORM_BASE_OS" echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION" |