vendor: Add custom off-mode charger animation
To use the theme assets, add this to your device:
PRODUCT_PACKAGES += \
animation.txt \
font_charger.png
Change-Id: I31ec59cdb35cba23bb05c65da5010618d240dc58
diff --git a/charger/Android.mk b/charger/Android.mk
index adf9f16..fb9eeff 100644
--- a/charger/Android.mk
+++ b/charger/Android.mk
@@ -8,6 +8,21 @@
charger_density := 480dpi
endif
+include $(CLEAR_VARS)
+LOCAL_MODULE := font_charger.png
+LOCAL_SRC_FILES := fonts/$(charger_density)/font_charger.png
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/res/images
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := animation.txt
+LOCAL_SRC_FILES := anim/animation.txt
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/res/values/charger
+include $(BUILD_PREBUILT)
define _add-charger-image
include $$(CLEAR_VARS)