blob: 9dda7166a29328e2f0be5a50c4b653aa66de8e15 [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
markchien2dfee022020-01-13 16:09:42 +080060 <!-- Use the old dnsmasq DHCP server for tethering instead of the framework implementation. -->
61 <bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
62
markchiendcc69622020-01-12 17:13:58 +080063 <!-- Dhcp range (min, max) to use for tethering purposes -->
64 <string-array translatable="false" name="config_tether_dhcp_range">
65 </string-array>
66
junyulaiaea13ae2020-04-30 15:21:55 +080067 <!-- Used to config periodic polls tether offload stats from tethering offload HAL to make the
68 data warnings work. 5000(ms) by default. If the device doesn't want to poll tether
69 offload stats, this should be -1. Note that this setting could be override by
70 runtime resource overlays.
71 -->
72 <integer translatable="false" name="config_tether_offload_poll_interval">5000</integer>
73
markchiendcc69622020-01-12 17:13:58 +080074 <!-- Array of ConnectivityManager.TYPE_{BLUETOOTH, ETHERNET, MOBILE, MOBILE_DUN, MOBILE_HIPRI,
75 WIFI} values allowable for tethering.
76
77 Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
78 [1,7,0] for TYPE_WIFI, TYPE_BLUETOOTH, and TYPE_MOBILE.
79
80 This list is also modified by code within the framework, including:
81
82 - TYPE_ETHERNET (9) is prepended to this list, and
83
84 - the return value of TelephonyManager.isTetheringApnRequired()
85 determines how the array is further modified:
86
87 * TRUE (DUN REQUIRED).
88 TYPE_MOBILE is removed (if present).
89 TYPE_MOBILE_HIPRI is removed (if present).
90 TYPE_MOBILE_DUN is appended (if not already present).
91
92 * FALSE (DUN NOT REQUIRED).
93 TYPE_MOBILE_DUN is removed (if present).
94 If both of TYPE_MOBILE{,_HIPRI} are not present:
95 TYPE_MOBILE is appended.
96 TYPE_MOBILE_HIPRI is appended.
97
98 For other changes applied to this list, now and in the future, see
markchien503be612020-04-12 21:41:29 +080099 com.android.networkstack.tethering.TetheringConfiguration.
markchiendcc69622020-01-12 17:13:58 +0800100
101 Note also: the order of this is important. The first upstream type
102 for which a satisfying network exists is used.
103 -->
104 <integer-array translatable="false" name="config_tether_upstream_types">
105 </integer-array>
106
107 <!-- When true, the tethering upstream network follows the current default
108 Internet network (except when the current default network is mobile,
109 in which case a DUN network will be used if required).
110
111 When true, overrides the config_tether_upstream_types setting above.
112 -->
113 <bool translatable="false" name="config_tether_upstream_automatic">true</bool>
114
115
116 <!-- If the mobile hotspot feature requires provisioning, a package name and class name
117 can be provided to launch a supported application that provisions the devices.
markchienda4519a2020-01-14 12:46:53 +0800118 EntitlementManager will send an intent to Settings with the specified package name and
markchiendcc69622020-01-12 17:13:58 +0800119 class name in extras to launch provision app.
120 TODO: note what extras here.
121
122 See EntitlementManager#runUiTetherProvisioning and
123 packages/apps/Settings/src/com/android/settings/network/TetherProvisioningActivity.java
124 for more details.
125
126 For ui-less/periodic recheck support see config_mobile_hotspot_provision_app_no_ui
127 -->
128 <!-- The first element is the package name and the second element is the class name
129 of the provisioning app -->
130 <string-array translatable="false" name="config_mobile_hotspot_provision_app">
131 <!--
132 <item>com.example.provisioning</item>
133 <item>com.example.provisioning.Activity</item>
134 -->
135 </string-array>
136
137 <!-- If the mobile hotspot feature requires provisioning, an action can be provided
138 that will be broadcast in non-ui cases for checking the provisioning status.
139 EntitlementManager will pass the specified name to Settings and Settings would
140 launch provisioning app by sending an intent with the package name.
141
142 A second broadcast, action defined by config_mobile_hotspot_provision_response,
143 will be sent back to notify if provisioning succeeded or not. The response will
144 match that of the activity in config_mobile_hotspot_provision_app, but instead
145 contained within the int extra "EntitlementResult".
146 TODO: provide the system api for "EntitlementResult" extra and note it here.
147
148 See EntitlementManager#runSilentTetherProvisioning and
149 packages/apps/Settings/src/com/android/settings/wifi/tether/TetherService.java for more
150 details.
151 -->
152 <string translatable="false" name="config_mobile_hotspot_provision_app_no_ui"></string>
153
154 <!-- Sent in response to a provisioning check. The caller must hold the
155 permission android.permission.TETHER_PRIVILEGED for Settings to
156 receive this response.
157
158 See config_mobile_hotspot_provision_response
159 -->
160 <string translatable="false" name="config_mobile_hotspot_provision_response"></string>
161
162 <!-- Number of hours between each background provisioning call -->
163 <integer translatable="false" name="config_mobile_hotspot_provision_check_period">24</integer>
164
165 <!-- ComponentName of the service used to run no ui tether provisioning. -->
166 <string translatable="false" name="config_wifi_tether_enable">com.android.settings/.wifi.tether.TetherService</string>
Automerger Merge Worker2d7bacc2020-03-09 08:54:00 +0000167
Paul Hu77fa8d62020-04-16 02:54:37 +0000168 <!-- No upstream notification is shown when there is a downstream but no upstream that is able
169 to do the tethering. -->
170 <!-- Delay(millisecond) to show no upstream notification after there's no Backhaul. Set delay to
171 "-1" for disable this feature. -->
172 <integer name="delay_to_show_no_upstream_after_no_backhaul">-1</integer>
Chalard Jeanc0fc2762020-04-17 17:12:44 +0000173
174 <!-- Cellular roaming notification is shown when upstream is cellular network and in roaming
175 state. -->
176 <!-- Config for showing upstream roaming notification. -->
177 <bool name="config_upstream_roaming_notification">false</bool>
markchien017fef22019-08-27 10:19:38 +0800178</resources>