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