blob: f7f798ca0d4a62f6216fac17e78dc5dd4eb5cfb1 [file] [log] [blame]
Bowgo Tsaid624fa62017-11-14 23:42:30 +08001#!/bin/bash
2
3partition="$1"
4
5if [ "$#" -ne 1 ]; then
Anton Hansson1f8729e2018-08-15 12:11:55 +01006 echo "Usage: $0 <partition>" 1>&2
Bowgo Tsaid624fa62017-11-14 23:42:30 +08007 exit 1
8fi
9
Anton Hansson1f8729e2018-08-15 12:11:55 +010010echo "# begin common build properties"
11echo "# autogenerated by $0"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080012
Anton Hansson1f8729e2018-08-15 12:11:55 +010013echo "ro.${partition}.build.date=`$DATE`"
14echo "ro.${partition}.build.date.utc=`$DATE +%s`"
15echo "ro.${partition}.build.fingerprint=$BUILD_FINGERPRINT"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080016echo "ro.${partition}.build.id=$BUILD_ID"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080017echo "ro.${partition}.build.tags=$BUILD_VERSION_TAGS"
Anton Hansson1f8729e2018-08-15 12:11:55 +010018echo "ro.${partition}.build.type=$TARGET_BUILD_TYPE"
19echo "ro.${partition}.build.version.incremental=$BUILD_NUMBER"
20echo "ro.${partition}.build.version.release=$PLATFORM_VERSION"
21echo "ro.${partition}.build.version.sdk=$PLATFORM_SDK_VERSION"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080022
Anton Hansson1f8729e2018-08-15 12:11:55 +010023echo "ro.product.${partition}.brand=$PRODUCT_BRAND"
24echo "ro.product.${partition}.device=$TARGET_DEVICE"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080025echo "ro.product.${partition}.manufacturer=$PRODUCT_MANUFACTURER"
26echo "ro.product.${partition}.model=$PRODUCT_MODEL"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080027echo "ro.product.${partition}.name=$PRODUCT_NAME"
Bowgo Tsaid624fa62017-11-14 23:42:30 +080028
Anton Hansson1f8729e2018-08-15 12:11:55 +010029echo "# end common build properties"