| 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" | 
| Dianne Hackborn | 9537884 | 2009-05-08 12:06:17 -0700 | [diff] [blame] | 11 | echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" | 
| Dianne Hackborn | 6ee3c43 | 2014-04-24 16:19:14 -0700 | [diff] [blame] | 12 | 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] | 13 | echo "ro.build.version.release=$PLATFORM_VERSION" | 
| Dianne Hackborn | e593e5c | 2015-08-12 16:11:20 -0700 | [diff] [blame] | 14 | echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" | 
|  | 15 | echo "ro.build.version.base_os=$PLATFORM_BASE_OS" | 
| Dan Willemsen | ccc933e | 2015-08-11 15:25:12 -0700 | [diff] [blame] | 16 | echo "ro.build.date=`$DATE`" | 
|  | 17 | echo "ro.build.date.utc=`$DATE +%s`" | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 18 | echo "ro.build.type=$TARGET_BUILD_TYPE" | 
|  | 19 | echo "ro.build.user=$USER" | 
|  | 20 | echo "ro.build.host=`hostname`" | 
|  | 21 | echo "ro.build.tags=$BUILD_VERSION_TAGS" | 
| Ying Wang | 27eba54 | 2014-12-04 15:19:08 -0800 | [diff] [blame] | 22 | echo "ro.build.flavor=$TARGET_BUILD_FLAVOR" | 
| Daniel Rosenberg | 59156a6 | 2015-06-29 17:20:43 -0700 | [diff] [blame] | 23 | if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; then | 
|  | 24 | echo "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE" | 
|  | 25 | fi | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 26 | echo "ro.product.model=$PRODUCT_MODEL" | 
|  | 27 | echo "ro.product.brand=$PRODUCT_BRAND" | 
|  | 28 | echo "ro.product.name=$PRODUCT_NAME" | 
|  | 29 | echo "ro.product.device=$TARGET_DEVICE" | 
|  | 30 | echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME" | 
| Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 31 |  | 
|  | 32 | # These values are deprecated, use "ro.product.cpu.abilist" | 
|  | 33 | # instead (see below). | 
|  | 34 | echo "# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete," | 
|  | 35 | echo "# use ro.product.cpu.abilist instead." | 
| Colin Cross | ef77e51 | 2014-08-05 10:54:14 -0700 | [diff] [blame] | 36 | echo "ro.product.cpu.abi=$TARGET_CPU_ABI" | 
|  | 37 | if [ -n "$TARGET_CPU_ABI2" ] ; then | 
|  | 38 | echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" | 
| David 'Digit' Turner | 2edfb71 | 2009-11-06 15:12:00 -0800 | [diff] [blame] | 39 | fi | 
| Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 40 | echo "ro.product.cpu.abilist=$TARGET_CPU_ABI_LIST" | 
| Narayan Kamath | 7303ebd | 2014-04-07 11:01:54 +0100 | [diff] [blame] | 41 | echo "ro.product.cpu.abilist32=$TARGET_CPU_ABI_LIST_32_BIT" | 
|  | 42 | echo "ro.product.cpu.abilist64=$TARGET_CPU_ABI_LIST_64_BIT" | 
| Narayan Kamath | 1a43b37 | 2014-03-26 17:33:55 +0000 | [diff] [blame] | 43 |  | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 44 | echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER" | 
| Narayan Kamath | baf3eb9 | 2015-01-15 18:16:24 +0000 | [diff] [blame] | 45 | if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then | 
|  | 46 | echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE" | 
| Ying Wang | 77c882f | 2010-04-27 15:45:35 -0700 | [diff] [blame] | 47 | fi | 
| Robert Greenwalt | fbd10d9 | 2009-05-20 13:37:35 -0700 | [diff] [blame] | 48 | echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS" | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 49 | echo "ro.board.platform=$TARGET_BOARD_PLATFORM" | 
|  | 50 |  | 
|  | 51 | echo "# ro.build.product is obsolete; use ro.product.device" | 
|  | 52 | echo "ro.build.product=$TARGET_DEVICE" | 
|  | 53 |  | 
| Jeff Sharkey | 26e1a28 | 2014-03-21 16:20:05 -0700 | [diff] [blame] | 54 | 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] | 55 | echo "ro.build.description=$PRIVATE_BUILD_DESC" | 
|  | 56 | echo "ro.build.fingerprint=$BUILD_FINGERPRINT" | 
| Ying Wang | e24e17a | 2014-10-07 18:42:11 -0700 | [diff] [blame] | 57 | if [ -n "$BUILD_THUMBPRINT" ] ; then | 
|  | 58 | echo "ro.build.thumbprint=$BUILD_THUMBPRINT" | 
|  | 59 | fi | 
| Joe Onorato | 25939e2 | 2010-11-09 08:53:01 -0800 | [diff] [blame] | 60 | echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS" | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 61 |  | 
|  | 62 | echo "# end build properties" |