config.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2024 The LineageOS Project
  4. SPDX-License-Identifier: Apache-2.0
  5. -->
  6. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  7. <!-- NOTE: The telephony module is no longer reading the configuration below for available
  8. APN types. The set of APN types and relevant settings are specified within the telephony
  9. module and are non-configurable. Whether or not data connectivity over a cellular network
  10. is available at all is controlled by the flag: config_moble_data_capable. -->
  11. <string-array name="networkAttributes" translatable="false">
  12. <item>wifi,1,1,1,-1,true</item>
  13. <item>mobile,0,0,0,-1,true</item>
  14. <item>mobile_mms,2,0,4,60000,true</item>
  15. <item>mobile_supl,3,0,2,60000,true</item>
  16. <item>mobile_dun,4,0,2,60000,true</item>
  17. <item>mobile_hipri,5,0,3,60000,true</item>
  18. <item>mobile_fota,10,0,2,60000,true</item>
  19. <item>mobile_ims,11,0,2,60000,true</item>
  20. <item>mobile_cbs,12,0,2,60000,true</item>
  21. <item>bluetooth,7,7,2,-1,true</item>
  22. <item>mobile_emergency,15,0,5,-1,true</item>
  23. <item>ethernet,9,9,9,-1,true</item>
  24. </string-array>
  25. <!-- An Array of "[ConnectivityManager connectionType],
  26. [# simultaneous connection types]" -->
  27. <string-array name="radioAttributes" translatable="false">
  28. <item>1,1</item>
  29. <item>0,1</item>
  30. <item>7,1</item>
  31. </string-array>
  32. <!-- This setting is deprecated, please use
  33. com.android.networkstack.tethering.R.array.config_tether_usb_regexs instead. -->
  34. <string-array name="config_tether_usb_regexs" translatable="false">
  35. <item>usb\\d</item>
  36. <item>rndis\\d</item>
  37. </string-array>
  38. <!-- This setting is deprecated, please use
  39. com.android.networkstack.tethering.R.array.config_tether_wifi_regexs instead. -->
  40. <string-array name="config_tether_wifi_regexs" translatable="false">
  41. <item>softap0</item>
  42. <item>wlan0</item>
  43. </string-array>
  44. <!-- This setting is deprecated, please use
  45. com.android.networkstack.tethering.R.array.config_tether_bluetooth_regexs instead. -->
  46. <string-array name="config_tether_bluetooth_regexs" translatable="false">
  47. <item>bnep\\d</item>
  48. <item>bt-pan</item>
  49. </string-array>
  50. <!-- This setting is deprecated, please use
  51. com.android.networkstack.tethering.R.array.config_dhcp_range instead. -->
  52. <string-array name="config_tether_dhcp_range" translatable="false">
  53. <item>192.168.42.2</item>
  54. <item>192.168.42.254</item>
  55. <item>192.168.43.2</item>
  56. <item>192.168.43.254</item>
  57. <item>192.168.44.2</item>
  58. <item>192.168.44.254</item>
  59. <item>192.168.45.2</item>
  60. <item>192.168.45.254</item>
  61. <item>192.168.46.2</item>
  62. <item>192.168.46.254</item>
  63. <item>192.168.47.2</item>
  64. <item>192.168.47.254</item>
  65. <item>192.168.48.2</item>
  66. <item>192.168.48.254</item>
  67. <item>192.168.49.2</item>
  68. <item>192.168.49.254</item>
  69. <item>192.168.50.2</item>
  70. <item>192.168.50.254</item>
  71. <item>192.168.51.2</item>
  72. <item>192.168.51.254</item>
  73. </string-array>
  74. <!-- This setting is deprecated, please use
  75. com.android.networkstack.tethering.R.array.config_tether_upstream_types. -->
  76. <integer-array name="config_tether_upstream_types" translatable="false">
  77. <item>0</item>
  78. <item>1</item>
  79. <item>5</item>
  80. <item>7</item>
  81. </integer-array>
  82. <!-- Flag indicating whether we should enable the automatic brightness.
  83. Software implementation will be used if config_hardware_auto_brightness_available is not set -->
  84. <bool name="config_automatic_brightness_available">true</bool>
  85. <!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
  86. <bool name="config_unplugTurnsOnScreen">true</bool>
  87. <!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
  88. in hardware. -->
  89. <bool name="config_setColorTransformAccelerated">true</bool>
  90. <!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. -->
  91. <integer-array name="config_availableColorModes">
  92. <item>0</item>
  93. <item>1</item>
  94. <item>3</item>
  95. <item>256</item>
  96. <item>257</item>
  97. <item>258</item>
  98. <item>259</item>
  99. <item>260</item>
  100. <item>261</item>
  101. <item>262</item>
  102. <item>263</item>
  103. <item>264</item>
  104. <item>265</item>
  105. </integer-array>
  106. <!-- Is the device capable of hot swapping an UICC Card -->
  107. <bool name="config_hotswapCapable">true</bool>
  108. <!-- Screen brightness used to dim the screen while dozing in a very low power state.
  109. May be less than the minimum allowed brightness setting
  110. that can be set by the user. -->
  111. <integer name="config_screenBrightnessDoze">17</integer>
  112. <!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
  113. The N entries of this array define N + 1 control points as follows:
  114. (1-based arrays)
  115. Point 1: (0, value[1]): lux <= 0
  116. Point 2: (level[1], value[2]): 0 < lux <= level[1]
  117. Point 3: (level[2], value[3]): level[2] < lux <= level[3]
  118. ...
  119. Point N+1: (level[N], value[N+1]): level[N] < lux
  120. The control points must be strictly increasing. Each control point
  121. corresponds to an entry in the brightness backlight values arrays.
  122. For example, if lux == level[1] (first element of the levels array)
  123. then the brightness will be determined by value[2] (second element
  124. of the brightness values array).
  125. Spline interpolation is used to determine the auto-brightness
  126. backlight values for lux levels between these control points.
  127. Must be overridden in platform specific overlays -->
  128. <integer-array name="config_autoBrightnessLevels">
  129. <item>10</item>
  130. <item>30</item>
  131. <item>60</item>
  132. <item>100</item>
  133. <item>150</item>
  134. <item>210</item>
  135. <item>255</item>
  136. </integer-array>
  137. <!-- Array of output values for LCD backlight corresponding to the lux values
  138. in the config_autoBrightnessLevels array. This array should have size one greater
  139. than the size of the config_autoBrightnessLevels array.
  140. The brightness values must be between 0 and 255 and be non-decreasing.
  141. This must be overridden in platform specific overlays -->
  142. <integer-array name="config_autoBrightnessLcdBacklightValues">
  143. <item>10</item>
  144. <item>20</item>
  145. <item>40</item>
  146. <item>70</item>
  147. <item>110</item>
  148. <item>160</item>
  149. <item>200</item>
  150. <item>255</item>
  151. </integer-array>
  152. <!-- The restoring is handled by modem if it is true-->
  153. <bool name="skip_restoring_network_selection" translatable="false">true</bool>
  154. <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
  155. autodetected from the Configuration. -->
  156. <bool name="config_showNavigationBar">true</bool>
  157. <!-- ComponentName of a dream to show whenever the system would otherwise have
  158. gone to sleep. When the PowerManager is asked to go to sleep, it will instead
  159. try to start this dream if possible. The dream should typically call startDozing()
  160. to put the display into a low power state and allow the application processor
  161. to be suspended. When the dream ends, the system will go to sleep as usual.
  162. Specify the component name or an empty string if none.
  163. Note that doze dreams are not subject to the same start conditions as ordinary dreams.
  164. Doze dreams will run whenever the power manager is in a dozing state. -->
  165. <string name="config_dozeComponent" translatable="false">com.android.systemui/com.android.systemui.doze.DozeService</string>
  166. <!-- If true, the doze component is not started until after the screen has been
  167. turned off and the screen off animation has been performed. -->
  168. <bool name="config_dozeAfterScreenOffByDefault">true</bool>
  169. <!-- Power Management: Specifies whether to decouple the interactive state of the
  170. device from the display on/off state.
  171. When false, setInteractive(..., true) will be called before the display is turned on
  172. and setInteractive(..., false) will be called after the display is turned off.
  173. This mode provides best compatibility for devices that expect the interactive
  174. state to be tied to the display state.
  175. When true, setInteractive(...) will be called independently of whether the display
  176. is being turned on or off. This mode enables the power manager to reduce
  177. clocks and disable the touch controller while the display is on.
  178. This resource should be set to "true" when a doze component has been specified
  179. to maximize power savings but not all devices support it.
  180. Refer to power.h for details.
  181. -->
  182. <bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
  183. <!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. -->
  184. <bool name="config_cellBroadcastAppLinks">true</bool>
  185. <!-- Maximum number of supported users -->
  186. <integer name="config_multiuserMaximumUsers">4</integer>
  187. <!-- Whether UI for multi user should be shown -->
  188. <bool name="config_enableMultiUserUI">true</bool>
  189. <!-- Configure mobile tcp buffer sizes in the form:
  190. rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
  191. If no value is found for the rat-name in use, the system default will be applied.
  192. This is deprecated. Please use config_mobile_tcp_buffers for rat-based TCP buffers sizes or
  193. config_tcp_buffers for rat-independent TCP buffer sizes.
  194. -->
  195. <string-array name="config_mobile_tcp_buffers">
  196. <item>5gnr:2097152,6291456,16777216,512000,2097152,8388608</item>
  197. <item>lte:2097152,4194304,8388608,262144,524288,1048576</item>
  198. <item>lte_ca:4096,6291456,12582912,4096,1048576,4194304</item>
  199. <item>umts:4094,87380,1220608,4096,16384,1220608</item>
  200. <item>hspa:4094,87380,1220608,4096,16384,1220608</item>
  201. <item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
  202. <item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
  203. <item>hspap:4094,87380,1220608,4096,16384,1220608</item>
  204. <item>edge:4093,26280,35040,4096,16384,35040</item>
  205. <item>gprs:4092,8760,11680,4096,8760,11680</item>
  206. <item>evdo:4094,87380,524288,4096,16384,262144</item>
  207. </string-array>
  208. <!-- Set to true if the wifi display supports compositing content stored
  209. in gralloc protected buffers. For this to be true, there must exist
  210. a protected hardware path for surface flinger to composite and send
  211. protected buffers to the wifi display video encoder.
  212. If this flag is false, we advise applications not to use protected
  213. buffers (if possible) when presenting content to a wifi display because
  214. the content may be blanked.
  215. This flag controls whether the {@link Display#FLAG_SUPPORTS_PROTECTED_BUFFERS}
  216. flag is set for wifi displays.
  217. -->
  218. <bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
  219. <!-- Whether camera shutter sound is forced or not (country specific). -->
  220. <bool name="config_camera_sound_forced">false</bool>
  221. <!-- Flag indicating if the speed up audio on mt call code should be executed -->
  222. <bool name="config_speed_up_audio_on_mt_calls">true</bool>
  223. <!-- set to false if we need to show user confirmation
  224. when alpha identifier is not provided by the UICC -->
  225. <bool name="config_stkNoAlphaUsrCnf">false</bool>
  226. <!-- Flag indicating which package name can access the persistent data partition -->
  227. <string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string>
  228. <!-- Flag specifying whether VoLTE is available on device -->
  229. <bool name="config_device_volte_available">true</bool>
  230. <!-- Flag specifying whether VoLTE should be available for carrier: independent of
  231. carrier provisioning. If false: hard disabled. If true: then depends on carrier
  232. provisioning, availability etc -->
  233. <bool name="config_carrier_volte_available">true</bool>
  234. <!-- Flag specifying whether VT is available on device -->
  235. <bool name="config_device_vt_available">true</bool>
  236. <!-- Flag specifying whether WFC over IMS is available on device -->
  237. <bool name="config_device_wfc_ims_available">true</bool>
  238. <!--Support decoding the user data payload as pack GSM 8-bit (a GSM alphabet
  239. string that's stored in 8-bit unpacked format) characters.-->
  240. <bool name="config_sms_decode_gsm_8bit_data" translatable="false">true</bool>
  241. <!-- Config determines whether to update phone object when voice registration
  242. state changes. Voice radio tech change will always trigger an update of
  243. phone object irrespective of this config -->
  244. <bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
  245. <!--The default "usage setting" indicating that the device is either a voice-centric
  246. device (1) or a data-centric device (2). A voice-centric device will require that any cellular
  247. service that it uses provides access to voice capability, and a data-centric device will
  248. likewise require that the network provides access to data services. These settings are
  249. sent to the cellular modem and control the behavior in accordance with 3gpp TS 24.301 sec 4.3
  250. (and equivalent functionality in other generations of cellular).-->
  251. <integer name="config_default_cellular_usage_setting">-1</integer>
  252. <!-- Whether the Unprocessed audio source supports the required frequency range and level -->
  253. <bool name="config_supportAudioSourceUnprocessed">true</bool>
  254. <!-- The default refresh rate for a given device. Change this value to set a higher default
  255. refresh rate. If the hardware composer on the device supports display modes with a higher
  256. refresh rate than the default value specified here, the framework may use those higher
  257. refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
  258. setFrameRate().
  259. If a non-zero value is set for config_defaultPeakRefreshRate, then
  260. config_defaultRefreshRate may be set to 0, in which case the value set for
  261. config_defaultPeakRefreshRate will act as the default frame rate. -->
  262. <integer name="config_defaultRefreshRate">0</integer>
  263. <!-- The default peak refresh rate for a given device. Change this value if you want to prevent
  264. the framework from using higher refresh rates, even if display modes with higher refresh
  265. rates are available from hardware composer. Only has an effect if the value is
  266. non-zero. -->
  267. <integer name="config_defaultPeakRefreshRate">240</integer>
  268. <!-- Whether the device enable the standalone (SA) mode of 5G NR.-->
  269. <bool name="config_telephony5gStandalone">true</bool>
  270. <!-- Whether the device enable the non-standalone (NSA) mode of 5G NR.-->
  271. <bool name="config_telephony5gNonStandalone">true</bool>
  272. <!-- Whether to select voice/data/sms preference without user confirmation -->
  273. <bool name="config_voice_data_sms_auto_fallback">true</bool>
  274. </resources>