diff --git a/etc/init.htc.rc b/etc/init.htc.rc new file mode 100644 index 0000000..360b3af --- /dev/null +++ b/etc/init.htc.rc @@ -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 diff --git a/htc/res/offmode_charging_images/battery_error.png b/htc/res/offmode_charging_images/battery_error.png new file mode 100644 index 0000000..fdc837e Binary files /dev/null and b/htc/res/offmode_charging_images/battery_error.png differ diff --git a/htc/res/offmode_charging_images/battery_left_0.png b/htc/res/offmode_charging_images/battery_left_0.png new file mode 100644 index 0000000..86a57db Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_0.png differ diff --git a/htc/res/offmode_charging_images/battery_left_100.png b/htc/res/offmode_charging_images/battery_left_100.png new file mode 100644 index 0000000..aa6a234 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_100.png differ diff --git a/htc/res/offmode_charging_images/battery_left_20.png b/htc/res/offmode_charging_images/battery_left_20.png new file mode 100644 index 0000000..86d9568 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_20.png differ diff --git a/htc/res/offmode_charging_images/battery_left_40.png b/htc/res/offmode_charging_images/battery_left_40.png new file mode 100644 index 0000000..d524f93 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_40.png differ diff --git a/htc/res/offmode_charging_images/battery_left_60.png b/htc/res/offmode_charging_images/battery_left_60.png new file mode 100644 index 0000000..d1de603 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_60.png differ diff --git a/htc/res/offmode_charging_images/battery_left_80.png b/htc/res/offmode_charging_images/battery_left_80.png new file mode 100644 index 0000000..f79dd30 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_left_80.png differ diff --git a/htc/res/offmode_charging_images/battery_right_0.png b/htc/res/offmode_charging_images/battery_right_0.png new file mode 100644 index 0000000..00394a9 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_0.png differ diff --git a/htc/res/offmode_charging_images/battery_right_100.png b/htc/res/offmode_charging_images/battery_right_100.png new file mode 100644 index 0000000..deace01 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_100.png differ diff --git a/htc/res/offmode_charging_images/battery_right_20.png b/htc/res/offmode_charging_images/battery_right_20.png new file mode 100644 index 0000000..01cf0d3 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_20.png differ diff --git a/htc/res/offmode_charging_images/battery_right_40.png b/htc/res/offmode_charging_images/battery_right_40.png new file mode 100644 index 0000000..f9f1a51 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_40.png differ diff --git a/htc/res/offmode_charging_images/battery_right_60.png b/htc/res/offmode_charging_images/battery_right_60.png new file mode 100644 index 0000000..efdefd1 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_60.png differ diff --git a/htc/res/offmode_charging_images/battery_right_80.png b/htc/res/offmode_charging_images/battery_right_80.png new file mode 100644 index 0000000..9de0462 Binary files /dev/null and b/htc/res/offmode_charging_images/battery_right_80.png differ diff --git a/htc/res/offmode_charging_images/battery_shell.png b/htc/res/offmode_charging_images/battery_shell.png new file mode 100644 index 0000000..befc6bf Binary files /dev/null and b/htc/res/offmode_charging_images/battery_shell.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00031.png b/htc/res/offmode_charging_images/charging_full_00031.png new file mode 100644 index 0000000..5bb3bfa Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00031.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00035.png b/htc/res/offmode_charging_images/charging_full_00035.png new file mode 100644 index 0000000..cfd2e21 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00035.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00041.png b/htc/res/offmode_charging_images/charging_full_00041.png new file mode 100644 index 0000000..b0b39af Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00041.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00043.png b/htc/res/offmode_charging_images/charging_full_00043.png new file mode 100644 index 0000000..5ad3d1d Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00043.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00047.png b/htc/res/offmode_charging_images/charging_full_00047.png new file mode 100644 index 0000000..54387dd Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00047.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00049.png b/htc/res/offmode_charging_images/charging_full_00049.png new file mode 100644 index 0000000..9d201ed Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00049.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00053.png b/htc/res/offmode_charging_images/charging_full_00053.png new file mode 100644 index 0000000..4ece618 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00053.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00055.png b/htc/res/offmode_charging_images/charging_full_00055.png new file mode 100644 index 0000000..f66e4bc Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00055.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00059.png b/htc/res/offmode_charging_images/charging_full_00059.png new file mode 100644 index 0000000..f2a4502 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00059.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00061.png b/htc/res/offmode_charging_images/charging_full_00061.png new file mode 100644 index 0000000..6945438 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00061.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00065.png b/htc/res/offmode_charging_images/charging_full_00065.png new file mode 100644 index 0000000..b17d986 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00065.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00067.png b/htc/res/offmode_charging_images/charging_full_00067.png new file mode 100644 index 0000000..429abf2 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00067.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00071.png b/htc/res/offmode_charging_images/charging_full_00071.png new file mode 100644 index 0000000..651e373 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00071.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00073.png b/htc/res/offmode_charging_images/charging_full_00073.png new file mode 100644 index 0000000..7913713 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00073.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00077.png b/htc/res/offmode_charging_images/charging_full_00077.png new file mode 100644 index 0000000..bb81c6c Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00077.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00079.png b/htc/res/offmode_charging_images/charging_full_00079.png new file mode 100644 index 0000000..1eddfc2 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00079.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00083.png b/htc/res/offmode_charging_images/charging_full_00083.png new file mode 100644 index 0000000..9a3544c Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00083.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00085.png b/htc/res/offmode_charging_images/charging_full_00085.png new file mode 100644 index 0000000..b899e77 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00085.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00089.png b/htc/res/offmode_charging_images/charging_full_00089.png new file mode 100644 index 0000000..fd72420 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00089.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00091.png b/htc/res/offmode_charging_images/charging_full_00091.png new file mode 100644 index 0000000..5599a2d Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00091.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00095.png b/htc/res/offmode_charging_images/charging_full_00095.png new file mode 100644 index 0000000..c69b754 Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00095.png differ diff --git a/htc/res/offmode_charging_images/charging_full_00099.png b/htc/res/offmode_charging_images/charging_full_00099.png new file mode 100644 index 0000000..9c98cbc Binary files /dev/null and b/htc/res/offmode_charging_images/charging_full_00099.png differ diff --git a/utilities/Android.mk b/utilities/Android.mk old mode 100644 new mode 100755 index 78c22a2..79201a3 --- a/utilities/Android.mk +++ b/utilities/Android.mk @@ -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 diff --git a/utilities/choice_fn b/utilities/choice_fn new file mode 100755 index 0000000..9af6061 Binary files /dev/null and b/utilities/choice_fn differ diff --git a/utilities/detect_key b/utilities/detect_key new file mode 100755 index 0000000..ebf5ec2 Binary files /dev/null and b/utilities/detect_key differ diff --git a/utilities/fix_permissions b/utilities/fix_permissions old mode 100644 new mode 100755 diff --git a/utilities/mke2fs b/utilities/mke2fs old mode 100644 new mode 100755 diff --git a/utilities/offmode_charging b/utilities/offmode_charging new file mode 100755 index 0000000..48da64c Binary files /dev/null and b/utilities/offmode_charging differ diff --git a/utilities/parted b/utilities/parted old mode 100644 new mode 100755 diff --git a/utilities/power_test b/utilities/power_test new file mode 100755 index 0000000..7cbb171 Binary files /dev/null and b/utilities/power_test differ diff --git a/utilities/sdparted b/utilities/sdparted old mode 100644 new mode 100755