zumapro: overlay: Provide tethering configuration
Matches PixelTetheringOverlay2021. Change-Id: I90ef9cd9c89b1bfacf5680cb1e42bb61ad275393
This commit is contained in:
parent
23bb1a376d
commit
70e3767955
4 changed files with 86 additions and 0 deletions
|
@ -30,5 +30,9 @@ PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS += \
|
|||
PRODUCT_PACKAGES += \
|
||||
GoogleParts
|
||||
|
||||
# Tethering
|
||||
PRODUCT_PACKAGES += \
|
||||
TetheringOverlay
|
||||
|
||||
# Touch
|
||||
include hardware/google/pixel/touch/device.mk
|
||||
|
|
9
rro_overlays/TetheringOverlay/Android.bp
Normal file
9
rro_overlays/TetheringOverlay/Android.bp
Normal file
|
@ -0,0 +1,9 @@
|
|||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "TetheringOverlay",
|
||||
sdk_version: "current",
|
||||
product_specific: true
|
||||
}
|
27
rro_overlays/TetheringOverlay/AndroidManifest.xml
Normal file
27
rro_overlays/TetheringOverlay/AndroidManifest.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
<!-- Pixel specific tethering overlays -->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.networkstack.tethering.overlay"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="com.android.networkstack.tethering"
|
||||
android:targetName="TetheringConfig"
|
||||
android:isStatic="true"
|
||||
android:priority="0" />
|
||||
</manifest>
|
46
rro_overlays/TetheringOverlay/res/values/config.xml
Normal file
46
rro_overlays/TetheringOverlay/res/values/config.xml
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (C) 2021 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>
|
||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||
USB interfaces. If the device doesn't want to support tethering over USB this should
|
||||
be empty. An example would be "usb.*" -->
|
||||
<string-array translatable="false" name="config_tether_usb_regexs">
|
||||
<item>rndis\\d</item>
|
||||
</string-array>
|
||||
|
||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||
NCM interfaces. If the device doesn't want to support tethering over NCM this should
|
||||
be empty. -->
|
||||
<string-array translatable="false" name="config_tether_ncm_regexs">
|
||||
<item>ncm\\d</item>
|
||||
</string-array>
|
||||
|
||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||
Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
|
||||
should be empty. An example would be "p2p-p2p\\d-.*" -->
|
||||
<string-array translatable="false" name="config_tether_wifi_p2p_regexs">
|
||||
<item>p2p-p2p\\d-.*</item>
|
||||
<item>p2p\\d</item>
|
||||
<item>p2p-wlan\\d-.*</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Which USB function should be enabled when TETHERING_USB is requested. 0: RNDIS, 1: NCM.
|
||||
-->
|
||||
<integer translatable="false" name="config_tether_usb_functions">1</integer>
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue