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