overlay: Create NCM USB tethering overlay package

Change-Id: I19f921e8fa0fb1e161d5b5980dc165684ed5ead2
This commit is contained in:
LuK1337
2024-12-25 23:42:18 +01:00
committed by Michael Bestas
parent 92164a2390
commit 12a663964e
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
//
// SPDX-FileCopyrightText: The Android Open Source Project
// SPDX-License-Identifier: Apache-2.0
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "NcmTetheringOverlay",
vendor: true,
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.networkstack.tethering.overlay.ncm">
<overlay
android:isStatic="true"
android:priority="0"
android:targetName="TetheringConfig"
android:targetPackage="com.android.networkstack.tethering" />
</manifest>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<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>
<!-- 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>