diff options
author | Weilun Du <wdu@google.com> | 2020-08-21 14:45:14 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-12-20 18:55:01 +0200 |
commit | a7fec8dbcf23cd505b462def0176050241f230e5 (patch) | |
tree | c8193b5ae71dc549e11b3409ae7dc57ecf582095 /rro_overlays | |
parent | 7686192ffce3952dcb24e044079c61ed60ff9c23 (diff) |
sdm660-common: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
Diffstat (limited to 'rro_overlays')
-rw-r--r-- | rro_overlays/TetheringOverlay/Android.bp | 7 | ||||
-rw-r--r-- | rro_overlays/TetheringOverlay/AndroidManifest.xml | 11 | ||||
-rw-r--r-- | rro_overlays/TetheringOverlay/res/values/config.xml | 46 |
3 files changed, 64 insertions, 0 deletions
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 @@ +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.networkstack.tethering.xiaomi_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> 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 @@ +<?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"> + + <!-- Dhcp range (min, max) to use for tethering purposes --> + <string-array translatable="false" name="config_tether_dhcp_range"> + <item>192.168.42.2</item> + <item>192.168.42.254</item> + <item>192.168.43.2</item> + <item>192.168.43.254</item> + <item>192.168.44.2</item> + <item>192.168.44.254</item> + <item>192.168.45.2</item> + <item>192.168.45.254</item> + <item>192.168.46.2</item> + <item>192.168.46.254</item> + <item>192.168.47.2</item> + <item>192.168.47.254</item> + <item>192.168.48.2</item> + <item>192.168.48.254</item> + <item>192.168.49.2</item> + <item>192.168.49.254</item> + <item>192.168.50.2</item> + <item>192.168.50.254</item> + <item>192.168.51.2</item> + <item>192.168.51.254</item> + </string-array> + +</resources> |