leo: update to add recovery offmode charging
This commit is contained in:
parent
e829ba64be
commit
c5bc75241d
@ -102,6 +102,4 @@ BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := leo
|
||||
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200
|
||||
|
||||
TARGET_PREBUILT_RECOVERY_KERNEL := device/htc/leo/prebuilt/recovery_kernel
|
||||
|
||||
#BOARD_USES_RECOVERY_CHARGEMODE := true
|
||||
BOARD_HAS_LARGE_FILESYSTEM := true
|
||||
TARGET_RECOVERY_INITRC := device/htc/leo/prebuilt/recovery/init.htc.rc
|
||||
|
9
leo.mk
9
leo.mk
@ -88,7 +88,15 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/cyanogen/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
# recovery utilities
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/htc/leo/prebuilt/recovery/choice_fn:recovery/root/sbin/choice_fn \
|
||||
device/htc/leo/prebuilt/recovery/detect_key:recovery/root/sbin/detect_key \
|
||||
device/htc/leo/prebuilt/recovery/htcbatt:recovery/root/sbin/htcbatt \
|
||||
device/htc/leo/prebuilt/recovery/offmode_charging:recovery/root/sbin/offmode_charging \
|
||||
device/htc/leo/prebuilt/recovery/power_test:recovery/root/sbin/power_test
|
||||
|
||||
# kernel modules
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/htc/leo/prebuilt/modules/bcm4329.ko:system/lib/modules/bcm4329.ko \
|
||||
device/htc/leo/prebuilt/modules/cifs.ko:system/lib/modules/cifs.ko \
|
||||
@ -97,6 +105,7 @@ PRODUCT_COPY_FILES += \
|
||||
device/htc/leo/prebuilt/modules/tun.ko:system/lib/modules/tun.ko \
|
||||
device/htc/leo/prebuilt/modules/fuse.ko:system/lib/modules/fuse.ko
|
||||
|
||||
# kernel
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/htc/leo/prebuilt/kernel:boot/zImage \
|
||||
|
||||
|
BIN
prebuilt/recovery/choice_fn
Executable file
BIN
prebuilt/recovery/choice_fn
Executable file
Binary file not shown.
BIN
prebuilt/recovery/detect_key
Executable file
BIN
prebuilt/recovery/detect_key
Executable file
Binary file not shown.
BIN
prebuilt/recovery/htcbatt
Normal file
BIN
prebuilt/recovery/htcbatt
Normal file
Binary file not shown.
59
prebuilt/recovery/init.htc.rc
Normal file
59
prebuilt/recovery/init.htc.rc
Normal file
@ -0,0 +1,59 @@
|
||||
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
|
||||
|
||||
service power_test /sbin/power_test
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service offmode_charging /sbin/offmode_charging
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service detect_key /sbin/detect_key
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service htcbatt /sbin/htcbatt
|
||||
oneshot
|
||||
|
||||
service adbd /sbin/adbd recovery
|
||||
|
||||
on property:persist.service.adb.enable=1
|
||||
start adbd
|
||||
|
||||
on property:persist.service.adb.enable=0
|
||||
stop adbd
|
BIN
prebuilt/recovery/offmode_charging
Executable file
BIN
prebuilt/recovery/offmode_charging
Executable file
Binary file not shown.
BIN
prebuilt/recovery/power_test
Executable file
BIN
prebuilt/recovery/power_test
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user