From 67240b1cdc5af791594c862e0a24ef04810f65fc Mon Sep 17 00:00:00 2001 From: Jack Wu Date: Thu, 21 Jul 2022 16:25:52 +0800 Subject: [PATCH] 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 Change-Id: I25376ce6174e4e09ed4a7ce8f1258dc099da4cd8 --- conf/init.gs101.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index c760bcb5..c13eb3f1 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -299,6 +299,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