[Xperia Z1 Android Development] MohammadAG:
[MENTION=2784807]DooMLoRD[/MENTION]

I/CameraClient( 319): Opening camera 0
I/libcamera( 319): HAL_openCameraHardware: E cameraId=0
I/libcamera( 319): HAL_getNumberOfCameras: E
I/libcamera( 319): HAL_Camera_GetNumberOfCameras: HAL_gCameraNum=2
I/libcamera( 319): HAL_getNumberOfCameras: X
D/mm-camera-intf( 319): index = 0 flag = 0 mount_angle = 0 facing = 0
D/mm-camera-intf( 319): index = 1 flag = 0 mount_angle = 0 facing = 0
E/mm-camera-intf( 319): mm_camera_open: dev name = /dev/video1, cam_idx = 1
E/mm-camera-intf( 319): mm_camera_open: opened, break out while loop
E/mm-camera-intf( 319): mm_camera_open: cannot open control fd of '/dev/video1' (No such device)
E/mm-camera-intf( 319): camera_open: mm_camera_open err = -1
E/cammw ( 319): E: cammw_camera_get_caps: camera_open err
E/libcamera( 319): failed to create Cald instance
E/libcamera( 319): createInstance: failed startCamera
I/libcamera( 319): HAL_openCameraHardware: X created hardware=0x0
E/CameraClient( 319): Could not open camera 0: -2147483648
I/CameraClient( 319): Destroying camera 0
W/CameraBase( 5998): An error occurred while connecting to camera: 0
E/CAM_PhotoModule( 5998): Failed to open camera:0

This looks like a kernel issue, am I right?

Edit:

Okay, screw the above error, I now get Invalid argument when trying to cat the file, which is expected behaviour. However, the HAL module isn't picking up the cameras again.

I/CameraService( 314): Loaded "Sony Camera HAL" camera module
I/libcamera( 314): HAL_getNumberOfCameras: E
I/libcamera( 314): HAL_Camera_GetNumberOfCameras: HAL_gCameraNum=-1
I/libcamera( 314): HAL_getNumberOfCameras: X
E/mm-camera( 442): server_process_module_init:59, int mods
I/mm-camera-sensor( 442): module_sensor_init:2976 Enter
E/mm-camera( 442): isp_util_gen_hws_caps: integrating kernel vfe is pending
E/mm-camera( 442): isp_tintless_open_version: E: 40
E/mm-camera( 442): is_module_init: Enter
E/mm-camera( 442): cpp_hardware_load_firmware:356, cpphw->hwinfo.version = 0x10010000
E/mm-camera( 442): vpe_module_init:26 name=vpe
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=video0 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=msm_cci entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev0 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev1 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev2 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev3 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev4 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev5 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev6 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev7 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev8 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev9 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev10 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev11 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev12 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev13 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=v4l-subdev14 entity.revision=14
E/mm-camera( 442): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=video1 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 442): vpe_hardware_find_subdev:716: entity.name=video2 entity.revision=0
E/mm-camera( 442): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 442): vpe_hardware_find_subdev:683: no more media devices
E/mm-camera( 442): vpe_hardware_find_subdev:728: no vpe device found.
E/mm-camera( 442): vpe_hardware_create:31: error: cannot find vpe subdev
E/mm-camera( 442): vpe_module_create_vpe_ctrl:141, failed, cannnot create vpe hardware instance
E/mm-camera( 442): vpe_module_init:34 failed
E/mm-camera( 442): c2d_module_init:28 name=c2d
E/mm-camera( 442): c2d_module_init:67: info: C2D module_init successful

I'm almost sure this is the last step in fixing the camera, but I can't find any info on "vpe"