msm8953-common: TetheringOverlay: Disable BPF
* Such is life with 3.18 kernels. Change-Id: I1c5e3fab63271b1e3fe6c814d96edbde782f27e8
This commit is contained in:
@@ -348,6 +348,10 @@ PRODUCT_COPY_FILES += \
|
||||
$(COMMON_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
||||
$(COMMON_PATH)/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
|
||||
|
||||
# Tethering
|
||||
PRODUCT_PACKAGES += \
|
||||
TetheringConfigOverlay
|
||||
|
||||
# Sensors
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.sensors@1.0-impl \
|
||||
|
||||
7
rro_overlays/TetheringOverlay/Android.bp
Normal file
7
rro_overlays/TetheringOverlay/Android.bp
Normal file
@@ -0,0 +1,7 @@
|
||||
runtime_resource_overlay {
|
||||
name: "TetheringConfigOverlay",
|
||||
theme: "TetheringConfigOverlay",
|
||||
certificate: "platform",
|
||||
sdk_version: "current",
|
||||
product_specific: true
|
||||
}
|
||||
11
rro_overlays/TetheringOverlay/AndroidManifest.xml
Normal file
11
rro_overlays/TetheringOverlay/AndroidManifest.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.networkstack.tethering.motorola_sdm660"
|
||||
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>
|
||||
28
rro_overlays/TetheringOverlay/res/values/config.xml
Normal file
28
rro_overlays/TetheringOverlay/res/values/config.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Use the BPF offload for tethering when the kernel has support. True by default.
|
||||
If the device doesn't want to support tether BPF offload, this should be false.
|
||||
Note that this setting could be overridden by device config.
|
||||
-->
|
||||
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user