sm6225-common: Import overlays from stock
Change-Id: I243f2508f93560df5224e613db9d9ad11358c0bc
diff --git a/overlay/WifiResCommon/Android.bp b/overlay/WifiResCommon/Android.bp
new file mode 100644
index 0000000..fa80c67
--- /dev/null
+++ b/overlay/WifiResCommon/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2025 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "WifiResCommon",
+ vendor: true,
+}
diff --git a/overlay/WifiResCommon/AndroidManifest.xml b/overlay/WifiResCommon/AndroidManifest.xml
new file mode 100644
index 0000000..bddc5bb
--- /dev/null
+++ b/overlay/WifiResCommon/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<!--
+ Copyright (C) 2025 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.common">
+ <overlay android:targetPackage="com.android.wifi.resources"
+ android:targetName="WifiCustomization"
+ android:isStatic="true"/>
+</manifest>
diff --git a/overlay/WifiResCommon/res/values/config.xml b/overlay/WifiResCommon/res/values/config.xml
new file mode 100644
index 0000000..4c5cac6
--- /dev/null
+++ b/overlay/WifiResCommon/res/values/config.xml
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2025 The LineageOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Boolean to provide support to keep wifi5 symbol for 8SS supported device and 11ax AP -->
+ <bool translatable="false" name="config_vendorWifi11axReadySupport">true</bool>
+
+ <!-- Wifi driver supports WPA3 Opportunistic Wireless Encryption (WPA3-OWE) for softap -->
+ <bool name="config_vendor_wifi_softap_owe_supported">true</bool>
+
+ <!-- boolean indicating whether the WiFi chipset has 5GHz band support.
+ Note: This config is replacing the config_wifi_dual_band_support
+ since more bands may now be supported (such as 6GHz), the naming dual_band
+ is no longer indicative, and a separate config now exists for each band -->
+ <bool translatable="false" name="config_wifi5ghzSupport">true</bool>
+
+ <!-- boolean indicating whether the WiFi chipset has 6GHz band support -->
+ <bool translatable="false" name="config_wifi6ghzSupport">true</bool>
+
+ <!-- Enable Aware NDP interface selection on interface that already has network set up.
+ Note: the default AOSP Android does not support multiple networks on the same Aware NDI.
+ Enabling this configuration will restore legacy behavior but may result in incorrect behavior.
+ -->
+ <bool translatable="false" name="config_wifiAllowMultipleNetworksOnSameAwareNdi">true</bool>
+
+ <!-- Indicates whether the application-centric QoS policy feature is enabled. -->
+ <bool translatable="false" name="config_wifiApplicationCentricQosPolicyFeatureEnabled">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism.
+ This mechanism allows the host to remain in suspend state and the dongle to actively
+ scan and wake the host when a configured SSID is detected by the dongle. This chipset
+ capability can provide power savings when wifi needs to be always kept on. -->
+ <bool translatable="false" name="config_wifi_background_scan_support">true</bool>
+
+ <!-- Wifi driver supports batched scan -->
+ <bool translatable="false" name="config_wifi_batched_scan_supported">true</bool>
+
+ <!-- Indicates that connected MAC randomization is supported on this device -->
+ <bool translatable="false" name="config_wifi_connected_mac_randomization_supported">true</bool>
+
+ <!-- Boolean indicating performing a partial initial scan is enabled -->
+ <bool translatable="false" name="config_wifiEnablePartialInitialScan">true</bool>
+
+ <!-- Indicates whether or not the Soft AP needs to be restarted when country code changed -->
+ <bool translatable="false" name="config_wifiForcedSoftApRestartWhenCountryCodeChanged">false</bool>
+
+ <!-- Indicates whether the network-centric QoS policy feature is enabled. -->
+ <bool translatable="false" name="config_wifiNetworkCentricQosPolicyFeatureEnabled">true</bool>
+
+ <!-- Boolean indicating that only configurations that have the same pre-shared key will be linked -->
+ <bool translatable="false" name="config_wifi_only_link_same_credential_configurations">false</bool>
+
+ <!-- Indicates that p2p MAC randomization is supported on this device -->
+ <bool translatable="false" name="config_wifi_p2p_mac_randomization_supported">true</bool>
+
+ <!-- Boolean to provide support to keep wifi5 symbol for 8SS supported device and 11ax AP -->
+ <bool translateble="false" name="config_wifi_report_he_ready">true</bool>
+
+ <!-- Indicates that SAE Hash-to-Element is supported on this device -->
+ <bool translatable="false" name="config_wifiSaeH2eSupported">true</bool>
+
+ <!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware -->
+ <bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">true</bool>
+
+ <!-- Wifi driver supports Automatic channel selection (ACS) for softap -->
+ <bool translatable="false" name="config_wifi_softap_acs_supported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AC for softap -->
+ <bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool>
+
+ <!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap -->
+ <bool translatable="false" name="config_wifi_softap_sae_supported">true</bool>
+
+ <!-- Wifi driver supports 6GHz band for softap when chip support 6GHz -->
+ <bool translatable="false" name="config_wifiSoftap6ghzSupported">true</bool>
+
+ <!-- Wifi driver Automatic channel selection (ACS) for softap to include DFS channels -->
+ <bool translatable="false" name="config_wifiSoftapAcsIncludeDfs">true</bool>
+
+ <!-- boolean indicating whether or not to auto-upgrade band setting configuration to dual bands during cloud configuration restore when device supported -->
+ <bool translatable="false" name="config_wifiSoftapAutoUpgradeToBridgedConfigWhenSupported">false</bool>
+
+ <!-- Indicates that dynamic country code update in AP mode is supported on this device -->
+ <bool translatable="false" name="config_wifiSoftapDynamicCountryCodeUpdateSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX single user beamformee for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeSuBeamformeeSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX single user beamformer for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeSuBeamformerSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX for softap -->
+ <bool translatable="false" name="config_wifiSoftapIeee80211axSupported">true</bool>
+
+ <!-- Wifi driver supports Opportunistic Wireless Encryption (OWE)
+ aka Enhanced Open for Soft-AP -->
+ <bool translatable="false" name="config_wifiSoftapOweSupported">true</bool>
+
+ <!-- Wifi driver supports Opportunistic Wireless Encryption (OWE) Transition
+ aka Enhanced Open for Soft-AP -->
+ <bool translatable="false" name="config_wifiSoftapOweTransitionSupported">true</bool>
+
+ <!-- Indicates that dynamic country code update in STA mode is supported on this device -->
+ <bool translatable="false" name="config_wifiStaDynamicCountryCodeUpdateSupported">true</bool>
+
+ <!-- Whether to use the explicit vendor HAL API: IWifiStaIface.setRoamingState for disabling fw roaming (only needed if
+ setting the bssid on the connection alone does not disable fw roaming on this chip) -->
+ <bool translatable="false" name="config_wifiUseHalApiToDisableFwRoaming">true</bool>
+
+ <!-- integer indicating additional disconnect delay (in ms) after IMS onLost() indication is received -->
+ <integer translatable="false" name="config_wifiDelayDisconnectOnImsLostMs">1000</integer>
+
+ <!-- List of constants to indicate how many failures are needed to temporarily disable a network
+ from auto-connect -->
+ <integer translatable="false" name="config_wifiDisableReasonByWrongPasswordThreshold">2</integer>
+
+ <!-- Integer indicating maximum hardware supported client number of soft ap -->
+ <integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">32</integer>
+
+ <!-- Integer threshold for max number of WifiConfigurations that can be saved on the device.
+ A value of -1 indicates no limit. If a max number is specified, then under-used configs will
+ be deleted to make room for new configs.-->
+ <integer translatable="false" name="config_wifiMaxNumWifiConfigurations">1000</integer>
+
+ <!-- List of allowed channels in 2GHz band for softap. If the device doesn't want to restrict
+ channels this should be empty. Values is a comma separated channel string and/or channel
+ range string like '1-6,11'. -->
+ <string translateble="false" name="config_wifiSoftap2gChannelList"/>
+
+ <!-- List of allowed channels in 5GHz band for softap. If the device doesn't want to restrict
+ channels this should be empty. Values is a comma separated channel string and/or channel
+ range string like '36-48,149'. -->
+ <string translateble="false" name="config_wifiSoftap5gChannelList"/>
+
+ <!-- List of allowed channels in 6GHz band for softap. If the device doesn't want to restrict
+ channels this should be empty. Values is a comma separated channel string and/or channel
+ range string like '36-48,149'. -->
+ <string translateble="false" name="config_wifiSoftap6gChannelList"/>
+
+ <!-- Configure wifi tcp buffersizes in the form:
+ rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
+ <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,524288,1048576,4194304</string>
+
+ <!-- Lists each alternate character set per locale language for SSID translation to UTF-8. This
+ will translate all SSIDs encoded with the specified character set from the native layer
+ into UTF-8 SSIDs. The translated SSIDs are then converted back to the original character
+ set when passed back to the native layer. This effectively switches all non-UTF-8 APs into
+ UTF-8 APs from the perspective of the framework and apps, and is intended to provide
+ backwards compatibility with apps that only work with UTF-8 SSIDs. Values must be in the
+ form of the locale language and canonical java.nio Charset name, separated by a comma. If
+ the locale language is "all", then the character set will apply to all locale languages
+ that do not specify their own character set. -->
+ <string-array name="config_wifiCharsetsForSsidTranslation">
+ <item>zh,GBK</item>
+ </string-array>
+</resources>