From cd52bd70a7a7386f62f483c8fe236e960d3eca44 Mon Sep 17 00:00:00 2001 From: nailyk-fr Date: Mon, 1 Jan 2018 13:43:31 +0100 Subject: 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 --- rootdir/init.camera.rc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'rootdir') 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 -- cgit v1.2.3