gta4xl-common: Switch to bypass for charging control
Change-Id: Iaf69209d8d7c9821ae540c09124de4e3bddef169
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index d42862a..091328b 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -115,14 +115,6 @@
## Keymaster
TARGET_KEYMASTER_VARIANT := samsung
-## Lineage Health
-TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/power_supply/battery/batt_slate_mode
-TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED := 0
-TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED := 1
-TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
-TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE := true
-TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE := false
-
## Manifest
# HIDL
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
diff --git a/configs/init/init.samsung.rc b/configs/init/init.samsung.rc
index 279ee47..a8235d7 100644
--- a/configs/init/init.samsung.rc
+++ b/configs/init/init.samsung.rc
@@ -378,6 +378,7 @@
chown system radio /sys/class/power_supply/battery/batt_temp_control_test
chmod 0664 /efs/Battery/fg_full_voltage
chmod 0664 /sys/class/power_supply/battery/fg_full_voltage
+ chown system radio /sys/class/power_supply/battery/charging_enabled
chown system radio /sys/class/power_supply/battery/batt_reset_soc
chown system radio /sys/class/power_supply/battery/batt_slate_mode
chown system radio /sys/class/power_supply/battery/factory_mode