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" |
Dianne Hackborn | 9537884 | 2009-05-08 12:06:17 -0700 | [diff] [blame] | 10 | echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 11 | echo "ro.build.version.release=$PLATFORM_VERSION" |
| 12 | echo "ro.build.date=`date`" |
| 13 | echo "ro.build.date.utc=`date +%s`" |
| 14 | echo "ro.build.type=$TARGET_BUILD_TYPE" |
| 15 | echo "ro.build.user=$USER" |
| 16 | echo "ro.build.host=`hostname`" |
| 17 | echo "ro.build.tags=$BUILD_VERSION_TAGS" |
| 18 | echo "ro.product.model=$PRODUCT_MODEL" |
| 19 | echo "ro.product.brand=$PRODUCT_BRAND" |
| 20 | echo "ro.product.name=$PRODUCT_NAME" |
| 21 | echo "ro.product.device=$TARGET_DEVICE" |
| 22 | echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME" |
Dianne Hackborn | ecc70d7 | 2009-05-21 15:45:30 -0700 | [diff] [blame] | 23 | echo "ro.product.cpu.abi=$TARGET_CPU_ABI" |
David 'Digit' Turner | 2edfb71 | 2009-11-06 15:12:00 -0800 | [diff] [blame] | 24 | if [ -n "$TARGET_CPU_ABI2" ] ; then |
| 25 | echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" |
| 26 | fi |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER" |
Ying Wang | 77c882f | 2010-04-27 15:45:35 -0700 | [diff] [blame] | 28 | if [ -n "$PRODUCT_DEFAULT_LANGUAGE" ] ; then |
| 29 | echo "ro.product.locale.language=$PRODUCT_DEFAULT_LANGUAGE" |
| 30 | fi |
| 31 | if [ -n "$PRODUCT_DEFAULT_REGION" ] ; then |
| 32 | echo "ro.product.locale.region=$PRODUCT_DEFAULT_REGION" |
| 33 | fi |
Robert Greenwalt | fbd10d9 | 2009-05-20 13:37:35 -0700 | [diff] [blame] | 34 | echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 35 | echo "ro.board.platform=$TARGET_BOARD_PLATFORM" |
| 36 | |
| 37 | echo "# ro.build.product is obsolete; use ro.product.device" |
| 38 | echo "ro.build.product=$TARGET_DEVICE" |
| 39 | |
| 40 | echo "# Do not try to parse ro.build.description or .fingerprint" |
| 41 | echo "ro.build.description=$PRIVATE_BUILD_DESC" |
| 42 | echo "ro.build.fingerprint=$BUILD_FINGERPRINT" |
Joe Onorato | 25939e2 | 2010-11-09 08:53:01 -0800 | [diff] [blame] | 43 | echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 44 | |
| 45 | echo "# end build properties" |