From a7fec8dbcf23cd505b462def0176050241f230e5 Mon Sep 17 00:00:00 2001 From: Weilun Du Date: Fri, 21 Aug 2020 14:45:14 -0700 Subject: sdm660-common: Add TetheringOverlay BUG: 163800715 Signed-off-by: Weilun Du Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06 --- .../frameworks/base/core/res/res/values/config.xml | 61 ---------------------- rro_overlays/TetheringOverlay/Android.bp | 7 +++ rro_overlays/TetheringOverlay/AndroidManifest.xml | 11 ++++ .../TetheringOverlay/res/values/config.xml | 46 ++++++++++++++++ sdm660.mk | 4 ++ 5 files changed, 68 insertions(+), 61 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/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 0acc747..6c69eee 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -21,46 +21,6 @@ true - - - "usb\\d" - "rndis\\d" - - - - - - 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 - - @@ -96,13 +56,6 @@ "7,1" - - - "bt-pan" - - true @@ -339,20 +292,6 @@ true - - - "wlan\\d" - - - - - "p2p\\d" - - true diff --git a/rro_overlays/TetheringOverlay/Android.bp b/rro_overlays/TetheringOverlay/Android.bp new file mode 100644 index 0000000..feaaf46 --- /dev/null +++ b/rro_overlays/TetheringOverlay/Android.bp @@ -0,0 +1,7 @@ +runtime_resource_overlay { + name: "TetheringConfigOverlay", + theme: "TetheringConfigOverlay", + certificate: "platform", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/TetheringOverlay/AndroidManifest.xml b/rro_overlays/TetheringOverlay/AndroidManifest.xml new file mode 100644 index 0000000..93d2f3f --- /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..ff885c6 --- /dev/null +++ b/rro_overlays/TetheringOverlay/res/values/config.xml @@ -0,0 +1,46 @@ + + + + + + + + 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/sdm660.mk b/sdm660.mk index e831f81..ef9fa02 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -438,6 +438,10 @@ PRODUCT_PACKAGES += \ android.hardware.sensors@1.0-impl \ android.hardware.sensors@1.0-service +# Tethering +PRODUCT_PACKAGES += \ + TetheringConfigOverlay + # Tetheroffload PRODUCT_PACKAGES += \ ipacm \ -- cgit v1.2.3