Menu

#1260 Detecting telephoto/ultra-wide cameras problem with logical id not 0

1.0
open
Mark
None
2025-07-21
2025-07-18
Anonymous
No

Open Camera can't detect telephoto and ultra wide camera,
This happened on my old phone (Mi 9 lite) but the fix was quite easy as renaming the package to a name that is listed on the os vendor.camera.aux.packagelist fixes this issue.

However, on my new phone (Nothing Phone 3A PRO) fix isn't as easy
I tried to rename the package with no luck even tho the name is listed on vendor.camera.aux.packagelist
What i noticed after multiple debug attempts is :
1) On mi 9 lite the all the cameras have logical id of "0" or "none" which make it ideal to detect i think since that is the default for open camera and it looks for the physical cameras in logical id "0"

2)On nothing phone 3a pro the cameras have logical id of "4" which is not the default for open camera making it difficult to detect as the application looks for physical cameras in "0" and "1" (back and front default cameras)

And that shows on the debug information as the physical cameras list in "0" is empty, but if i tried and make it look for id "4" it actually finds the telephoto and ultra-wide cameras in the logs!

so the application assumes that since logical id "0" doesn't detect any physical cameras that the phone isn't multi-cam meanwhile if it looked for id "4" it will find the cameras!

I'm not an expert I just came to the mentioned conclusion after hours and hours of attempts,yet i still couldn't figure out how to make it work so I'm ready to attach any required debug information in order to make it work!

Thank you in advance

Discussion

  • Anonymous

    Anonymous - 2025-07-18

    Another example is testing camera with CameraX info
    The default search with "0" logical id returns nothing
    If I manually set the logical id to 4 in the code it'll find the physical cameras :

     
    • Mark

      Mark - 2025-07-21

      Thanks - can you post screenshots of the bit above that screenshot please?

      Also make sure in Open Camera Settings/"Camera API" is set to "Camera 2 API"?

       

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.