Hi Hyeon,
We strongly suggest you wait for the new alpha that contains the RAW capture feature. But if you really want to try it, you can use the internal APIs like the following
val imageCapture = ImageCapture.Builder()
.setBufferFormat(ImageFormat.RAW_SENSOR)
.build()
cameraProvider.bindToLifecycle(..)..
..
// you are only allowed to use in-memory version of takePicture after setting the RAW buffer format.
imageCapture.takePicture(executor()
object: ImageCapture.OnImageCapturedCallback() {} )
Please keep it in mind that using it has the following potential issues: (so we advise you not to use it in production)
1) the API could be changed or removed in the future without any notice
2) There is no guarantee that it will work across all devices as we didn't test it in our lab