g12: Add WifiOverlay
authorRoshan Pius <rpius@google.com>
Fri, 24 Apr 2020 21:33:28 +0000 (14:33 -0700)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 21:19:04 +0000 (17:19 -0400)
* This is the only overlay that doesn't match default values.

Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5

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

diff --git a/g12.mk b/g12.mk
index 12e984649b7ff33a19a13d28a82df8af2e5c05d8..2478a5192adb5b2d0c731aff9121bced9c769f50 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -200,5 +200,6 @@ PRODUCT_PACKAGES += \
     android.hardware.wifi@1.0-service \
     hostapd \
     libwpa_client \
+    WifiOverlay \
     wpa_supplicant \
     wpa_supplicant.conf
diff --git a/rro_overlays/WifiOverlay/Android.bp b/rro_overlays/WifiOverlay/Android.bp
new file mode 100644 (file)
index 0000000..5d02c82
--- /dev/null
@@ -0,0 +1,12 @@
+//
+// Copyright (C) 2021 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+runtime_resource_overlay {
+    name: "WifiOverlay",
+    theme: "WifiOverlay",
+    certificate: "platform",
+    sdk_version: "current",
+    product_specific: true
+}
diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/rro_overlays/WifiOverlay/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..12d7074
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright (C) 2021 The LineageOS Project
+**
+** SPDX-License-Identifier: Apache-2.0
+**
+*/
+-->
+<!-- Device specific wifi overlays -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.wifi.resources.g12"
+    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="0"/>
+</manifest>
diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml
new file mode 100644 (file)
index 0000000..9ae967e
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright (C) 2021 The LineageOS Project
+**
+** SPDX-License-Identifier: Apache-2.0
+**
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <bool name="config_wifi_connected_mac_randomization_supported">true</bool>
+</resources>