Menu

Enable/disable cameras to switch between them

IzK
2021-11-18
2022-05-02
  • IzK

    IzK - 2021-11-18

    I have an issue with my Samsung S10+ which has 3 rear cameras and 2 front.
    OpenCamera by default detects 5 cameras: 2 rear and 3 front. The rear telephoto isn't detected, and one of the front cameras is duplicated.
    But if I enable the Camera2 API, then OpenCamera sees 7 rear cameras and 5 on the front.
    Among them there are all 5 cameras (even the depth sensor individually).
    The issue is that some of this cameras throws a "serious camera error" while something clicks inside the phone, and not in a good way.

    Could be possible to add an option to configure which cameras are available?

     

    Last edit: IzK 2021-11-18
  • IzK

    IzK - 2021-12-21

    After flashing another ROM on the phone, opencamera detects the 5 cameras correctly.

     
    • Mark

      Mark - 2021-12-28

      Thanks for the update. It's on my TODO to skip cameras like depth sensors to avoid such problems.

      Just to clarify, was the original post also when running a custom ROM?

       
  • Anonymous

    Anonymous - 2022-01-07

    Yes. All my tests/issues where running different custom ROMs

     
  • Anonymous

    Anonymous - 2022-01-22

    Hello, I have the same on my OnePlus 7Pro (guacamole) with three back and one front camera.
    Flashing ArrowOS12 (custom ROM) OpenCamera detects only one front and one back camera.

    Since it's rooted, I edited build.prop with Magisk to readvendor.camera.aux.packagelist=net.sourceforge.opencamera,com.android.camera2 and now it detects six cameras and lets me cycle through them. Only two of them seem duplicated - and switching to camera #5 (a duplicate) does show a preview picture, but if I want to make a photo, OpenCamera hangs. All other cameras work fine.

    For the moment, it would sure be nice, to just put #5 on a blacklist (don't mind if I have to put that in a config file without GUI) to prevent OpenCamera from using it.

    Thank you for your good work and the great app - I know that my case is not really the usual use-case, thus a hack-ish solution would do fine for me.

     
    • EiQuo7ji

      EiQuo7ji - 2022-01-29

      A better way to modify props is through https://github.com/Magisk-Modules-Repo/MagiskHidePropsConf

       
      • Anonymous

        Anonymous - 2022-01-29

        yes, that's how I did it, thank you for pointing this out and clarifying it to anyone coming across here.

        I've used props from the MagiskHidePropsConf to edit the prop, however the limit of four comma-separated apps is still valid. I've played for half an hour with 'delayed startup' of the prop, until realizing it was the amount of values, not the startup time/delay.

         
  • Anonymous

    Anonymous - 2022-01-22

    Oh, I forgot - if anyone stumbles across this post and wants to try the build.prop solution: the variable obviously can only hold four values.
    I failed in the beginning, as it was already populated with four comma-separated values and I just added ,net.sourceforge.opencamera to the end.
    Making it five values never worked, replacing one entry with opencamera did the trick.

     
  • Anonymous

    Anonymous - 2022-05-02

    I have the same issue on my S20+5G but: * the two front cameras are normal 4:3 and wide angle.
    * No access to 3x telephoto * Error accessing the depth camera.

    What I wanted to know was if there was any fix to getting the 3x Telephoto supported and disabling access to the depth camera? Thanks

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.