-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cm: 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 Signed-off-by: Shekhawat2 <[email protected]>
- Loading branch information
1 parent
2d51ac8
commit 19b6936
Showing
21 changed files
with
434 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_SRC_FILES := healthd_board_cm.cpp | ||
LOCAL_MODULE := libhealthd.cm | ||
LOCAL_CFLAGS := -Werror | ||
LOCAL_C_INCLUDES := \ | ||
system/core/healthd \ | ||
bootable/recovery | ||
include $(BUILD_STATIC_LIBRARY) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := font_log.png | ||
LOCAL_SRC_FILES := fonts/$(PRODUCT_AAPT_PREF_CONFIG)/font_log.png | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/res/images | ||
include $(BUILD_PREBUILT) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
define _add-charger-image | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := vendor_cm_charger_$(notdir $(1)) | ||
LOCAL_MODULE_STEM := $(notdir $(1)) | ||
_img_modules += $$(LOCAL_MODULE) | ||
LOCAL_SRC_FILES := $1 | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger | ||
include $$(BUILD_PREBUILT) | ||
endef | ||
|
||
_img_modules := | ||
_images := | ||
$(foreach _img, $(call find-subdir-subdir-files, "images/$(PRODUCT_AAPT_PREF_CONFIG)", "*.png"), \ | ||
$(eval $(call _add-charger-image,$(_img)))) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := cm_charger_res_images | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_REQUIRED_MODULES := $(_img_modules) | ||
LOCAL_OVERRIDES_PACKAGES := charger_res_images | ||
include $(BUILD_PHONY_PACKAGE) | ||
|
||
_add-charger-image := | ||
_img_modules := |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xxhdpi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.