Skip to content

Commit

Permalink
tomato: add flashlight permissions
Browse files Browse the repository at this point in the history
Change-Id: I37da13888ac7d5a442505322710f4ce0303afcf1
Signed-off-by: Tarun93 <[email protected]>
  • Loading branch information
Tarun93 committed Jul 26, 2016
1 parent 8014bdc commit dabaac6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ on boot
chown system system /sys/class/leds/green/led_time
chown system system /sys/class/leds/blue/led_time

# Flashlight
chown system camera /sys/class/leds/flashlight/brightness
chown system camera /sys/class/leds/flashlight/max_brightness
chown system camera /sys/class/leds/flashlight/trigger
chmod 0660 /sys/class/leds/flashlight/brightness
chmod 0660 /sys/class/leds/flashlight/max_brightness
chmod 0660 /sys/class/leds/flashlight/trigger
chown system camera /sys/class/leds/torch-light0/brightness
chown system camera /sys/class/leds/torch-light0/max_brightness
chown system camera /sys/class/leds/torch-light0/trigger
chmod 0660 /sys/class/leds/torch-light0/brightness
chmod 0660 /sys/class/leds/torch-light0/max_brightness
chmod 0660 /sys/class/leds/torch-light0/trigger

# Touchscreen
chown root system /sys/devices/virtual/touchscreen/touchscreen_dev/gesture_ctrl
chmod 0660 /sys/devices/virtual/touchscreen/touchscreen_dev/gesture_ctrl
Expand Down

0 comments on commit dabaac6

Please sign in to comment.