sm6225-common: Import overlays from stock
Change-Id: I243f2508f93560df5224e613db9d9ad11358c0bc
diff --git a/overlay/FrameworksResTarget/Android.bp b/overlay/FrameworksResTarget/Android.bp
new file mode 100644
index 0000000..5ec9f2f
--- /dev/null
+++ b/overlay/FrameworksResTarget/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2025 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "FrameworksResTarget",
+ vendor: true,
+}
diff --git a/overlay/FrameworksResTarget/AndroidManifest.xml b/overlay/FrameworksResTarget/AndroidManifest.xml
new file mode 100644
index 0000000..f2129da
--- /dev/null
+++ b/overlay/FrameworksResTarget/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="android.overlay.target">
+ <overlay android:targetPackage="android"
+ android:isStatic="true"
+ android:priority="500"/>
+</manifest>
diff --git a/overlay/FrameworksResTarget/res/values/config.xml b/overlay/FrameworksResTarget/res/values/config.xml
new file mode 100644
index 0000000..5cacb27
--- /dev/null
+++ b/overlay/FrameworksResTarget/res/values/config.xml
@@ -0,0 +1,71 @@
+<?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">
+ <!-- Control whether the always on display mode is available. This should only be enabled on
+ devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND
+ states. -->
+ <bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
+
+ <!-- Control whether the always on display mode is enabled by default. This value will be used
+ during initialization when the setting is still null. -->
+ <bool name="config_dozeAlwaysOnEnabled">false</bool>
+
+ <!-- Default files to pin via Pinner Service -->
+ <string-array name="config_defaultPinnerServiceFiles">
+ <item>/system/framework/arm64/boot.oat</item>
+ <item>/system/framework/arm/boot.oat</item>
+ <item>/system/framework/arm64/boot-framework.oat</item>
+ <item>/system/framework/arm/boot-framework.oat</item>
+ <item>/system/framework/arm64/boot-core-libart.oat</item>
+ <item>/system/framework/arm/boot-core-libart.oat</item>
+ <item>/system/lib64/libRScpp.so</item>
+ <item>/system/lib64/libRS.so</item>
+ <item>/system/lib64/libRS_internal.so</item>
+ <item>/system/lib64/libbcinfo.so</item>
+ <item>/system/lib64/libRSDriver.so</item>
+ <item>/system/lib64/libRSCpuRef.so</item>
+ <item>/system/lib64/libblas.so</item>
+ <item>/system/framework/oat/arm64/services.odex</item>
+ <item>/system_ext/lib64/libsurfaceflinger.so</item>
+ </string-array>
+
+ <!-- Set this to true to enable the platform's auto-power-save modes like doze and
+ app standby. These are not enabled by default because they require a standard
+ cloud-to-device messaging service for apps to interact correctly with the modes
+ (such as to be able to deliver an instant message to the device even when it is
+ dozing). This should be enabled if you have such services and expect apps to
+ correctly use them when installed on your device. Otherwise, keep this disabled
+ so that applications can still use their own mechanisms. -->
+ <bool name="config_enableAutoPowerModes">true</bool>
+
+ <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
+ device from the display on/off state.
+
+ When false, autosuspend_disable() will be called before the display is turned on
+ and autosuspend_enable() will be called after the display is turned off.
+ This mode provides best compatibility for devices using legacy power management
+ features such as early suspend / late resume.
+
+ When true, autosuspend_display() and autosuspend_enable() will be called
+ independently of whether the display is being turned on or off. This mode
+ enables the power manager to suspend the application processor while the
+ display is on.
+
+ This resource should be set to "true" when a doze component has been specified
+ to maximize power savings but not all devices support it.
+
+ Refer to autosuspend.h for details.
+ -->
+ <bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
+
+ <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
+ autodetected from the Configuration. -->
+ <bool name="config_showNavigationBar">true</bool>
+
+ <!-- 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>
+</resources>
diff --git a/overlay/FrameworksResTarget/res/values/dimens.xml b/overlay/FrameworksResTarget/res/values/dimens.xml
new file mode 100644
index 0000000..fecaad8
--- /dev/null
+++ b/overlay/FrameworksResTarget/res/values/dimens.xml
@@ -0,0 +1,12 @@
+<?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">
+ <!-- Default radius of the software rounded corners. -->
+ <dimen name="rounded_corner_radius">20.0dip</dimen>
+
+ <!-- Default paddings for content around the corners. -->
+ <dimen name="rounded_corner_content_padding">0.0dip</dimen>
+</resources>