1#!/bin/bash 2 3echo "# begin build properties" 4echo "# autogenerated by buildinfo.sh" 5 6echo "ro.build.id=$BUILD_ID" 7echo "ro.build.display.id=$BUILD_DISPLAY_ID" 8echo "ro.build.version.incremental=$BUILD_NUMBER" 9echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION" 10echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION" 11echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" 12echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES" 13echo "ro.build.version.release=$PLATFORM_VERSION" 14echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" 15echo "ro.build.version.base_os=$PLATFORM_BASE_OS" 16echo "ro.build.date=`$DATE`" 17echo "ro.build.date.utc=`$DATE +%s`" 18echo "ro.build.type=$TARGET_BUILD_TYPE" 19echo "ro.build.user=$USER" 20echo "ro.build.host=`hostname`" 21echo "ro.build.tags=$BUILD_VERSION_TAGS" 22echo "ro.build.flavor=$TARGET_BUILD_FLAVOR" 23if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; then 24 echo "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE" 25fi 26if [ -n "$AB_OTA_UPDATER" ] ; then 27 echo "ro.build.ab_update=$AB_OTA_UPDATER" 28fi 29echo "ro.product.model=$PRODUCT_MODEL" 30echo "ro.product.brand=$PRODUCT_BRAND" 31echo "ro.product.name=$PRODUCT_NAME" 32echo "ro.product.device=$TARGET_DEVICE" 33 34# These values are deprecated, use "ro.product.cpu.abilist" 35# instead (see below). 36echo "# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete," 37echo "# use ro.product.cpu.abilist instead." 38echo "ro.product.cpu.abi=$TARGET_CPU_ABI" 39if [ -n "$TARGET_CPU_ABI2" ] ; then 40 echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" 41fi 42echo "ro.product.cpu.abilist=$TARGET_CPU_ABI_LIST" 43echo "ro.product.cpu.abilist32=$TARGET_CPU_ABI_LIST_32_BIT" 44echo "ro.product.cpu.abilist64=$TARGET_CPU_ABI_LIST_64_BIT" 45 46echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER" 47if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then 48 echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE" 49fi 50echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS" 51 52echo "# ro.build.product is obsolete; use ro.product.device" 53echo "ro.build.product=$TARGET_DEVICE" 54 55echo "# Do not try to parse description, fingerprint, or thumbprint" 56echo "ro.build.description=$PRIVATE_BUILD_DESC" 57echo "ro.build.fingerprint=$BUILD_FINGERPRINT" 58if [ -n "$BUILD_THUMBPRINT" ] ; then 59 echo "ro.build.thumbprint=$BUILD_THUMBPRINT" 60fi 61echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS" 62 63echo "# end build properties" 64