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
This commit is contained in:
Stephane Lee 2021-07-02 16:49:31 -07:00
parent baa3bf3801
commit 113bb9059a

View file

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