mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 11:27:36 +00:00
init: disable dock-defend
User will enable/disable this feature from UI setting Bug: 239889098 Test: dock-defend is disabled by default Signed-off-by: Jack Wu <wjack@google.com> Change-Id: I1b0dd49208f345d4edeee81f9b07d2de93f97d45
This commit is contained in:
@@ -291,6 +291,9 @@ on init
|
||||
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
|
||||
# Disable dock-defend by default
|
||||
chown system system /sys/devices/platform/google,charger/dd_settings
|
||||
write /sys/devices/platform/google,charger/dd_settings -1
|
||||
|
||||
# Power Stats HAL
|
||||
chown system system /dev/bbd_pwrstat
|
||||
|
||||
Reference in New Issue
Block a user