Bliss: Add custom off-mode charging screen
* Moving this to open-source from CyanogenOS :)
* Thanks to Chao Chen, Ethan Chen, Pat Erley, Scott Mertz,
and Keith Mok for various contributions to this.
Change-Id: If79f9c279668d14ee0cde62889bb09e7185ef08c
diff --git a/config/BoardConfigCM.mk b/config/BoardConfigCM.mk
new file mode 100644
index 0000000..a8bf1ad
--- /dev/null
+++ b/config/BoardConfigCM.mk
@@ -0,0 +1,4 @@
+# Charger
+ifneq ($(WITH_CM_CHARGER),false)
+ BOARD_HAL_STATIC_LIBRARIES := libhealthd.cm
+endif
diff --git a/config/common.mk b/config/common.mk
index 6c3e2fc..26873b6 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -100,6 +100,15 @@
PRODUCT_PACKAGES += \
SoundRecorder
+# Custom off-mode charger
+ifneq ($(WITH_CM_CHARGER),false)
+PRODUCT_PACKAGES += \
+ charger_res_images \
+ cm_charger_res_images \
+ font_log.png \
+ libhealthd.cm
+endif
+
# World APN list
PRODUCT_COPY_FILES += \
vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml