I am working with the CameraX API and Camera2Interop to implement a shutter priority mode, where SENSOR_SENSITIVITY (ISO) is set to auto, and SENSOR_EXPOSURE_TIME (shutter speed) is manually configured. I have been using the following code:
CaptureRequestOptions.Builder()
.setCaptureRequestOption(
CaptureRequest.CONTROL_AE_MODE,
CaptureRequest.CONTROL_AE_MODE_OFF)
.setCaptureRequestOption(
CaptureRequest.SENSOR_SENSITIVITY,
if (SensorSensitivityMode) 0 // set 0 for automatically find value
else SensorSensitivityValue)
.setCaptureRequestOption(
CaptureRequest.SENSOR_EXPOSURE_TIME,
SensorExposureTime)
It is working on some other devices like Poco m6+ and Redmi 9. But not working in Samsung m31 and s24, is there any specific way to to set shutter priority mode in Samsung devices?
Hello kaustubhd,
Samsung does not offer Camera SDK. So we would recommend you to use Google’s Camera2 and CameraX SDK. If these SDK do not provide the information you requested, it is probably an intended restriction set by Samsung.
If you need further investigation on this issue, please submit a support request here with the following information:
Sample app (APK/ Play store or Galaxy Store link)
Issue reproduction path with the app
Issue reproduction video
Dumpstate log
To take dumpstate log please follow the below steps:
In the Phone Application, enter *#9900#
Set the Debug Level to Mid.
Wait for the device to restart.
Open the app you want to debug and reproduce your issue.
After reproducing your issue, enter *#9900# again in the Phone Application
Select Run dumpstate/logcat
Select Copy to sdcard Navigate to the log directory that was created on the device using the My Files app or a Windows PC with a USB cable connection.
Send the dumpState in a Zip file.
After you have finished, you can follow steps 1-3 again and delete dumpstate/logcat and return the Debug Level to low.
Please note that the device’s log buffer is cleared after 15 minutes so it is important that the log file is captured within this period of time.
If the attachment size is too big to attach, you can share it with us via file sharing site like Google drive or One drive.
Best Regards,
Ummey Habiba Bristy
Samsung Developer Program Team