blob: aed5ab8df6af1740ea7b975a2cd43446e6b5ad47 [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
46 Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
47 should be empty. An example would be "p2p-p2p.*" -->
48 <string-array translatable="false" name="config_tether_wifi_p2p_regexs">
49 </string-array>
50
51 <!-- List of regexpressions describing the interface (if any) that represent tetherable
52 bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
53 should be empty. -->
54 <string-array translatable="false" name="config_tether_bluetooth_regexs">
55 <item>"bt-pan"</item>
56 </string-array>
57
markchien9a0b95d2020-01-13 16:09:42 +080058 <!-- Use the old dnsmasq DHCP server for tethering instead of the framework implementation. -->
59 <bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
60
markchien6fbbdff2020-01-12 17:13:58 +080061 <!-- Dhcp range (min, max) to use for tethering purposes -->
62 <string-array translatable="false" name="config_tether_dhcp_range">
63 </string-array>
64
65 <!-- Array of ConnectivityManager.TYPE_{BLUETOOTH, ETHERNET, MOBILE, MOBILE_DUN, MOBILE_HIPRI,
66 WIFI} values allowable for tethering.
67
68 Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
69 [1,7,0] for TYPE_WIFI, TYPE_BLUETOOTH, and TYPE_MOBILE.
70
71 This list is also modified by code within the framework, including:
72
73 - TYPE_ETHERNET (9) is prepended to this list, and
74
75 - the return value of TelephonyManager.isTetheringApnRequired()
76 determines how the array is further modified:
77
78 * TRUE (DUN REQUIRED).
79 TYPE_MOBILE is removed (if present).
80 TYPE_MOBILE_HIPRI is removed (if present).
81 TYPE_MOBILE_DUN is appended (if not already present).
82
83 * FALSE (DUN NOT REQUIRED).
84 TYPE_MOBILE_DUN is removed (if present).
85 If both of TYPE_MOBILE{,_HIPRI} are not present:
86 TYPE_MOBILE is appended.
87 TYPE_MOBILE_HIPRI is appended.
88
89 For other changes applied to this list, now and in the future, see
markchiend9955662020-04-12 21:41:29 +080090 com.android.networkstack.tethering.TetheringConfiguration.
markchien6fbbdff2020-01-12 17:13:58 +080091
92 Note also: the order of this is important. The first upstream type
93 for which a satisfying network exists is used.
94 -->
95 <integer-array translatable="false" name="config_tether_upstream_types">
96 </integer-array>
97
98 <!-- When true, the tethering upstream network follows the current default
99 Internet network (except when the current default network is mobile,
100 in which case a DUN network will be used if required).
101
102 When true, overrides the config_tether_upstream_types setting above.
103 -->
104 <bool translatable="false" name="config_tether_upstream_automatic">true</bool>
105
106
107 <!-- If the mobile hotspot feature requires provisioning, a package name and class name
108 can be provided to launch a supported application that provisions the devices.
markchien873c64a2020-01-14 12:46:53 +0800109 EntitlementManager will send an intent to Settings with the specified package name and
markchien6fbbdff2020-01-12 17:13:58 +0800110 class name in extras to launch provision app.
111 TODO: note what extras here.
112
113 See EntitlementManager#runUiTetherProvisioning and
114 packages/apps/Settings/src/com/android/settings/network/TetherProvisioningActivity.java
115 for more details.
116
117 For ui-less/periodic recheck support see config_mobile_hotspot_provision_app_no_ui
118 -->
119 <!-- The first element is the package name and the second element is the class name
120 of the provisioning app -->
121 <string-array translatable="false" name="config_mobile_hotspot_provision_app">
122 <!--
123 <item>com.example.provisioning</item>
124 <item>com.example.provisioning.Activity</item>
125 -->
126 </string-array>
127
128 <!-- If the mobile hotspot feature requires provisioning, an action can be provided
129 that will be broadcast in non-ui cases for checking the provisioning status.
130 EntitlementManager will pass the specified name to Settings and Settings would
131 launch provisioning app by sending an intent with the package name.
132
133 A second broadcast, action defined by config_mobile_hotspot_provision_response,
134 will be sent back to notify if provisioning succeeded or not. The response will
135 match that of the activity in config_mobile_hotspot_provision_app, but instead
136 contained within the int extra "EntitlementResult".
137 TODO: provide the system api for "EntitlementResult" extra and note it here.
138
139 See EntitlementManager#runSilentTetherProvisioning and
140 packages/apps/Settings/src/com/android/settings/wifi/tether/TetherService.java for more
141 details.
142 -->
143 <string translatable="false" name="config_mobile_hotspot_provision_app_no_ui"></string>
144
145 <!-- Sent in response to a provisioning check. The caller must hold the
146 permission android.permission.TETHER_PRIVILEGED for Settings to
147 receive this response.
148
149 See config_mobile_hotspot_provision_response
150 -->
151 <string translatable="false" name="config_mobile_hotspot_provision_response"></string>
152
153 <!-- Number of hours between each background provisioning call -->
154 <integer translatable="false" name="config_mobile_hotspot_provision_check_period">24</integer>
155
156 <!-- ComponentName of the service used to run no ui tether provisioning. -->
157 <string translatable="false" name="config_wifi_tether_enable">com.android.settings/.wifi.tether.TetherService</string>
paulhu08294f92020-01-16 19:35:46 +0800158
159 <!-- Enable tethering notification -->
160 <!-- Icons for showing tether enable notification.
161 Each item should have two elements and be separated with ";".
162
163 The first element is downstream types which is one of tethering. This element has to be
164 made by WIFI, USB, BT, and OR'd with the others. Use "|" to combine multiple downstream
165 types and use "," to separate each combinations. Such as
166
167 USB|BT,WIFI|USB|BT
168
169 The second element is icon for the item. This element has to be composed by
170 <package name>:drawable/<resource name>. Such as
171
172 1. com.android.networkstack.tethering:drawable/stat_sys_tether_general
173 2. android:drawable/xxx
174
175 So the entire string of each item would be
176
177 USB|BT,WIFI|USB|BT;com.android.networkstack.tethering:drawable/stat_sys_tether_general
178
179 NOTE: One config can be separated into two or more for readability. Such as
180
181 WIFI|USB,WIFI|BT,USB|BT,WIFI|USB|BT;android:drawable/xxx
182
183 can be separated into
184
185 WIFI|USB;android:drawable/xxx
186 WIFI|BT;android:drawable/xxx
187 USB|BT;android:drawable/xxx
188 WIFI|USB|BT;android:drawable/xxx
189
190 Notification will not show if the downstream type isn't listed in array.
191 Empty array means disable notifications. -->
192 <!-- In AOSP, hotspot is configured to no notification by default. Because status bar has showed
193 an icon on the right side already -->
194 <string-array translatable="false" name="tethering_notification_icons">
195 <item>USB;com.android.networkstack.tethering:drawable/stat_sys_tether_usb</item>
196 <item>BT;com.android.networkstack.tethering:drawable/stat_sys_tether_bluetooth</item>
197 <item>WIFI|USB,WIFI|BT,USB|BT,WIFI|USB|BT;com.android.networkstack.tethering:drawable/stat_sys_tether_general</item>
198 </string-array>
199 <!-- String for tether enable notification title. -->
200 <string name="tethering_notification_title">@string/tethered_notification_title</string>
201 <!-- String for tether enable notification message. -->
202 <string name="tethering_notification_message">@string/tethered_notification_message</string>
paulhu648fc2c2020-03-24 21:09:51 +0800203
204 <!-- No upstream notification is shown when there is a downstream but no upstream that is able
205 to do the tethering. -->
206 <!-- Delay(millisecond) to show no upstream notification after there's no Backhaul. Set delay to
207 "-1" for disable this feature. -->
208 <integer name="delay_to_show_no_upstream_after_no_backhaul">-1</integer>
paulhu1f662612020-03-26 15:29:53 +0800209
210 <!-- Cellular roaming notification is shown when upstream is cellular network and in roaming
211 state. -->
212 <!-- Config for showing upstream roaming notification. -->
213 <bool name="config_upstream_roaming_notification">false</bool>
markchien932da862019-08-27 10:19:38 +0800214</resources>