From 532fdf4479acb50cdb480e6fdfe24f0698fcd67b Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 11 Nov 2015 10:22:48 -0800 Subject: [PATCH] Add ro.build.ab_update property. Set ro.build.ab_update if AB_OTA_UPDATER is true. Device will depend on this property to call the proper update API. Change-Id: I5916ef5b30ea3351d323382f7ce83a17df2b0a70 --- core/Makefile | 1 + tools/buildinfo.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/Makefile b/core/Makefile index d4dc002de3..37c11b6e98 100644 --- a/core/Makefile +++ b/core/Makefile @@ -204,6 +204,7 @@ endif BUILD_DISPLAY_ID="$(BUILD_DISPLAY_ID)" \ BUILD_NUMBER="$(BUILD_NUMBER)" \ BOARD_BUILD_SYSTEM_ROOT_IMAGE="$(BOARD_BUILD_SYSTEM_ROOT_IMAGE)" \ + AB_OTA_UPDATER="$(AB_OTA_UPDATER)" \ PLATFORM_VERSION="$(PLATFORM_VERSION)" \ PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \ PLATFORM_BASE_OS="$(PLATFORM_BASE_OS)" \ diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh index 1329be7470..89af758f2a 100755 --- a/tools/buildinfo.sh +++ b/tools/buildinfo.sh @@ -23,6 +23,9 @@ echo "ro.build.flavor=$TARGET_BUILD_FLAVOR" if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; then echo "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE" fi +if [ -n "$AB_OTA_UPDATER" ] ; then + echo "ro.build.ab_update=$AB_OTA_UPDATER" +fi echo "ro.product.model=$PRODUCT_MODEL" echo "ro.product.brand=$PRODUCT_BRAND" echo "ro.product.name=$PRODUCT_NAME"