When using camera2, the flash fires once as soon as you take the picture, but when using the default camera, the flash fires twice - there is a pre-flash, and then the actual flash.
The issue is, in a very dark room, although the flash fires, it is either too early or too late, because the image is still dark. I've tried it two different devices.
Has anyone else found the same issue? and is there a solution?
Just to complete this topic, I did delve into the small details of Camera2 auto exposure handling. It is very low level and complicated and my tests didn't yield good results.
Camera(1) is less flexible but in many cases works better for the common use cases.