unicorn: overlay: Configure aux camera for Aperture

Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
This commit is contained in:
LuK1337
2022-10-31 21:59:52 +01:00
committed by Arian
parent b7b59f95f8
commit 73173c888d
4 changed files with 35 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ $(call inherit-product, vendor/xiaomi/unicorn/unicorn-vendor.mk)
# Overlay
PRODUCT_PACKAGES += \
ApertureResUnicorn \
FrameworksResUnicorn \
SettingsProviderResUnicorn \
SettingsResUnicorn \

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2023 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureResUnicorn",
device_specific: true,
}

View File

@@ -0,0 +1,10 @@
<!--
Copyright (C) 2023 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay.unicorn">
<overlay android:targetPackage="org.lineageos.aperture"
android:isStatic="true"
android:priority="700"/>
</manifest>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2023 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<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>6</item>
</string-array>
</resources>