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

Commit adaa6d90 authored by Chirayu Desai's avatar Chirayu Desai Committed by Paul Keith
Browse files

Allow setting the recovery density separately from the aapt config

Change-Id: I817a4c01302956ec846503d9a585c43e690e45bf
parent 73b964c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,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))
@@ -1123,6 +1126,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)