Skip to content

aalcameraservice: Attempt reconnection to CameraService up to 10 times

Using qtubuntu-camera in combination with a device running Waydroid might result in the camera HAL service to disappear during connection attempt. This is especially apparent on QCOM devices of two generations, notably the Pixel 3a and the Fairphone 4.

Try to connect to the CameraService (which in turn attempts to talk to the camera HAL) up to 10 times, sleeping 1 second in between each attempt. This ensures that (in case the camera HAL makes it back up in time) the connection is honored again without sticking to an endless loop of reconnections.

Test:

  • Start Waydroid
  • Stop Waydroid
  • Start native camera app

Merge request reports