Commit | Line | Data |
---|---|---|
aebc8381 DW |
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- | |
3 | /* | |
4 | ** Copyright 2013, The CyanogenMod Project | |
5 | ** Copyright 2018, The LineageOS Project | |
6 | ** | |
7 | ** Licensed under the Apache License, Version 2.0 (the "License"); | |
8 | ** you may not use this file except in compliance with the License. | |
9 | ** You may obtain a copy of the License at | |
10 | ** | |
11 | ** http://www.apache.org/licenses/LICENSE-2.0 | |
12 | ** | |
13 | ** Unless required by applicable law or agreed to in writing, software | |
14 | ** distributed under the License is distributed on an "AS IS" BASIS, | |
15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | ** See the License for the specific language governing permissions and | |
17 | ** limitations under the License. | |
18 | */ | |
19 | --> | |
20 | ||
21 | <!-- These resources are around just to allow their values to be customized | |
22 | for different hardware and product builds. --> | |
23 | <resources> | |
24 | ||
25 | <!-- This string array should be overridden by the device to present a list of radio | |
26 | attributes. This is used by the connectivity manager to decide which networks can coexist | |
27 | based on the hardware --> | |
28 | <!-- An Array of "[ConnectivityManager connectionType], | |
29 | [# simultaneous connection types]" --> | |
30 | <string-array translatable="false" name="radioAttributes"> | |
31 | <!-- DEFAULT --> | |
32 | <item>"1,1"</item> | |
33 | <!-- MOBILE --> | |
34 | <item>"0,1"</item> | |
35 | <!-- BLUETOOTH --> | |
36 | <item>"7,1"</item> | |
37 | </string-array> | |
38 | ||
39 | <!-- Power Management: Specifies whether to decouple the interactive state of the | |
40 | device from the display on/off state. --> | |
41 | <bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool> | |
42 | ||
43 | <!-- Screen brightness used to dim the screen while dozing in a very low power state. | |
44 | May be less than the minimum allowed brightness setting | |
45 | that can be set by the user. --> | |
46 | <integer name="config_screenBrightnessDoze">1</integer> | |
47 | ||
48 | <!-- If true, the doze component is not started until after the screen has been | |
49 | turned off and the screen off animation has been performed. --> | |
bdd522d3 | 50 | <bool name="config_dozeAfterScreenOffByDefault">true</bool> |
aebc8381 DW |
51 | |
52 | <!-- ComponentName of a dream to show whenever the system would otherwise have | |
53 | gone to sleep. When the PowerManager is asked to go to sleep, it will instead | |
54 | try to start this dream if possible. The dream should typically call startDozing() | |
55 | to put the display into a low power state and allow the application processor | |
56 | to be suspended. When the dream ends, the system will go to sleep as usual. | |
57 | Specify the component name or an empty string if none. | |
58 | Note that doze dreams are not subject to the same start conditions as ordinary dreams. | |
59 | Doze dreams will run whenever the power manager is in a dozing state. --> | |
60 | <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string> | |
61 | ||
62 | <!-- Boolean indicating if restoring network selection should be skipped --> | |
63 | <!-- The restoring is handled by modem if it is true --> | |
64 | <bool translatable="false" name="skip_restoring_network_selection">true</bool> | |
65 | ||
66 | <!-- Indicate whether closing the lid causes the device to go to sleep and opening | |
67 | it causes the device to wake up. | |
68 | The default is false. --> | |
69 | <bool name="config_lidControlsSleep">true</bool> | |
70 | ||
71 | <!-- Flag specifying whether VoLTE TTY is supported --> | |
72 | <bool name="config_carrier_volte_tty_supported">true</bool> | |
73 | ||
74 | <!-- Configure mobile tcp buffer sizes in the form: | |
75 | rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max | |
76 | If no value is found for the rat-name in use, the system default will be applied. | |
77 | --> | |
78 | <string-array name="config_mobile_tcp_buffers"> | |
79 | <item>lte:1048576,3145728,4194304,1048576,3145728,4194304</item> | |
80 | <item>umts:4094,87380,1220608,4096,16384,1220608</item> | |
81 | <item>hspa:4094,87380,1220608,4096,16384,1220608</item> | |
82 | <item>hsupa:4094,87380,1220608,4096,16384,1220608</item> | |
83 | <item>hsdpa:4094,87380,1220608,4096,16384,1220608</item> | |
84 | <item>hspap:4094,87380,1220608,4096,16384,1220608</item> | |
85 | </string-array> | |
86 | ||
87 | <!-- Configure wifi tcp buffersizes in the form: | |
88 | rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max --> | |
89 | <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,262144,524288,1048576</string> | |
90 | ||
91 | <!-- Flag indicating which package name can access the persistent data partition --> | |
92 | <string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string> | |
93 | ||
94 | <!-- This string array should be overridden by the device to present a list of network | |
95 | attributes. This is used by the connectivity manager to decide which networks can coexist | |
96 | based on the hardware --> | |
97 | <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx], | |
98 | [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] --> | |
99 | <!-- the 5th element "resore-time" indicates the number of milliseconds to delay | |
100 | before automatically restore the default connection. Set -1 if the connection | |
101 | does not require auto-restore. --> | |
102 | <!-- the 6th element indicates boot-time dependency-met value. --> | |
103 | <string-array translatable="false" name="networkAttributes"> | |
104 | <item>wifi,1,1,1,-1,true</item> | |
105 | <item>mobile,0,0,0,-1,true</item> | |
106 | <item>mobile_mms,2,0,2,240000,true</item> | |
107 | <item>mobile_supl,3,0,2,60000,true</item> | |
108 | <item>mobile_dun,4,0,2,60000,true</item> | |
109 | <item>mobile_hipri,5,0,3,60000,true</item> | |
110 | <item>bluetooth,7,7,0,-1,true</item> | |
111 | <item>ethernet,9,9,2,-1,true</item> | |
112 | <item>mobile_fota,10,0,2,60000,true</item> | |
113 | <item>mobile_ims,11,0,1,-1,true</item> | |
114 | <item>mobile_cbs,12,0,2,60000,true</item> | |
115 | <item>wifi_p2p,13,1,0,-1,true</item> | |
116 | <item>mobile_ia,14,0,2,-1,true</item> | |
117 | <item>mobile_emergency,15,0,2,-1,true</item> | |
118 | <item>mobile_bip,23,0,2,60000,true</item> | |
119 | <item>mobile_cas,24,0,3,60000,true</item> | |
120 | <item>mobile_xcap,27,0,2,60000,true</item> | |
121 | <item>mobile_ent1,28,0,2,-1,true</item> | |
122 | </string-array> | |
123 | ||
124 | <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering --> | |
125 | <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or | |
126 | <!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH --> | |
127 | <integer-array translatable="false" name="config_tether_upstream_types"> | |
128 | <item>0</item> | |
129 | <item>1</item> | |
130 | <item>4</item> | |
131 | <item>5</item> | |
132 | <item>7</item> | |
133 | <item>9</item> | |
134 | </integer-array> | |
135 | ||
136 | <!-- Flag indicating whether we should enable the automatic brightness in Settings. | |
137 | Software implementation will be used if config_hardware_auto_brightness_available is not set --> | |
138 | <bool name="config_automatic_brightness_available">true</bool> | |
139 | ||
140 | <!-- The default iface on which to monitor data use --> | |
141 | <string name="config_datause_iface" translatable="false">rmnet0</string> | |
142 | ||
143 | <!-- Stability requirements in milliseconds for accepting a new brightness level. This is used | |
144 | for debouncing the light sensor. Different constants are used to debounce the light sensor | |
145 | when adapting to brighter or darker environments. This parameter controls how quickly | |
146 | brightness changes occur in response to an observed change in light level that exceeds the | |
147 | hysteresis threshold. --> | |
148 | <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer> | |
149 | <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer> | |
150 | ||
151 | <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. | |
152 | The N entries of this array define N 1 zones as follows: | |
153 | Zone 0: 0 <= LUX < array[0] | |
154 | Zone 1: array[0] <= LUX < array[1] | |
155 | ... | |
156 | Zone N: array[N - 1] <= LUX < array[N] | |
157 | Zone N + 1 array[N] <= LUX < infinity | |
158 | Must be overridden in platform specific overlays --> | |
159 | <integer-array name="config_autoBrightnessLevels"> | |
160 | <item>9</item> | |
161 | <item>30</item> | |
162 | <item>100</item> | |
163 | <item>325</item> | |
164 | <item>1250</item> | |
165 | <item>3500</item> | |
166 | <item>10000</item> | |
167 | <item>20000</item> | |
168 | </integer-array> | |
169 | ||
170 | <!-- Array of output values for LCD backlight corresponding to the LUX values | |
171 | in the config_autoBrightnessLevels array. This array should have size one greater | |
172 | than the size of the config_autoBrightnessLevels array. | |
173 | This must be overridden in platform specific overlays --> | |
174 | <integer-array name="config_autoBrightnessLcdBacklightValues"> | |
175 | <!-- 9 --> <item>18</item> | |
176 | <!-- 30 --> <item>30</item> | |
177 | <!-- 100 --> <item>59</item> | |
178 | <!-- 325 --> <item>74</item> | |
179 | <!-- 1250 --> <item>92</item> | |
180 | <!-- 3500 --> <item>118</item> | |
181 | <!-- 10000 --> <item>155</item> | |
182 | <!-- 20000 --> <item>222</item> | |
183 | <item>255</item> | |
184 | </integer-array> | |
185 | ||
186 | <!-- Minimum screen brightness setting allowed by the power manager. | |
187 | The user is forbidden from setting the brightness below this level. --> | |
188 | <integer name="config_screenBrightnessSettingMinimum">0</integer> | |
189 | ||
190 | <!-- Default screen brightness setting. | |
191 | Must be in the range specified by minimum and maximum. --> | |
192 | <integer name="config_screenBrightnessSettingDefault">134</integer> | |
193 | ||
194 | <!-- Screen brightness used to dim the screen when the user activity | |
195 | timeout expires. May be less than the minimum allowed brightness setting | |
196 | that can be set by the user. --> | |
197 | <integer name="config_screenBrightnessDim">19</integer> | |
198 | ||
199 | <!-- Control the behavior when the user long presses the home button. | |
200 | 0 - Nothing | |
201 | 1 - Menu key | |
202 | 2 - Recent apps view in SystemUI | |
203 | 3 - Launch assist intent | |
204 | 4 - Voice Search | |
205 | 5 - In-app Search | |
206 | This needs to match the constants in | |
207 | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | |
208 | --> | |
209 | <integer name="config_longPressOnHomeBehavior">3</integer> | |
210 | ||
211 | <!-- Control the behavior when the user double-taps the home button. | |
212 | 0 - Nothing | |
213 | 1 - Menu | |
214 | 2 - Recent apps view in SystemUI | |
215 | 3 - Launch assist intent | |
216 | 4 - Voice Search | |
217 | 5 - In-app Search | |
218 | This needs to match the constants in | |
219 | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | |
220 | --> | |
221 | <integer name="config_doubleTapOnHomeBehavior">2</integer> | |
222 | ||
223 | <!-- These resources are around just to allow their values to be customized | |
224 | for different hardware and product builds. --> | |
225 | <string name="config_radio_access_family">GSM | WCDMA | LTE</string> | |
226 | ||
227 | <!-- Values for GPS configuration --> | |
228 | <string-array translatable="false" name="config_gpsParameters"> | |
229 | <item>XTRA_SERVER_1=https://glltos1.glpals.com/4day/v3/latest/lto2.dat</item> | |
230 | <item>XTRA_SERVER_2=https://glltos2.glpals.com/4day/v3/latest/lto2.dat</item> | |
231 | </string-array> | |
232 | ||
233 | <!-- Boolean indicating whether the wifi chipset has dual frequency band support --> | |
234 | <bool translatable="false" name="config_wifi_dual_band_support">false</bool> | |
235 | ||
236 | <!-- Boolean indicating whether the wifi chipset has background scan support --> | |
2b620965 | 237 | <bool translatable="false" name="config_wifi_background_scan_support">true</bool> |
aebc8381 DW |
238 | |
239 | <!-- Wifi driver supports batched scan --> | |
240 | <bool translatable="false" name="config_wifi_batched_scan_supported">false</bool> | |
241 | ||
242 | <!-- Indicate whether the SD card is accessible without removing the battery. --> | |
243 | <bool name="config_batterySdCardAccessibility">true</bool> | |
244 | ||
245 | <!-- Display low battery warning when battery level dips to this value. | |
246 | Also, the battery stats are flushed to disk when we hit this level. --> | |
247 | <integer name="config_criticalBatteryWarningLevel">10</integer> | |
248 | ||
249 | <!-- Display low battery warning when battery level dips to this value --> | |
250 | <integer name="config_lowBatteryWarningLevel">20</integer> | |
251 | ||
252 | <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. --> | |
253 | <integer name="config_shutdownBatteryTemperature">600</integer> | |
254 | ||
255 | <!-- Minimum allowable screen brightness to use in a very dark room. | |
256 | This value sets the floor for the darkest possible auto-brightness | |
257 | adjustment. It is expected to be somewhat less than the first entry in | |
258 | config_autoBrightnessLcdBacklightValues so as to allow the user to have | |
259 | some range of adjustment to dim the screen further than usual in very | |
260 | dark rooms. The contents of the screen must still be clearly visible | |
261 | in darkness (although they may not be visible in a bright room). --> | |
262 | <integer name="config_screenBrightnessDark">1</integer> | |
263 | ||
264 | <!-- Slow brightness animation ramp rate in brightness units per second--> | |
265 | <integer translatable="false" name="config_brightness_ramp_rate_slow">80</integer> | |
266 | ||
267 | <!-- Light sensor event rate in milliseconds for automatic brightness control. --> | |
268 | <integer name="config_autoBrightnessLightSensorRate">250</integer> | |
269 | ||
270 | <!-- Initial light sensor event rate in milliseconds for automatic brightness control. This is | |
271 | used for obtaining the first light sample when the device stops dozing. | |
272 | Set this to 0 to disable this feature. --> | |
273 | <integer name="config_autoBrightnessInitialLightSensorRate">250</integer> | |
274 | ||
275 | <!-- Period of time in which to consider light samples in milliseconds. --> | |
276 | <integer name="config_autoBrightnessAmbientLightHorizon">5000</integer> | |
277 | ||
278 | <!-- Amount of time it takes for the light sensor to warm up in milliseconds. | |
279 | For this time after the screen turns on, the Power Manager | |
280 | will not debounce light sensor readings --> | |
281 | <integer name="config_lightSensorWarmupTime">0</integer> | |
282 | ||
283 | <!-- Allow automatic adjusting of the screen brightness while dozing in low power state. --> | |
284 | <bool name="config_allowAutoBrightnessWhileDozing">true</bool> | |
285 | ||
286 | <!-- If we allow automatic adjustment of screen brightness while dozing, how many times we want | |
287 | to reduce it to preserve the battery. Value of 100% means no scaling. --> | |
288 | <fraction name="config_screenAutoBrightnessDozeScaleFactor">50%</fraction> | |
289 | ||
d5bef952 JR |
290 | <!-- Enable OLED burn-in protection --> |
291 | <bool name="config_enableBurnInProtection">true</bool> | |
292 | ||
aebc8381 DW |
293 | <!-- Boolean indicating if current platform supports BLE peripheral mode --> |
294 | <bool name="config_bluetooth_le_peripheral_mode_supported">true</bool> | |
295 | ||
296 | <!-- reference volume index for music stream to limit headphone volume and display warning --> | |
297 | <integer name="config_safe_media_volume_index">10</integer> | |
298 | ||
299 | <!-- Whether WiFi display is supported by this device. | |
300 | There are many prerequisites for this feature to work correctly. | |
301 | Here are a few of them: | |
302 | * The WiFi radio must support WiFi P2P. | |
303 | * The WiFi radio must support concurrent connections to the WiFi display and | |
304 | to an access point. | |
305 | * The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix" | |
306 | remote submix module. This module is used to record and stream system | |
307 | audio output to the WiFi display encoder in the media server. | |
308 | * The remote submix module "audio.r_submix.default" must be installed on the device. | |
309 | * The device must be provisioned with HDCP keys (for protected content). | |
310 | --> | |
311 | <bool name="config_enableWifiDisplay">true</bool> | |
312 | </resources> |