瀏覽代碼

cupid: overlay: Configure aux camera for Aperture

Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
LuK1337 2 年之前
父節點
當前提交
cb2b49fa1f
共有 4 個文件被更改,包括 35 次插入1 次删除
  1. 1 1
      device.mk
  2. 10 0
      overlay/Aperture/Android.bp
  3. 10 0
      overlay/Aperture/AndroidManifest.xml
  4. 14 0
      overlay/Aperture/res/values/config.xml

+ 1 - 1
device.mk

@@ -12,7 +12,7 @@ $(call inherit-product, vendor/xiaomi/cupid/cupid-vendor.mk)
 
 # Overlay
 PRODUCT_PACKAGES += \
-    CupidWifiOverlay \
+    ApertureResCupid \
     FrameworksResCupid \
     SettingsProviderResCupid \
     SystemUIResCupid \

+ 10 - 0
overlay/Aperture/Android.bp

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

+ 10 - 0
overlay/Aperture/AndroidManifest.xml

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

+ 14 - 0
overlay/Aperture/res/values/config.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     SPDX-FileCopyrightText: 2022 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>