From d28a2b88d546da9e2cb389d276d9eb1d59728992 Mon Sep 17 00:00:00 2001 From: Anirudh Ghayal Date: Wed, 30 Oct 2013 10:05:15 +0530 Subject: [PATCH] init: qcom: Change owner and permissions of input_current_settled property The input_current_settled property is accessed by the charger_monitor which is running as a system service. Modify the permissions and owner for it to be accessible. Change-Id: I0bc0b6b31d2cda0c1550e38ce838b984f80a959b --- rootdir/etc/init.qcom.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/etc/init.qcom.sh b/rootdir/etc/init.qcom.sh index 9178da79..16d699c8 100644 --- a/rootdir/etc/init.qcom.sh +++ b/rootdir/etc/init.qcom.sh @@ -72,9 +72,11 @@ start_charger_monitor() chown -h root.system /sys/module/qpnp_charger/parameters/* chown -h root.system /sys/class/power_supply/battery/input_current_max chown -h root.system /sys/class/power_supply/battery/input_current_trim + chown -h root.system /sys/class/power_supply/battery/input_current_settled chown -h root.system /sys/class/power_supply/battery/voltage_min chmod -h 0664 /sys/class/power_supply/battery/input_current_max chmod -h 0664 /sys/class/power_supply/battery/input_current_trim + chmod -h 0664 /sys/class/power_supply/battery/input_current_settled chmod -h 0664 /sys/class/power_supply/battery/voltage_min chmod -h 0664 /sys/module/qpnp_charger/parameters/charger_monitor start charger_monitor