sm6225-common: Bringup overlays
References: https://github.com/LineageOS/android_device_motorola_sm8475-common, https://github.com/LineageOS/android_device_xiaomi_sm8450-common and https://github.com/LineageOS/android_device_osom_ingot
Co-authored-by: Cosmin Tanislav <demonsingur@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: razorloves <razorloves@gmail.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: SGCMarkus <markusornik@gmail.com>
Change-Id: I5726f54ff0e18cc2001eff9aff55ccd548eea2e3
diff --git a/overlay/bengal/Frameworks/Android.bp b/overlay/bengal/Frameworks/Android.bp
new file mode 100644
index 0000000..0e0b40d
--- /dev/null
+++ b/overlay/bengal/Frameworks/Android.bp
@@ -0,0 +1,9 @@
+//
+// SPDX-FileCopyrightText: 2024-2025 The LineageOS Project
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "FrameworksResTarget",
+ vendor: true,
+}
diff --git a/overlay/bengal/Frameworks/AndroidManifest.xml b/overlay/bengal/Frameworks/AndroidManifest.xml
new file mode 100644
index 0000000..ea9c062
--- /dev/null
+++ b/overlay/bengal/Frameworks/AndroidManifest.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Copyright (c) 2019, Qualcomm Technologies, Inc.
+ All Rights Reserved.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="android.overlay.target">
+ <overlay android:targetPackage="android" android:isStatic="true" android:priority="500"/>
+</manifest>
diff --git a/overlay/bengal/Frameworks/NOTICE b/overlay/bengal/Frameworks/NOTICE
new file mode 100644
index 0000000..51aa1aa
--- /dev/null
+++ b/overlay/bengal/Frameworks/NOTICE
@@ -0,0 +1,50 @@
+This NOTICE file contains certain notices of software components included
+with the software that Qualcomm Technologies, Inc. ("Qualcomm Technologies")
+is required to provide you. Notwithstanding anything in the notices in this
+file, your use of these software components together with the
+Qualcomm Technologies software (Qualcomm Technologies software hereinafter
+referred to as "Software") is subject to the terms of your license from
+Qualcomm Technologies. Compliance with all copyright laws and software
+license agreements included in the notice section of this file are the
+responsibility of the user. Except as may be granted by separate express
+written agreement, this file provides no license to any patents,
+trademarks, copyrights, or other intellectual property.
+
+Copyright (c) 2019 Qualcomm Technologies, Inc.
+All rights reserved.
+Qualcomm is a registered trademark and registered service mark of
+QUALCOMM Incorporated. All other trademarks and service marks are the
+property of their respective owners.
+________________________________________
+NOTICES
+________________________________________
+
+Copyright (c) 2014-2018,2019 The Linux Foundation. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted (subject to the limitations in the
+disclaimer below) provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of the Linux Foundation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
+GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
+HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/overlay/bengal/Frameworks/res/values/config.xml b/overlay/bengal/Frameworks/res/values/config.xml
new file mode 100644
index 0000000..2de1f28
--- /dev/null
+++ b/overlay/bengal/Frameworks/res/values/config.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of The Linux Foundation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
+-->
+<resources>
+ <!-- When true use the linux /dev/input/event subsystem to detect the switch changes
+ on the headphone/microphone jack. When false use the older uevent framework -->
+ <bool name="config_useDevInputEventForAudioJack">true</bool>
+
+ <!-- Package names to use with vendor iwlan implementation. -->
+ <string name="config_wlan_data_service_package" translatable="false">vendor.qti.iwlan</string>
+ <string name="config_wlan_network_service_package" translatable="false">vendor.qti.iwlan</string>
+ <string name="config_qualified_networks_service_package" translatable="false">vendor.qti.iwlan</string>
+
+ <!-- Default list of files pinned by the Pinner Service -->
+ <string-array translatable="false" name="config_defaultPinnerServiceFiles">
+ <item>"/apex/com.android.art/javalib/core-oj.jar"</item>
+ <item>"/apex/com.android.art/javalib/core-libart.jar"</item>
+ <item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
+ <item>"/system/framework/framework.jar"</item>
+ <item>"/system/framework/services.jar"</item>
+ <item>"/system/bin/surfaceflinger"</item>
+ <item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
+ <item>"/vendor/lib64/libcamxexternalformatutils.so"</item>
+ <item>"/vendor/lib64/libipebpsstriping.so"</item>
+ <item>"/vendor/lib64/libCB.so"</item>
+ <item>"/vendor/lib64/libgsl.so"</item>
+ </string-array>
+
+ <!-- Should the pinner service pin the Camera application? -->
+ <bool name="config_pinnerCameraApp">true</bool>
+
+ <!-- Should the pinner service pin the Home application? -->
+ <bool name="config_pinnerHomeApp">true</bool>
+
+ <!-- Flag indicating whether we should enable smart battery. -->
+ <bool name="config_smart_battery_available">true</bool>
+
+ <!-- Whether the device enable the standalone (SA) mode of 5G NR.-->
+ <bool name="config_telephony5gStandalone">true</bool>
+
+ <!-- Whether the device enable the non-standalone (NSA) mode of 5G NR.-->
+ <bool name="config_telephony5gNonStandalone">true</bool>
+</resources>
diff --git a/overlay/bengal/Wifi/Android.bp b/overlay/bengal/Wifi/Android.bp
new file mode 100644
index 0000000..80f6d42
--- /dev/null
+++ b/overlay/bengal/Wifi/Android.bp
@@ -0,0 +1,9 @@
+//
+// SPDX-FileCopyrightText: 2024-2025 The LineageOS Project
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "WifiResTarget",
+ vendor: true,
+}
diff --git a/overlay/bengal/Wifi/AndroidManifest.xml b/overlay/bengal/Wifi/AndroidManifest.xml
new file mode 100644
index 0000000..a3df0ff
--- /dev/null
+++ b/overlay/bengal/Wifi/AndroidManifest.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Copyright (c) 2020, Qualcomm Technologies, Inc.
+ All Rights Reserved.
+-->
+<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"/>
+</manifest>
diff --git a/overlay/bengal/Wifi/res/values/config.xml b/overlay/bengal/Wifi/res/values/config.xml
new file mode 100644
index 0000000..508e918
--- /dev/null
+++ b/overlay/bengal/Wifi/res/values/config.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2020 Qualcomm Technologies, Inc.
+ All Rights Reserved.
+-->
+
+<resources>
+ <!-- Wifi driver supports IEEE80211AX for softap -->
+ <bool translatable="false" name="config_wifiSoftapIeee80211axSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX single user beamformer for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeSuBeamformerSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX single user beamformee for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeSuBeamformeeSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX multiple user beamformer for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeMuBeamformerSupported">true</bool>
+
+ <!-- Wifi driver supports IEEE80211AX TWT (Target Wake Time) for softap -->
+ <bool translatable="false" name="config_wifiSoftapHeTwtSupported">true</bool>
+
+ <!-- Indicate the driver support NL80211_REG_CHANGED event. -->
+ <bool translatable="false" name="config_wifiDriverSupportedNl80211RegChangedEvent">true</bool>
+
+ <!-- Indicate the device support request channel on Wi-Fi Aware data-path. -->
+ <bool translatable="false" name="config_wifiSupportChannelOnDataPath">true</bool>
+
+ <!-- Enable concurrent Bridged access point (AP) support -->
+ <bool translatable="false" name="config_wifiBridgedSoftApSupported">true</bool>
+
+ <!-- Enable concurrent STA + STA peer to peer + internet connectivity -->
+ <bool translatable="false" name="config_wifiMultiStaLocalOnlyConcurrencyEnabled">true</bool>
+
+ <!-- Enable concurrent STA + STA MBB support -->
+ <bool translatable="false" name="config_wifiMultiStaNetworkSwitchingMakeBeforeBreakEnabled">true</bool>
+
+ <!-- Wifi driver supports 5GHz band for softap when chip support 5GHz -->
+ <bool translatable="false" name="config_wifiSoftap5ghzSupported">true</bool>
+
+ <!-- Indicates that STA + bridged AP concurrency mode is supported on this device -->
+ <bool translatable="false" name="config_wifiStaWithBridgedSoftApConcurrencySupported">true</bool>
+
+ <!-- Wifi driver supports Automatic channel selection (ACS) for softap -->
+ <bool translatable="false" name="config_wifi_softap_acs_supported">true</bool>
+</resources>