From c57d49aa889527f985fe02b869d5ed41a1e8c726 Mon Sep 17 00:00:00 2001
From: Ahmad Rulim <personal@rulim34.dev>
Date: Sat, 31 Dec 2022 22:16:00 +0700
Subject: veux: overlay: Set default hotspot SSID based on ro.boot.board_id

Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
---
 rro_overlays/WifiOverlayS88006AA1/Android.bp       |  5 ++++
 .../WifiOverlayS88006AA1/AndroidManifest.xml       | 27 +++++++++++++++++++++
 .../WifiOverlayS88006AA1/res/values/config.xml     | 28 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 rro_overlays/WifiOverlayS88006AA1/Android.bp
 create mode 100644 rro_overlays/WifiOverlayS88006AA1/AndroidManifest.xml
 create mode 100644 rro_overlays/WifiOverlayS88006AA1/res/values/config.xml

(limited to 'rro_overlays/WifiOverlayS88006AA1')

diff --git a/rro_overlays/WifiOverlayS88006AA1/Android.bp b/rro_overlays/WifiOverlayS88006AA1/Android.bp
new file mode 100644
index 0000000..e3b7e10
--- /dev/null
+++ b/rro_overlays/WifiOverlayS88006AA1/Android.bp
@@ -0,0 +1,5 @@
+runtime_resource_overlay {
+    name: "WifiOverlayS88006AA1",
+    sdk_version: "current",
+    product_specific: true
+}
diff --git a/rro_overlays/WifiOverlayS88006AA1/AndroidManifest.xml b/rro_overlays/WifiOverlayS88006AA1/AndroidManifest.xml
new file mode 100644
index 0000000..0781f83
--- /dev/null
+++ b/rro_overlays/WifiOverlayS88006AA1/AndroidManifest.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    coreApp="true"
+    package="com.android.wifi.resources.overlay.S88006AA1"
+    android:versionCode="1"
+    android:versionName="1.0">
+
+    <application android:hasCode="false" />
+    <overlay android:targetPackage="com.android.wifi.resources"
+        android:targetName="WifiCustomization"
+        android:requiredSystemPropertyName="ro.boot.board_id"
+        android:requiredSystemPropertyValue="S88006AA1"
+        android:isStatic="true"
+        android:priority="0"/>
+</manifest>
diff --git a/rro_overlays/WifiOverlayS88006AA1/res/values/config.xml b/rro_overlays/WifiOverlayS88006AA1/res/values/config.xml
new file mode 100644
index 0000000..a6168ff
--- /dev/null
+++ b/rro_overlays/WifiOverlayS88006AA1/res/values/config.xml
@@ -0,0 +1,28 @@
+<?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.
+-->
+
+<!-- These resources are around just to allow their values to be customized
+     for different hardware and product builds.  Do not translate.
+
+     NOTE: The naming convention is "config_camelCaseValue". Some legacy
+     entries do not follow the convention, but all new entries should. -->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+    <!-- Default access point SSID used for tethering -->
+    <string name="wifi_tether_configure_ssid_default" translatable="false">Redmi Note 11 Pro 5G</string>
+
+</resources>
-- 
cgit v1.2.3