summaryrefslogtreecommitdiffstats
path: root/tools/buildinfo.sh
diff options
context:
space:
mode:
authordhacker29 <dhackerdvm@gmail.com>2014-01-28 15:51:51 -0600
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 17:45:27 -0700
commit2be98b8f472f3f4b85aafbbf96ff868e47c9d3be (patch)
tree9791cf80bcc14b903da0deee424610a1f1f42e1f /tools/buildinfo.sh
parentc5a85c5a2dc8ae4d580838fe789c97bc518163c8 (diff)
downloadbuild-2be98b8f472f3f4b85aafbbf96ff868e47c9d3be.zip
build-2be98b8f472f3f4b85aafbbf96ff868e47c9d3be.tar.gz
build-2be98b8f472f3f4b85aafbbf96ff868e47c9d3be.tar.bz2
Allow devices to specify certain ro. props via TARGET_UNIFIED_DEVICE
This modifies buildinfo.sh to not set model, name, description, and fingerprint in build.prop. These can then be set via custom init lib. This also fixes ota_from_target_files to function without these props being preset. Change-Id: I945b2c38e60b207d2d0f82b34f4f230ac21b0657
Diffstat (limited to 'tools/buildinfo.sh')
-rwxr-xr-xtools/buildinfo.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index 310d478..a5d0e21 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -20,10 +20,8 @@ echo "ro.build.user=$USER"
echo "ro.build.host=`hostname`"
echo "ro.build.tags=$BUILD_VERSION_TAGS"
echo "ro.build.flavor=$TARGET_BUILD_FLAVOR"
-echo "ro.product.model=$PRODUCT_MODEL"
echo "ro.product.brand=$PRODUCT_BRAND"
echo "ro.product.name=$PRODUCT_NAME"
-echo "ro.product.device=$TARGET_DEVICE"
echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME"
# These values are deprecated, use "ro.product.cpu.abilist"
@@ -48,11 +46,15 @@ echo "ro.board.platform=$TARGET_BOARD_PLATFORM"
echo "# ro.build.product is obsolete; use ro.product.device"
echo "ro.build.product=$TARGET_DEVICE"
-echo "# Do not try to parse description, fingerprint, or thumbprint"
-echo "ro.build.description=$PRIVATE_BUILD_DESC"
-echo "ro.build.fingerprint=$BUILD_FINGERPRINT"
-if [ -n "$BUILD_THUMBPRINT" ] ; then
- echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+if [ "$TARGET_UNIFIED_DEVICE" == "" ] ; then
+ echo "ro.product.model=$PRODUCT_MODEL"
+ echo "ro.product.device=$TARGET_DEVICE"
+ echo "# Do not try to parse description, fingerprint, or thumbprint"
+ echo "ro.build.description=$PRIVATE_BUILD_DESC"
+ echo "ro.build.fingerprint=$BUILD_FINGERPRINT"
+ if [ -n "$BUILD_THUMBPRINT" ] ; then
+ echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+ fi
fi
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"