Skip to content

Commit

Permalink
tethering bpf offloading toggle, swlan0 tethering device
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Jun 14, 2022
1 parent 37ce584 commit 22aac7c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tethering-nobpf/Android.mk
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions Tethering-nobpf/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions Tethering-nobpf/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
</resources>
1 change: 1 addition & 0 deletions Tethering/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 22aac7c

Please sign in to comment.