[LG L Fino Questions & Answers] christpp:
Hello,

I am trying to port CM 12.1 to LG L Fino (d290n/d295). Currently, almost everything is working, but getting the cameras to work seems to be the biggest issue. The phone has the HI841 sensor for the rear camera and the HI707 sensor for the front camera. I have put the stock camera drivers on the kernel and , from the kernel messages, it is shown that both the cameras are picked up and initialized correctly during boot.

<6>[ 1.389166] i2c /dev entries driver
<7>[ 1.391789] msm_vidc: 1: Failed to read qcom,load-freq-tbl from device tree
<7>[ 1.391825] msm_vidc: 1: no elements in frequency table
<7>[ 1.391855] msm_vidc: 1: Failed to read qcom,reg-presets from device tree
<7>[ 1.391985] msm_vidc: 1: Failed to read qcom,buffer-type-tz-usage-table from device tree
<7>[ 1.392037] msm_vidc: 1: Q6 hfi device probe called
<6>[ 1.404394] msm_actuator_i2c_probe:1061 msm_actuator_i2c_probe: succeeded
<6>[ 1.404558] msm_actuator_i2c_probe:1061 msm_actuator_i2c_probe: succeeded
<3>[ 1.406453] rt8542_probe: id is NULL
<3>[ 1.406527] msm_led_get_dt_data:559 called
<3>[ 1.406665] msm_led_get_dt_data:589 subdev id 0
<3>[ 1.406797] msm_led_get_dt_data:594 msm_led_get_dt_data qcom,flash-name rt8542, rc 0
<3>[ 1.406944] msm_led_get_dt_data:658 msm_led_get_dt_data gpio count 1
<3>[ 1.407024] msm_led_get_dt_data:671 msm_led_get_dt_data gpio_array[0] = 18
<3>[ 1.407165] msm_flash_init_gpio_pin_tbl:521 msm_flash_init_gpio_pin_tbl qcom,gpio-flash-en 18
<3>[ 1.407299] msm_led_i2c_flash_create_v4lsubdev:98 Enter
<3>[ 1.407445] msm_led_i2c_flash_create_v4lsubdev:118 probe success
<3>[ 1.407533] msm_flash_i2c_probe:837 msm_flash_i2c_probe:837 probe success
<3>[ 1.408048] msm_eeprom_alloc_memory_map: pageen not needed
<3>[ 1.408187] msm_camera_request_gpio_table:551 invalid gpio_tbl (null) / size 0
<3>[ 1.624680] msm_camera_request_gpio_table:551 invalid gpio_tbl (null) / size 0
<6>[ 1.625549] imx219_init_module:333
<4>[ 1.625796] imx219_init_module: Sensor power is set as Rev.6(Line:362)
<3>[ 1.627536] imx219_init_module:378 rc -19
<3>[ 1.627901] msm_sensor_get_dt_data qcom,product-kor 0, rc -22
<3>[ 1.640157] qup_i2c f9928000.i2c: QUP: I2C status flags :0x1363c8, irq:132
<3>[ 1.640462] qup_i2c f9928000.i2c: I2C slave addr:0x1a not connected
<3>[ 1.640954] msm_sensor_match_id: imx219: read id failed
<3>[ 1.641376] qup_i2c f9928000.i2c: QUP: I2C status flags :0x1363c8, irq:132
<3>[ 1.641867] qup_i2c f9928000.i2c: I2C slave addr:0x1a not connected
<3>[ 1.642168] msm_sensor_match_id: imx219: read id failed
<3>[ 1.642783] qup_i2c f9928000.i2c: QUP: I2C status flags :0x1363c8, irq:132
<3>[ 1.643083] qup_i2c f9928000.i2c: I2C slave addr:0x1a not connected
<3>[ 1.643576] msm_sensor_match_id: imx219: read id failed
<3>[ 1.644120] msm_sensor_power_up:1140 match id failed rc -107
<3>[ 1.644365] msm_sensor_power_up:1156 failed
<3>[ 1.655464] msm_sensor_i2c_probe imx219 power up failed
<4>[ 1.655932] imx219: probe of 6-0034 failed with error -107
<6>[ 1.656301] hi841_init_module:255
<4>[ 1.656736] hi841_init_module: HW rev is 6. Sensor power is set as hi841_power_setting_on_8x10
<3>[ 1.658256] hi841_init_module:277 rc -19
<3>[ 1.658815] msm_sensor_get_dt_data qcom,product-kor 0, rc -22
<6>[ 1.682341] hi841_sensor_match_id: read id: 841 expected id 841:
<3>[ 1.682781] hi841_sensor_match_id:233 success!
<3>[ 1.704059] msm_sensor_power_down exit
<6>[ 1.704436] hi707_init_module:2904
<3>[ 1.706247] msm_sensor_get_dt_data qcom,product-kor 0, rc -22
<3>[ 1.804782] hi707_sensor_match_id: read id: b8 expected id b8:
<3>[ 1.805224] hi707_sensor_match_id: product_kor - -1
<3>[ 1.805465] hi707_sensor_match_id: maker gpio - 86
<3>[ 1.806120] vt_cam_id(gpio 86) is 0
<3>[ 1.908513] msm_sensor_power_down exit

Now, for the android part, I have tried different approaches:

Copying all the proprietary libs, including the camera HAL module, from the stock rom. Android complains about a missing call to "_ZN7androidCamera9isPreviewE" , which I find out that exists in libcamera_client.so. This library (the stock rom is kitkat) is using BufferQueue Constructor, which has been deprecated in Lollipop. I have reverted the BufferQueue Constructors in framework/native and did a rebuilt. I also copied the libcamera_client.so library from the stock rom/ The device won't boot (stays on the cm logo) and from the logcat, I see that the camera module keeps reinitializing. Removing the camera HAL module lets the device bootup and work correctly.

E/mm-camera( 9244): server_process_module_init:59, int mods
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/rmnet6/use_optimistic: No such file or directory
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/rmnet7/use_optimistic: No such file or directory
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/rmnet_usb0/use_optimistic: No such file or directory
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/sit0/use_optimistic: No such file or directory
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/teql0/use_optimistic: No such file or directory
E/Netd ( 9242): Failed to open /proc/sys/net/ipv6/conf/wlan0/use_optimistic: No such file or directory
E/mm-camera( 9244): isp_util_gen_hws_caps: integrating kernel vfe is pending
E/mm-camera( 9244): isp_tintless_create: using BG stats for tintless!, isp version = 20
E/mm-camera( 9244): is_module_init: Enter
E/mm-camera( 9244): cpp_hardware_find_subdev:903: no cpp device found.
E/mm-camera( 9244): cpp_hardware_create:40: error: cannot find cpp subdev
E/mm-camera( 9244): cpp_module_create_cpp_ctrl:164, failed, cannnot create cpp hardware instance
E/mm-camera( 9244): cpp_module_init:54 failed
E/mm-camera( 9244): vpe_module_init:26 name=vpe
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=video0 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev0 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev1 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev2 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev3 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev4 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev5 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev6 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev7 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev8 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev9 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev10 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev11 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=v4l-subdev12 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=video1 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9244): vpe_hardware_find_subdev:716: entity.name=video2 entity.revision=0
E/mm-camera( 9244): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9244): vpe_hardware_find_subdev:683: no more media devices
E/mm-camera( 9244): vpe_hardware_find_subdev:728: no vpe device found.
E/mm-camera( 9244): vpe_hardware_create:31: error: cannot find vpe subdev
E/mm-camera( 9244): vpe_module_create_vpe_ctrl:141, failed, cannnot create vpe hardware instance
E/mm-camera( 9244): vpe_module_init:34 failed
E/mm-camera( 9244): c2d_module_init:28 name=c2d
E/mm-camera-img( 9244): img_core_get_comp:37] role 0 name qcom.wavelet
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9244): img_core_get_comp:47] find component role 0 name qcom.wavelet
W/linker ( 9244): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6ffffffe arg 0x10fc
W/linker ( 9244): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6fffffff arg 0x1
E/mm-camera-img( 9244): wd_comp_load:1571] WD library loaded successfully dsp 0
E/mm-camera-img( 9244): module_imglib_create_port:1254 portname imglib_d2_i0
E/mm-camera-img( 9244): img_core_get_comp:37] role 2 name qcom.faceproc
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[2] role 2 name qcom.faceproc
E/mm-camera-img( 9244): img_core_get_comp:47] find component role 2 name qcom.faceproc
W/linker ( 9244): libmmcamera_faceproc.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
E/mm-camera-img( 9244): img_core_get_comp:37] role 1 name qcom.hdr
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9244): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9244): img_core_get_comp:47] find component role 1 name qcom.hdr
E/mm-camera-img( 9244): hdr_comp_load:1137] HDR library loaded successfully
E/hdr ( 9244): Port hdr_dummy initialized
E/mm-camera-img( 9244): module_imglib_create_dummy_port:1362 portname imglib_dymmy_d1_i0
I/ThermalEngine( 309): Sensor:pa_therm0:37000 mC
W/linker ( 9282): libmmcamera_imglib.so: unused DT entry: type 0x6ffffffe arg 0x1c40
W/linker ( 9282): libmmcamera_imglib.so: unused DT entry: type 0x6fffffff arg 0x1
I/Netd ( 9280): Netd 1.0 starting
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/dummy0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/lo/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/p2p0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet1/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet2/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet3/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet4/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet5/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet6/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet7/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet8/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet1/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet2/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet3/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet4/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet5/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet6/use_optimistic: No such file or directory
E/mm-camera( 9282): server_process_module_init:59, int mods
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet7/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/rmnet_usb0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/sit0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/teql0/use_optimistic: No such file or directory
E/Netd ( 9280): Failed to open /proc/sys/net/ipv6/conf/wlan0/use_optimistic: No such file or directory
E/mm-camera( 9282): isp_util_gen_hws_caps: integrating kernel vfe is pending
E/mm-camera( 9282): isp_tintless_create: using BG stats for tintless!, isp version = 20
E/mm-camera( 9282): is_module_init: Enter
E/mm-camera( 9282): cpp_hardware_find_subdev:903: no cpp device found.
E/mm-camera( 9282): cpp_hardware_create:40: error: cannot find cpp subdev
E/mm-camera( 9282): cpp_module_create_cpp_ctrl:164, failed, cannnot create cpp hardware instance
E/mm-camera( 9282): cpp_module_init:54 failed
E/mm-camera( 9282): vpe_module_init:26 name=vpe
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=video0 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev0 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev1 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev2 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev3 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev4 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev5 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev6 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev7 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev8 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev9 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev10 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev11 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=v4l-subdev12 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=video1 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9282): vpe_hardware_find_subdev:716: entity.name=video2 entity.revision=0
E/mm-camera( 9282): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9282): vpe_hardware_find_subdev:683: no more media devices
E/mm-camera( 9282): vpe_hardware_find_subdev:728: no vpe device found.
E/mm-camera( 9282): vpe_hardware_create:31: error: cannot find vpe subdev
E/mm-camera( 9282): vpe_module_create_vpe_ctrl:141, failed, cannnot create vpe hardware instance
E/mm-camera( 9282): vpe_module_init:34 failed
E/mm-camera( 9282): c2d_module_init:28 name=c2d
E/mm-camera-img( 9282): img_core_get_comp:37] role 0 name qcom.wavelet
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9282): img_core_get_comp:47] find component role 0 name qcom.wavelet
W/linker ( 9282): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6ffffffe arg 0x10fc
W/linker ( 9282): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6fffffff arg 0x1
E/mm-camera-img( 9282): wd_comp_load:1571] WD library loaded successfully dsp 0
E/mm-camera-img( 9282): module_imglib_create_port:1254 portname imglib_d2_i0
E/mm-camera-img( 9282): img_core_get_comp:37] role 2 name qcom.faceproc
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[2] role 2 name qcom.faceproc
E/mm-camera-img( 9282): img_core_get_comp:47] find component role 2 name qcom.faceproc
W/linker ( 9282): libmmcamera_faceproc.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
E/mm-camera-img( 9282): img_core_get_comp:37] role 1 name qcom.hdr
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9282): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9282): img_core_get_comp:47] find component role 1 name qcom.hdr
E/mm-camera-img( 9282): hdr_comp_load:1137] HDR library loaded successfully
E/hdr ( 9282): Port hdr_dummy initialized
E/mm-camera-img( 9282): module_imglib_create_dummy_port:1362 portname imglib_dymmy_d1_i0
I/rmt_storage( 299): rmt_storage_connect_cb: clnt_h=0xa conn_h=0xb6403090
I/rmt_storage( 299): rmt_storage_rw_iovec_cb: /boot/modem_fs1: clnt_h=0x1: req_h=0xe msg_id=3: R/W request received
I/rmt_storage( 299): wakelock acquired: 1, error no: 42
I/rmt_storage( 299): rmt_storage_client_thread: /boot/modem_fs1: clnt_h=0x1 Unblock worker thread (th_id: -1236807552)
I/rmt_storage( 299): rmt_storage_client_thread: /boot/modem_fs1: clnt_h=0x1: req_h=0xe msg_id=3: Bytes written = 1572864
I/rmt_storage( 299): rmt_storage_client_thread: /boot/modem_fs1: clnt_h=0x1: req_h=0xe msg_id=3: Send response: res=0 err=0
I/rmt_storage( 299): rmt_storage_client_thread: /boot/modem_fs1: clnt_h=0x1 About to block rmt_storage client thread (th_id: -1236807552) wakelock released: 1, error no: 22
I/rmt_storage( 299):
I/rmt_storage( 299): rmt_storage_disconnect_cb: clnt_h=0x0xa conn_h=0x0xb6403090
I/ThermalEngine( 309): Sensor:pa_therm0:37000 mC
W/linker ( 9327): libmmcamera_imglib.so: unused DT entry: type 0x6ffffffe arg 0x1c40
W/linker ( 9327): libmmcamera_imglib.so: unused DT entry: type 0x6fffffff arg 0x1
E/mm-camera( 9327): server_process_module_init:59, int mods
E/mm-camera( 9327): isp_util_gen_hws_caps: integrating kernel vfe is pending
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet0/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet1/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet2/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet3/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet4/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet5/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet6/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet7/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet8/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet0/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet1/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet2/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet3/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet4/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet5/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet6/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet7/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/rmnet_usb0/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/sit0/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/teql0/use_optimistic: No such file or directory
E/Netd ( 9325): Failed to open /proc/sys/net/ipv6/conf/wlan0/use_optimistic: No such file or directory
E/mm-camera( 9327): isp_tintless_create: using BG stats for tintless!, isp version = 20
E/mm-camera( 9327): is_module_init: Enter
E/mm-camera( 9327): cpp_hardware_find_subdev:903: no cpp device found.
E/mm-camera( 9327): cpp_hardware_create:40: error: cannot find cpp subdev
E/mm-camera( 9327): cpp_module_create_cpp_ctrl:164, failed, cannnot create cpp hardware instance
E/mm-camera( 9327): cpp_module_init:54 failed
E/mm-camera( 9327): vpe_module_init:26 name=vpe
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=video0 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev0 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev1 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev2 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev3 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev4 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev5 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev6 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev7 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev8 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev9 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev10 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev11 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=v4l-subdev12 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=video1 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9327): vpe_hardware_find_subdev:716: entity.name=video2 entity.revision=0
E/mm-camera( 9327): vpe_hardware_find_subdev:711: done enumerating media entities
E/mm-camera( 9327): vpe_hardware_find_subdev:683: no more media devices
E/mm-camera( 9327): vpe_hardware_find_subdev:728: no vpe device found.
E/mm-camera( 9327): vpe_hardware_create:31: error: cannot find vpe subdev
E/mm-camera( 9327): vpe_module_create_vpe_ctrl:141, failed, cannnot create vpe hardware instance
E/mm-camera( 9327): vpe_module_init:34 failed
E/mm-camera( 9327): c2d_module_init:28 name=c2d
E/mm-camera-img( 9327): img_core_get_comp:37] role 0 name qcom.wavelet
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9327): img_core_get_comp:47] find component role 0 name qcom.wavelet
W/linker ( 9327): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6ffffffe arg 0x10fc
W/linker ( 9327): libmmcamera_wavelet_lib.so: unused DT entry: type 0x6fffffff arg 0x1
E/mm-camera-img( 9327): wd_comp_load:1571] WD library loaded successfully dsp 0
E/mm-camera-img( 9327): module_imglib_create_port:1254 portname imglib_d2_i0
E/mm-camera-img( 9327): img_core_get_comp:37] role 2 name qcom.faceproc
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[2] role 2 name qcom.faceproc
E/mm-camera-img( 9327): img_core_get_comp:47] find component role 2 name qcom.faceproc
W/linker ( 9327): libmmcamera_faceproc.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
E/mm-camera-img( 9327): img_core_get_comp:37] role 1 name qcom.hdr
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet
E/mm-camera-img( 9327): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr
E/mm-camera-img( 9327): img_core_get_comp:47] find component role 1 name qcom.hdr
E/mm-camera-img( 9327): hdr_comp_load:1137] HDR library loaded successfully
E/hdr ( 9327): Port hdr_dummy initialized
E/mm-camera-img( 9327): module_imglib_create_dummy_port:1362 portname imglib_dymmy_d1_i0
I/ThermalEngine( 309): Sensor:pa_therm0:37000 mC
W/linker ( 9364): libmmcamera_imglib.so: unused DT entry: type 0x6ffffffe arg 0x1c40
W/linker ( 9364): libmmcamera_imglib.so: unused DT entry: type 0x6fffffff arg 0x1
I/Netd ( 9362): Netd 1.0 starting
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/default/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/dummy0/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/lo/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/p2p0/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet0/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet1/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet2/accept_ra_rt_table: No such file or directory
E/Netd ( 9362): Failed to open /proc/sys/net/ipv6/conf/rev_rmnet3/accept_ra_rt_table: No such file or directory

I have also tried to build the open source qualcomm camera HAL, but the devices could not be opened, it was trying to open /dev/video1 and /dev/video2 with no success (I do not have a logcat right now, if it is needed I can provide one)

As far as I can understand, LG has used their custom av framework on this phone (???).

Does anyone have any idea on getting this to work properly?

Thank you very much for your help in advance, and sorry for the long post!:cool: