s4-common: use offmode charging blobs from m7

* Use offmode charging blobs from m7 (m7wlv OTA 5.28.605.2) to enable
  charging images support
* Shrink charging images from m7:
  - fireball/ville: 50% reduction (1080px --> 540px screen width)
  - evita/jewel: 66.67% reduction (1080px --> 720px screen width)

Change-Id: Ida40ad57ceb0fb5669f2adb840f31c7b0e242cca
diff --git a/recovery/Android.mk b/recovery/Android.mk
index 59dca9f..6886060 100644
--- a/recovery/Android.mk
+++ b/recovery/Android.mk
@@ -19,7 +19,7 @@
 include $(CLEAR_VARS)
 LOCAL_MODULE		:= choice_fn
 LOCAL_MODULE_TAGS	:= optional eng
-LOCAL_MODULE_CLASS	:= EXECUTABLES
+LOCAL_MODULE_CLASS	:= ETC
 LOCAL_SRC_FILES		:= sbin/choice_fn
 LOCAL_MODULE_PATH	:= $(TARGET_RECOVERY_ROOT_OUT)/sbin
 include $(BUILD_PREBUILT)
@@ -27,7 +27,7 @@
 include $(CLEAR_VARS)
 LOCAL_MODULE		:= power_test
 LOCAL_MODULE_TAGS	:= optional eng
-LOCAL_MODULE_CLASS	:= EXECUTABLES
+LOCAL_MODULE_CLASS	:= ETC
 LOCAL_SRC_FILES		:= sbin/power_test
 LOCAL_MODULE_PATH	:= $(TARGET_RECOVERY_ROOT_OUT)/sbin
 include $(BUILD_PREBUILT)
@@ -35,7 +35,7 @@
 include $(CLEAR_VARS)
 LOCAL_MODULE		:= offmode_charging
 LOCAL_MODULE_TAGS	:= optional eng
-LOCAL_MODULE_CLASS	:= EXECUTABLES
+LOCAL_MODULE_CLASS	:= ETC
 LOCAL_SRC_FILES		:= sbin/offmode_charging
 LOCAL_MODULE_PATH	:= $(TARGET_RECOVERY_ROOT_OUT)/sbin
 include $(BUILD_PREBUILT)
@@ -43,8 +43,65 @@
 include $(CLEAR_VARS)
 LOCAL_MODULE		:= detect_key
 LOCAL_MODULE_TAGS	:= optional eng
-LOCAL_MODULE_CLASS	:= EXECUTABLES
+LOCAL_MODULE_CLASS	:= ETC
 LOCAL_SRC_FILES		:= sbin/detect_key
 LOCAL_MODULE_PATH	:= $(TARGET_RECOVERY_ROOT_OUT)/sbin
 include $(BUILD_PREBUILT)
 
+define _add-offmode_charging-image
+include $$(CLEAR_VARS)
+LOCAL_MODULE := offmode_charging_$(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_RECOVERY_ROOT_OUT)/res/offmode_charging_images
+include $$(BUILD_PREBUILT)
+endef
+
+_img_modules :=
+ifneq ($(filter fireball ville,$(TARGET_DEVICE)),)
+$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_images-540", "*.png"), \
+  $(eval $(call _add-offmode_charging-image,$(_img))))
+else
+$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_images-720", "*.png"), \
+  $(eval $(call _add-offmode_charging-image,$(_img))))
+endif
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := offmode_charging_res_images
+LOCAL_MODULE_TAGS := optional
+LOCAL_REQUIRED_MODULES := $(_img_modules)
+include $(BUILD_PHONY_PACKAGE)
+
+define _add-offmode_charging_warn-image
+include $$(CLEAR_VARS)
+LOCAL_MODULE := offmode_charging_warn_$(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_RECOVERY_ROOT_OUT)/res/offmode_charging_warn_images
+include $$(BUILD_PREBUILT)
+endef
+
+_img_modules :=
+ifneq ($(filter fireball ville,$(TARGET_DEVICE)),)
+$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_warn_images-540", "*.png"), \
+  $(eval $(call _add-offmode_charging_warn-image,$(_img))))
+else
+$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_warn_images-720", "*.png"), \
+  $(eval $(call _add-offmode_charging_warn-image,$(_img))))
+endif
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := offmode_charging_warn_res_images
+LOCAL_MODULE_TAGS := optional
+LOCAL_REQUIRED_MODULES := $(_img_modules)
+include $(BUILD_PHONY_PACKAGE)
+
+_add-offmode_charging-image :=
+_add-offmode_charging_warn-image :=
+_img_modules :=
diff --git a/recovery/etc/lpm.rc b/recovery/etc/lpm.rc
index c174f32..06ebe1d 100644
--- a/recovery/etc/lpm.rc
+++ b/recovery/etc/lpm.rc
@@ -34,6 +34,10 @@
     write /sys/class/android_usb/android0/iSerial ${ro.serialno}
 
 on boot
+    # disable 1 CPUs to prevent heat
+    write /sys/devices/system/cpu/cpu1/online 0
+    chmod 444 /sys/devices/system/cpu/cpu1/online
+
     start choice_fn
 
 service choice_fn /sbin/choice_fn
diff --git a/recovery/res/offmode_charging_images-540/charging_00.png b/recovery/res/offmode_charging_images-540/charging_00.png
new file mode 100644
index 0000000..27baca7
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_00.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_01.png b/recovery/res/offmode_charging_images-540/charging_01.png
new file mode 100644
index 0000000..f797520
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_01.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_02.png b/recovery/res/offmode_charging_images-540/charging_02.png
new file mode 100644
index 0000000..e60ce96
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_02.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_03.png b/recovery/res/offmode_charging_images-540/charging_03.png
new file mode 100644
index 0000000..0cad37d
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_03.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_04.png b/recovery/res/offmode_charging_images-540/charging_04.png
new file mode 100644
index 0000000..a45713c
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_04.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_05.png b/recovery/res/offmode_charging_images-540/charging_05.png
new file mode 100644
index 0000000..27baca7
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_05.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_06.png b/recovery/res/offmode_charging_images-540/charging_06.png
new file mode 100644
index 0000000..f797520
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_06.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_07.png b/recovery/res/offmode_charging_images-540/charging_07.png
new file mode 100644
index 0000000..e60ce96
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_07.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_08.png b/recovery/res/offmode_charging_images-540/charging_08.png
new file mode 100644
index 0000000..0cad37d
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_08.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/charging_09.png b/recovery/res/offmode_charging_images-540/charging_09.png
new file mode 100644
index 0000000..a45713c
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/charging_09.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/error.png b/recovery/res/offmode_charging_images-540/error.png
new file mode 100644
index 0000000..48a1383
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/error.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_0.png b/recovery/res/offmode_charging_images-540/r_0.png
new file mode 100644
index 0000000..d4ebf5b
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_1.png b/recovery/res/offmode_charging_images-540/r_1.png
new file mode 100644
index 0000000..07ca14e
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_2.png b/recovery/res/offmode_charging_images-540/r_2.png
new file mode 100644
index 0000000..9772455
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_3.png b/recovery/res/offmode_charging_images-540/r_3.png
new file mode 100644
index 0000000..52e2f79
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_4.png b/recovery/res/offmode_charging_images-540/r_4.png
new file mode 100644
index 0000000..c66ec49
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_5.png b/recovery/res/offmode_charging_images-540/r_5.png
new file mode 100644
index 0000000..780d7a6
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_6.png b/recovery/res/offmode_charging_images-540/r_6.png
new file mode 100644
index 0000000..02cc7c4
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_7.png b/recovery/res/offmode_charging_images-540/r_7.png
new file mode 100644
index 0000000..bfea4cb
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_8.png b/recovery/res/offmode_charging_images-540/r_8.png
new file mode 100644
index 0000000..a990c50
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_9.png b/recovery/res/offmode_charging_images-540/r_9.png
new file mode 100644
index 0000000..b60e4f2
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/r_percent.png b/recovery/res/offmode_charging_images-540/r_percent.png
new file mode 100644
index 0000000..cdeaca2
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/r_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_0.png b/recovery/res/offmode_charging_images-540/w_0.png
new file mode 100644
index 0000000..d4ffaf2
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_1.png b/recovery/res/offmode_charging_images-540/w_1.png
new file mode 100644
index 0000000..ec2b8ce
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_2.png b/recovery/res/offmode_charging_images-540/w_2.png
new file mode 100644
index 0000000..d727f1a
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_3.png b/recovery/res/offmode_charging_images-540/w_3.png
new file mode 100644
index 0000000..1bd4c94
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_4.png b/recovery/res/offmode_charging_images-540/w_4.png
new file mode 100644
index 0000000..eaf0d7f
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_5.png b/recovery/res/offmode_charging_images-540/w_5.png
new file mode 100644
index 0000000..875da38
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_6.png b/recovery/res/offmode_charging_images-540/w_6.png
new file mode 100644
index 0000000..bf1929b
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_7.png b/recovery/res/offmode_charging_images-540/w_7.png
new file mode 100644
index 0000000..6599f42
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_8.png b/recovery/res/offmode_charging_images-540/w_8.png
new file mode 100644
index 0000000..75f5ba3
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_9.png b/recovery/res/offmode_charging_images-540/w_9.png
new file mode 100644
index 0000000..217e30e
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/w_percent.png b/recovery/res/offmode_charging_images-540/w_percent.png
new file mode 100644
index 0000000..bfdc95e
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/w_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_0.png b/recovery/res/offmode_charging_images-540/y_0.png
new file mode 100644
index 0000000..a171136
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_1.png b/recovery/res/offmode_charging_images-540/y_1.png
new file mode 100644
index 0000000..a48dea5
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_2.png b/recovery/res/offmode_charging_images-540/y_2.png
new file mode 100644
index 0000000..10ebc98
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_3.png b/recovery/res/offmode_charging_images-540/y_3.png
new file mode 100644
index 0000000..c31e8cf
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_4.png b/recovery/res/offmode_charging_images-540/y_4.png
new file mode 100644
index 0000000..d89ac59
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_5.png b/recovery/res/offmode_charging_images-540/y_5.png
new file mode 100644
index 0000000..cb2ffc5
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_6.png b/recovery/res/offmode_charging_images-540/y_6.png
new file mode 100644
index 0000000..641a7ec
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_7.png b/recovery/res/offmode_charging_images-540/y_7.png
new file mode 100644
index 0000000..1958ed0
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_8.png b/recovery/res/offmode_charging_images-540/y_8.png
new file mode 100644
index 0000000..3ba5fd4
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_9.png b/recovery/res/offmode_charging_images-540/y_9.png
new file mode 100644
index 0000000..c255f20
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-540/y_percent.png b/recovery/res/offmode_charging_images-540/y_percent.png
new file mode 100644
index 0000000..a9e8310
--- /dev/null
+++ b/recovery/res/offmode_charging_images-540/y_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_00.png b/recovery/res/offmode_charging_images-720/charging_00.png
new file mode 100644
index 0000000..5f4f53a
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_00.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_01.png b/recovery/res/offmode_charging_images-720/charging_01.png
new file mode 100644
index 0000000..882c76b
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_01.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_02.png b/recovery/res/offmode_charging_images-720/charging_02.png
new file mode 100644
index 0000000..38ef5b1
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_02.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_03.png b/recovery/res/offmode_charging_images-720/charging_03.png
new file mode 100644
index 0000000..78490cf
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_03.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_04.png b/recovery/res/offmode_charging_images-720/charging_04.png
new file mode 100644
index 0000000..2387ad4
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_04.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_05.png b/recovery/res/offmode_charging_images-720/charging_05.png
new file mode 100644
index 0000000..5f4f53a
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_05.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_06.png b/recovery/res/offmode_charging_images-720/charging_06.png
new file mode 100644
index 0000000..882c76b
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_06.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_07.png b/recovery/res/offmode_charging_images-720/charging_07.png
new file mode 100644
index 0000000..38ef5b1
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_07.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_08.png b/recovery/res/offmode_charging_images-720/charging_08.png
new file mode 100644
index 0000000..78490cf
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_08.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/charging_09.png b/recovery/res/offmode_charging_images-720/charging_09.png
new file mode 100644
index 0000000..2387ad4
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/charging_09.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/error.png b/recovery/res/offmode_charging_images-720/error.png
new file mode 100644
index 0000000..5f717e9
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/error.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_0.png b/recovery/res/offmode_charging_images-720/r_0.png
new file mode 100644
index 0000000..dc17a26
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_1.png b/recovery/res/offmode_charging_images-720/r_1.png
new file mode 100644
index 0000000..79c663d
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_2.png b/recovery/res/offmode_charging_images-720/r_2.png
new file mode 100644
index 0000000..6a0ecb7
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_3.png b/recovery/res/offmode_charging_images-720/r_3.png
new file mode 100644
index 0000000..9d51c29
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_4.png b/recovery/res/offmode_charging_images-720/r_4.png
new file mode 100644
index 0000000..ef2429f
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_5.png b/recovery/res/offmode_charging_images-720/r_5.png
new file mode 100644
index 0000000..0c2ded2
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_6.png b/recovery/res/offmode_charging_images-720/r_6.png
new file mode 100644
index 0000000..e1219b6
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_7.png b/recovery/res/offmode_charging_images-720/r_7.png
new file mode 100644
index 0000000..f9cdfb4
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_8.png b/recovery/res/offmode_charging_images-720/r_8.png
new file mode 100644
index 0000000..f3add40
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_9.png b/recovery/res/offmode_charging_images-720/r_9.png
new file mode 100644
index 0000000..918049c
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/r_percent.png b/recovery/res/offmode_charging_images-720/r_percent.png
new file mode 100644
index 0000000..5d9df53
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/r_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_0.png b/recovery/res/offmode_charging_images-720/w_0.png
new file mode 100644
index 0000000..7918346
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_1.png b/recovery/res/offmode_charging_images-720/w_1.png
new file mode 100644
index 0000000..9f0b439
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_2.png b/recovery/res/offmode_charging_images-720/w_2.png
new file mode 100644
index 0000000..94889ad
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_3.png b/recovery/res/offmode_charging_images-720/w_3.png
new file mode 100644
index 0000000..fdb6d06
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_4.png b/recovery/res/offmode_charging_images-720/w_4.png
new file mode 100644
index 0000000..da06f9c
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_5.png b/recovery/res/offmode_charging_images-720/w_5.png
new file mode 100644
index 0000000..0a1fbe6
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_6.png b/recovery/res/offmode_charging_images-720/w_6.png
new file mode 100644
index 0000000..ba10916
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_7.png b/recovery/res/offmode_charging_images-720/w_7.png
new file mode 100644
index 0000000..fe3182e
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_8.png b/recovery/res/offmode_charging_images-720/w_8.png
new file mode 100644
index 0000000..5d0b39c
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_9.png b/recovery/res/offmode_charging_images-720/w_9.png
new file mode 100644
index 0000000..c1ff852
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/w_percent.png b/recovery/res/offmode_charging_images-720/w_percent.png
new file mode 100644
index 0000000..2ceaa0f
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/w_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_0.png b/recovery/res/offmode_charging_images-720/y_0.png
new file mode 100644
index 0000000..875ef34
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_0.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_1.png b/recovery/res/offmode_charging_images-720/y_1.png
new file mode 100644
index 0000000..1907344
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_1.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_2.png b/recovery/res/offmode_charging_images-720/y_2.png
new file mode 100644
index 0000000..7d1a553
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_2.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_3.png b/recovery/res/offmode_charging_images-720/y_3.png
new file mode 100644
index 0000000..aed0be9
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_3.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_4.png b/recovery/res/offmode_charging_images-720/y_4.png
new file mode 100644
index 0000000..7be1fd1
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_4.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_5.png b/recovery/res/offmode_charging_images-720/y_5.png
new file mode 100644
index 0000000..9a1b2c7
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_5.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_6.png b/recovery/res/offmode_charging_images-720/y_6.png
new file mode 100644
index 0000000..b387a3d
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_6.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_7.png b/recovery/res/offmode_charging_images-720/y_7.png
new file mode 100644
index 0000000..d180ac5
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_7.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_8.png b/recovery/res/offmode_charging_images-720/y_8.png
new file mode 100644
index 0000000..4f3a72a
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_8.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_9.png b/recovery/res/offmode_charging_images-720/y_9.png
new file mode 100644
index 0000000..3bf8dcb
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_9.png
Binary files differ
diff --git a/recovery/res/offmode_charging_images-720/y_percent.png b/recovery/res/offmode_charging_images-720/y_percent.png
new file mode 100644
index 0000000..d51218b
--- /dev/null
+++ b/recovery/res/offmode_charging_images-720/y_percent.png
Binary files differ
diff --git a/recovery/res/offmode_charging_warn_images-540/batt_incompatible_charger.png b/recovery/res/offmode_charging_warn_images-540/batt_incompatible_charger.png
new file mode 100644
index 0000000..64da152
--- /dev/null
+++ b/recovery/res/offmode_charging_warn_images-540/batt_incompatible_charger.png
Binary files differ
diff --git a/recovery/res/offmode_charging_warn_images-540/batt_low_current_charger.png b/recovery/res/offmode_charging_warn_images-540/batt_low_current_charger.png
new file mode 100644
index 0000000..1faf2b4
--- /dev/null
+++ b/recovery/res/offmode_charging_warn_images-540/batt_low_current_charger.png
Binary files differ
diff --git a/recovery/res/offmode_charging_warn_images-720/batt_incompatible_charger.png b/recovery/res/offmode_charging_warn_images-720/batt_incompatible_charger.png
new file mode 100644
index 0000000..b200577
--- /dev/null
+++ b/recovery/res/offmode_charging_warn_images-720/batt_incompatible_charger.png
Binary files differ
diff --git a/recovery/res/offmode_charging_warn_images-720/batt_low_current_charger.png b/recovery/res/offmode_charging_warn_images-720/batt_low_current_charger.png
new file mode 100644
index 0000000..3851a67
--- /dev/null
+++ b/recovery/res/offmode_charging_warn_images-720/batt_low_current_charger.png
Binary files differ
diff --git a/recovery/sbin/choice_fn b/recovery/sbin/choice_fn
index 858bd4d..4159979 100755
--- a/recovery/sbin/choice_fn
+++ b/recovery/sbin/choice_fn
Binary files differ
diff --git a/recovery/sbin/detect_key b/recovery/sbin/detect_key
index 9a80781..381bc64 100755
--- a/recovery/sbin/detect_key
+++ b/recovery/sbin/detect_key
Binary files differ
diff --git a/recovery/sbin/offmode_charging b/recovery/sbin/offmode_charging
index 4975f0d..c850274 100755
--- a/recovery/sbin/offmode_charging
+++ b/recovery/sbin/offmode_charging
Binary files differ
diff --git a/recovery/sbin/power_test b/recovery/sbin/power_test
index df526a8..e73f843 100755
--- a/recovery/sbin/power_test
+++ b/recovery/sbin/power_test
Binary files differ
diff --git a/s4.mk b/s4.mk
index 4e25f27..1e2661b 100644
--- a/s4.mk
+++ b/s4.mk
@@ -44,11 +44,13 @@
 PRODUCT_PACKAGES += \
     init.recovery.qcom.rc \
     lpm.rc \
-    choice_fn \
-    power_test \
-    offmode_charging \
     chargeled \
-    detect_key
+    choice_fn \
+    detect_key \
+    offmode_charging \
+    offmode_charging_res_images \
+    offmode_charging_warn_res_images \
+    power_test
 
 # Audio config
 PRODUCT_COPY_FILES += \