I run Open Camera v1.48.1 on a Samsung S9+ running Android 10 ( latest build of LineageOS 17.1: lineage_star2lte-userdebug 10 QQ2A.200501.001.B2 eng.rob.20200520.082527).
OC works great. Just about perfect so far. But it's been using ONLY one of the two 'back' camera lenses.
After reading the threads at
https://sourceforge.net/p/opencamera/discussion/general/thread/255c1fe3/
https://sourceforge.net/p/opencamera/discussion/general/thread/831bd99a/
In particular,
Open Camera uses the Android camera APIs to get the available cameras: Camera.getNumberOfCameras() or CameraManager.getCameraIdList().
With help from the Telegram group, I added to "/system/build.prop",
vendor.camera.aux.packagelist=net.sourceforge.opencamera
After reboot, OC now "sees" three cameras (lenses)
Open Camera v1.48.1
Code: 77
Package: net.sourceforge.opencamera
Android API version: 29
Device manufacturer: samsung
Device model: SM-G965F
Device code-name: samsungexynos9810
Device variant: star2lte
...
!! Current camera ID: 0
!! No. of cameras: 3
!! Multi-camera?: true
Camera API: Camera2 (Android L)
...
In the UI, though, If toggle between 3 cameras
ID = 0 is the back camera 'main' lens
ID = 1 is front (me facing) camera
and
ID = 2 is ALSO the front (me facing) camera
It's "toggling" the wrong lens it looks like.
ID=1 or ID=2 'should be' the OTHER 'back' lens.
Anonymous
Similar symptoms here.
Samsung Galaxy Xcover Pro (SM-G715FN/exynos9611/xcoverpro), also has normal and wideangle on the back and one on the front.
Open Camera v1.48.1. Stock phone OS, updated to current (Samsung's June updates), problem was evident before and after the update.
"0" shows the normal camera, "1" and "2" both show the front camera, and no combination that I can find will use the back wideangle.
Can provide additional debugging if desired.
OK, might be Samsung regular "feature" nowadays. Turns out that these have two distinct modes for the single front lens, normal and "wide". Samsung stock camera app uses same on–screen control for switching normal/"wide" on both front (single lens visible) and back (two lenses visible).
The front "wide" mode isn't very wide though, understandable that one might not notice a difference.
Opencamera can switch modes on the front but cannot access the separate wide on the back.
Same on my Xcover Pro and an A20E (SM-A202F/exynos7884B), both Samsung stock os updated to current.
Same for Samsung Galaxy M21. No matter whichever setting I change, I cannot access the wide-angle camera from this app (Open camera).
Oh hey, after a Samsung software update, ultrawide does work now.
Currently on Open Camera v.1.48.2 on the same Xcover Pro SM-G715FN as previously. And, "No. of cameras: 4" now as well.
Sorry for not replying sooner. I think this is ultimately either a Samsung or Lineage issue if the cameras aren't exposed to third party applications. I know that the S10 series expose the ultra wide camera to Open Camera, not sure about the S9 though.
Regarding the two front cameras, the reply above sounds correct - on the S10 also, although there's only one physical front camera, the API exposes two front cameras, which switch between a zoomed and wider mode.
I will close the ticket as I don't think this is a bug as such, but people can feel free to share advice about getting the extra cameras exposed.