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:
Jack Wu 2023-09-05 09:21:15 +08:00
parent 13ffbeec66
commit 464f64dabc
2 changed files with 5 additions and 0 deletions

View file

@ -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