Skip to content

Commit 05c6fc1

Browse files
committed
Prepare future Torch overlay
1 parent 699d398 commit 05c6fc1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/*
4+
** Copyright 2011, The CyanogenMod Project
5+
**
6+
** Licensed under the Apache License, Version 2.0 (the "License");
7+
** you may not use this file except in compliance with the License.
8+
** You may obtain a copy of the License at
9+
**
10+
** http://www.apache.org/licenses/LICENSE-2.0
11+
**
12+
** Unless required by applicable law or agreed to in writing, software
13+
** distributed under the License is distributed on an "AS IS" BASIS,
14+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
** See the License for the specific language governing permissions and
16+
** limitations under the License.
17+
*/
18+
-->
19+
20+
<!-- These resources are around just to allow their values to be customized
21+
for different hardware and product builds. -->
22+
<resources>
23+
<!-- If there is no sysfs-based control mechanism, enable this -->
24+
<bool name="useCameraInterface">false</bool>
25+
26+
<!-- Full path to the sysfs toggle -->
27+
28+
<!--
29+
!! Defy use torch-flash sys folder for strobe, but spotlight for flash !!
30+
31+
<string name="flashDevice">/sys/class/leds/spotlight/brightness</string>
32+
-->
33+
<string name="flashDevice">/sys/class/leds/torch-flash/brightness</string>
34+
35+
<!-- Lowest setting -->
36+
<integer name="valueOn">100</integer>
37+
<!-- Middle setting -->
38+
<integer name="valueHigh">175</integer>
39+
<!-- Highest setting, leave -1 if it doesn't exist -->
40+
<integer name="valueDeathRay">255</integer>
41+
42+
</resources>

0 commit comments

Comments
 (0)