exynos9610: Ship Snap
authorBruno Martins <bgcngm@gmail.com>
Fri, 26 Oct 2018 13:11:03 +0000 (14:11 +0100)
committerJan Altensen <info@stricted.net>
Mon, 7 Dec 2020 07:23:29 +0000 (08:23 +0100)
 * Also allow Snap to use aux camera while at it.

Change-Id: I65beba444c9ae71b2fe248f201448cacd15e764f

common.mk
overlay/packages/apps/Snap/res/values/config.xml [new file with mode: 0644]
vendor.prop

index f13d99e6d2ce293a08e7d78acd0f81653bc5400b..723c11f031bffce23a44533a5d7114dd6b0d3942 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -106,7 +106,8 @@ PRODUCT_PACKAGES += \
 PRODUCT_PACKAGES += \
     android.hardware.camera.provider@2.4-impl \
     android.hardware.camera.provider@2.4-service \
-    libsensorndkbridge
+    libsensorndkbridge \
+    Snap
 
 # configstore
 PRODUCT_PACKAGES += \
diff --git a/overlay/packages/apps/Snap/res/values/config.xml b/overlay/packages/apps/Snap/res/values/config.xml
new file mode 100644 (file)
index 0000000..71d5ccf
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 The Android Open Source Project
+                   2015-2016 The CyanogenMod Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<!-- Camera app resources that may need to be customized
+     for different hardware or product builds. -->
+<resources>
+    <!-- Opens back camera using openLegacy() and forces api v1 -->
+    <bool name="back_camera_open_legacy">false</bool>
+
+    <!-- Opens front camera using openLegacy() and forces api v1 -->
+    <bool name="front_camera_open_legacy">false</bool>
+
+    <!-- Enable support for bokeh mode -->
+    <bool name="support_bokeh_mode">true</bool>
+
+    <!-- Enable support for camera api v2 -->
+    <bool name="support_camera_api_v2">true</bool>
+</resources>
index 8810128a09dfe2b6b9427def7f01de58c6cbf670..7bdeadde849aa5b5f9bbcf8b45abae835f1e1561 100644 (file)
@@ -51,7 +51,7 @@ qemu.hw.mainkeys=0
 ro.cp_system_other_odex=1
 persist.sys.sf.native_mode=1
 persist.vendor.camera.expose.aux=1
-vendor.camera.aux.packagelist=com.motorola.camera2,com.motorola.motocit,com.motorola.actions
+vendor.camera.aux.packagelist=com.motorola.camera2,com.motorola.motocit,com.motorola.actions,org.lineageos.snap
 vendor.camera.aux.packagelist2=com.motorola.ccc,com.android.settings
 dalvik.vm.dex2oat-threads=6
 ro.vendor.sensors.mot_ltv=true