tethering bpf offloading toggle, swlan0 tethering device
This commit is contained in:
parent
37ce584b9d
commit
22aac7c0bc
8
Tethering-nobpf/Android.mk
Normal file
8
Tethering-nobpf/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-tethering-nobpf
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
12
Tethering-nobpf/AndroidManifest.xml
Normal file
12
Tethering-nobpf/AndroidManifest.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.tethering.nobpf"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay
|
||||
android:priority="10"
|
||||
android:requiredSystemPropertyName="persist.sys.phh.tethering.nobpf"
|
||||
android:requiredSystemPropertyValue="1"
|
||||
android:targetPackage="com.android.networkstack.tethering"
|
||||
android:targetName="TetheringConfig"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
4
Tethering-nobpf/res/values/config.xml
Normal file
4
Tethering-nobpf/res/values/config.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
|
||||
</resources>
|
|
@ -4,6 +4,7 @@
|
|||
<item>"wlan\\d"</item>
|
||||
<item>"softap\\d"</item>
|
||||
<item>"ap\\d"</item>
|
||||
<item>"swlan0"</item>
|
||||
</string-array>
|
||||
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||
<item>"bt-pan"</item>
|
||||
|
|
|
@ -203,6 +203,7 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-teracube-2e \
|
||||
treble-overlay-teracube-v7101o \
|
||||
treble-overlay-tethering \
|
||||
treble-overlay-tethering-nobpf \
|
||||
treble-overlay-umidigi-A3S \
|
||||
treble-overlay-umidigi-power \
|
||||
treble-overlay-unihertz-jelly2 \
|
||||
|
|
Loading…
Reference in a new issue