overlay: Create NCM USB tethering overlay package
Change-Id: I19f921e8fa0fb1e161d5b5980dc165684ed5ead2
This commit is contained in:
13
overlay/rro_packages/NcmTetheringOverlay/Android.bp
Normal file
13
overlay/rro_packages/NcmTetheringOverlay/Android.bp
Normal 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,
|
||||||
|
}
|
14
overlay/rro_packages/NcmTetheringOverlay/AndroidManifest.xml
Normal file
14
overlay/rro_packages/NcmTetheringOverlay/AndroidManifest.xml
Normal 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>
|
@@ -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>
|
Reference in New Issue
Block a user