From 15e6042b29204cb740ee808ba29577d1513520d6 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Tue, 17 Dec 2019 12:19:15 -0800 Subject: [PATCH] Do not remove RRO resources Resource configs should not be deduped when building RROs since it would be impossible to override some resource configs with the same value as the default config. Also, aapt2 removes resources that do not have default configurations. If an overlay attempts to overlay a non-default configuration without overlaying the default, the resource will be removed and the value will not be overlaid at all. Bug: 146227008 Test: m-j Change-Id: I1465b599cbf7f464d1b5b75a87e7dafa2cf734b0 --- core/build_rro_package.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/build_rro_package.mk b/core/build_rro_package.mk index e5d7685db5..ae528bddc4 100644 --- a/core/build_rro_package.mk +++ b/core/build_rro_package.mk @@ -32,6 +32,12 @@ else LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME) endif +# Do not remove resources without default values nor dedupe resource +# configurations with the same value +LOCAL_AAPT_FLAGS += \ + --no-resource-deduping \ + --no-resource-removal + partition := include $(BUILD_SYSTEM)/package.mk