From 5ac408badd3ce69061e72ab087c51374a04f84a8 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 5 Nov 2018 17:29:28 +0000 Subject: [PATCH] Move ro.build.characteristics to /product props This property is not device-generic, as it's used for things like whether the product is phone/tablet/other and whether it has an sdcard or not. Bug: 118618261 Test: adb shell getprop ro.build.characteristics for aosp_blueline Change-Id: I6bbf1d4c36d7f37f92c67bebde58d72aba9d0852 --- core/Makefile | 4 ++-- tools/buildinfo.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/Makefile b/core/Makefile index 672175750..f4d09d4ff 100644 --- a/core/Makefile +++ b/core/Makefile @@ -407,7 +407,6 @@ endif TARGET_CPU_ABI_LIST_64_BIT="$(TARGET_CPU_ABI_LIST_64_BIT)" \ TARGET_CPU_ABI="$(TARGET_CPU_ABI)" \ TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \ - TARGET_AAPT_CHARACTERISTICS="$(TARGET_AAPT_CHARACTERISTICS)" \ bash $(BUILDINFO_SH) >> $@ $(hide) $(foreach file,$(system_prop_file), \ if [ -f "$(file)" ]; then \ @@ -496,7 +495,8 @@ ifdef BOARD_USES_PRODUCTIMAGE endif # BOARD_USES_PRODUCTIMAGE $(hide) echo "#" >> $@; \ echo "# ADDITIONAL PRODUCT PROPERTIES" >> $@; \ - echo "#" >> $@; + echo "#" >> $@; \ + echo "ro.build.characteristics=$(TARGET_AAPT_CHARACTERISTICS)" >> $@; $(hide) $(foreach line,$(FINAL_PRODUCT_PROPERTIES), \ echo "$(line)" >> $@;) $(hide) build/make/tools/post_process_props.py $@ diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh index 5a5446293..c2e6f8528 100755 --- a/tools/buildinfo.sh +++ b/tools/buildinfo.sh @@ -59,6 +59,5 @@ echo "ro.build.fingerprint=$BUILD_FINGERPRINT" if [ -n "$BUILD_THUMBPRINT" ] ; then echo "ro.build.thumbprint=$BUILD_THUMBPRINT" fi -echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS" echo "# end build properties"