init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to be able to charge FULL. Bug: 298923686 Test: can charge to full on dock in charger mode Change-Id: Ie7a2acb18e8ebb4e4bed36c759164217d127ae1c Signed-off-by: Jack Wu <wjack@google.com>
This commit is contained in:
parent
13ffbeec66
commit
464f64dabc
2 changed files with 5 additions and 0 deletions
|
@ -974,3 +974,5 @@ on post-fs-data && property:ro.vendor.factory=1
|
|||
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
|
||||
# Enable UFS powersaving in Off Mode Charger
|
||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
||||
# Disable dock-defend in Off Mode Charger
|
||||
write /sys/devices/platform/google,charger/dd_state -1
|
||||
|
|
|
@ -72,6 +72,9 @@ on init
|
|||
chown system system /sys/devices/platform/google,charger/charge_start_level
|
||||
chown system system /sys/devices/platform/google,charger/charge_stop_level
|
||||
chown system system /sys/devices/platform/google,cpm/dc_ctl
|
||||
# Important to include dd_state as it's used in battery defender in charger mode
|
||||
chown system system /sys/devices/platform/google,charger/dd_state
|
||||
chown system system /sys/devices/platform/google,charger/dd_settings
|
||||
|
||||
on early-boot
|
||||
# Wait for insmod_sh to finish all common modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue