[Xperia Z5 Premium Android Development] Berni-0815:
If you (or someone else with a lot of knowledge in c++ programming *)) help me to debug the camera issue **), there will be hope. I'm working several weeks now but there are no improvements.

And without a working camera it is useless to publish my build.

*) I only have little knowledge, so I have to start from the very beginning! :eek:

**) The first init of the camera is working (my own comments in german!):

12-14 17:46:35.240 619 619 I CamProvider@2.4-impl: initialize: (bt): Beginn - open_legacy, Kamera-Nr. 1
12-14 17:46:35.240 619 619 I CamComm1.0-CamModule: openLegacy: (bt): Beginn - open_legacy
12-14 17:46:35.241 619 619 I camera-hal: camera_module.cpp(102):registerCamera: open was requested by non Sony camera app
12-14 17:46:35.241 619 619 I camera-hal: SonyCameraHardware.cpp(7541):HAL_openCameraHardware: cameraId=1
12-14 17:46:35.241 619 619 I camera-hal: SonyCameraHardware.cpp(1157):HAL_Camera_GetNumberOfCameras: HAL_gCameraNum=2
12-14 17:46:35.241 619 619 I camera-hal: SonyCameraHardware.cpp(7547):HAL_openCameraHardware: cameraNum=2
12-14 17:46:35.304 619 619 I camera-hal: SonyCameraHardware.cpp(7557):HAL_openCameraHardware: created hardware=0xef0d8000
12-14 17:46:35.304 619 619 I camera-hal: camera_hal.cpp(596):module_api_open_legacy_device: ret 0
12-14 17:46:35.304 619 619 I CamComm1.0-CamModule: openLegacy: (bt): Ende - open_legacy; Resultat: 0
12-14 17:46:35.304 619 619 I CamProvider@2.4-impl: initialize: (bt): Ende - open_legacy, Kamera-Nr. 1; Resultat: 0

But unfortunalety, the next steps crashes the camera:

12-14 17:46:35.305 619 619 I CameraProviderManager: Connecting to new camera provider: legacy/0, isRemote? 0
12-14 17:46:35.306 619 619 I CameraProviderManager: Enumerating new camera device: device@1.0/legacy/0
12-14 17:46:35.306 619 619 I CamDev@1.0-impl: CameraDevice: (bt): module->getNumberOfCameras()
12-14 17:46:35.306 619 619 I CamComm1.0-CamModule: getNumberOfCameras: (bt): mModule->get_number_of_cameras()
12-14 17:46:35.306 619 619 I camera-hal: camera_hal.cpp(463):module_api_get_number_of_cameras: num 2
12-14 17:46:35.308 619 619 I CamDev@1.0-impl: Opening camera 0
12-14 17:46:35.308 619 619 I CamComm1.0-CamModule: openLegacy: (bt): Beginn - open_legacy
12-14 17:46:35.308 619 619 I camera-hal: camera_module.cpp(102):registerCamera: open was requested by non Sony camera app
12-14 17:46:35.308 619 619 I camera-hal: SonyCameraHardware.cpp(7541):HAL_openCameraHardware: cameraId=0
12-14 17:46:35.308 619 619 I camera-hal: SonyCameraHardware.cpp(1157):HAL_Camera_GetNumberOfCameras: HAL_gCameraNum=2
12-14 17:46:35.308 619 619 I camera-hal: SonyCameraHardware.cpp(7547):HAL_openCameraHardware: cameraNum=2
12-14 17:46:35.308 619 619 E camera-hal: SonyCameraHardware.cpp(7507):createInstance: Singleton promote failed
12-14 17:46:35.308 619 619 I camera-hal: SonyCameraHardware.cpp(7557):HAL_openCameraHardware: created hardware=0x0
12-14 17:46:35.308 619 619 E camera-hal: camera_hal.cpp(563):module_api_open_device_1: Can't open camera hardware.
12-14 17:46:35.309 619 619 I camera-hal: camera_hal.cpp(596):module_api_open_legacy_device: ret -19
12-14 17:46:35.309 619 619 I CamComm1.0-CamModule: openLegacy: (bt): Ende - open_legacy; Resultat: -19
12-14 17:46:35.309 619 619 E CamDev@1.0-impl: Could not open camera 0: -19
12-14 17:46:35.309 619 619 E CameraProviderManager: DeviceInfo1: Unable to open camera device 0 to check for a flash unit: INTERNAL_ERROR

If someone is able to point to the error, I'll fix it.

The sources are these:

https://github.com/LineageOS/android_hardware_interfaces/tree/lineage-15.1

and

https://github.com/LineageOS/android_frameworks_av/tree/lineage-15.1