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