Hello everyone I want to use OV5647 on ROCK 5C android but it doesn’t work, I added ov5647 driver to the kernel in Android SDK, now I can get RAW image using v4l2 but I can’t open the Camera APP , I get these errors from from logcat, can anyone help me to see what’s the problem?
`console:/ $ logcat| grep camera
[ 1072.081020][ T293] logd: logdr: UID=2000 GID=2000 PID=1870 b tail=0 logMask=99 pid=0 start=0ns deadline=0ns
01-01 00:00:04.201 1 1 I ov5647 3-0036: OmniVision OV5647 camera driver probed
01-01 00:00:06.076 391 391 I android.hardware.camera.provider@2.4-external-service: External camera provider service is starting.
01-01 00:00:06.205 392 392 I android.hardware.camera.provider@2.4-service: CameraProvider@2.4 legacy service is starting.
01-01 00:00:06.519 391 391 I ExtCamUtils@3.4: loadFromCfg: load external camera config succeed!
01-01 00:00:06.519 391 391 I ExtCamUtils@3.4: loadFromCfg: external camera cfg loaded: maxJpgBufSize 3145728, num video buffers 4, num still buffers 2, orientation 0
01-01 00:00:06.521 391 391 I HidlServiceManagement: Registered android.hardware.camera.provider@2.4::ICameraProvider/external/0
01-01 00:00:06.521 391 391 I HidlServiceManagement: Removing namespace from process name android.hardware.camera.provider@2.4-external-service to provider@2.4-external-service.
01-01 00:00:06.521 391 391 I LegacySupport: Registration complete for android.hardware.camera.provider@2.4::ICameraProvider/external/0.
01-01 00:00:06.525 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.525 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video14 failed!
01-01 00:00:06.526 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.526 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video13 failed!
01-01 00:00:06.527 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.527 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video10 failed!
01-01 00:00:06.527 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.527 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video5 failed!
01-01 00:00:06.528 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.528 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video11 failed!
01-01 00:00:06.529 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.529 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video12 failed!
01-01 00:00:06.529 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.530 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video9 failed!
01-01 00:00:06.530 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.530 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video3 failed!
01-01 00:00:06.531 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.531 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video0 failed!
01-01 00:00:06.531 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.531 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video7 failed!
01-01 00:00:06.532 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.532 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video8 failed!
01-01 00:00:06.532 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.532 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video6 failed!
01-01 00:00:06.533 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.533 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video4 failed!
01-01 00:00:06.533 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.533 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video1 failed!
01-01 00:00:06.534 391 525 E ExtCamDev@3.4: isInitFailedLocked: init camera characteristics failed: errorno -2147483648
01-01 00:00:06.534 391 525 W CamPrvdr@2.4-external: deviceAdded: Attempt to init camera device /dev/video2 failed!
01-01 00:00:06.593 461 461 I cameraserver: ServiceManager: 0xb40000713b0132a0
01-01 00:00:06.595 461 461 I CameraProviderManager: Connecting to new camera provider: external/0, isRemote? 1
01-01 00:00:06.596 461 461 I CameraProviderManager: Camera provider external/0 ready with 0 camera devices
01-01 00:00:06.597 285 285 I hwservicemanager: Since android.hardware.camera.provider@2.4::ICameraProvider/legacy/0 is not registered, trying to start it as a lazy HAL.
01-01 00:00:06.597 461 461 I cameraserver: Waiting for activity service
01-01 00:00:06.613 392 392 D RkCamera: @rk_camera_set_dbg_log_properties: g_cam_log[1] = :
01-01 00:00:06.613 392 392 D RkCamera: rkcamerahal3 log level 0
01-01 00:00:06.662 392 392 I RkCamera: Profiles: @checkField: name:aiq.multicamera, field 0
01-01 00:00:06.663 392 392 I RkCamera: Profiles: @checkField: name:aiq.multicamera, field 0
01-01 00:00:06.663 392 392 I RkCamera: Profiles: @checkField: name:aiq.multicamera, field 0
01-01 00:00:06.664 392 392 I RkCamera: Profiles: addCamera: for camera 0
01-01 00:00:06.664 392 392 I RkCamera: Profiles: Add cameraId: 0 to mStaticMeta
01-01 00:00:06.680 392 392 D RkCamera: RKISP2PSLConfParser: Dump camera: 0 info start.
01-01 00:00:06.680 392 392 D RkCamera: RKISP2PSLConfParser: Dump camera: 0 info end.
01-01 00:00:06.680 392 392 I RkCamera: PlatformData: @getAvailableSensorOutputFormats cameraId(0) isFirst(true)
01-01 00:00:06.681 392 392 D RkCamera: Camera3HALModule: camera number:0!
01-01 00:00:06.681 392 392 E RkCamera: Camera3HALModule: No camera device was found!
01-01 00:00:06.681 392 392 D RkCamera: @rk_camera_set_dbg_log_properties: g_cam_log[1] = :
01-01 00:00:06.681 392 392 D RkCamera: rkcamerahal3 log level 0
01-01 00:00:06.724 392 392 D Camera3HALModule: ENTER-hal_get_number_of_cameras, Thread[android.hardwar]
01-01 00:00:06.724 392 392 D Camera3HALModule: EXIT-hal_get_number_of_cameras use 0ms, Thread[android.hardwar]
01-01 00:00:06.724 392 392 I CamPrvdr@2.4-legacy: Loaded “Rockchip Camera3HAL Module” camera module
01-01 00:00:06.725 392 392 D RkCamera: @rk_camera_set_dbg_log_properties: g_cam_log[1] = :
01-01 00:00:06.725 392 392 D RkCamera: rkcamerahal3 log level 0
01-01 00:00:06.782 392 392 D Camera3HALModule: ENTER-hal_get_number_of_cameras, Thread[android.hardwar]
01-01 00:00:06.782 392 392 D Camera3HALModule: EXIT-hal_get_number_of_cameras use 0ms, Thread[android.hardwar]
01-01 00:00:06.783 392 392 I HidlServiceManagement: Registered android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
01-01 00:00:06.783 392 392 I HidlServiceManagement: Removing namespace from process name android.hardware.camera.provider@2.4-service to provider@2.4-service.
01-01 00:00:06.783 392 392 I LegacySupport: Registration complete for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0.
01-01 00:00:06.783 461 541 I CameraProviderManager: Connecting to new camera provider: legacy/0, isRemote? 1
01-01 00:00:06.783 461 541 I CameraProviderManager: Camera provider legacy/0 ready with 0 camera devices
01-01 00:00:08.656 584 613 I SystemConfig: Reading permissions from /vendor/etc/permissions/android.hardware.camera.xml
01-01 00:00:08.656 584 613 I SystemConfig: Reading permissions from /vendor/etc/permissions/android.hardware.camera.front.xml
01-01 00:00:08.662 584 613 I SystemConfig: Reading permissions from /vendor/etc/permissions/android.hardware.camera.external.xml
01-01 00:00:08.800 584 584 W PackageSettings: Missing permission state for package: com.android.cameraextensions
01-01 00:00:09.585 461 461 I cameraserver: Waiting for sensor privacy service
01-01 00:00:09.612 461 461 I HidlServiceManagement: Registered android.frameworks.cameraservice.service@2.2::ICameraService/default
01-01 00:00:09.612 461 461 I CameraService: CameraService pinged cameraservice proxy
01-01 00:00:09.612 461 461 I cameraserver: ServiceManager: 0xb40000713b0132a0 done instantiate
04-17 15:55:05.004 584 584 I SystemServiceManager: Starting com.android.server.camera.CameraServiceProxy
04-17 15:55:05.005 584 584 D SystemServerTiming: OnBootPhase_200_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.005 584 584 V SystemServerTiming: OnBootPhase_200_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.503 584 584 D SystemServerTiming: OnBootPhase_480_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.503 584 584 V SystemServerTiming: OnBootPhase_480_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.520 584 584 D SystemServerTiming: OnBootPhase_500_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.520 584 584 V SystemServerTiming: OnBootPhase_500_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.564 584 584 D SystemServerTiming: OnBootPhase_520_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.564 584 584 V SystemServerTiming: OnBootPhase_520_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.614 584 584 D SystemServerTiming: OnBootPhase_550_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.614 584 584 V SystemServerTiming: OnBootPhase_550_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.701 584 584 D SystemServerTiming: OnBootPhase_600_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.701 584 584 V SystemServerTiming: OnBootPhase_600_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.719 584 584 D SystemServerTiming: ssm.onStartUser-0_com.android.server.camera.CameraServiceProxy
04-17 15:55:05.719 584 584 V SystemServerTiming: ssm.onStartUser-0_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:05.721 584 584 V StorageManagerService: Package com.android.camera2 does not have legacy storage
04-17 15:55:05.721 584 584 V StorageManagerService: Package com.android.cameraextensions does not have legacy storage
04-17 15:55:06.221 767 767 I CameraManagerGlobal: Connecting to camera service
04-17 15:55:06.592 767 767 D QSTileHost: Creating tile: cameratoggle
04-17 15:55:06.593 767 767 D QSTileHost: Destroying not available tile: cameratoggle
04-17 15:55:13.334 584 609 D ActivityManagerTiming: OnBootPhase_1000_com.android.server.camera.CameraServiceProxy
04-17 15:55:13.334 584 609 V ActivityManagerTiming: OnBootPhase_1000_com.android.server.camera.CameraServiceProxy took to complete: 1ms
04-17 15:55:13.419 584 615 D SystemServerTimingAsync: ssm.onUnlockingUser-0_com.android.server.camera.CameraServiceProxy
04-17 15:55:13.419 584 615 V SystemServerTimingAsync: ssm.onUnlockingUser-0_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:13.438 584 615 D SystemServerTimingAsync: ssm.onUnlockedUser-0_com.android.server.camera.CameraServiceProxy
04-17 15:55:13.438 584 615 V SystemServerTimingAsync: ssm.onUnlockedUser-0_com.android.server.camera.CameraServiceProxy took to complete: 0ms
04-17 15:55:13.938 584 616 I ActivityManager: Start proc 1562:com.android.camera2/u0a36 for broadcast {com.android.camera2/com.android.camera.SetActivitiesCameraReceiver}
04-17 15:55:13.986 1562 1562 V GraphicsEnvironment: ANGLE Developer option for ‘com.android.camera2’ set to: ‘default’
04-17 15:55:13.987 1562 1562 V GraphicsEnvironment: ANGLE GameManagerService for com.android.camera2: false
04-17 15:55:16.843 584 1139 I ActivityManager: Killing 1562:com.android.camera2/u0a36 (adj 975): empty #17
04-17 16:06:06.124 584 1861 W system_server: ClassLoaderContext shared library size mismatch. Expected=1, found=0 (PCL[]{PCL[/vendor/framework/androidx.camera.extensions.impl.jar*2982445658]} | PCL[])
`