Change ownership of charge_stats to system for clearing
Test: Tested with tablet with dock. Userspace is able to read
and clear sysfs node successfully
Bug: 218802317
Signed-off-by: Prasanna Prapancham <prapancham@google.com>
Change-Id: I1e97920ff0e810ce2888102f3971b21aabc55909
diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc
index c13eb3f..2e4f37f 100644
--- a/conf/init.gs101.rc
+++ b/conf/init.gs101.rc
@@ -254,6 +254,9 @@
# Thermal Charge stats (write 0)
chown system system /sys/devices/platform/google,charger/thermal_stats
+ # Google Charger stats (write 0)
+ chown system system /sys/devices/platform/google,charger/charge_stats
+
# Permission for wireless charging
chown system system /sys/class/power_supply/wireless/capacity
chown system system /sys/class/power_supply/wireless/device/rtx