Hello,
That device is not one we have tested, but I can try to help. Some implementations of the camera service and camera HAL may have bugs which can cause the camera to become non-responsive and require a device reboot. This is more prevalent on older API levels, especially as you get into the API 21-23 range.
That said, CameraX will retry connecting to the camera and will eventually emit an error if it cannot. The error is part of the
CameraState API, which can be observed like so:
Camera camera = processCameraProvider.bindToLifecycle(...);
camera.getCameraInfo().getCameraState().observe(lifecycleOwner, (state) -> {
// Check state for error
if (state.getError() != null) {
// Handle error
}
});The list of possible errors, and whether they're recoverable can be found here:
https://developer.android.com/reference/androidx/camera/core/CameraState.StateErrorPlease let me know if that helps.