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/common/Settings/Android.bp b/overlay/common/Settings/Android.bp
new file mode 100644
index 0000000..318ff57
--- /dev/null
+++ b/overlay/common/Settings/Android.bp
@@ -0,0 +1,9 @@
+//
+// SPDX-FileCopyrightText: 2024-2025 The LineageOS Project
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "SettingsCommon",
+ vendor: true,
+}
diff --git a/overlay/common/Settings/AndroidManifest.xml b/overlay/common/Settings/AndroidManifest.xml
new file mode 100644
index 0000000..3685611
--- /dev/null
+++ b/overlay/common/Settings/AndroidManifest.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Copyright (c) 2018, Qualcomm Technologies, Inc.
+ All Rights Reserved.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.settings.overlay.common">
+ <overlay android:targetPackage="com.android.settings" android:isStatic="true" />
+</manifest>
diff --git a/overlay/common/Settings/res/values/config.xml b/overlay/common/Settings/res/values/config.xml
new file mode 100644
index 0000000..d1ebc0a
--- /dev/null
+++ b/overlay/common/Settings/res/values/config.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- The number of vibration intensity levels supported by the device.
+ Note that this should correspond to the ability to vary the vibration amplitude, with
+ enough dynamic range to have at least as many distinct intensity levels as defined here.
+ Supported values are 1, 2, 3. If '1', the settings app will use a toggle for the settings,
+ otherwise a slider. If '3', the settings app maps intensities directly to the levels
+ supported by the Vibrator HAL APIs. If '2', then the levels will be mapped to
+ VIBRATION_INTENSITY_LOW and VIBRATION_INTENSITY_HIGH, which gives the most range for
+ scaling vibrations. The medium intensity will be skipped.
+ The default intensity values are configured at
+ frameworks/base/core/res/res/values/config.xml's config_default[type]VibrationIntensity.
+ Make sure that each default intensity value is consistent with the supported levels set
+ here. If this settings supports only 2 levels, for example, then the default intensity
+ should be either LOW (1) or HIGH (3).
+ -->
+ <integer name="config_vibration_supported_intensity_levels">3</integer>
+</resources>