summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-10-07 18:42:11 -0700
committerYing Wang <wangying@google.com>2014-10-07 18:59:47 -0700
commite24e17a976025de11c010280575281d0705c7d2e (patch)
tree26f918baaa843a44f607b766afc425d2758222ed /tools
parent397a8be4bc26a696cf205ac9800865caee3ecf61 (diff)
downloadbuild-e24e17a976025de11c010280575281d0705c7d2e.zip
build-e24e17a976025de11c010280575281d0705c7d2e.tar.gz
build-e24e17a976025de11c010280575281d0705c7d2e.tar.bz2
Export build thumbprint only if the product has specified at least one oem fingerprint property
Bug: 17888863 Change-Id: I4d12bc977dcb5e8e1858efb2a395466d8779de34
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildinfo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index 593e5b5..ed6bd87 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -50,7 +50,9 @@ 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"
-echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+if [ -n "$BUILD_THUMBPRINT" ] ; then
+ echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+fi
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
echo "# end build properties"