| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2020 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <resources xmlns:android="http://schemas.android.com/apk/res/android"> |
| <overlayable name="TetheringConfig"> |
| <policy type="product|system|vendor"> |
| <!-- Params from config.xml that can be overlaid --> |
| <item type="array" name="config_tether_usb_regexs"/> |
| <item type="array" name="config_tether_ncm_regexs" /> |
| <item type="array" name="config_tether_wifi_regexs"/> |
| <item type="array" name="config_tether_wifi_p2p_regexs"/> |
| <item type="array" name="config_tether_bluetooth_regexs"/> |
| <item type="array" name="config_tether_dhcp_range"/> |
| <item type="bool" name="config_tether_enable_legacy_dhcp_server"/> |
| <item type="array" name="config_tether_upstream_types"/> |
| <item type="bool" name="config_tether_upstream_automatic"/> |
| <!-- Configuration values for tethering entitlement check --> |
| <item type="array" name="config_mobile_hotspot_provision_app"/> |
| <item type="string" name="config_mobile_hotspot_provision_app_no_ui"/> |
| <item type="string" name="config_mobile_hotspot_provision_response"/> |
| <item type="integer" name="config_mobile_hotspot_provision_check_period"/> |
| <item type="string" name="config_wifi_tether_enable"/> |
| <!-- Configuration values for TetheringNotificationUpdater --> |
| <!-- Icons for showing tether enable notification. |
| Each item should have two elements and be separated with ";". |
| |
| The first element is downstream types which is one of tethering. This element has to be |
| made by WIFI, USB, BT, and OR'd with the others. Use "|" to combine multiple downstream |
| types and use "," to separate each combinations. Such as |
| |
| USB|BT,WIFI|USB|BT |
| |
| The second element is icon for the item. This element has to be composed by |
| <package name>:drawable/<resource name>. Such as |
| |
| 1. com.android.networkstack.tethering:drawable/stat_sys_tether_general |
| 2. android:drawable/xxx |
| |
| So the entire string of each item would be |
| |
| USB|BT,WIFI|USB|BT;com.android.networkstack.tethering:drawable/stat_sys_tether_general |
| |
| NOTE: One config can be separated into two or more for readability. Such as |
| |
| WIFI|USB,WIFI|BT,USB|BT,WIFI|USB|BT;android:drawable/xxx |
| |
| can be separated into |
| |
| WIFI|USB;android:drawable/xxx |
| WIFI|BT;android:drawable/xxx |
| USB|BT;android:drawable/xxx |
| WIFI|USB|BT;android:drawable/xxx |
| |
| Notification will not show if the downstream type isn't listed in array. |
| Empty array means disable notifications. --> |
| <item type="array" name="tethering_notification_icons"/> |
| <!-- String for tether enable notification title. --> |
| <item type="string" name="tethering_notification_title"/> |
| <!-- String for tether enable notification message. --> |
| <item type="string" name="tethering_notification_message"/> |
| <!-- Params from config.xml that can be overlaid --> |
| </policy> |
| </overlayable> |
| </resources> |