Skip to content

Commit

Permalink
add support for overriding build.prop settings.
Browse files Browse the repository at this point in the history
Change-Id: Ie4224d608b7bcb0c2087bd77bc954f8f5f9b6495
  • Loading branch information
koush authored and andi34 committed Sep 8, 2016
1 parent 35cbbb0 commit fffdcb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ endif
TARGET_CPU_ABI="$(TARGET_CPU_ABI)" \
TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \
TARGET_AAPT_CHARACTERISTICS="$(TARGET_AAPT_CHARACTERISTICS)" \
$(PRODUCT_BUILD_PROP_OVERRIDES) \
bash $(BUILDINFO_SH) >> $@
$(hide) $(foreach file,$(system_prop_file), \
if [ -f "$(file)" ]; then \
Expand Down
1 change: 1 addition & 0 deletions core/product.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ endef
#

_product_var_list := \
PRODUCT_BUILD_PROP_OVERRIDES \
PRODUCT_NAME \
PRODUCT_MODEL \
PRODUCT_LOCALES \
Expand Down
3 changes: 3 additions & 0 deletions core/product_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ PRODUCT_PROPERTY_OVERRIDES := \
PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_PROPERTY_OVERRIDES))

PRODUCT_BUILD_PROP_OVERRIDES := \
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BUILD_PROP_OVERRIDES))

# Should we use the default resources or add any product specific overlays
PRODUCT_PACKAGE_OVERLAYS := \
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGE_OVERLAYS))
Expand Down

0 comments on commit fffdcb5

Please sign in to comment.