blob: 9269c6f0fd52511f8eaf6bac7c0a53956357b84d [file] [log] [blame]
markchien017fef22019-08-27 10:19:38 +08001<?xml version="1.0" encoding="utf-8"?>
markchiendcc69622020-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-->
markchien017fef22019-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.
markchiendcc69622020-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.
markchien017fef22019-08-27 10:19:38 +080022 -->
markchiendcc69622020-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 Lee31ef4c02019-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
markchiendcc69622020-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
46 Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
markchien383f4b12020-01-15 14:25:32 +080047 should be empty. An example would be "p2p-p2p\\d-.*" -->
markchiendcc69622020-01-12 17:13:58 +080048 <string-array translatable="false" name="config_tether_wifi_p2p_regexs">
markchien383f4b12020-01-15 14:25:32 +080049 <item>"p2p-p2p\\d-.*"</item>
Jimmy Chenc2759012020-02-04 14:25:42 +080050 <item>"p2p\\d"</item>
markchiendcc69622020-01-12 17:13:58 +080051 </string-array>
52
53 <!-- List of regexpressions describing the interface (if any) that represent tetherable
54 bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
55 should be empty. -->
56 <string-array translatable="false" name="config_tether_bluetooth_regexs">
57 <item>"bt-pan"</item>
58 </string-array>
59
Nucca Chen95e0bac2020-05-12 11:34:28 +000060 <!-- Use the BPF offload for tethering when the kernel has support. True by default.
61 If the device doesn't want to support tether BPF offload, this should be false.
Maciej Żenczykowski61d59a72020-05-12 19:04:39 +000062 Note that this setting could be overridden by device config.
Nucca Chen95e0bac2020-05-12 11:34:28 +000063 -->
64 <bool translatable="false" name="config_tether_enable_bpf_offload">true</bool>
65
markchien2dfee022020-01-13 16:09:42 +080066 <!-- Use the old dnsmasq DHCP server for tethering instead of the framework implementation. -->
67 <bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
68
markchiendcc69622020-01-12 17:13:58 +080069 <!-- Dhcp range (min, max) to use for tethering purposes -->
70 <string-array translatable="false" name="config_tether_dhcp_range">
71 </string-array>
72
junyulaiaea13ae2020-04-30 15:21:55 +080073 <!-- Used to config periodic polls tether offload stats from tethering offload HAL to make the
74 data warnings work. 5000(ms) by default. If the device doesn't want to poll tether
75 offload stats, this should be -1. Note that this setting could be override by
76 runtime resource overlays.
77 -->
78 <integer translatable="false" name="config_tether_offload_poll_interval">5000</integer>
79
markchiendcc69622020-01-12 17:13:58 +080080 <!-- Array of ConnectivityManager.TYPE_{BLUETOOTH, ETHERNET, MOBILE, MOBILE_DUN, MOBILE_HIPRI,
81 WIFI} values allowable for tethering.
82
83 Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
84 [1,7,0] for TYPE_WIFI, TYPE_BLUETOOTH, and TYPE_MOBILE.
85
86 This list is also modified by code within the framework, including:
87
88 - TYPE_ETHERNET (9) is prepended to this list, and
89
90 - the return value of TelephonyManager.isTetheringApnRequired()
91 determines how the array is further modified:
92
93 * TRUE (DUN REQUIRED).
94 TYPE_MOBILE is removed (if present).
95 TYPE_MOBILE_HIPRI is removed (if present).
96 TYPE_MOBILE_DUN is appended (if not already present).
97
98 * FALSE (DUN NOT REQUIRED).
99 TYPE_MOBILE_DUN is removed (if present).
100 If both of TYPE_MOBILE{,_HIPRI} are not present:
101 TYPE_MOBILE is appended.
102 TYPE_MOBILE_HIPRI is appended.
103
104 For other changes applied to this list, now and in the future, see
markchien503be612020-04-12 21:41:29 +0800105 com.android.networkstack.tethering.TetheringConfiguration.
markchiendcc69622020-01-12 17:13:58 +0800106
107 Note also: the order of this is important. The first upstream type
108 for which a satisfying network exists is used.
109 -->
110 <integer-array translatable="false" name="config_tether_upstream_types">
111 </integer-array>
112
113 <!-- When true, the tethering upstream network follows the current default
114 Internet network (except when the current default network is mobile,
115 in which case a DUN network will be used if required).
116
117 When true, overrides the config_tether_upstream_types setting above.
118 -->
119 <bool translatable="false" name="config_tether_upstream_automatic">true</bool>
120
121
122 <!-- If the mobile hotspot feature requires provisioning, a package name and class name
123 can be provided to launch a supported application that provisions the devices.
markchienda4519a2020-01-14 12:46:53 +0800124 EntitlementManager will send an intent to Settings with the specified package name and
markchiendcc69622020-01-12 17:13:58 +0800125 class name in extras to launch provision app.
126 TODO: note what extras here.
127
128 See EntitlementManager#runUiTetherProvisioning and
129 packages/apps/Settings/src/com/android/settings/network/TetherProvisioningActivity.java
130 for more details.
131
132 For ui-less/periodic recheck support see config_mobile_hotspot_provision_app_no_ui
133 -->
134 <!-- The first element is the package name and the second element is the class name
135 of the provisioning app -->
136 <string-array translatable="false" name="config_mobile_hotspot_provision_app">
137 <!--
138 <item>com.example.provisioning</item>
139 <item>com.example.provisioning.Activity</item>
140 -->
141 </string-array>
142
143 <!-- If the mobile hotspot feature requires provisioning, an action can be provided
144 that will be broadcast in non-ui cases for checking the provisioning status.
145 EntitlementManager will pass the specified name to Settings and Settings would
146 launch provisioning app by sending an intent with the package name.
147
148 A second broadcast, action defined by config_mobile_hotspot_provision_response,
149 will be sent back to notify if provisioning succeeded or not. The response will
150 match that of the activity in config_mobile_hotspot_provision_app, but instead
151 contained within the int extra "EntitlementResult".
152 TODO: provide the system api for "EntitlementResult" extra and note it here.
153
154 See EntitlementManager#runSilentTetherProvisioning and
155 packages/apps/Settings/src/com/android/settings/wifi/tether/TetherService.java for more
156 details.
157 -->
158 <string translatable="false" name="config_mobile_hotspot_provision_app_no_ui"></string>
159
160 <!-- Sent in response to a provisioning check. The caller must hold the
161 permission android.permission.TETHER_PRIVILEGED for Settings to
162 receive this response.
163
164 See config_mobile_hotspot_provision_response
165 -->
166 <string translatable="false" name="config_mobile_hotspot_provision_response"></string>
167
168 <!-- Number of hours between each background provisioning call -->
169 <integer translatable="false" name="config_mobile_hotspot_provision_check_period">24</integer>
170
171 <!-- ComponentName of the service used to run no ui tether provisioning. -->
172 <string translatable="false" name="config_wifi_tether_enable">com.android.settings/.wifi.tether.TetherService</string>
Automerger Merge Worker2d7bacc2020-03-09 08:54:00 +0000173
Paul Hu77fa8d62020-04-16 02:54:37 +0000174 <!-- No upstream notification is shown when there is a downstream but no upstream that is able
175 to do the tethering. -->
176 <!-- Delay(millisecond) to show no upstream notification after there's no Backhaul. Set delay to
177 "-1" for disable this feature. -->
178 <integer name="delay_to_show_no_upstream_after_no_backhaul">-1</integer>
Chalard Jeanc0fc2762020-04-17 17:12:44 +0000179
180 <!-- Cellular roaming notification is shown when upstream is cellular network and in roaming
181 state. -->
182 <!-- Config for showing upstream roaming notification. -->
183 <bool name="config_upstream_roaming_notification">false</bool>
markchien017fef22019-08-27 10:19:38 +0800184</resources>