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