Home | History | Annotate | Download | only in tools
      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"
     10 echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
     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"
     23 echo "ro.product.cpu.abi=$TARGET_CPU_ABI"
     24 if [ -n "$TARGET_CPU_ABI2" ] ; then
     25   echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2"
     26 fi
     27 echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER"
     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
     34 echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS"
     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"
     43 echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
     44 
     45 echo "# end build properties"
     46