ingres: overlay: Configure aux cameras and video configurations for Aperture
diff --git a/overlay/Aperture/Android.bp b/overlay/Aperture/Android.bp
new file mode 100644
index 0000000..d40fd50
--- /dev/null
+++ b/overlay/Aperture/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2025 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+ name: "ApertureResIngres",
+ product_specific: true,
+}
diff --git a/overlay/Aperture/AndroidManifest.xml b/overlay/Aperture/AndroidManifest.xml
new file mode 100644
index 0000000..5889690
--- /dev/null
+++ b/overlay/Aperture/AndroidManifest.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2025 The LineageOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.lineageos.aperture.overlay.ingres">
+ <overlay
+ android:isStatic="true"
+ android:priority="1000"
+ android:targetPackage="org.lineageos.aperture" />
+</manifest>
diff --git a/overlay/Aperture/res/values/config.xml b/overlay/Aperture/res/values/config.xml
new file mode 100644
index 0000000..48c2c44
--- /dev/null
+++ b/overlay/Aperture/res/values/config.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2025 The LineageOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+ <!-- Enable auxiliary cameras selector. -->
+ <bool name="config_enableAuxCameras">true</bool>
+
+ <!-- No use for macro currently. ID6 is broken. -->
+ <string-array name="config_ignoredAuxCameraIds">
+ <item>6</item>
+ </string-array>
+
+ <!-- An array of triplets made of (camera ID, qualities, framerates).
+ These video modes will be added to the available
+ quality/framerate combinations of a camera device.
+ Make sure the device is able to handle those configurations
+ and maintain a stable framerate at any condition.
+ Note that you can't add video qualities that aren't
+ exposed by the camera, only new framerates.
+ Valid values of resolution are:
+ - "sd" (480p)
+ - "hd" (720p)
+ - "fhd" (1080p)
+ - "uhd" (2160p)
+ Valid values of framerate are:
+ - "24"
+ - "30"
+ - "60"
+ - "120"
+ Example:
+ <string-array name="config_additionalVideoConfigurations">
+ <item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
+ <item>1</item> <item>sd|hd|fhd</item> <item>60</item>
+ </string-array>
+ -->
+ <string-array name="config_additionalVideoConfigurations">
+ <item>0</item> <item>sd|hd|fhd|uhd</item> <item>60</item>
+ <item>1</item> <item>sd|hd|fhd</item> <item>60</item>
+ <item>2</item> <item>sd|hd</item> <item>60</item>
+ <item>3</item> <item>sd|hd</item> <item>30</item>
+ </string-array>
+</resources>