From eaf38ea3db654b3a63f9d0679348e1b5a3731451 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Tue, 30 Jul 2019 13:29:22 -0700 Subject: [PATCH] sanders: 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. Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1 Signed-off-by: melvinstark3 Signed-off-by: ronaxdevil --- 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 eb72ad1..2c4bfe5 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -489,7 +489,8 @@ on post-fs-data service charger /system/bin/charger class charger - group system graphics + user system + group system graphics input seclabel u:r:charger:s0 # Allow usb charging to be disabled peristently