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

Commit d08a96e9 authored by Chirayu Desai's avatar Chirayu Desai Committed by Kevin F. Haggerty
Browse files

Allow setting the recovery density separately from the aapt config

Change-Id: I817a4c01302956ec846503d9a585c43e690e45bf
parent cd4b6de7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1072,6 +1072,9 @@ recovery_resources_common := $(call project-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))
@@ -1079,6 +1082,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)