Merge "Revert "Keep PRODUCT_FULL_TREBLE to true even when some requirements are not met""
am: eba55d2515

Change-Id: I16e095971a1b56e59b1efa6f6e1551fb224d9655
diff --git a/core/config.mk b/core/config.mk
index 15336ad..8a4e835 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -764,6 +764,9 @@
 # PRODUCT_FULL_TREBLE
 $(foreach req,$(requirements),$(eval \
     $(req) := $(if $($(req)_OVERRIDE),$($(req)_OVERRIDE),$(PRODUCT_FULL_TREBLE))))
+# If the requirement is false for any reason, then it's not PRODUCT_FULL_TREBLE
+$(foreach req,$(requirements),$(eval \
+    PRODUCT_FULL_TREBLE := $(if $(filter false,$($(req))),false,$(PRODUCT_FULL_TREBLE))))
 
 PRODUCT_FULL_TREBLE_OVERRIDE ?=
 $(foreach req,$(requirements),$(eval $(req)_OVERRIDE ?=))