The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | echo "# begin build properties" |
| 4 | echo "# autogenerated by buildinfo.sh" |
| 5 | |
| 6 | echo "ro.build.id=$BUILD_ID" |
| 7 | echo "ro.build.display.id=$BUILD_DISPLAY_ID" |
| 8 | echo "ro.build.version.incremental=$BUILD_NUMBER" |
| 9 | echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION" |
Adam Powell | bdd5e8e | 2015-05-21 13:49:05 -0700 | [diff] [blame] | 10 | echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION" |
Dan Willemsen | ad6a154 | 2018-12-14 01:04:19 -0800 | [diff] [blame^] | 11 | echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT" |
Dianne Hackborn | 9537884 | 2009-05-08 12:06:17 -0700 | [diff] [blame] | 12 | echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" |
Dianne Hackborn | 6ee3c43 | 2014-04-24 16:19:14 -0700 | [diff] [blame] | 13 | echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | echo "ro.build.version.release=$PLATFORM_VERSION" |
Dianne Hackborn | e593e5c | 2015-08-12 16:11:20 -0700 | [diff] [blame] | 15 | echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" |
| 16 | echo "ro.build.version.base_os=$PLATFORM_BASE_OS" |
Przemyslaw Szczepaniak | e554015 | 2017-12-05 10:27:52 +0000 | [diff] [blame] | 17 | echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION" |
Dan Willemsen | ccc933e | 2015-08-11 15:25:12 -0700 | [diff] [blame] | 18 | echo "ro.build.date=`$DATE`" |
| 19 | echo "ro.build.date.utc=`$DATE +%s`" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 20 | echo "ro.build.type=$TARGET_BUILD_TYPE" |
| 21 | echo "ro.build.user=$USER" |
| 22 | echo "ro.build.host=`hostname`" |
| 23 | echo "ro.build.tags=$BUILD_VERSION_TAGS" |
Ying Wang | 27eba54 | 2014-12-04 15:19:08 -0800 | [diff] [blame] | 24 | echo "ro.build.flavor=$TARGET_BUILD_FLAVOR" |
Daniel Rosenberg | 59156a6 | 2015-06-29 17:20:43 -0700 | [diff] [blame] | 25 | if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; then |
| 26 | echo "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE" |
| 27 | fi |
Tao Bao | 532fdf4 | 2015-11-11 10:22:48 -0800 | [diff] [blame] | 28 | if [ -n "$AB_OTA_UPDATER" ] ; then |
| 29 | echo "ro.build.ab_update=$AB_OTA_UPDATER" |
| 30 | fi |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 31 | echo "ro.product.model=$PRODUCT_MODEL" |
| 32 | echo "ro.product.brand=$PRODUCT_BRAND" |
| 33 | echo "ro.product.name=$PRODUCT_NAME" |
| 34 | echo "ro.product.device=$TARGET_DEVICE" |
Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 35 | |
| 36 | # These values are deprecated, use "ro.product.cpu.abilist" |
| 37 | # instead (see below). |
| 38 | echo "# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete," |
| 39 | echo "# use ro.product.cpu.abilist instead." |
Colin Cross | ef77e51 | 2014-08-05 10:54:14 -0700 | [diff] [blame] | 40 | echo "ro.product.cpu.abi=$TARGET_CPU_ABI" |
| 41 | if [ -n "$TARGET_CPU_ABI2" ] ; then |
| 42 | echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" |
David 'Digit' Turner | 2edfb71 | 2009-11-06 15:12:00 -0800 | [diff] [blame] | 43 | fi |
Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 44 | echo "ro.product.cpu.abilist=$TARGET_CPU_ABI_LIST" |
Narayan Kamath | 7303ebd | 2014-04-07 11:01:54 +0100 | [diff] [blame] | 45 | echo "ro.product.cpu.abilist32=$TARGET_CPU_ABI_LIST_32_BIT" |
| 46 | echo "ro.product.cpu.abilist64=$TARGET_CPU_ABI_LIST_64_BIT" |
Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 47 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 48 | echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER" |
Narayan Kamath | baf3eb9 | 2015-01-15 18:16:24 +0000 | [diff] [blame] | 49 | if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then |
| 50 | echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE" |
Ying Wang | 77c882f | 2010-04-27 15:45:35 -0700 | [diff] [blame] | 51 | fi |
Robert Greenwalt | fbd10d9 | 2009-05-20 13:37:35 -0700 | [diff] [blame] | 52 | echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 53 | |
| 54 | echo "# ro.build.product is obsolete; use ro.product.device" |
| 55 | echo "ro.build.product=$TARGET_DEVICE" |
| 56 | |
Jeff Sharkey | 26e1a28 | 2014-03-21 16:20:05 -0700 | [diff] [blame] | 57 | echo "# Do not try to parse description, fingerprint, or thumbprint" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 58 | echo "ro.build.description=$PRIVATE_BUILD_DESC" |
| 59 | echo "ro.build.fingerprint=$BUILD_FINGERPRINT" |
Ying Wang | e24e17a | 2014-10-07 18:42:11 -0700 | [diff] [blame] | 60 | if [ -n "$BUILD_THUMBPRINT" ] ; then |
| 61 | echo "ro.build.thumbprint=$BUILD_THUMBPRINT" |
| 62 | fi |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 63 | |
| 64 | echo "# end build properties" |