Ensure write permissions to charge_stats for
pixelstats-vendor

Bug: 165833837
Test: Connect and disconnect the device. Ensure that there are
no unexpected errors for charge stats with 'logcat | grep pixelstats'

Change-Id: Icdaaa9ac222e1987983784a6ea9cf1e19bf0bfb3
diff --git a/init.hardware.rc b/init.hardware.rc
index ab9b6fe..d97314d 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -162,6 +162,9 @@
     chown system system /sys/devices/platform/soc/soc:google,charger/charge_stop_level
     chown system system /sys/devices/platform/soc/soc:google,charger/charge_start_level
 
+    # Charge stats (write 0)
+    chown system system /sys/class/power_supply/battery/charge_stats
+
 # b/134578585
 on charger
     trigger fs