universal7885: Add TetheringOverlay

BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
Weilun Du 2020-08-21 14:45:14 -07:00 committed by roynatech2544
commit 39d0711c3c
4 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,22 @@
//
// Copyright (C) 2020 The Android Open-Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
runtime_resource_overlay {
name: "TetheringConfigOverlay",
resource_dirs: ["res"],
sdk_version: "current",
product_specific: true
}

View file

@ -0,0 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.networkstack.tethering.samsung_universal8890"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.networkstack.tethering"
android:targetName="TetheringConfig"
android:isStatic="true"
android:priority="0"/>
</manifest>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"rndis\\d"</item>

View file

@ -73,6 +73,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
lineage.touch@1.0-service.samsung
# Wifi
PRODUCT_PACKAGES += \
TetheringConfigOverlay
# VNDK
PRODUCT_EXTRA_VNDK_VERSIONS := 29