From 113bb9059ab6f54a9300043dcf500aaaae363840 Mon Sep 17 00:00:00 2001 From: Stephane Lee Date: Fri, 2 Jul 2021 16:49:31 -0700 Subject: [PATCH] Add DC Charging/Temp defend clear to server configurable parameters; ensure sysfs node is writable Test: Ensure there are no errors on logcat | grep google_battery@ Bug: 183772980 Bug: 192921867 Change-Id: Id55a6a1670cc0c46b787baec16efec8c0bb4521d --- conf/init.gs101.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index a15384cf..5c18880a 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -209,8 +209,10 @@ on init chown system system /sys/devices/platform/google,charger/bd_trigger_temp chown system system /sys/devices/platform/google,charger/bd_trigger_time chown system system /sys/devices/platform/google,charger/bd_trigger_voltage + chown system system /sys/devices/platform/google,charger/bd_clear 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 # Power Stats HAL chown system system /dev/bbd_pwrstat