diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2022-12-22 01:02:18 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-01-02 00:28:00 +0800 |
commit | 1021c2c873df2fdfb788b32d01907c64f39c38dd (patch) | |
tree | 08e10c17b7513dcaf072a8b838ae87447c107711 | |
parent | 4805b687a0423e54032aa0122c1d800a76da27af (diff) |
lynx: overlay: Configure aux cameras for Aperture
Co-authored-by: Nicholas Lim <nicknitewolf@lineageos.org>
Change-Id: I3d1c93057b5c2a1ba09c06a945d538d2043f30fd
-rw-r--r-- | overlay-ice/packages/apps/Aperture/app/src/main/res/values/config.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/overlay-ice/packages/apps/Aperture/app/src/main/res/values/config.xml b/overlay-ice/packages/apps/Aperture/app/src/main/res/values/config.xml new file mode 100644 index 0000000..a9d9376 --- /dev/null +++ b/overlay-ice/packages/apps/Aperture/app/src/main/res/values/config.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + SPDX-FileCopyrightText: 2022 The LineageOS Project + SPDX-License-Identifier: Apache-2.0 +--> +<resources> + <!-- An array of triplets made of (camera ID, approximate zoom ratio, exact zoom ratio). + These values will be added to the lens selector if one or more cameras uses the + multi-camera API to let the user select which lens to use. + It's highly recommended to leave config_enableAuxCameras to false, since with + multi-camera API you only use a single camera device for all sensors. + You may enable it if you need auxiliary camera devices for a set of cameras on one + of the device's side (e.g. logical main back camera but multiple physical camera + devices on front), in that case if a main device side's lens is referenced here + all the auxiliary camera devices of that side will be ignored. + You may be able to get the exact zoom ratio needed to trigger the lens switch from + your stock camera app and observing the zoom ratio it sets with the following command: + adb shell dumpsys media.camera | grep 'android.control.zoomRatio' -1 + Example for Google Pixel 7 Pro's back camera configuration: + <string-array name="config_logicalZoomRatios"> + <item>0</item> <item>0.5</item> <item>0.55632502</item> + <item>0</item> <item>2.0</item> <item>2.0</item> + <item>0</item> <item>5.0</item> <item>5.0</item> + </string-array> + --> + <string-array name="config_logicalZoomRatios"> + <item>0</item> <item>0.5</item> <item>0.53060198</item> + <item>0</item> <item>2.0</item> <item>2.0</item> + </string-array> +</resources> |