Browse Source

sm8450-common: overlay: Add WifiResTarget_cape

Change-Id: Ia83c6747afb58dd1606d5c441fda20b8994b501f
Arian 1 year ago
parent
commit
3e6614bdad

+ 1 - 0
common.mk

@@ -350,6 +350,7 @@ PRODUCT_PACKAGES += \
     SettingsProviderResXiaomi \
     SettingsResXiaomi \
     WifiResTarget \
+    WifiResTarget_cape \
     WifiResTarget_spf
 
 # Partitions

+ 10 - 0
overlay/WifiResTarget_cape/Android.bp

@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2024 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+    name: "WifiResTarget_cape",
+    vendor: true,
+}

+ 13 - 0
overlay/WifiResTarget_cape/AndroidManifest.xml

@@ -0,0 +1,13 @@
+<!--
+     Copyright (C) 2024 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.wifi.resources.overlay.target">
+    <overlay android:targetPackage="com.android.wifi.resources"
+                   android:targetName="WifiCustomization"
+                   android:isStatic="true"
+                   android:priority="500"
+                   android:requiredSystemPropertyName="ro.boot.product.vendor.sku"
+                   android:requiredSystemPropertyValue="cape"/>
+</manifest>

+ 21 - 0
overlay/WifiResTarget_cape/res/values/config.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2024 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- Indicates that bridged AP mode is supported on this device -->
+    <bool name="config_wifiBridgedSoftApSupported" translatable="false">false</bool>
+
+    <!-- Enable Make-Before-Break Wifi network switching.
+         Note: this is conditional on the device supporting dual concurrent STAs. -->
+    <bool name="config_wifiMultiStaNetworkSwitchingMakeBeforeBreakEnabled" translatable="false">false</bool>
+
+    <!-- Enable concurrent peer to peer + internet connectivity
+         Note: this is conditional on the device supporting dual concurrent STAs. -->
+    <bool name="config_wifiMultiStaLocalOnlyConcurrencyEnabled" translatable="false">false</bool>
+
+    <!-- Enable concurrent restricted connectivity + internet connectivity
+         Note: this is conditional on the device supporting dual concurrent STAs. -->
+    <bool name="config_wifiMultiStaRestrictedConcurrencyEnabled" translatable="false">false</bool>
+</resources>