summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>