From 8ef62933116ba6c5086915d925508dd33f75fc82 Mon Sep 17 00:00:00 2001 From: Weilun Du Date: Fri, 21 Aug 2020 14:45:14 -0700 Subject: [PATCH] sm6250-common: Add Tethering Config Tethering package is APEX and we need to create a RRO to overwrite the values for config_tether_wifi_regexs and config_tether_wifi_p2p_regexs. BUG: 163800715 Signed-off-by: Weilun Du Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06 --- common.mk | 4 + .../base/core/res/res/values/config.xml | 56 -------------- rro_overlays/TetheringOverlay/Android.bp | 22 ++++++ .../TetheringOverlay/AndroidManifest.xml | 11 +++ .../TetheringOverlay/res/values/config.xml | 76 +++++++++++++++++++ 5 files changed, 113 insertions(+), 56 deletions(-) create mode 100644 rro_overlays/TetheringOverlay/Android.bp create mode 100644 rro_overlays/TetheringOverlay/AndroidManifest.xml create mode 100644 rro_overlays/TetheringOverlay/res/values/config.xml diff --git a/common.mk b/common.mk index 09c259c..46e0e76 100644 --- a/common.mk +++ b/common.mk @@ -339,6 +339,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \ frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml +# Tethering +PRODUCT_PACKAGES += \ + TetheringConfigOverlay + # TextClassifier PRODUCT_PACKAGES += \ textclassifier.bundle1 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index cfe806e..1fd56f2 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -30,62 +30,6 @@ http://www.google.com/oha/rdf/ua-profile-kila.xml - - - "usb\\d" - "rndis\\d" - - - - - "softap0" - "wlan0" - - - - - "bnep\\d" - "bt-pan" - - - - - - 192.168.42.2 - 192.168.42.254 - 192.168.43.2 - 192.168.43.254 - 192.168.44.2 - 192.168.44.254 - 192.168.45.2 - 192.168.45.254 - 192.168.46.2 - 192.168.46.254 - 192.168.47.2 - 192.168.47.254 - 192.168.48.2 - 192.168.48.254 - 192.168.49.2 - 192.168.49.254 - 192.168.50.2 - 192.168.50.254 - 192.168.51.2 - 192.168.51.254 - - diff --git a/rro_overlays/TetheringOverlay/Android.bp b/rro_overlays/TetheringOverlay/Android.bp new file mode 100644 index 0000000..17796ee --- /dev/null +++ b/rro_overlays/TetheringOverlay/Android.bp @@ -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"], + product_specific: true, + sdk_version: "current", +} diff --git a/rro_overlays/TetheringOverlay/AndroidManifest.xml b/rro_overlays/TetheringOverlay/AndroidManifest.xml new file mode 100644 index 0000000..2b220b6 --- /dev/null +++ b/rro_overlays/TetheringOverlay/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + diff --git a/rro_overlays/TetheringOverlay/res/values/config.xml b/rro_overlays/TetheringOverlay/res/values/config.xml new file mode 100644 index 0000000..a04a22d --- /dev/null +++ b/rro_overlays/TetheringOverlay/res/values/config.xml @@ -0,0 +1,76 @@ + + + + + + + "usb\\d" + "rndis\\d" + + + + + "softap0" + "wlan0" + + + + + "bnep\\d" + "bt-pan" + + + + + + 192.168.42.2 + 192.168.42.254 + 192.168.43.2 + 192.168.43.254 + 192.168.44.2 + 192.168.44.254 + 192.168.45.2 + 192.168.45.254 + 192.168.46.2 + 192.168.46.254 + 192.168.47.2 + 192.168.47.254 + 192.168.48.2 + 192.168.48.254 + 192.168.49.2 + 192.168.49.254 + 192.168.50.2 + 192.168.50.254 + 192.168.51.2 + 192.168.51.254 + +