clover: overlay: Configure aux camera for Aperture

[@jjpprrrr: camera ids
0: main camera
1: front facing camera
Therefore, block the rest of the aux camera ids.]

Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
LuK1337 2022-11-02 10:04:59 +01:00 committed by pix106
parent 4da632a176
commit 74369df033
4 changed files with 31 additions and 0 deletions

View file

@ -45,6 +45,7 @@ DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay $(DEVICE_PATH)/overlay
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
CloverApertureOverlay \
CloverFrameworksOverlay \ CloverFrameworksOverlay \
CloverSystemUIOverlay CloverSystemUIOverlay

View file

@ -0,0 +1,5 @@
runtime_resource_overlay {
name: "CloverApertureOverlay",
theme: "CloverApertureOverlay",
product_specific: true,
}

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay.clover">
<overlay
android:isStatic="true"
android:priority="750"
android:targetPackage="org.lineageos.aperture" />
</manifest>

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Enable auxiliary cameras selector. -->
<bool name="config_enableAuxCameras">true</bool>
<!-- List of ID of auxiliary cameras that must be ignored by the app. -->
<string-array name="config_ignoredAuxCameraIds">
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
</string-array>
</resources>