The tether bpf offload can be enabled by resource config and
device config. The device config has higher priority and it
could override this config which is set by resource config.
Bug: 149997301
Test: -build, flash, boot
-atest TetheringConfigurationTest
Change-Id: I9c26852d2c926786e141ece6da53df3801c049b2
45 lines
2.5 KiB
XML
45 lines
2.5 KiB
XML
<?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"/>
|
|
<!-- Use the BPF offload for tethering when the kernel has support. True by default.
|
|
If the device doesn't want to support tether BPF offload, this should be false.
|
|
Note that this setting could be override by device config.
|
|
-->
|
|
<item type="bool" name="config_tether_enable_bpf_offload"/>
|
|
<item type="bool" name="config_tether_enable_legacy_dhcp_server"/>
|
|
<item type="integer" name="config_tether_offload_poll_interval"/>
|
|
<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"/>
|
|
<!-- Params from config.xml that can be overlaid -->
|
|
</policy>
|
|
</overlayable>
|
|
</resources>
|