Skip to content

Commit 22c9b9b

Browse files
committed
p920: Add chargermode
Change-Id: I283f86f034b16180d65284f02d55881b0890ee8b
1 parent 715a361 commit 22c9b9b

14 files changed

+17
-0
lines changed

BoardConfig.mk

+1
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,4 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 619249664
9494
BOARD_FLASH_BLOCK_SIZE := 131072
9595
BOARD_FORCE_STATIC_A2DP := true
9696

97+
BOARD_GLOBAL_CFLAGS += -DCHARGERMODE_CMDLINE_NAME='"chg"' -DCHARGERMODE_CMDLINE_VALUE='"4"'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

chargemode/chargerlogo

57.5 KB
Binary file not shown.

init.cosmo.rc

+3
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ on post-fs
580580
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
581581
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
582582

583+
on boot-pause
584+
exec sbin/chargerlogo
585+
583586
on boot
584587
# basic network init
585588
ifup lo

kernel

20 Bytes
Binary file not shown.

p920.mk

+13
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ PRODUCT_COPY_FILES += \
4848
$(LOCAL_PATH)/configs/ipc_channels.config:system/etc/ipc_channels.config \
4949
$(LOCAL_PATH)/init.vsnet:system/bin/init.vsnet
5050

51+
# Charger mode
52+
PRODUCT_COPY_FILES += \
53+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_01.rle:root/chargerimages/battery_charging_01.rle \
54+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_02.rle:root/chargerimages/battery_charging_02.rle \
55+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_03.rle:root/chargerimages/battery_charging_03.rle \
56+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_04.rle:root/chargerimages/battery_charging_04.rle \
57+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_05.rle:root/chargerimages/battery_charging_05.rle \
58+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_06.rle:root/chargerimages/battery_charging_06.rle \
59+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_bg.rle:root/chargerimages/battery_charging_bg.rle \
60+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_warning_red_01.rle:root/chargerimages/battery_charging_warning_red_01.rle \
61+
$(LOCAL_PATH)/chargemode/chargerimages/battery_charging_warning_red_02.rle:root/chargerimages/battery_charging_warning_red_02.rle \
62+
$(LOCAL_PATH)/chargemode/chargerlogo:root/sbin/chargerlogo
63+
5164
# Permission files
5265
PRODUCT_COPY_FILES += \
5366
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \

0 commit comments

Comments
 (0)