Problem with Android P camera

Hello,
I’m working with a camera on hikey android P, I get this errors as follow, who can help me?

I CameraProviderManager: Connecting to new camera provider: legacy/0, isRemote? 1
I CameraProviderManager: Enumerating new camera device: device@3.2/legacy/0
I CameraProviderManager: Enumerating new camera device: device@3.2/legacy/1
I CameraProviderManager: Camera provider legacy/0 ready with 2 camera devices
I CameraHardwareInterface: Opening camera 0
E CameraHardwareInterface: initialize: openSession failed! No such file or directory (-2)
E CameraFlashlight: connectCameraDevice: initializing camera 0 failed
I CameraHardwareInterface: Destroying camera 0
E CameraFlashlight: findFlashUnits: failed to check if camera 0 has a flash unit. No such file or directory (-2)

That brief log is not much to go by.
How about some more details;

  • What camera are you working with?
  • What have you done to enable the camera in the kernel?
  • What are you using for a HAL to allow Android to interface with it?