blob: 078256519c3a842ae7b0ee85612b774f76580088 [file] [log] [blame]
Bowgo Tsaid624fa62017-11-14 23:42:30 +08001#!/bin/bash
2
3partition="$1"
4
5if [ "$#" -ne 1 ]; then
6 echo "Usage: $0 <vendor|odm>" 1>&2
7 exit 1
8fi
9
10if [ "$partition" != "vendor" ] && [ "$partition" != "odm" ]; then
11 echo "Unknown partition name: $partition" 1>&2
12 exit 1
13fi
14
15echo "# begin build properties"
16echo "# autogenerated by device_buildinfo.sh"
17
18echo "ro.${partition}.build.id=$BUILD_ID"
19echo "ro.${partition}.build.version.incremental=$BUILD_NUMBER"
20echo "ro.${partition}.build.version.sdk=$PLATFORM_SDK_VERSION"
21echo "ro.${partition}.build.version.release=$PLATFORM_VERSION"
22echo "ro.${partition}.build.type=$TARGET_BUILD_TYPE"
23echo "ro.${partition}.build.tags=$BUILD_VERSION_TAGS"
24
25echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME"
26echo "ro.board.platform=$TARGET_BOARD_PLATFORM"
27
28echo "ro.product.${partition}.manufacturer=$PRODUCT_MANUFACTURER"
29echo "ro.product.${partition}.model=$PRODUCT_MODEL"
30echo "ro.product.${partition}.brand=$PRODUCT_BRAND"
31echo "ro.product.${partition}.name=$PRODUCT_NAME"
32echo "ro.product.${partition}.device=$TARGET_DEVICE"
33
34echo "# end build properties"