summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authornailyk-fr <nailyk_git@nailyk.fr>2018-01-01 13:43:31 +0100
committerArian <arian.kulmer@web.de>2019-10-25 22:16:12 +0200
commitcd52bd70a7a7386f62f483c8fe236e960d3eca44 (patch)
treeb1de098cffddeec42f2527dc11bbccaf2dcb0d15 /rootdir
parent981173a00656eef327d8c97003a1f67711d00c7f (diff)
shinano: Init: Adjust torch permissions for cam server.
* The cameraserver has been separated from the media- server with Android N. Hence, camera-related files need to be ownerd by the "camera" group. Chown the flash sysfs to account for this. Otherwise, flash will not work and prevent saving pictures if flash is used. Change-Id: I86c19e555683740db74665c0d0986462c2ef4697 Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.camera.rc26
1 files changed, 13 insertions, 13 deletions
diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc
index c14d9c7..73ffb3e 100644
--- a/rootdir/init.camera.rc
+++ b/rootdir/init.camera.rc
@@ -28,19 +28,19 @@ on early-boot
on boot
# PM8941 flash
- chown media system /sys/class/misc/pm8941-flash/device/current1
- chown media system /sys/class/misc/pm8941-flash/device/current2
- chown media system /sys/class/misc/pm8941-flash/device/fault_status
- chown media system /sys/class/misc/pm8941-flash/device/fine_current1
- chown media system /sys/class/misc/pm8941-flash/device/fine_current2
- chown media system /sys/class/misc/pm8941-flash/device/flash_timer
- chown media system /sys/class/misc/pm8941-flash/device/mask_clamp_current
- chown media system /sys/class/misc/pm8941-flash/device/mask_enable
- chown media system /sys/class/misc/pm8941-flash/device/max_current
- chown media system /sys/class/misc/pm8941-flash/device/mode
- chown media system /sys/class/misc/pm8941-flash/device/startup_delay
- chown media system /sys/class/misc/pm8941-flash/device/strobe
- chown media system /sys/class/misc/pm8941-flash/device/vph_pwr_droop
+ chown system camera /sys/class/misc/pm8941-flash/device/current1
+ chown system camera /sys/class/misc/pm8941-flash/device/current2
+ chown system camera /sys/class/misc/pm8941-flash/device/fault_status
+ chown system camera /sys/class/misc/pm8941-flash/device/fine_current1
+ chown system camera /sys/class/misc/pm8941-flash/device/fine_current2
+ chown system camera /sys/class/misc/pm8941-flash/device/flash_timer
+ chown system camera /sys/class/misc/pm8941-flash/device/mask_clamp_current
+ chown system camera /sys/class/misc/pm8941-flash/device/mask_enable
+ chown system camera /sys/class/misc/pm8941-flash/device/max_current
+ chown system camera /sys/class/misc/pm8941-flash/device/mode
+ chown system camera /sys/class/misc/pm8941-flash/device/startup_delay
+ chown system camera /sys/class/misc/pm8941-flash/device/strobe
+ chown system camera /sys/class/misc/pm8941-flash/device/vph_pwr_droop
on post-fs-data
# we will remap this as /mnt/sdcard with the sdcard fuse tool