From 198ad8eeae30f82e6abed6a12cc9deebd4c97bb3 Mon Sep 17 00:00:00 2001 From: Weilun Du Date: Sun, 17 Oct 2021 15:44:17 +0200 Subject: [PATCH] sm7125: 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 | 1 + .../base/core/res/res/values/config.xml | 48 ------------- rro_overlays/TetheringOverlay/Android.bp | 22 ++++++ .../TetheringOverlay/AndroidManifest.xml | 11 +++ .../TetheringOverlay/res/values/config.xml | 68 +++++++++++++++++++ 5 files changed, 102 insertions(+), 48 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 f1dc4bb..62a7ba2 100644 --- a/common.mk +++ b/common.mk @@ -298,6 +298,7 @@ PRODUCT_PACKAGES += \ libwifi-hal-qcom \ libwpa_client \ WifiOverlay \ + TetheringConfigOverlay \ wpa_cli \ wpa_supplicant \ wpa_supplicant.conf diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index af9b23e..350ee74 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -98,54 +98,6 @@ evdo:4094,87380,524288,4096,16384,262144 - - - 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 - - - - - 0 - 1 - 5 - 7 - - - - - usb\\d - rndis\\d - - 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..4753dc0 --- /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..dc1dd6e --- /dev/null +++ b/rro_overlays/TetheringOverlay/res/values/config.xml @@ -0,0 +1,68 @@ + + + + + + + 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 + + + + + 0 + 1 + 5 + 7 + + + + + usb\\d + rndis\\d + +