[Galaxy Grand Prime Android Development] AhMaD eLMoMaNi:
Bug :

Primary camera (rear) is not working , while front camera is working .

when i open the stock camera app it says "cant't connect to the camera" .

that is what I've got on logcat when I open camera

03-31 14:59:22.236 1293 4116 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.cyanogenmod.snap/com.android.camera.CameraLauncher bnds=[424,850][524,964] (has extras)} from uid 10028 on display 0
03-31 14:59:22.238 1293 4116 E QCOM PowerHAL: Failed to acquire lock.
03-31 14:59:22.249 1293 1307 W BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.cyanogenmod.trebuchet (pid=2351, uid=10028) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
03-31 14:59:22.250 1293 1307 W BroadcastQueue: Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.cyanogenmod.trebuchet (uid 10028)
03-31 14:59:22.272 1293 3209 I ActivityManager: Start proc 10003:org.cyanogenmod.snap/u0a25 for activity org.cyanogenmod.snap/com.android.camera.CameraLauncher
03-31 14:59:22.339 10003 10003 I art : Starting a blocking GC AddRemoveAppImageSpace
03-31 14:59:22.341 10003 10003 W System : ClassLoader referenced unknown path: /system/priv-app/Snap/lib/arm
03-31 14:59:22.411 404 1354 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.411 404 1354 V CameraWrapper: check_vendor_module
03-31 14:59:22.411 404 1354 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.411 404 1354 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.413 404 1840 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.413 404 1840 V CameraWrapper: check_vendor_module
03-31 14:59:22.413 404 1840 W QCamera2Factory: getCameraInfo: E, camera_id = 1
03-31 14:59:22.413 404 1840 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.415 10003 10003 I CameraManagerGlobal: Connecting to camera service
03-31 14:59:22.420 404 1572 I CameraService: getCameraCharacteristics: Switching to HAL1 shim implementation...
03-31 14:59:22.420 404 1572 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.420 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.421 404 1572 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.421 404 1572 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.421 404 1572 I CameraService: CameraService::connect call (PID -1 "media", camera ID 0) for HAL version default and Camera API version 1
03-31 14:59:22.421 404 1572 E CameraService: getCameraPriorityFromProcState: Received invalid process state -1 from ActivityManagerService!
03-31 14:59:22.421 404 1572 V CameraWrapper: camera_get_number_of_cameras
03-31 14:59:22.421 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.421 404 1572 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.421 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.421 404 1572 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.421 404 1572 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.433 404 10021 D NuPlayerDriver: notifyListener_l(0xb5d2c020), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.445 404 10023 D NuPlayerDriver: notifyListener_l(0xb5d2bcc0), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.468 404 10025 D NuPlayerDriver: notifyListener_l(0xb5d2bc00), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.471 404 1572 I CameraFlashlight: Opening camera 0
03-31 14:59:22.472 404 1572 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.472 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.472 404 1572 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.472 404 1572 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.472 404 1572 V CameraWrapper: camera_device_open
03-31 14:59:22.472 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.472 404 1572 W QCamera2Factory: cameraDeviceOpen : E
03-31 14:59:22.473 404 1572 I QCamera2HWI: [KPI Perf] openCamera: E
03-31 14:59:22.473 404 1572 W QCamera2HWI: [KPI Perf] openCamera: E PROFILE_OPEN_CAMERA camera id 0
03-31 14:59:22.473 404 1572 E mm-camera-intf: mm_camera_open: begin
03-31 14:59:22.473 404 1572 E mm-camera-intf: mm_camera_open: dev name = /dev/video2, cam_idx = 2
03-31 14:59:22.474 363 363 E mm-camera: server_process_hal_event: new session __debug__
03-31 14:59:22.475 363 10028 E mm-camera-sensor: module_sensor_start_session:1054 sensor_bundle = b6798b10 session id = 2
03-31 14:59:22.475 363 10028 E mm-camera-sensor: sensor_load_library:79 imx219 : load from phone
03-31 14:59:22.477 363 10031 E mm-camera: stats_port_init: E
03-31 14:59:22.478 363 10031 E mm-camera: stats_port_init: X
03-31 14:59:22.480 363 10028 E mm-camera-sensor: csid_open:111 sd name /dev/v4l-subdev2
03-31 14:59:22.480 363 10032 E mm-camera: cpp_module_start_session:297, info: starting session 2
03-31 14:59:22.481 363 10028 E mm-camera-sensor: csiphy_open:89 csiphy subdev name = /dev/v4l-subdev0
03-31 14:59:22.481 363 10028 E mm-camera-sensor:
03-31 14:59:22.481 363 10035 E mm-camera-img: module_imglib_msg_thread: __ZZZZ__: E
03-31 14:59:22.481 363 10035 E mm-camera-img: module_imglib_msg_thread:66 abort 0 0
03-31 14:59:22.490 363 10028 E mm-camera-sensor: module_sensor_init_session:786 sensor position 0
03-31 14:59:22.490 363 10028 E mm-camera-sensor: module_sensor_init_session:795 reload_bin : 0, RELOAD_PROPERTY_VALUE=3757

---------- Post added at 01:05 PM ---------- Previous post was at 01:02 PM ----------

03-31 14:59:22.490 363 10028 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 66 e_ctrl->fd: 22
03-31 14:59:22.490 363 10028 E mm-camera-sensor: eeprom_set_bytestream:1371 e_ctrl->eeprom_params.num_bytes =4608
03-31 14:59:22.491 363 10028 E mm-camera-sensor: sensor_init:474 subdev name v4l-subdev13
03-31 14:59:22.491 363 10028 E mm-camera-sensor: sensor_init:481 50hz
03-31 14:59:22.524 363 10028 E mm-camera-sensor: sensor_write_init_settings:424 failed
03-31 14:59:22.524 363 10028 E mm-camera-sensor: sensor_init:504 failed
03-31 14:59:22.524 363 10028 E mm-camera-sensor: module_sensor_init_session:829 failed rc -5
03-31 14:59:22.525 363 10028 E mm-camera-sensor: led_flash_close:148 led_flash_close OFF
03-31 14:59:22.528 363 10037 E mm-camera: cpp_thread_func:55: cpp_thread entering the polling loop...
03-31 14:59:22.528 363 10032 E mm-camera: cpp_module_start_session:343, info: cpp_thread created.
03-31 14:59:22.530 363 10032 E mm-camera: cpp_module_start_session:348, info: session 2 started.
03-31 14:59:22.530 363 10032 E mm-camera: c2d_module_start_session:218, info: starting session 2
03-31 14:59:22.530 363 10038 E mm-camera: c2d_thread_func:39: c2d_thread entering the polling loop...
03-31 14:59:22.530 363 10032 E mm-camera: c2d_module_start_session:256, info: c2d_thread created.
03-31 14:59:22.539 363 10032 E mm-camera: c2d_module_start_session:278, info: session 2 started.
03-31 14:59:22.543 363 10028 E mm-camera-sensor: module_sensor_init_session:943 failed
03-31 14:59:22.544 363 10028 E mm-camera-sensor: module_sensor_start_session:1077 failed
03-31 14:59:22.544 363 10028 E mm-camera-sensor: module_sensor_start_session:1102 failed
03-31 14:59:22.544 363 363 E mm-camera: aec_load_function: loading QTI Rear algorithm
03-31 14:59:22.544 363 363 E mm-camera: awb_port_load_lib: loading AL or QTI AWB: session = 0x20000, session_id = 2
03-31 14:59:22.544 363 363 E mm-camera: awb_load_function: loading QTI Rear algorithm
03-31 14:59:22.545 363 363 D alPrinter: AWB　Version
03-31 14:59:22.545 363 363 D alPrinter: AWB Inst 4.4.0.2914 :R
03-31 14:59:22.545 363 363 D alPrinter: Date:9999/99/99(2014/08/19 15:21)
03-31 14:59:22.545 363 363 D alPrinter: Awb　Version
03-31 14:59:22.545 363 363 D alPrinter: Awb core fortuna 1.4.8.596 fortuna :R(M)
03-31 14:59:22.545 363 363 D alPrinter: Date:9999/99/99(2014/11/13 15:40)
03-31 14:59:22.545 363 363 D alPrinter: Awb　Version
03-31 14:59:22.545 363 363 D alPrinter: Awb Sp fortuna 1.4.8.596 fortuna :R(M)
03-31 14:59:22.545 363 363 D alPrinter: Date:9999/99/99(2014/11/13 15:40)
03-31 14:59:22.545 363 363 E AF_PORT : af_port_load_lib: loading QTI AF: session = 0x20000, session_id = 2
03-31 14:59:22.545 363 363 E mm-camera: af_load_function: loading QTI Rear algorithm
03-31 14:59:22.545 363 363 E : af_init: X
03-31 14:59:22.545 363 363 E mm-camera: mct_controller_new:59 pipeline_start_session is failed
03-31 14:59:22.545 363 363 E mm-camera: mct_pipeline_stop_session: __debug__: E 1781=
03-31 14:59:22.545 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.546 363 10039 E mm-camera-sensor: module_sensor_stop_session:1149 stop_session called without start_session
03-31 14:59:22.546 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.546 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.548 363 10040 E mm-camera: ispif_stop_session: __ZZZZ__: E 199=
03-31 14:59:22.548 363 10040 E mm-camera: ispif_stop_session: __ZZZZ__: After memset 208=
03-31 14:59:22.548 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.548 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.549 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.549 363 10041 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: E 308=
03-31 14:59:22.549 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.549 363 10041 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: Ater thread started 313=
03-31 14:59:22.549 363 10041 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: Before sem post 327=
03-31 14:59:22.549 363 10041 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: After sem post 329=
03-31 14:59:22.549 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.549 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.550 363 10041 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: After thread join 331=
03-31 14:59:22.550 363 10041 E mm-camera: isp_thread_async_task_stop: X, session_id = 2
03-31 14:59:22.550 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.550 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.550 363 10042 E mm-camera: stats_port_deinit: E
03-31 14:59:22.551 363 10043 E mm-camera: cpp_module_stop_session: __ZZZZ__: E 355=
03-31 14:59:22.551 363 10043 E mm-camera: cpp_module_stop_session:365, info: stopping session 2 ...
03-31 14:59:22.551 363 10042 E mm-camera: stats_port_deinit: __dbg private free
03-31 14:59:22.551 363 10042 E mm-camera: stats_port_deinit: X
03-31 14:59:22.551 363 10037 E mm-camera: cpp_thread_process_pipe_message:359, CPP_THREAD_MSG_ABORT: cpp_thread exiting..
03-31 14:59:22.553 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.553 363 363 E mm-camera: mct_pipeline_stop_session: __debug__: X 1784=
03-31 14:59:22.553 363 10035 E mm-camera-img: module_imglib_msg_thread:116] X
03-31 14:59:22.554 363 10043 E mm-camera: cpp_module_stop_session:396, info: session 2 stopped.
03-31 14:59:22.554 363 10043 E mm-camera: c2d_module_stop_session: __ZZZZ__: E 285=
03-31 14:59:22.554 363 10043 E mm-camera: c2d_module_stop_session:295, info: stopping session 2 ...
03-31 14:59:22.554 363 10043 E mm-camera: c2d_module_stop_session:300, info: stopping c2d_thread...
03-31 14:59:22.555 363 10043 E mm-camera: c2d_module_post_msg_to_thread:354, msg.type=1
03-31 14:59:22.555 363 10038 E mm-camera: c2d_thread_process_pipe_message:453, C2D_THREAD_MSG_ABORT: c2d_thread exiting..
03-31 14:59:22.555 363 10043 E mm-camera: c2d_module_stop_session:312, closing c2d subdev...
03-31 14:59:22.555 363 10043 E mm-camera: c2d_module_stop_session:334, info: session 2 stopped.
03-31 14:59:22.556 363 363 E mm-camera: server_process_hal_event:__DBG__ X Fail event id=1
03-31 14:59:22.556 363 363 E mm-camera: server_process_hal_event: delete session
03-31 14:59:22.556 363 363 E mm-camera: mct_controller_destroy: __debug__: E 153=
03-31 14:59:22.556 363 363 E mm-camera: server_process_hal_event:__DBG__ X Fail event id=2
03-31 14:59:22.556 404 1572 E mm-camera-intf: mm_camera_open: opened, break out while loop
03-31 14:59:22.556 404 1572 E mm-camera-intf: mm_camera_open: cannot open control fd of '/dev/video2' (Bad address)
03-31 14:59:22.556 404 1572 E mm-camera-intf: camera_open: mm_camera_open err = -1
03-31 14:59:22.556 404 1572 E QCamera2HWI: openCamera : camera_open failed.
03-31 14:59:22.556 404 1572 I QCamera2HWI: [KPI Perf] openCamera: X
03-31 14:59:22.556 404 1572 E QCamera2Factory: cameraDeviceOpen : openCamera failed
03-31 14:59:22.556 404 1572 W QCamera2Factory: cameraDeviceOpen : X
03-31 14:59:22.556 404 1572 E CameraWrapper: vendor camera open fail
03-31 14:59:22.556 404 1572 E CameraFlashlight: Could not open camera 0: -19
03-31 14:59:22.556 404 1572 E CameraClient: initialize: Camera 0: unable to initialize device: No such device (-19)
03-31 14:59:22.556 404 1572 I CameraFlashlight: Destroying camera 0
03-31 14:59:22.557 404 1572 E CameraService: connectHelper: Could not initialize client from HAL module.
03-31 14:59:22.557 404 1572 D NuPlayerDriver: reset(0xb5d2c020) at state 4

---------- Post added at 01:06 PM ---------- Previous post was at 01:05 PM ----------

03-31 14:59:22.557 404 1572 D NuPlayerDriver: notifyListener_l(0xb5d2c020), (8, 0, 0), loop setting(0, 0)
03-31 14:59:22.557 404 10021 W AMessage: failed to post message as target looper for handler 0 is gone.
03-31 14:59:22.557 404 10021 D NuPlayerDriver: notifyResetComplete(0xb5d2c020)
03-31 14:59:22.558 404 1572 D NuPlayerDriver: reset(0xb5d2bcc0) at state 4
03-31 14:59:22.558 404 1572 D NuPlayerDriver: notifyListener_l(0xb5d2bcc0), (8, 0, 0), loop setting(0, 0)
03-31 14:59:22.558 404 10023 W AMessage: failed to post message as target looper for handler 0 is gone.
03-31 14:59:22.558 404 10023 D NuPlayerDriver: notifyResetComplete(0xb5d2bcc0)
03-31 14:59:22.560 404 1572 D NuPlayerDriver: reset(0xb5d2bc00) at state 4
03-31 14:59:22.560 404 1572 D NuPlayerDriver: notifyListener_l(0xb5d2bc00), (8, 0, 0), loop setting(0, 0)
03-31 14:59:22.561 404 10025 W AMessage: failed to post message as target looper for handler 0 is gone.
03-31 14:59:22.561 404 10025 D NuPlayerDriver: notifyResetComplete(0xb5d2bc00)
03-31 14:59:22.564 404 1572 V CameraWrapper: camera_get_number_of_cameras
03-31 14:59:22.565 404 1572 V CameraWrapper: check_vendor_module
03-31 14:59:22.565 404 1572 I CameraService: disconnect: Disconnected client for camera 0 for PID 404
03-31 14:59:22.565 404 1572 E CameraService: initializeShimMetadata: Error initializing shim metadata: Status(-8): '10: connectHelper:946: Failed to initialize camera "0": No such device (-19)'
03-31 14:59:22.566 10003 10003 W System.err: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): connectHelper:946: Failed to initialize camera "0": No such device (-19)
03-31 14:59:22.567 10003 10003 W System.err: at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:699)
03-31 14:59:22.567 10003 10003 W System.err: at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:775)
03-31 14:59:22.567 10003 10003 W System.err: at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:137)
03-31 14:59:22.567 10003 10003 W System.err: at com.android.camera.SettingsManager.<init>(SettingsManager.java:147)
03-31 14:59:22.567 10003 10003 W System.err: at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1469)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.Activity.performCreate(Activity.java:6679)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
03-31 14:59:22.567 10003 10003 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
03-31 14:59:22.567 10003 10003 W System.err: at android.os.Looper.loop(Looper.java:154)
03-31 14:59:22.567 10003 10003 W System.err: at android.app.ActivityThread.main(ActivityThread.java:6126)
03-31 14:59:22.567 10003 10003 W System.err: at java.lang.reflect.Method.invoke(Native Method)
03-31 14:59:22.567 10003 10003 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
03-31 14:59:22.567 10003 10003 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
03-31 14:59:22.568 10003 10003 W System.err: Caused by: android.os.ServiceSpecificException: connectHelper:946: Failed to initialize camera "0": No such device (-19)
03-31 14:59:22.568 10003 10003 W System.err: at android.os.Parcel.readException(Parcel.java:1698)
03-31 14:59:22.568 10003 10003 W System.err: at android.os.Parcel.readException(Parcel.java:1637)
03-31 14:59:22.568 10003 10003 W System.err: at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:404)
03-31 14:59:22.568 10003 10003 W System.err: at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:762)
03-31 14:59:22.568 10003 10003 W System.err: ... 15 more
03-31 14:59:22.580 404 404 I CameraService: getCameraCharacteristics: Switching to HAL1 shim implementation...
03-31 14:59:22.580 404 404 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.580 404 404 V CameraWrapper: check_vendor_module
03-31 14:59:22.580 404 404 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.581 404 404 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.581 404 404 I CameraService: CameraService::connect call (PID -1 "media", camera ID 0) for HAL version default and Camera API version 1
03-31 14:59:22.581 404 404 E CameraService: getCameraPriorityFromProcState: Received invalid process state -1 from ActivityManagerService!
03-31 14:59:22.581 404 404 V CameraWrapper: camera_get_number_of_cameras
03-31 14:59:22.581 404 404 V CameraWrapper: check_vendor_module
03-31 14:59:22.581 404 404 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.581 404 404 V CameraWrapper: check_vendor_module
03-31 14:59:22.581 404 404 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.581 404 404 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.599 404 10045 D NuPlayerDriver: notifyListener_l(0xb5d2c4a0), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.613 404 10047 D NuPlayerDriver: notifyListener_l(0xb5d2c0e0), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.630 404 10049 D NuPlayerDriver: notifyListener_l(0xb5d2bba0), (1, 0, 0), loop setting(0, 0)
03-31 14:59:22.634 404 404 I CameraFlashlight: Opening camera 0
03-31 14:59:22.634 404 404 V CameraWrapper: camera_get_camera_info
03-31 14:59:22.634 404 404 V CameraWrapper: check_vendor_module
03-31 14:59:22.634 404 404 W QCamera2Factory: getCameraInfo: E, camera_id = 0
03-31 14:59:22.634 404 404 W QCamera2Factory: getCameraInfo: X
03-31 14:59:22.634 404 404 V CameraWrapper: camera_device_open
03-31 14:59:22.634 404 404 V CameraWrapper: check_vendor_module
03-31 14:59:22.634 404 404 W QCamera2Factory: cameraDeviceOpen : E
03-31 14:59:22.637 404 404 I QCamera2HWI: [KPI Perf] openCamera: E
03-31 14:59:22.637 404 404 W QCamera2HWI: [KPI Perf] openCamera: E PROFILE_OPEN_CAMERA camera id 0
03-31 14:59:22.638 404 404 E QCamera2HWI: perf_lock_acq dlerror = undefined symbol: createOMXPlugin
03-31 14:59:22.638 404 404 E mm-camera-intf: mm_camera_open: begin
03-31 14:59:22.638 404 404 E mm-camera-intf: mm_camera_open: dev name = /dev/video2, cam_idx = 2
03-31 14:59:22.638 363 363 E mm-camera: server_process_hal_event: new session __debug__
03-31 14:59:22.639 363 10052 E mm-camera-sensor: module_sensor_start_session:1054 sensor_bundle = b6798b10 session id = 2
03-31 14:59:22.640 363 10052 E mm-camera-sensor: sensor_load_library:79 imx219 : load from phone
03-31 14:59:22.644 363 10056 E mm-camera: cpp_module_start_session:297, info: starting session 2
03-31 14:59:22.646 363 10059 E mm-camera-img: module_imglib_msg_thread: __ZZZZ__: E
03-31 14:59:22.646 363 10059 E mm-camera-img: module_imglib_msg_thread:66 abort 0 0
03-31 14:59:22.647 363 10052 E mm-camera-sensor: csid_open:111 sd name /dev/v4l-subdev2
03-31 14:59:22.647 363 10055 E mm-camera: stats_port_init: E
03-31 14:59:22.647 363 10055 E mm-camera: stats_port_init: X
03-31 14:59:22.649 363 10052 E mm-camera-sensor: csiphy_open:89 csiphy subdev name = /dev/v4l-subdev0
03-31 14:59:22.649 363 10052 E mm-camera-sensor:
03-31 14:59:22.656 363 10052 E mm-camera-sensor: module_sensor_init_session:786 sensor position 0
03-31 14:59:22.656 363 10052 E mm-camera-sensor: module_sensor_init_session:795 reload_bin : 0, RELOAD_PROPERTY_VALUE=3757
03-31 14:59:22.656 363 10052 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 66 e_ctrl->fd: 24
03-31 14:59:22.656 363 10052 E mm-camera-sensor: eeprom_set_bytestream:1371 e_ctrl->eeprom_params.num_bytes =4608
03-31 14:59:22.657 363 10052 E mm-camera-sensor: sensor_init:474 subdev name v4l-subdev13
03-31 14:59:22.657 363 10052 E mm-camera-sensor: sensor_init:481 50hz
03-31 14:59:22.690 363 10052 E mm-camera-sensor: sensor_write_init_settings:424 failed
03-31 14:59:22.690 363 10052 E mm-camera-sensor: sensor_init:504 failed
03-31 14:59:22.690 363 10052 E mm-camera-sensor: module_sensor_init_session:829 failed rc -5
03-31 14:59:22.691 363 10052 E mm-camera-sensor: led_flash_close:148 led_flash_close OFF
03-31 14:59:22.693 363 10061 E mm-camera: cpp_thread_func:55: cpp_thread entering the polling loop...
03-31 14:59:22.693 363 10056 E mm-camera: cpp_module_start_session:343, info: cpp_thread created.
03-31 14:59:22.695 363 10056 E mm-camera: cpp_module_start_session:348, info: session 2 started.
03-31 14:59:22.695 363 10056 E mm-camera: c2d_module_start_session:218, info: starting session 2
03-31 14:59:22.695 363 10062 E mm-camera: c2d_thread_func:39: c2d_thread entering the polling loop...
03-31 14:59:22.696 363 10056 E mm-camera: c2d_module_start_session:256, info: c2d_thread created.
03-31 14:59:22.705 363 10056 E mm-camera: c2d_module_start_session:278, info: session 2 started.
03-31 14:59:22.711 363 10052 E mm-camera-sensor: module_sensor_init_session:943 failed
03-31 14:59:22.711 363 10052 E mm-camera-sensor: module_sensor_start_session:1077 failed
03-31 14:59:22.711 363 10052 E mm-camera-sensor: module_sensor_start_session:1102 failed
03-31 14:59:22.712 363 363 E mm-camera: aec_load_function: loading QTI Rear algorithm
03-31 14:59:22.712 363 363 E mm-camera: awb_port_load_lib: loading AL or QTI AWB: session = 0x20000, session_id = 2
03-31 14:59:22.712 363 363 E mm-camera: awb_load_function: loading QTI Rear algorithm
03-31 14:59:22.712 363 363 D alPrinter: AWB　Version
03-31 14:59:22.712 363 363 D alPrinter: AWB Inst 4.4.0.2914 :R
03-31 14:59:22.713 363 363 D alPrinter: Date:9999/99/99(2014/08/19 15:21)
03-31 14:59:22.713 363 363 D alPrinter: Awb　Version
03-31 14:59:22.713 363 363 D alPrinter: Awb core fortuna 1.4.8.596 fortuna :R(M)
03-31 14:59:22.713 363 363 D alPrinter: Date:9999/99/99(2014/11/13 15:40)
03-31 14:59:22.713 363 363 D alPrinter: Awb　Version
03-31 14:59:22.713 363 363 D alPrinter: Awb Sp fortuna 1.4.8.596 fortuna :R(M)
03-31 14:59:22.713 363 363 D alPrinter: Date:9999/99/99(2014/11/13 15:40)
03-31 14:59:22.713 363 363 E AF_PORT : af_port_load_lib: loading QTI AF: session = 0x20000, session_id = 2
03-31 14:59:22.713 363 363 E mm-camera: af_load_function: loading QTI Rear algorithm
03-31 14:59:22.713 363 363 E : af_init: X
03-31 14:59:22.713 363 363 E mm-camera: mct_controller_new:59 pipeline_start_session is failed
03-31 14:59:22.713 363 363 E mm-camera: mct_pipeline_stop_session: __debug__: E 1781=
03-31 14:59:22.713 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.713 363 10063 E mm-camera-sensor: module_sensor_stop_session:1149 stop_session called without start_session
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.714 363 10064 E mm-camera: ispif_stop_session: __ZZZZ__: E 199=
03-31 14:59:22.714 363 10064 E mm-camera: ispif_stop_session: __ZZZZ__: After memset 208=
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.714 363 10065 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: E 308=
03-31 14:59:22.714 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.714 363 10065 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: Ater thread started 313=
03-31 14:59:22.714 363 10065 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: Before sem post 327=
03-31 14:59:22.714 363 10065 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: After sem post 329=
03-31 14:59:22.714 363 10066 E mm-camera: stats_port_deinit: E
03-31 14:59:22.715 363 10066 E mm-camera: stats_port_deinit: __dbg private free
03-31 14:59:22.715 363 10066 E mm-camera: stats_port_deinit: X
03-31 14:59:22.715 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.715 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.715 363 10065 E mm-camera: isp_thread_async_task_stop: __ZZZZ__: After thread join 331=
03-31 14:59:22.715 363 10065 E mm-camera: isp_thread_async_task_stop: X, session_id = 2
03-31 14:59:22.715 363 10067 E mm-camera: cpp_module_stop_session: __ZZZZ__: E 355=
03-31 14:59:22.715 363 10067 E mm-camera: cpp_module_stop_session:365, info: stopping session 2 ...
03-31 14:59:22.715 363 363 E mm-camera: mct_pipeline_modules_stop: X __debug__
03-31 14:59:22.715 363 363 E mm-camera: mct_pipeline_modules_stop: E __debug__
03-31 14:59:22.715 363 10061 E mm-camera: cpp_thread_process_pipe_message:359, CPP_THREAD_MSG_ABORT: cpp_thread exiting..

and I'd say that even flash is not working .