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 <kartik3163@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
Subbaraman Narayanamurthy
2019-07-30 13:29:22 -07:00
committed by ronaxdevil
parent e87c2fdd92
commit eaf38ea3db

View File

@@ -489,7 +489,8 @@ on post-fs-data
service charger /system/bin/charger service charger /system/bin/charger
class charger class charger
group system graphics user system
group system graphics input
seclabel u:r:charger:s0 seclabel u:r:charger:s0
# Allow usb charging to be disabled peristently # Allow usb charging to be disabled peristently