blob: ca290c637773ac2b4a30b1e19300d701727f0514 [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
32 Wifi interfaces. If the device doesn't want to support tethering over Wifi this
33 should be empty. An example would be "softap.*" -->
34 <string-array translatable="false" name="config_tether_wifi_regexs">
35 <item>"wlan\\d"</item>
36 <item>"softap\\d"</item>
37 </string-array>
38
39 <!-- List of regexpressions describing the interface (if any) that represent tetherable
40 Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
41 should be empty. An example would be "p2p-p2p.*" -->
42 <string-array translatable="false" name="config_tether_wifi_p2p_regexs">
43 </string-array>
44
45 <!-- List of regexpressions describing the interface (if any) that represent tetherable
46 bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
47 should be empty. -->
48 <string-array translatable="false" name="config_tether_bluetooth_regexs">
49 <item>"bt-pan"</item>
50 </string-array>
51
markchien9a0b95d2020-01-13 16:09:42 +080052 <!-- Use the old dnsmasq DHCP server for tethering instead of the framework implementation. -->
53 <bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
54
markchien6fbbdff2020-01-12 17:13:58 +080055 <!-- Dhcp range (min, max) to use for tethering purposes -->
56 <string-array translatable="false" name="config_tether_dhcp_range">
57 </string-array>
58
59 <!-- Array of ConnectivityManager.TYPE_{BLUETOOTH, ETHERNET, MOBILE, MOBILE_DUN, MOBILE_HIPRI,
60 WIFI} values allowable for tethering.
61
62 Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
63 [1,7,0] for TYPE_WIFI, TYPE_BLUETOOTH, and TYPE_MOBILE.
64
65 This list is also modified by code within the framework, including:
66
67 - TYPE_ETHERNET (9) is prepended to this list, and
68
69 - the return value of TelephonyManager.isTetheringApnRequired()
70 determines how the array is further modified:
71
72 * TRUE (DUN REQUIRED).
73 TYPE_MOBILE is removed (if present).
74 TYPE_MOBILE_HIPRI is removed (if present).
75 TYPE_MOBILE_DUN is appended (if not already present).
76
77 * FALSE (DUN NOT REQUIRED).
78 TYPE_MOBILE_DUN is removed (if present).
79 If both of TYPE_MOBILE{,_HIPRI} are not present:
80 TYPE_MOBILE is appended.
81 TYPE_MOBILE_HIPRI is appended.
82
83 For other changes applied to this list, now and in the future, see
84 com.android.server.connectivity.tethering.TetheringConfiguration.
85
86 Note also: the order of this is important. The first upstream type
87 for which a satisfying network exists is used.
88 -->
89 <integer-array translatable="false" name="config_tether_upstream_types">
90 </integer-array>
91
92 <!-- When true, the tethering upstream network follows the current default
93 Internet network (except when the current default network is mobile,
94 in which case a DUN network will be used if required).
95
96 When true, overrides the config_tether_upstream_types setting above.
97 -->
98 <bool translatable="false" name="config_tether_upstream_automatic">true</bool>
99
100
101 <!-- If the mobile hotspot feature requires provisioning, a package name and class name
102 can be provided to launch a supported application that provisions the devices.
103 EntitlementManager will send an inent to Settings with the specified package name and
104 class name in extras to launch provision app.
105 TODO: note what extras here.
106
107 See EntitlementManager#runUiTetherProvisioning and
108 packages/apps/Settings/src/com/android/settings/network/TetherProvisioningActivity.java
109 for more details.
110
111 For ui-less/periodic recheck support see config_mobile_hotspot_provision_app_no_ui
112 -->
113 <!-- The first element is the package name and the second element is the class name
114 of the provisioning app -->
115 <string-array translatable="false" name="config_mobile_hotspot_provision_app">
116 <!--
117 <item>com.example.provisioning</item>
118 <item>com.example.provisioning.Activity</item>
119 -->
120 </string-array>
121
122 <!-- If the mobile hotspot feature requires provisioning, an action can be provided
123 that will be broadcast in non-ui cases for checking the provisioning status.
124 EntitlementManager will pass the specified name to Settings and Settings would
125 launch provisioning app by sending an intent with the package name.
126
127 A second broadcast, action defined by config_mobile_hotspot_provision_response,
128 will be sent back to notify if provisioning succeeded or not. The response will
129 match that of the activity in config_mobile_hotspot_provision_app, but instead
130 contained within the int extra "EntitlementResult".
131 TODO: provide the system api for "EntitlementResult" extra and note it here.
132
133 See EntitlementManager#runSilentTetherProvisioning and
134 packages/apps/Settings/src/com/android/settings/wifi/tether/TetherService.java for more
135 details.
136 -->
137 <string translatable="false" name="config_mobile_hotspot_provision_app_no_ui"></string>
138
139 <!-- Sent in response to a provisioning check. The caller must hold the
140 permission android.permission.TETHER_PRIVILEGED for Settings to
141 receive this response.
142
143 See config_mobile_hotspot_provision_response
144 -->
145 <string translatable="false" name="config_mobile_hotspot_provision_response"></string>
146
147 <!-- Number of hours between each background provisioning call -->
148 <integer translatable="false" name="config_mobile_hotspot_provision_check_period">24</integer>
149
150 <!-- ComponentName of the service used to run no ui tether provisioning. -->
151 <string translatable="false" name="config_wifi_tether_enable">com.android.settings/.wifi.tether.TetherService</string>
markchien932da862019-08-27 10:19:38 +0800152</resources>