aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2014-08-28 12:52:31 +0300
committerEthan Chen <intervigil@gmail.com>2014-09-02 21:58:11 +0000
commit91ff0024fc79bda90865f8291abbfe24670b876b (patch)
treeda42c6d865fa145d7dbb95be6ef534d37b53b3e3
parent50b62682590b0180b80be60c42ff38644921ca43 (diff)
Revert "find7: Use camera interface for torch"
* Also correct the torch sysfs path & permissions * Improves torch gesture response time This reverts commit 47c2de3f1ea1371e4d9149e10d8df7e53fed5ffa. Change-Id: I555b9826eb1ac159d26e71237567bc8fbe9f81f5
-rw-r--r--overlay/packages/apps/Torch/res/values/config.xml4
-rw-r--r--rootdir/etc/init.qcom.rc4
2 files changed, 5 insertions, 3 deletions
diff --git a/overlay/packages/apps/Torch/res/values/config.xml b/overlay/packages/apps/Torch/res/values/config.xml
index 86eded7..5488bfd 100644
--- a/overlay/packages/apps/Torch/res/values/config.xml
+++ b/overlay/packages/apps/Torch/res/values/config.xml
@@ -20,5 +20,7 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
- <bool name="useCameraInterface">true</bool>
+ <bool name="useCameraInterface">false</bool>
+ <string name="flashDevice">/sys/class/leds/torch-light/brightness</string>
+ <integer name="valueOn">1</integer>
</resources>
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index bd593a8..066a773 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -56,8 +56,8 @@ on boot
on post-fs-data
# Torch
- chown system camera /sys/devices/qcom,camera-led-flash.81/test
- chmod 0660 /sys/devices/qcom,camera-led-flash.81/test
+ chown system camera /sys/class/leds/torch-light/brightness
+ chmod 0660 /sys/class/leds/torch-light/brightness
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start