In this section you will be told to open files, and be given a few lines of code with a + sign to indicate what to add and where to each file(much like a github commit.)
when adding the lines to the file you will add the line noted with the plus(+) sign, but not the plus sign itself.
cd ~/android/system/build/core gedit product.mk
in the file that opens Ctrl+f and search for on of the lines above, or below, the + sign, and insert the line marked with the + sign in the correct position.
_product_var_list := \
+ PRODUCT_BUILD_PROP_OVERRIDES \
PRODUCT_NAME \
save and close the file
cd ~/android/system/build/core gedit product_config.mk
once again, search for the position of the lines to be inserted, and insert the lines marked by a + sign.
PRODUCT_PROPERTY_OVERRIDES := \
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_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 := \
save and close the file
cd ~/android/system/build/core gedit Makefile
Same as before find where the line needs to be added and add it.
TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \ + $(PRODUCT_BUILD_PROP_OVERRIDES) \ bash $(BUILDINFO_SH) > $@
save and exit the file.
congratulations, the BUILD_PROP_OVERRIDES that are located in the vendor setup will now be inserted into your build this preventing the need for the build.prop to be modified when running 'make otapackage'