From 84ba1fbeaa3595580486651c5b98b23a874597da Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 6 Mar 2020 21:26:45 +0100 Subject: [PATCH] msm8976-common: Change user/group permission for for charger Make charger binary run as system instead of root. Since it needs to handle input key events, add input as a supplemental group in addition to system and graphics. --- rootdir/etc/init.qcom.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8a36ad7..bde1f4b 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -1423,7 +1423,8 @@ on property:ro.data.large_tcp_window_size=true service charger /system/bin/charger class charger - group system graphics + user system + group system graphics input group log seclabel u:r:charger:s0