add offmode charging for htc
Change-Id: I76ea278c10658e16bf864a8290edc95e4232970e
54
etc/init.htc.rc
Normal file
@ -0,0 +1,54 @@
|
||||
on early-init
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
export PATH /sbin
|
||||
export ANDROID_ROOT /system
|
||||
export ANDROID_DATA /data
|
||||
export EXTERNAL_STORAGE /sdcard
|
||||
|
||||
symlink /system/etc /etc
|
||||
|
||||
mkdir /boot
|
||||
mkdir /sdcard
|
||||
mkdir /sd-ext
|
||||
mkdir /datadata
|
||||
mkdir /emmc
|
||||
mkdir /system
|
||||
mkdir /data
|
||||
mkdir /cache
|
||||
mount /tmp /tmp tmpfs
|
||||
|
||||
on boot
|
||||
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
class_start default
|
||||
|
||||
service ueventd /sbin/ueventd
|
||||
critical
|
||||
|
||||
service choice_fn /sbin/choice_fn
|
||||
oneshot
|
||||
|
||||
service recovery /sbin/recovery
|
||||
disabled
|
||||
|
||||
service power_test /sbin/power_test
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service offmode_charging /sbin/offmode_charging
|
||||
|
||||
service detect_key /sbin/detect_key
|
||||
|
||||
service adbd /sbin/adbd recovery
|
||||
disabled
|
||||
|
||||
on property:persist.service.adb.enable=1
|
||||
start adbd
|
||||
|
||||
on property:persist.service.adb.enable=0
|
||||
stop adbd
|
BIN
htc/res/offmode_charging_images/battery_error.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/battery_left_0.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
htc/res/offmode_charging_images/battery_left_100.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
htc/res/offmode_charging_images/battery_left_20.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
htc/res/offmode_charging_images/battery_left_40.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
htc/res/offmode_charging_images/battery_left_60.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
htc/res/offmode_charging_images/battery_left_80.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
htc/res/offmode_charging_images/battery_right_0.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
htc/res/offmode_charging_images/battery_right_100.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
htc/res/offmode_charging_images/battery_right_20.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
htc/res/offmode_charging_images/battery_right_40.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
htc/res/offmode_charging_images/battery_right_60.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
htc/res/offmode_charging_images/battery_right_80.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
htc/res/offmode_charging_images/battery_shell.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00031.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00035.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00041.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00043.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00047.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00049.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00053.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00055.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00059.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00061.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00065.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00067.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00071.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00073.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00077.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00079.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00083.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00085.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00089.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00091.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00095.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
htc/res/offmode_charging_images/charging_full_00099.png
Normal file
After Width: | Height: | Size: 14 KiB |
34
utilities/Android.mk
Normal file → Executable file
@ -52,4 +52,38 @@ LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
include $(BUILD_PREBUILT)
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_USES_RECOVERY_CHARGEMODE),true)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := choice_fn
|
||||
LOCAL_MODULE_TAGS := eng
|
||||
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power_test
|
||||
LOCAL_MODULE_TAGS := eng
|
||||
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := offmode_charging
|
||||
LOCAL_MODULE_TAGS := eng
|
||||
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := detect_key
|
||||
LOCAL_MODULE_TAGS := eng
|
||||
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
include $(BUILD_PREBUILT)
|
||||
endif
|
||||
|
||||
endif
|
||||
|