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:
committed by
ronaxdevil
parent
e87c2fdd92
commit
eaf38ea3db
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user