From 14f512618ebe23e008ee6aa9f1054ab05f0dd36e Mon Sep 17 00:00:00 2001 From: Aryaman Date: Sat, 26 Sep 2020 11:38:31 +0000 Subject: [PATCH] healthd: allow custom charger images --- healthd/Android.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/healthd/Android.mk b/healthd/Android.mk index 05123af80d35..4eb98dae0d48 100644 --- a/healthd/Android.mk +++ b/healthd/Android.mk @@ -200,8 +200,13 @@ include $$(BUILD_PREBUILT) endef _img_modules := +ifeq ($(strip $(BOARD_HEALTHD_CUSTOM_CHARGER_RES)),) +IMAGES_DIR := images +else +IMAGES_DIR := ../../../$(BOARD_HEALTHD_CUSTOM_CHARGER_RES) +endif _images := -$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \ +$(foreach _img, $(call find-subdir-subdir-files, "$(IMAGES_DIR)", "*.png"), \ $(eval $(call _add-charger-image,$(_img)))) include $(CLEAR_VARS)