1#!/bin/bash
2
3echo "# begin build properties"
4echo "# autogenerated by buildinfo.sh"
5
6# The ro.build.id will be set dynamically by init, by appending the unique vbmeta digest.
7if [ "$BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT" = "true" ] ; then
8  echo "ro.build.legacy.id=$BUILD_ID"
9else
10  echo "ro.build.id=$BUILD_ID"
11fi
12echo "ro.build.display.id=$BUILD_DISPLAY_ID"
13echo "ro.build.version.incremental=$BUILD_NUMBER"
14echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
15echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
16echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT"
17echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
18echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
19echo "ro.build.version.release=$PLATFORM_VERSION_LAST_STABLE"
20echo "ro.build.version.release_or_codename=$PLATFORM_VERSION"
21echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
22echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
23echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
24echo "ro.build.date=`$DATE`"
25echo "ro.build.date.utc=`$DATE +%s`"
26echo "ro.build.type=$TARGET_BUILD_TYPE"
27echo "ro.build.user=$BUILD_USERNAME"
28echo "ro.build.host=$BUILD_HOSTNAME"
29echo "ro.build.tags=$BUILD_VERSION_TAGS"
30echo "ro.build.flavor=$TARGET_BUILD_FLAVOR"
31if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; then
32  echo "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE"
33fi
34
35# These values are deprecated, use "ro.product.cpu.abilist"
36# instead (see below).
37echo "# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,"
38echo "# use ro.product.cpu.abilist instead."
39echo "ro.product.cpu.abi=$TARGET_CPU_ABI"
40if [ -n "$TARGET_CPU_ABI2" ] ; then
41  echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2"
42fi
43
44if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then
45  echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE"
46fi
47echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS"
48
49echo "# ro.build.product is obsolete; use ro.product.device"
50echo "ro.build.product=$TARGET_DEVICE"
51
52echo "# Do not try to parse description or thumbprint"
53echo "ro.build.description=$PRIVATE_BUILD_DESC"
54if [ -n "$BUILD_THUMBPRINT" ] ; then
55  echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
56fi
57
58echo "# end build properties"
59