Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 9779e6b0 authored by Chirayu Desai's avatar Chirayu Desai Committed by Rashed Abdel-Tawab
Browse files

Allow setting the recovery density separately from the aapt config

Change-Id: I817a4c01302956ec846503d9a585c43e690e45bf
parent c6e81ba6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1254,6 +1254,9 @@ recovery_resources_common := $(call include-path-for, recovery)/res

# Set recovery_density to the density bucket of the device.
recovery_density := unknown
ifneq (,$(TARGET_RECOVERY_DENSITY))
recovery_density := $(filter %dpi,$(TARGET_RECOVERY_DENSITY))
else
ifneq (,$(PRODUCT_AAPT_PREF_CONFIG))
# If PRODUCT_AAPT_PREF_CONFIG includes a dpi bucket, then use that value.
recovery_density := $(filter %dpi,$(PRODUCT_AAPT_PREF_CONFIG))
@@ -1261,6 +1264,7 @@ else
# Otherwise, use the default medium density.
recovery_densities := mdpi
endif
endif

ifneq (,$(wildcard $(recovery_resources_common)-$(recovery_density)))
recovery_resources_common := $(recovery_resources_common)-$(recovery_density)