I don’t think it’s this. You can set lighting boost in the standard SF camera but it doesn’t give results like the Android photo. I’m assuming it’s a post-process boost.
The dark images are getting recorded as low light levels. This indicates a high, fixed shutter speed, either 1/200th or 1/400th of a second. There’s no apparent automatic adjustment/scaling of shutter speed or ISO. If we can influence either, or tell the camera to go auto, this may fix it.
But there may also be problems further down the pipeline. JPEG only has 256 light levels as far as I know. They can’t even be brightened with Photoshop. Even if you can get rid of the graininess, the encoder that sends JPG to the SF apps may be mostly compressing dark levels. and only using around 30.
Now when you take a shot, the camera should be adjusting to the light levels and recording something like 3500-14000 different levels, depending on the hardware. If we had access to the RAW image, we could tell if it’s the camera or the encoder.
Pixel and Galaxy Android camera apps have access to RAW image. not sure about Sony’s. SF doesn’t (yet?).
[Edited to include shutter speed and ISO info.]