Override tethering parameters to fix mediatek tethering

This commit is contained in:
Pierre-Hugues Husson 2020-12-13 01:39:29 +01:00
parent 742d4fb3d2
commit 187c99e9c2
4 changed files with 32 additions and 0 deletions

8
Tethering/Android.mk Normal file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-tethering
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View File

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.tethering"
android:versionCode="1"
android:versionName="1.0">
<overlay
android:priority="10"
android:targetPackage="com.android.networkstack.tethering"
android:targetName="TetheringConfig"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_tether_wifi_regexs">
<item>"wlan\\d"</item>
<item>"softap\\d"</item>
<item>"ap\\d"</item>
</string-array>
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bt-pan"</item>
<item>"bt-dun"</item>
</string-array>
<bool translatable="false" name="config_tether_enable_legacy_dhcp_server">false</bool>
</resources>

View File

@ -114,6 +114,7 @@ PRODUCT_PACKAGES += \
treble-overlay-telephony-caf-ims \
treble-overlay-telephony-mtk-ims \
treble-overlay-telephony-slsi-ims \
treble-overlay-tethering \
treble-overlay-umidigi-power \
treble-overlay-vsmart-live \
treble-overlay-webview \