troika: Set default hotspot ssid
authorGlen Kuhne <kuh@google.com>
Fri, 7 Apr 2017 21:54:17 +0000 (14:54 -0700)
committerNolen Johnson <johnsonnolen@gmail.com>
Fri, 11 Nov 2022 21:58:43 +0000 (22:58 +0100)
Added a device specific overlay that changes the default name
from "AndroidAp" to customized name

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf

device.mk
rro_overlays/TroikaWifiOverlay/Android.bp [new file with mode: 0644]
rro_overlays/TroikaWifiOverlay/AndroidManifest.xml [new file with mode: 0644]
rro_overlays/TroikaWifiOverlay/res/values/config.xml [new file with mode: 0644]

index 44399af69d81573a2b11861d22b2debe51a2b1ae..6aa65d85a24b19e35c4d1aa8d0a32f2f27cb4560 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -19,3 +19,7 @@ $(call inherit-product, device/motorola/exynos9610-common/common.mk)
 
 # Inherit proprietary files
 $(call inherit-product, vendor/motorola/troika/troika-vendor.mk)
+
+# Wi-Fi
+PRODUCT_PACKAGES += \
+    TroikaWifiOverlay
diff --git a/rro_overlays/TroikaWifiOverlay/Android.bp b/rro_overlays/TroikaWifiOverlay/Android.bp
new file mode 100644 (file)
index 0000000..125c95a
--- /dev/null
@@ -0,0 +1,6 @@
+runtime_resource_overlay {
+    name: "TroikaWifiOverlay",
+    theme: "TroikaWifiOverlay",
+    sdk_version: "current",
+    product_specific: true
+}
diff --git a/rro_overlays/TroikaWifiOverlay/AndroidManifest.xml b/rro_overlays/TroikaWifiOverlay/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..ac850ff
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 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.
+-->
+<!-- Troika specific wifi overlays -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.wifi.resources.troika"
+    android:versionCode="1"
+    android:versionName="1.0">
+    <application android:hasCode="false" />
+    <overlay
+      android:targetPackage="com.android.wifi.resources"
+      android:targetName="WifiCustomization"
+      android:isStatic="true"
+      android:priority="1"/>
+</manifest>
diff --git a/rro_overlays/TroikaWifiOverlay/res/values/config.xml b/rro_overlays/TroikaWifiOverlay/res/values/config.xml
new file mode 100644 (file)
index 0000000..0eb6d8e
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2019 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>
+    <!-- Default access point SSID used for tethering -->
+    <string name="wifi_tether_configure_ssid_default" translatable="false">motorola one action</string>
+</resources>