summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-09-22 20:06:53 +0200
committercodeworkx <codeworkx@cyanogenmod.com>2012-09-22 20:06:53 +0200
commitb6b7f0da9073cb0b69c6dbc15983a3e7a09e2c1c (patch)
treee5512675c3bcc5c4455e4d1271589d91fd13c1fc
parente13071bee5083e5c83ece8eeb1c6b33f5ef2d520 (diff)
downloaddevice_samsung_i9300-b6b7f0da9073cb0b69c6dbc15983a3e7a09e2c1c.zip
device_samsung_i9300-b6b7f0da9073cb0b69c6dbc15983a3e7a09e2c1c.tar.gz
device_samsung_i9300-b6b7f0da9073cb0b69c6dbc15983a3e7a09e2c1c.tar.bz2
set permissions on flash device for torch
Change-Id: Ic3e627dfc8133bf28a31d147088c9be12a6868ae
-rwxr-xr-xinit.smdk4x12.rc6
-rw-r--r--overlay/packages/apps/Torch/res/values/config.xml2
2 files changed, 2 insertions, 6 deletions
diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc
index 55cb50e..a89e589 100755
--- a/init.smdk4x12.rc
+++ b/init.smdk4x12.rc
@@ -78,10 +78,10 @@ on post-fs-data
chown system radio /sys/class/camera/rear/rear_camfw
chown system radio /sys/class/camera/rear/rear_camtype
chown system radio /sys/class/camera/rear/rear_flash
+ chmod 0666 /sys/class/camera/rear/rear_flash
chown system radio /sys/class/camera/rear/isp_core
chown system radio /sys/class/camera/front/front_camfw
chown system radio /sys/class/camera/front/front_camtype
- chown system radio /sys/class/flash/flash/flash_power
write /data/ISP_CV 1
symlink /dev/block/mmcblk0p4 /dev/block/param
@@ -116,10 +116,6 @@ on post-fs-data
chmod 0660 /sys/class/sec/sec_touchkey/force_disable
chown system system /sys/class/sec/sec_touchkey/force_disable
-# Camera Flash
- chmod 0666 /sys/devices/virtual/flash/flash/flash_power
- chown system radio /sys/devices/virtual/flash/flash/flash_power
-
# Permissions for LCD
chown system radio /sys/class/lcd/panel/lcd_power
chown system radio /sys/class/lcd/panel/lcd_type
diff --git a/overlay/packages/apps/Torch/res/values/config.xml b/overlay/packages/apps/Torch/res/values/config.xml
index 39be64c..6325065 100644
--- a/overlay/packages/apps/Torch/res/values/config.xml
+++ b/overlay/packages/apps/Torch/res/values/config.xml
@@ -24,7 +24,7 @@
<bool name="useCameraInterface">false</bool>
<!-- Full path to the sysfs toggle -->
- <string name="flashDevice">/sys/devices/virtual/camera/flash/rear_flash</string>
+ <string name="flashDevice">/sys/class/camera/rear/rear_flash</string>
<!-- Lowest setting -->
<integer name="valueOn">159</integer>