blob: 5f8d2997197fa2c7572a397452eaa64512664e4a [file] [log] [blame]
markchien932da862019-08-27 10:19:38 +08001<?xml version="1.0" encoding="utf-8"?>
markchien6fbbdff2020-01-12 17:13:58 +08002<!-- Copyright (C) 2020 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
markchien932da862019-08-27 10:19:38 +080016<resources>
17 <!--
18 OEMs that wish to change the below settings must do so via a runtime resource overlay package
19 and *NOT* by changing this file. This file is part of the tethering mainline module.
markchien6fbbdff2020-01-12 17:13:58 +080020 TODO: define two resources for each config item: a default_* resource and a config_* resource,
21 config_* is empty by default but may be overridden by RROs.
markchien932da862019-08-27 10:19:38 +080022 -->
markchien6fbbdff2020-01-12 17:13:58 +080023 <!-- List of regexpressions describing the interface (if any) that represent tetherable
24 USB interfaces. If the device doesn't want to support tethering over USB this should
25 be empty. An example would be "usb.*" -->
26 <string-array translatable="false" name="config_tether_usb_regexs">
27 <item>"usb\\d"</item>
28 <item>"rndis\\d"</item>
29 </string-array>
30
31 <!-- List of regexpressions describing the interface (if any) that represent tetherable
Milim Lee45a971b2019-10-17 05:02:33 +090032 NCM interfaces. If the device doesn't want to support tethering over NCM this should
33 be empty. -->
34 <string-array translatable="false" name="config_tether_ncm_regexs">
35 </string-array>
36
37 <!-- List of regexpressions describing the interface (if any) that represent tetherable
markchien6fbbdff2020-01-12 17:13:58 +080038 Wifi interfaces. If the device doesn't want to support tethering over Wifi this
39 should be empty. An example would be "softap.*" -->
40 <string-array translatable="false" name="config_tether_wifi_regexs">
41 <item>"wlan\\d"</item>
42 <item>"softap\\d"</item>
43 </string-array>
44
45 <!-- List of regexpressions describing the interface (if any) that represent tetherable
Dedy Lansky6896f612019-11-21 00:36:14 +020046 WiGig interfaces. If the device doesn't want to support tethering over WiGig this
47 should be empty. An example would be "wigig\\d" -->
48 <string-array translatable="false" name="config_tether_wigig_regexs">
49 <item>"wigig\\d"</item>
50 </string-array>
51
52 <!-- List of regexpressions describing the interface (if any) that represent tetherable
markchien6fbbdff2020-01-12 17:13:58 +080053 Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
markchien1a4b2352020-01-15 14:25:32 +080054 should be empty. An example would be "p2p-p2p\\d-.*" -->
markchien6fbbdff2020-01-12 17:13:58 +080055 <string-array translatable="false" name="config_tether_wifi_p2p_regexs">
markchien1a4b2352020-01-15 14:25:32 +080056 <item>"p2p-p2p\\d-.*"</item>
Jimmy Chend2ab0ee2020-02-04 14:25:42 +080057 <item>"p2p\\d"</item>
markchien6fbbdff2020-01-12 17:13:58 +080058 </string-array>
59
60 <!-- List of regexpressions describing the interface (if any) that represent tetherable
61 bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
62 should be empty. -->
63 <string-array translatable="false" name="config_tether_bluetooth_regexs">
64 <item>"bt-pan"</item>
65 </string-array>
66
Hungming Chen8bf2e7e2020-04-02 18:47:19 +080067 <!-- Use the BPF offload for tethering when the kernel has support. True by default.
68 If the device doesn't want to support tether BPF offload, this should be false.
Hungming Chen5bc3af92020-05-12 19:15:24 +080069 Note that this setting could be overridden by device config.
Hungming Chen8bf2e7e2020-04-02 18:47:19 +080070 -->
71 <bool translatable="false" name="config_tether_enable_bpf_offload">true</bool>
72
markchien9a0b95d2020-01-13 16:09:42 +080073 <!-- Use the old dnsmasq DHCP server for tethering instead of the framework implementation. -->
74 <bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
75
markchieneb8fec22020-08-03 12:01:59 +080076 <!-- Use legacy wifi p2p dedicated address instead of randomize address. -->
77 <bool translatable="false" name="config_tether_enable_legacy_wifi_p2p_dedicated_ip">false</bool>
78
markchien6fbbdff2020-01-12 17:13:58 +080079 <!-- Dhcp range (min, max) to use for tethering purposes -->
80 <string-array translatable="false" name="config_tether_dhcp_range">
81 </string-array>
82
junyulai9606a222020-04-30 15:21:55 +080083 <!-- Used to config periodic polls tether offload stats from tethering offload HAL to make the
84 data warnings work. 5000(ms) by default. If the device doesn't want to poll tether
85 offload stats, this should be -1. Note that this setting could be override by
86 runtime resource overlays.
87 -->
88 <integer translatable="false" name="config_tether_offload_poll_interval">5000</integer>
89
markchien6fbbdff2020-01-12 17:13:58 +080090 <!-- Array of ConnectivityManager.TYPE_{BLUETOOTH, ETHERNET, MOBILE, MOBILE_DUN, MOBILE_HIPRI,
91 WIFI} values allowable for tethering.
92
93 Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
94 [1,7,0] for TYPE_WIFI, TYPE_BLUETOOTH, and TYPE_MOBILE.
95
96 This list is also modified by code within the framework, including:
97
98 - TYPE_ETHERNET (9) is prepended to this list, and
99
100 - the return value of TelephonyManager.isTetheringApnRequired()
101 determines how the array is further modified:
102
103 * TRUE (DUN REQUIRED).
104 TYPE_MOBILE is removed (if present).
105 TYPE_MOBILE_HIPRI is removed (if present).
106 TYPE_MOBILE_DUN is appended (if not already present).
107
108 * FALSE (DUN NOT REQUIRED).
109 TYPE_MOBILE_DUN is removed (if present).
110 If both of TYPE_MOBILE{,_HIPRI} are not present:
111 TYPE_MOBILE is appended.
112 TYPE_MOBILE_HIPRI is appended.
113
114 For other changes applied to this list, now and in the future, see
markchiend9955662020-04-12 21:41:29 +0800115 com.android.networkstack.tethering.TetheringConfiguration.
markchien6fbbdff2020-01-12 17:13:58 +0800116
117 Note also: the order of this is important. The first upstream type
118 for which a satisfying network exists is used.
119 -->
120 <integer-array translatable="false" name="config_tether_upstream_types">
121 </integer-array>
122
123 <!-- When true, the tethering upstream network follows the current default
124 Internet network (except when the current default network is mobile,
125 in which case a DUN network will be used if required).
126
127 When true, overrides the config_tether_upstream_types setting above.
128 -->
129 <bool translatable="false" name="config_tether_upstream_automatic">true</bool>
130
131
132 <!-- If the mobile hotspot feature requires provisioning, a package name and class name
133 can be provided to launch a supported application that provisions the devices.
markchien873c64a2020-01-14 12:46:53 +0800134 EntitlementManager will send an intent to Settings with the specified package name and
markchien6fbbdff2020-01-12 17:13:58 +0800135 class name in extras to launch provision app.
136 TODO: note what extras here.
137
138 See EntitlementManager#runUiTetherProvisioning and
139 packages/apps/Settings/src/com/android/settings/network/TetherProvisioningActivity.java
140 for more details.
141
142 For ui-less/periodic recheck support see config_mobile_hotspot_provision_app_no_ui
143 -->
144 <!-- The first element is the package name and the second element is the class name
145 of the provisioning app -->
146 <string-array translatable="false" name="config_mobile_hotspot_provision_app">
147 <!--
148 <item>com.example.provisioning</item>
149 <item>com.example.provisioning.Activity</item>
150 -->
151 </string-array>
152
153 <!-- If the mobile hotspot feature requires provisioning, an action can be provided
154 that will be broadcast in non-ui cases for checking the provisioning status.
155 EntitlementManager will pass the specified name to Settings and Settings would
156 launch provisioning app by sending an intent with the package name.
157
158 A second broadcast, action defined by config_mobile_hotspot_provision_response,
159 will be sent back to notify if provisioning succeeded or not. The response will
160 match that of the activity in config_mobile_hotspot_provision_app, but instead
161 contained within the int extra "EntitlementResult".
162 TODO: provide the system api for "EntitlementResult" extra and note it here.
163
164 See EntitlementManager#runSilentTetherProvisioning and
165 packages/apps/Settings/src/com/android/settings/wifi/tether/TetherService.java for more
166 details.
167 -->
168 <string translatable="false" name="config_mobile_hotspot_provision_app_no_ui"></string>
169
170 <!-- Sent in response to a provisioning check. The caller must hold the
171 permission android.permission.TETHER_PRIVILEGED for Settings to
172 receive this response.
173
174 See config_mobile_hotspot_provision_response
175 -->
176 <string translatable="false" name="config_mobile_hotspot_provision_response"></string>
177
178 <!-- Number of hours between each background provisioning call -->
179 <integer translatable="false" name="config_mobile_hotspot_provision_check_period">24</integer>
180
181 <!-- ComponentName of the service used to run no ui tether provisioning. -->
182 <string translatable="false" name="config_wifi_tether_enable">com.android.settings/.wifi.tether.TetherService</string>
paulhu08294f92020-01-16 19:35:46 +0800183
paulhu648fc2c2020-03-24 21:09:51 +0800184 <!-- No upstream notification is shown when there is a downstream but no upstream that is able
185 to do the tethering. -->
186 <!-- Delay(millisecond) to show no upstream notification after there's no Backhaul. Set delay to
187 "-1" for disable this feature. -->
188 <integer name="delay_to_show_no_upstream_after_no_backhaul">-1</integer>
paulhu1f662612020-03-26 15:29:53 +0800189
190 <!-- Cellular roaming notification is shown when upstream is cellular network and in roaming
191 state. -->
192 <!-- Config for showing upstream roaming notification. -->
193 <bool name="config_upstream_roaming_notification">false</bool>
markchien932da862019-08-27 10:19:38 +0800194</resources>