[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] mikeysteele:
I think something else is missing for Camera2 because I removed that line from init.qcom.rc and I can't connect to the camera at all.

Here is the relevant logcat:

02-20 22:41:31.735 6957 7078 I QCamera : <HAL ><INFO > int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): 1492: [KPI Perf]: E PROFILE_OPEN_CAMERA camera id 0
02-20 22:41:31.736 6957 7078 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
02-20 22:41:31.754 556 556 D mm-camera: <MCT >< HIGH> mct_controller_new: 62: Creating new mct_controller with session-id 2
02-20 22:41:31.755 556 7090 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E sensor
02-20 22:41:31.755 556 7090 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module sensor
02-20 22:41:31.755 556 7091 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E iface
02-20 22:41:31.756 556 7091 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module iface
02-20 22:41:31.756 556 7093 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E isp
02-20 22:41:31.756 556 7093 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module isp
02-20 22:41:31.756 556 7093 I mm-camera: <ISP >< INFO> isp_module_start_session: 178: session id 2
02-20 22:41:31.757 556 7094 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E stats
02-20 22:41:31.757 556 7091 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module iface start_session rc = 1
02-20 22:41:31.758 556 7094 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module stats
02-20 22:41:31.758 556 7091 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 1, success = 1
02-20 22:41:31.758 556 7091 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X stats
02-20 22:41:31.759 556 7099 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E pproc
02-20 22:41:31.759 556 7099 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module pproc
02-20 22:41:31.759 556 7100 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3494: E imglib
02-20 22:41:31.760 556 7100 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3501: Calling start_session on Module imglib
02-20 22:41:31.760 556 7100 E mm-camera: <IMGLIB><ERROR> module_imglib_start_session: 1774: module_imglib_start_session:1774 ###Img_Loglevel 1, moduleMask 65535
02-20 22:41:31.760 556 7100 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module imglib start_session rc = 1
02-20 22:41:31.760 556 7100 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 2, success = 2
02-20 22:41:31.760 556 7100 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X imglib
02-20 22:41:31.761 556 7094 I mm-camera: <STATS_AIS >< INFO> gyro_port_use_android_iface: 266: Use DSPS interface as it supports
02-20 22:41:31.762 556 7099 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module pproc start_session rc = 1
02-20 22:41:31.762 556 7099 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 3, success = 3
02-20 22:41:31.762 556 7094 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module stats start_session rc = 1
02-20 22:41:31.762 556 7099 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X imglib
02-20 22:41:31.762 556 7094 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 4, success = 4
02-20 22:41:31.762 556 7094 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X imglib
02-20 22:41:31.768 556 7093 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module isp start_session rc = 1
02-20 22:41:31.769 556 7093 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 5, success = 5
02-20 22:41:31.769 556 7093 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X imglib
02-20 22:41:31.776 556 7090 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3504: Module sensor start_session rc = 1
02-20 22:41:31.776 556 7090 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3512: started_num = 6, success = 6
02-20 22:41:31.776 556 7090 D mm-camera: <MCT >< HIGH> mct_pipeline_start_session_thread: 3519: X imglib
02-20 22:41:31.777 556 556 I mm-camera: <STATS_AEC >< INFO> aec_port_set_session_data: 288: 3A VERSION --> 5.0.0.r4
02-20 22:41:31.780 556 7106 D mm-camera: <MCT >< HIGH> mct_pipeline_start_stream_internal: 3409: Adding session stream streamid= 0xf for session=2
02-20 22:41:31.780 556 7106 D mm-camera: <MCT >< HIGH> mct_pipeline_start_stream_internal: 3457: Linking session stream for session 2
02-20 22:41:31.780 556 7106 D mm-camera: <MCT >< HIGH> mct_stream_start_link: 461: Start linking Session-stream 0x2000f
02-20 22:41:31.781 556 7106 I mm-camera: <ISP >< INFO> isp_port_check_caps_reserve: 746: port 0xf388ad40 ide 2000f type 10 dim 0 0
02-20 22:41:31.781 556 7106 E mm-camera: <PPROC ><ERROR> pproc_port_add_modules_to_stream: 453: stream 10 int_link = 0xf389f800
02-20 22:41:31.781 556 7106 E mm-camera: <PPROC ><ERROR> pproc_port_add_modules_to_stream: 465: :LINK linking mods tmod and c2d for identity 2000f
02-20 22:41:31.781 556 7106 E mm-camera: <PPROC ><ERROR> pproc_port_add_modules_to_stream: 465: :LINK linking mods c2d and cpp for identity 2000f
02-20 22:41:31.781 556 7106 E mm-camera: <CPP ><ERROR> cpp_module_notify_add_stream: 2155: :width 0, height 0, stride 0, scanline 0, framelen 0
02-20 22:41:31.781 556 7106 E mm-camera: <CPP ><ERROR> cpp_module_notify_add_stream: 2306: : stream 10, fmt 1, asf_mode 0, sharpness_level 0.000000,asf mask 0, denoise 0, denoise_mask 0, dsdn mask 0,dsdn enable 0, tnr mask 0, tnr enable 0, ds_mask 0
02-20 22:41:31.781 556 7106 E mm-camera: <PPROC ><ERROR> pproc_port_add_modules_to_stream: 465: :LINK linking mods cpp and afs for identity 2000f
02-20 22:41:31.781 556 7106 E mm-camera: <PPROC ><ERROR> pproc_port_add_modules_to_stream: 465: :LINK linking mods afs and ezt for identity 2000f
02-20 22:41:31.782 556 7106 D mm-camera: <MCT >< HIGH> mct_pipeline_start_stream_internal: 3466: Session stream linked successfully session 2
02-20 22:41:31.783 6957 7078 I Thermal-Lib: Thermal-Lib-Client: Registraion successful for camera with handle:1
02-20 22:41:31.783 6957 7078 I Thermal-Lib: Thermal-Lib-Client: Registraion successful for camcorder with handle:2
02-20 22:41:31.783 6957 7078 I QCamera : <HAL ><INFO > int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): 1505: [KPI Perf]: X PROFILE_OPEN_CAMERA camera id 0, rc: 0
02-20 22:41:31.784 6957 7078 E QCamera2HWI: [pano]camera device set_CallBacks_Ex
02-20 22:41:31.784 6957 7078 D QCamera2HWI: EX_DEBUG notify_cb=0xc0d: data_cb_timestamp=0x0: get_memory=0xf70828b9 user=0xf1c3a120
02-20 22:41:31.784 530 663 I ThermalEngine: Thermal-Server: Adding thermal event listener on fd 91
02-20 22:41:31.784 6957 7118 I Thermal-Lib: Thermal-Lib-Client: Client received msg camera 0
02-20 22:41:31.784 6957 7118 I Thermal-Lib: Thermal-Lib-Client: Client received msg camcorder 0
02-20 22:41:31.785 556 7107 E mm-camera: <SENSOR><ERROR> sensor_get_cur_chromatix_name_for_type: 2608: chromatix for res_idx = 0 special_mode_mask = 0 module = 4 chromatix_type = 0 is NULL
02-20 22:41:31.786 556 7107 E mm-camera: <IFACE ><ERROR> iface_util_set_dis_enable_flag: 4755: iface_util_set_dis_enable_flag:4755 DIS enable flag = 0
02-20 22:41:31.786 556 7107 E mm-camera: <SENSOR><ERROR> sensor_get_cur_chromatix_name_for_type: 2608: chromatix for res_idx = 0 special_mode_mask = 0 module = 4 chromatix_type = 0 is NULL
02-20 22:41:31.786 556 7107 E mm-camera: <IFACE ><ERROR> iface_util_set_hfr: 4929: iface_util_set_hfr: can't find hw stream, only save hfr mode
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPreviewSize(const qcamera::QCameraParameters&): 1429: Invalid preview size requested: -1x-1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setVideoSize(const qcamera::QCameraParameters&): 1672: Error !! Invalid video size requested: -1x-1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPictureSize(const qcamera::QCameraParameters&): 1457: CTS Requested rear imx230 picture size -1 x -1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPictureSize(const qcamera::QCameraParameters&): 1551: Invalid picture size requested: -1x-1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPreviewFormat(const qcamera::QCameraParameters&): 1912: Invalid preview format value: NULL
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPictureFormat(const qcamera::QCameraParameters&): 1939: Invalid picture format value: NULL
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setJpegQuality(const qcamera::QCameraParameters&): 2072: Invalid jpeg quality=-1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setJpegQuality(const qcamera::QCameraParameters&): 2080: Invalid jpeg thumbnail quality=-1
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): 2213: error: FPS range value not supported
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setZoom(const qcamera::QCameraParameters&): 3021: invalid value -1 out of (0, 70)
02-20 22:41:31.787 6957 7086 E QCamera : <HAL ><ERROR> int32_t qcamera::QCameraParameters::setJpegThumbnailSize(const qcamera::QCameraParameters&): 1971: error: setting jpeg thumbnail size (-1, -1)
02-20 22:41:31.787 6957 7086 E QCameraParameters: [test]int32_t qcamera::QCameraParameters::setBeautyLevels(const qcamera::QCameraParameters&): setBeautyLevels before = -1
02-20 22:41:31.787 6957 7086 E QCameraParameters: [test]int32_t qcamera::QCameraParameters::setBeautyLevels(const qcamera::QCameraParameters&): setBeautyLevels before = -1
02-20 22:41:31.788 6957 7078 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xffffffea in tid 7078 (Binder_1)
02-20 22:41:31.788 495 495 I DEBUG : property debug.db.uid not set; NOT waiting for gdb.
02-20 22:41:31.788 495 495 I DEBUG : HINT: adb shell setprop debug.db.uid 100000
02-20 22:41:31.788 495 495 I DEBUG : HINT: adb forward tcp:5039 tcp:5039
02-20 22:41:31.889 495 495 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-20 22:41:31.889 495 495 F DEBUG : LineageOS Version: '13.0-20170220-UNOFFICIAL-x2'
02-20 22:41:31.889 495 495 F DEBUG : Build fingerprint: 'LeEco/LeMax2_NA/le_x2_na:6.0.1/FIXNAOP5801607182S/letv07181411:user/release-keys'
02-20 22:41:31.889 495 495 F DEBUG : Revision: '0'
02-20 22:41:31.889 1130 1756 W NativeCrashListener: Couldn't find ProcessRecord for pid 6957
02-20 22:41:31.889 495 495 F DEBUG : ABI: 'arm'
02-20 22:41:31.889 495 495 F DEBUG : pid: 6957, tid: 7078, name: Binder_1 >>> /system/bin/mediaserver <<<
02-20 22:41:31.889 495 495 E DEBUG : AM write failed: Broken pipe
02-20 22:41:31.889 495 495 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffffffea
02-20 22:41:31.896 495 495 F DEBUG : r0 ffffffea r1 ffffffea r2 00000000 r3 00000006
02-20 22:41:31.896 495 495 F DEBUG : r4 ffffffff r5 ffffffea r6 ffffffea r7 f03c0544
02-20 22:41:31.896 495 495 F DEBUG : r8 00000001 r9 ffffffff sl 00001b2d fp f03c0548
02-20 22:41:31.896 495 495 F DEBUG : ip 00000002 sp f03c03e8 lr f6c414b5 pc f6c0992c cpsr 200f0030
02-20 22:41:31.899 495 495 F DEBUG :
02-20 22:41:31.899 495 495 F DEBUG : backtrace:
02-20 22:41:31.899 495 495 F DEBUG : #00 pc 0001792c /system/lib/libc.so (strlen+35)
02-20 22:41:31.899 495 495 F DEBUG : #01 pc 0004f4b1 /system/lib/libc.so (__strlen_chk+4)
02-20 22:41:31.899 495 495 F DEBUG : #02 pc 0000ea73 /system/lib/libutils.so (_ZN7android7String8C2EPKc+14)
02-20 22:41:31.899 495 495 F DEBUG : #03 pc 0005a425 /system/lib/libcameraservice.so
02-20 22:41:31.899 495 495 F DEBUG : #04 pc 000608a3 /system/lib/libcameraservice.so (_ZNK7android12CameraClient13getParametersEv+54)
02-20 22:41:31.899 495 495 F DEBUG : #05 pc 0005059b /system/lib/libcameraservice.so (_ZN7android13CameraService13connectHelperINS_13ICameraClientENS0_6ClientEEEiRKNS_2spIT_EERKNS_7String8EiRKNS_8String16EiNS0_8apiLevelEbbRNS4_IT0_EE+938)
02-20 22:41:31.899 495 495 F DEBUG : #06 pc 00050183 /system/lib/libcameraservice.so (_ZN7android13CameraService22initializeShimMetadataEi+82)
02-20 22:41:31.899 495 495 F DEBUG : #07 pc 0004f7db /system/lib/libcameraservice.so (_ZN7android13CameraService23getLegacyParametersLazyEiPNS_16CameraParametersE+242)
02-20 22:41:31.899 495 495 F DEBUG : #08 pc 0004f45b /system/lib/libcameraservice.so (_ZN7android13CameraService20generateShimMetadataEiPNS_14CameraMetadataE+162)
02-20 22:41:31.900 495 495 F DEBUG : #09 pc 0004fa0b /system/lib/libcameraservice.so (_ZN7android13CameraService24getCameraCharacteristicsEiPNS_14CameraMetadataE+206)
02-20 22:41:31.900 495 495 F DEBUG : #10 pc 00025497 /system/lib/libcamera_client.so (_ZN7android15BnCameraService10onTransactEjRKNS_6ParcelEPS1_j+1034)
02-20 22:41:31.900 495 495 F DEBUG : #11 pc 00053b51 /system/lib/libcameraservice.so (_ZN7android13CameraService10onTransactEjRKNS_6ParcelEPS1_j+144)
02-20 22:41:31.900 495 495 F DEBUG : #12 pc 00020615 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j+72)
02-20 22:41:31.900 495 495 F DEBUG : #13 pc 00027239 /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi+708)
02-20 22:41:31.900 495 495 F DEBUG : #14 pc 00026f43 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+66)
02-20 22:41:31.900 495 495 F DEBUG : #15 pc 0002736f /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)
02-20 22:41:31.900 495 495 F DEBUG : #16 pc 0002eb35 /system/lib/libbinder.so
02-20 22:41:31.900 495 495 F DEBUG : #17 pc 00010497 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+138)
02-20 22:41:31.900 495 495 F DEBUG : #18 pc 000477ad /system/lib/libc.so (_ZL15__pthread_startPv+32)
02-20 22:41:31.900 495 495 F DEBUG : #19 pc 00018c21 /system/lib/libc.so (__start_thread+8)
02-20 22:41:32.066 495 495 F DEBUG :
02-20 22:41:32.066 495 495 F DEBUG : Tombstone written to: /data/tombstones/tombstone_04