Skip to content

Commit

Permalink
s4-common: start chargeled service in recovery
Browse files Browse the repository at this point in the history
Change-Id: I5e0d221fcbd61930774932dfe50a687e3c284599
  • Loading branch information
mdmower committed Sep 13, 2014
1 parent ac37315 commit 7ae8d98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recovery/etc/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on boot
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
setprop recovery.perf.mode 0
start chargeled

on property:recovery.perf.mode=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
Expand All @@ -19,3 +20,6 @@ on property:recovery.perf.mode=1
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "performance"

service chargeled /sbin/chargeled
disabled
1 change: 1 addition & 0 deletions s4.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ PRODUCT_PACKAGES += \
choice_fn \
power_test \
offmode_charging \
chargeled \
detect_key

# Audio config
Expand Down

0 comments on commit 7ae8d98

Please sign in to comment.