Status Update
Comments
wu...@google.com <wu...@google.com> #2
Thanks for reporting the issue. Which CameraX version are you using? Is it 100% reproducible?
ma...@akylas.fr <ma...@akylas.fr> #3
Thanks for looking at this. Yes it is 100% reproducible. It has been reported by around 10 different phone users. Right now i just tested it and it is still happening with 1.3.0-alpha06. Havent tested with 1.3.0-alpha07 yet
ta...@google.com <ta...@google.com>
fr...@gmail.com <fr...@gmail.com> #4
ta...@google.com <ta...@google.com> #5
Hi Martin,
Thanks for reporting this issue. While we are working on the workaround, could you please help us out with testing the fix since we do not have an SM-A320 model available?
Attached to this comment, I have shared a CameraXBasic test APK compiled with the code you shared and SM-A320 models added to the quirk. If you could test it out on your device and confirm the fix, that would be great!
ma...@akylas.fr <ma...@akylas.fr> #6
Thanks for that fast answer! I can confirm the fix is working. The flash is working fine now with the debug APK you shared! Amazing news for the a3 community. Thanks
ap...@google.com <ap...@google.com> #7
Branch: androidx-main
commit 3ded8ca486d04262a962e336b211d8629bbe7fcd
Author: Tahsin Masrur <tahsinm@google.com>
Date: Sun Jun 11 03:50:10 2023
Add SM-A320 models to FlashTooSlowQuirks
Reportedly, SM-A320FL model has a black image capture problem during low light due to flash and actual image capture not being in sync. It should be possible to work around this issue by using the torch as flash.
Relnote: "Use torch as flash on Samsung SM-A320 models to improve the speed and the captured image quality in low light"
Bug: 286190938
Test: FlashTooSlowQuirkTest
Change-Id: I6a022547c5a39c1783b9c1b8d9938a7d6494f482
M camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/compat/quirk/FlashTooSlowQuirk.kt
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/compat/quirk/FlashTooSlowQuirk.java
M camera/camera-camera2/src/test/java/androidx/camera/camera2/internal/compat/quirk/FlashTooSlowQuirkTest.kt
ta...@google.com <ta...@google.com> #8
Great! Thanks for your quick response. The fix should be available from next releases.
pr...@google.com <pr...@google.com> #9
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.camera:camera-camera2:1.3.0-beta01
Description
While using GrapheneOS new Camera app which uses cameraX we discovered an issue with the Samsung a3 2017. If we take a photo using the flash in low light then we end up with a black image. The discussion started herehttps://github.com/GrapheneOS/Camera/issues/239
It appears that the flash and actual image capture are not in sync.
I did test directly with a cameraX sample app using this:
And i can reproduce the issue. The phone model is SM-a320FL but i would guess it also happens with sm-a320F
As the devs of the grapheneos app explained our device might need to be added to the list herehttps://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-main/camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/compat/quirk/FlashTooSlowQuirk.java
Hope there is enough info.
Thanks
PS: duplicate of that issue https://issuetracker.google.com/issues/235172945 from where we had no feedback. Thought it might have been posted in the wrong place