From 78841a5be944862e3597e9ab335c653de9fd672c Mon Sep 17 00:00:00 2001 From: Prasanna Prapancham Date: Tue, 16 Aug 2022 18:34:50 +0000 Subject: [PATCH] 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 Change-Id: Ice5ec79d912f154203a548c6c40470952d806289 --- conf/init.gs201.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index b8f86b55..daa5be60 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -254,6 +254,9 @@ on init # 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 fan chown system system /sys/devices/platform/google,charger/thermal_dc_fan_alarm chown system system /sys/devices/platform/google,cpm/thermal_mdis_fan_alarm