aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2019-07-30 13:29:22 -0700
committerArian <arian.kulmer@web.de>2020-02-07 20:09:45 +0100
commit07c8dff56f3113b8b829edf6773d0a57d409bdc2 (patch)
tree2ff51fd7729eb8208f14608c749310c957dda390
parentaafeb6cccdbf92b6b03da0d3d9cb42973887f175 (diff)
shinano-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. Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1
-rw-r--r--rootdir/etc/init.qcom.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index ca20c00..298c35c 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -468,7 +468,8 @@ service adsprpcd /vendor/bin/adsprpcd
service charger /system/bin/charger
class charger
- group system graphics
+ user system
+ group system graphics input
seclabel u:r:charger:s0
# Redefined Service