Development Status / Support?

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
Fair enough, I have a diff applied here:

..............................................

https://gist.github.com/godmachine81/3e5bffa14b4b06d41d5db470961d54ea

Search the gist for the term 'camera' and you'll see some interesting results especially the + (stock) lines.

This command:
Code:
$ grep -i camera /tmp/lineage-vs-stock.diff |wc -l
27
shows there are 27 lines containing the term camera (ignoring case sensitivity) from the entire stock vs lineage ramdisk contents all of which are DIFFERENCES (thats ommitting the common occurances)
this is the output of your command ( for i in `find /dev/ -group camera`;do ls -l $i;done ) searching for permissions. One line is missing

Code:
crw-rw---- 1 system camera 235,   0 2017-04-21 23:47 /dev/IMX258_CAM_CAL_DRV
crw-rw---- 1 system camera 241,   0 2017-04-21 23:47 /dev/kd_camera_hw_bus2
crw-rw---- 1 system camera 239,   0 2017-04-21 23:47 /dev/MAINAF
crw-rw---- 1 system camera 242,   0 2017-04-21 23:47 /dev/kd_camera_hw
crw-rw---- 1 system camera 244,   0 2017-04-21 23:47 /dev/camera-isp
crw-rw---- 1 system camera 236,   0 2017-04-21 23:47 /dev/CAM_CAL_DRV
crw-rw---- 1 system camera 243,   0 2017-04-21 23:47 /dev/camera-fdvt
crw-rw---- 1 system camera 238,   0 2017-04-21 23:47 /dev/kd_camera_flashlight
Logcat from lineageOS with attempt to open camera. I don't have the original logcat from last time, but from memory this one is now defiantly different.
for example line #2819 for sure was not in original one.
 

Attachments

Last edited:

linuxsociety

Senior Member
Dec 18, 2010
431
349
0
Southern Kentucky
this is the output of your command ( for i in `find /dev/ -group camera`;do ls -l $i;done ) searching for permissions. One line is missing

Code:
crw-rw---- 1 system camera 235,   0 2017-04-21 23:47 /dev/IMX258_CAM_CAL_DRV
crw-rw---- 1 system camera 241,   0 2017-04-21 23:47 /dev/kd_camera_hw_bus2
crw-rw---- 1 system camera 239,   0 2017-04-21 23:47 /dev/MAINAF
crw-rw---- 1 system camera 242,   0 2017-04-21 23:47 /dev/kd_camera_hw
crw-rw---- 1 system camera 244,   0 2017-04-21 23:47 /dev/camera-isp
crw-rw---- 1 system camera 236,   0 2017-04-21 23:47 /dev/CAM_CAL_DRV
crw-rw---- 1 system camera 243,   0 2017-04-21 23:47 /dev/camera-fdvt
crw-rw---- 1 system camera 238,   0 2017-04-21 23:47 /dev/kd_camera_flashlight
I see, S5K4H8_CAM_CAL_DRV is missing; can you do:
Code:
ls -l /dev/S5K4H8_CAM_CAL_DRV
Also this file's permissions should be set in init.mt6735.rc and should also be in the file_contexts (I clearly see where it is left out in the lineage ramdisk)

Edit: Does neither camera work in the Lineage rom or just the rear camera?
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
I see, S5K4H8_CAM_CAL_DRV is missing; can you do:
Code:
ls -l /dev/S5K4H8_CAM_CAL_DRV
Also this file's permissions should be set in init.mt6735.rc and should also be in the file_contexts (I clearly see where it is left out in the lineage ramdisk)
here is output

crw------- 1 root root 240, 0 2017-04-21 23:47 /dev/S5K4H8_CAM_CAL_DRV
 

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
...............

Can anyone provide a pastebin for:
Code:
 ls -l /dev/
on the 14.1 lineage rom? Thanks

Code:
C:\Users\Mr>adb shell ls -l /dev/
total 0
crw------- 1 root      root         254,   0 2017-04-21 23:47 BOOT
crw-rw---- 1 system    camera       236,   0 2017-04-21 23:47 CAM_CAL_DRV
crw-rw---- 1 system    camera       235,   0 2017-04-21 23:47 IMX258_CAM_CAL_DRV
crw-rw---- 1 system    camera       239,   0 2017-04-21 23:47 MAINAF
crw-rw---- 1 system    media        245,   0 2017-04-21 23:47 MTK_SMI
crw------- 1 root      root         229,   0 2017-04-21 23:47 MT_pmic_adc_cali
crw------- 1 system    system        10,  57 2017-04-21 23:47 RT_Monitor
crw------- 1 root      root         240,   0 2017-04-21 23:47 S5K4H8_CAM_CAL_DRV
crw-rw---- 1 system    media        160,   0 2017-04-21 23:47 Vcodec
drwxr-xr-x 2 root      root              940 2017-04-21 23:47 __properties__
crw-rw---- 1 system    system        10,  38 2017-04-21 23:47 aal_als
crw------- 1 root      root         247,   0 2017-04-21 23:47 accdet
crw------- 1 root      root          10,  59 2017-04-21 23:47 aed0
crw------- 1 root      root          10,  58 2017-04-21 23:47 aed1
crw-rw-r-- 1 system    radio         10,  48 2017-04-21 23:47 alarm
crw-rw---- 1 radio     system        10,  39 2017-04-21 23:47 als_ps
crw-rw---- 1 adb       adb           10,  37 2017-04-21 23:47 android_adb
crw-rw-rw- 1 root      root          10,  49 2017-04-21 23:47 ashmem
crw------- 1 root      root          10,  56 2017-04-21 23:47 atf_log
drwxr-xr-x 3 root      system             60 2017-04-21 23:47 bfqio
crw-rw-rw- 1 root      root          10,  50 2017-04-21 23:47 binder
drwxr-xr-x 4 root      root              800 2017-04-21 23:48 block
crw------- 1 system    system       233,   0 2017-04-21 23:47 btif
drwxr-xr-x 3 root      root               60 2017-04-21 23:47 bus
crw-rw---- 1 system    camera       243,   0 2017-04-21 23:47 camera-fdvt
crw-rw---- 1 system    camera       244,   0 2017-04-21 23:47 camera-isp
crw-rw---- 1 media     audio        237,   1 2017-04-21 23:47 ccci_aud
crw-rw---- 1 radio     radio        237,   4 2017-04-21 23:47 ccci_fs
crw-rw---- 1 radio     radio        237,  10 2017-04-21 23:47 ccci_imsa
crw-rw---- 1 radio     radio        237,   9 2017-04-21 23:47 ccci_imsc
crw-rw---- 1 radio     radio        237,  11 2017-04-21 23:47 ccci_imsdc
crw-rw---- 1 radio     radio        237,   8 2017-04-21 23:47 ccci_imsv
crw-rw---- 1 radio     radio        237,  12 2017-04-21 23:47 ccci_ioctl0
crw-rw---- 1 radio     radio        237,  13 2017-04-21 23:47 ccci_ioctl1
crw-rw---- 1 radio     radio        237,  14 2017-04-21 23:47 ccci_ioctl2
crw-rw---- 1 radio     radio        237,  15 2017-04-21 23:47 ccci_ioctl3
crw-rw---- 1 radio     radio        237,  16 2017-04-21 23:47 ccci_ioctl4
crw-rw---- 1 radio     radio        237, 100 2017-04-21 23:47 ccci_ipc_1220_0
crw-rw---- 1 radio     radio        237, 102 2017-04-21 23:47 ccci_ipc_2
crw-rw---- 1 radio     radio        237, 104 2017-04-21 23:47 ccci_ipc_4
crw-rw---- 1 radio     radio        237, 105 2017-04-21 23:47 ccci_ipc_5
crw-rw---- 1 radio     radio        237,  17 2017-04-21 23:47 ccci_it
crw-rw---- 1 radio     radio        237,  18 2017-04-21 23:47 ccci_lb_it
crw-rw---- 1 radio     radio        237,   2 2017-04-21 23:47 ccci_md_log_ctrl
crw-rw---- 1 radio     radio        237,  19 2017-04-21 23:47 ccci_mdl_monitor
crw-rw---- 1 radio     radio        237,   0 2017-04-21 23:47 ccci_monitor
crw-rw---- 1 radio     radio        237,  20 2017-04-21 23:47 ccci_rpc
crw------- 1 root      root           5,   1 2017-04-21 23:48 console
crw------- 1 root      root          10,  44 2017-04-21 23:47 cpu_dma_latency
dr-xr-xr-x 3 system    system              0 2017-04-21 23:47 cpuctl
drwxr-xr-x 6 system    system            120 2017-04-21 23:47 cpuset
crw------- 1 root      root          10, 236 2017-04-21 23:47 device-mapper
cr--r----- 1 root      system       196,   0 2017-04-21 23:47 devmap
crw-rw---- 1 system    media         10,  54 2017-04-21 23:47 ebc
crw------- 1 root      root         228,   0 2017-04-21 23:47 emmcrpmb0
lrwxrwxrwx 1 root      root               13 2017-04-21 23:47 fd -> /proc/self/fd
crw-rw---- 1 system    media        227,   0 2017-04-21 23:48 fm
drwxrwx--- 2 root      system             40 2017-04-21 23:50 fscklogs
crw------- 1 root      root         210,   0 2017-04-21 23:47 ft_rw_iic_drv
crw------- 1 root      root          10,  33 2017-04-21 23:47 fts_isp
crw-rw-rw- 1 root      root           1,   7 2017-04-21 23:47 full
crw------- 1 root      root          10, 229 2017-04-21 23:47 fuse
crw-rw---- 1 gps       system       234,   0 2017-04-21 23:47 gps
drwxr-xr-x 2 root      root               60 2017-04-21 23:47 graphics
crw-rw---- 1 system    system        10,  40 2017-04-21 23:47 hwmsensor
drwxr-xr-x 2 root      root              160 2017-04-21 23:47 input
crwxrwxrwx 1 system    graphics      10,  62 2017-04-21 23:47 ion
crw-rw---- 1 system    camera       238,   0 2017-04-21 23:47 kd_camera_flashlight
crw-rw---- 1 system    camera       242,   0 2017-04-21 23:47 kd_camera_hw
crw-rw---- 1 system    camera       241,   0 2017-04-21 23:47 kd_camera_hw_bus2
crw-rw-rw- 1 root      root           1,  11 2017-04-21 23:47 kmsg
crw------- 1 root      root          10, 237 2017-04-21 23:47 loop-control
crw-rw-rw- 1 root      root          10,  60 2017-04-21 23:47 mali0
drwx------ 3 root      system             60 2017-04-21 23:47 memcg
crw------- 1 root      root          10,  41 2017-04-21 23:47 memory_bandwidth
crw-rw---- 1 root      system        10,  51 2017-04-21 23:47 misc-sd
crw-rw---- 1 nfc       radio         10,  61 2017-04-21 23:47 mt6605
crw------- 1 radio     root          10,  63 2017-04-21 23:47 mtgpio
crw------- 1 root      root         248,   0 2017-04-21 23:47 mtk-adc-cali
crw------- 1 root      root          10,  53 2017-04-21 23:47 mtk-kpd
crw-r----- 1 system    system       252,   0 2017-04-21 23:47 mtk_cmdq
crw-rw---- 1 system    graphics     246,   0 2017-04-21 23:47 mtk_disp_mgr
crw-rw---- 1 system    media        249,   0 2017-04-21 23:47 mtk_sched
crw-rw---- 1 root      mtp           10,  36 2017-04-21 23:47 mtp_usb
crw------- 1 root      root          10,  43 2017-04-21 23:47 network_latency
crw------- 1 root      root          10,  42 2017-04-21 23:47 network_throughput
crw-rw-rw- 1 root      root           1,   3 2017-04-21 23:47 null
crw-r----- 1 media     media         10,  46 2017-04-21 23:47 offloadservice
crw------- 1 root      root         250,   0 2017-04-21 23:47 pmic_ftm
crw------- 1 root      root         253,   0 2017-04-21 23:47 pmsg0
crw-rw---- 1 radio     vpn          108,   0 2017-04-21 23:47 ppp
crw-rw-rw- 1 root      radio          5,   2 2017-04-22 00:33 ptmx
drwxr-xr-x 2 root      root                0 1969-12-31 19:00 pts
crw------- 1 root      root           2,   0 2017-04-21 23:47 ptyp0
crw------- 1 root      root           2,   1 2017-04-21 23:47 ptyp1
crw------- 1 root      root           2,   2 2017-04-21 23:47 ptyp2
crw------- 1 root      root           2,   3 2017-04-21 23:47 ptyp3
crw------- 1 root      root           2,   4 2017-04-21 23:47 ptyp4
crw------- 1 root      root           2,   5 2017-04-21 23:47 ptyp5
crw------- 1 root      root           2,   6 2017-04-21 23:47 ptyp6
crw------- 1 root      root           2,   7 2017-04-21 23:47 ptyp7
crw------- 1 root      root           2,   8 2017-04-21 23:47 ptyp8
crw------- 1 root      root           2,   9 2017-04-21 23:47 ptyp9
crw------- 1 root      root           2,  10 2017-04-21 23:47 ptypa
crw------- 1 root      root           2,  11 2017-04-21 23:47 ptypb
crw------- 1 root      root           2,  12 2017-04-21 23:47 ptypc
crw------- 1 root      root           2,  13 2017-04-21 23:47 ptypd
crw------- 1 root      root           2,  14 2017-04-21 23:47 ptype
crw------- 1 root      root           2,  15 2017-04-21 23:47 ptypf
drwxrwx--- 2 radio     radio             280 2017-04-21 23:48 radio
crw-rw-rw- 1 root      root           1,   8 2017-04-21 23:47 random
crw-r----- 1 system    system       251,   0 2017-04-21 23:47 rtc0
crw-rw---- 1 root      system       182,   0 2017-04-21 23:47 sec
crw------- 1 root      root          10, 231 2017-04-21 23:47 snapshot
drwxr-xr-x 2 root      root              900 2017-04-21 23:47 snd
drwxr-xr-x 2 root      root              800 2017-04-21 23:50 socket
crw-rw---- 1 bluetooth net_bt_stack 192,   0 2017-04-21 23:48 stpbt
crw-rw---- 1 gps       gps          191,   0 2017-04-21 23:48 stpgps
crw-rw---- 1 system    system       190,   0 2017-04-21 23:48 stpwmt
drwxr-xr-x 5 system    system            100 2017-04-21 23:47 stune
crw-rw---- 1 system    graphics      10,  47 2017-04-21 23:47 sw_sync
crw-rw---- 1 root      system        10,  34 2017-04-21 23:47 touch
crw------- 1 root      root          10,  52 2017-04-21 23:47 tpd_em_log
crw-rw-rw- 1 root      root           5,   0 2017-04-21 23:47 tty
crw-rw---- 1 radio     radio        237,   3 2017-04-21 23:47 ttyC0
crw-rw---- 1 radio     radio        237,   7 2017-04-21 23:47 ttyC1
crw-rw---- 1 radio     radio        237,   5 2017-04-21 23:47 ttyC2
crw-rw---- 1 radio     radio        237,   6 2017-04-21 23:47 ttyC3
crw-rw---- 1 system    root         231,   0 2017-04-21 23:47 ttyGS0
crw-rw---- 1 system    root         231,   1 2017-04-21 23:47 ttyGS1
crw-rw---- 1 bluetooth radio        231,   2 2017-04-21 23:47 ttyGS2
crw-rw---- 1 system    radio        231,   3 2017-04-21 23:47 ttyGS3
crw------- 1 root      root         231,   4 2017-04-21 23:47 ttyGS4
crw------- 1 root      root         231,   5 2017-04-21 23:47 ttyGS5
crw------- 1 root      root         231,   6 2017-04-21 23:47 ttyGS6
crw------- 1 root      root         231,   7 2017-04-21 23:47 ttyGS7
crw------- 1 root      root         204, 209 2017-04-21 23:47 ttyMT0
crw------- 1 root      root         204, 210 2017-04-21 23:47 ttyMT1
crw-rw---- 1 system    system       204, 211 2017-04-21 23:47 ttyMT2
crw------- 1 root      root         204, 213 2017-04-21 23:47 ttyMT4
crw------- 1 root      root           3,   0 2017-04-21 23:47 ttyp0
crw------- 1 root      root           3,   1 2017-04-21 23:47 ttyp1
crw------- 1 root      root           3,   2 2017-04-21 23:47 ttyp2
crw------- 1 root      root           3,   3 2017-04-21 23:47 ttyp3
crw------- 1 root      root           3,   4 2017-04-21 23:47 ttyp4
crw------- 1 root      root           3,   5 2017-04-21 23:47 ttyp5
crw------- 1 root      root           3,   6 2017-04-21 23:47 ttyp6
crw------- 1 root      root           3,   7 2017-04-21 23:47 ttyp7
crw------- 1 root      root           3,   8 2017-04-21 23:47 ttyp8
crw------- 1 root      root           3,   9 2017-04-21 23:47 ttyp9
crw------- 1 root      root           3,  10 2017-04-21 23:47 ttypa
crw------- 1 root      root           3,  11 2017-04-21 23:47 ttypb
crw------- 1 root      root           3,  12 2017-04-21 23:47 ttypc
crw------- 1 root      root           3,  13 2017-04-21 23:47 ttypd
crw------- 1 root      root           3,  14 2017-04-21 23:47 ttype
crw------- 1 root      root           3,  15 2017-04-21 23:47 ttypf
crw-rw---- 1 system    vpn           10, 200 2017-04-21 23:47 tun
crw-rw---- 1 system    net_bt_stack  10, 239 2017-04-21 23:47 uhid
crw-rw---- 1 system    net_bt_admin  10, 223 2017-04-21 23:47 uinput
crw-rw-rw- 1 root      root           1,   9 2017-04-21 23:47 urandom
drwxrwx--- 3 shell     shell              60 2017-04-21 23:48 usb-ffs
crw-rw---- 1 root      usb           10,  35 2017-04-21 23:47 usb_accessory
crw-rw---- 1 system    system       153,   0 2017-04-21 23:48 wmtWifi
crw-rw---- 1 system    system       154,   0 2017-04-21 23:47 wmtdetect
crw------- 1 root      root          10,  55 2017-04-21 23:47 xLog
crw-r--r-- 1 root      root          10,  45 2017-04-21 23:47 xt_qtaguid
crw-rw-rw- 1 root      root           1,   5 2017-04-21 23:47 zero


---------- Post added at 12:40 AM ---------- Previous post was at 12:35 AM ----------

just for fun can you try to do this:

Code:
su
chmod 0660 /dev/S5K4H8_CAM_CAL_DRV
chown system camera /dev/S5K4H8_CAM_CAL_DRV
And run the camera app and see if anything has changed.
the chown line will not run. Response was
Code:
C:\Users\Mr>adb shell chown system camera /dev/S5K4H8_CAM_CAL_DRV
chown: camera: No such file or directory
and again checking the permission i get this

Code:
C:\Users\Mr>adb shell ls -l /dev/S5K4H8_CAM_CAL_DRV
crw-rw---- 1 system root 240,   0 2017-04-21 23:47 /dev/S5K4H8_CAM_CAL_DRV
 
Last edited:

linuxsociety

Senior Member
Dec 18, 2010
431
349
0
Southern Kentucky
Code:
C:\Users\Mr>adb shell ls -l /dev/
total 0
crw------- 1 root      root         254,   0 2017-04-21 23:47 BOOT
crw-rw---- 1 system    camera       236,   0 2017-04-21 23:47 CAM_CAL_DRV
crw-rw---- 1 system    camera       235,   0 2017-04-21 23:47 IMX258_CAM_CAL_DRV
crw-rw---- 1 system    camera       239,   0 2017-04-21 23:47 MAINAF
crw-rw---- 1 system    media        245,   0 2017-04-21 23:47 MTK_SMI
crw------- 1 root      root         229,   0 2017-04-21 23:47 MT_pmic_adc_cali
crw------- 1 system    system        10,  57 2017-04-21 23:47 RT_Monitor
crw------- 1 root      root         240,   0 2017-04-21 23:47 S5K4H8_CAM_CAL_DRV
crw-rw---- 1 system    media        160,   0 2017-04-21 23:47 Vcodec
drwxr-xr-x 2 root      root              940 2017-04-21 23:47 __properties__
crw-rw---- 1 system    system        10,  38 2017-04-21 23:47 aal_als
crw------- 1 root      root         247,   0 2017-04-21 23:47 accdet
crw------- 1 root      root          10,  59 2017-04-21 23:47 aed0
crw------- 1 root      root          10,  58 2017-04-21 23:47 aed1
crw-rw-r-- 1 system    radio         10,  48 2017-04-21 23:47 alarm
crw-rw---- 1 radio     system        10,  39 2017-04-21 23:47 als_ps
crw-rw---- 1 adb       adb           10,  37 2017-04-21 23:47 android_adb
crw-rw-rw- 1 root      root          10,  49 2017-04-21 23:47 ashmem
crw------- 1 root      root          10,  56 2017-04-21 23:47 atf_log
drwxr-xr-x 3 root      system             60 2017-04-21 23:47 bfqio
crw-rw-rw- 1 root      root          10,  50 2017-04-21 23:47 binder
drwxr-xr-x 4 root      root              800 2017-04-21 23:48 block
crw------- 1 system    system       233,   0 2017-04-21 23:47 btif
drwxr-xr-x 3 root      root               60 2017-04-21 23:47 bus
crw-rw---- 1 system    camera       243,   0 2017-04-21 23:47 camera-fdvt
crw-rw---- 1 system    camera       244,   0 2017-04-21 23:47 camera-isp
crw-rw---- 1 media     audio        237,   1 2017-04-21 23:47 ccci_aud
crw-rw---- 1 radio     radio        237,   4 2017-04-21 23:47 ccci_fs
crw-rw---- 1 radio     radio        237,  10 2017-04-21 23:47 ccci_imsa
crw-rw---- 1 radio     radio        237,   9 2017-04-21 23:47 ccci_imsc
crw-rw---- 1 radio     radio        237,  11 2017-04-21 23:47 ccci_imsdc
crw-rw---- 1 radio     radio        237,   8 2017-04-21 23:47 ccci_imsv
crw-rw---- 1 radio     radio        237,  12 2017-04-21 23:47 ccci_ioctl0
crw-rw---- 1 radio     radio        237,  13 2017-04-21 23:47 ccci_ioctl1
crw-rw---- 1 radio     radio        237,  14 2017-04-21 23:47 ccci_ioctl2
crw-rw---- 1 radio     radio        237,  15 2017-04-21 23:47 ccci_ioctl3
crw-rw---- 1 radio     radio        237,  16 2017-04-21 23:47 ccci_ioctl4
crw-rw---- 1 radio     radio        237, 100 2017-04-21 23:47 ccci_ipc_1220_0
crw-rw---- 1 radio     radio        237, 102 2017-04-21 23:47 ccci_ipc_2
crw-rw---- 1 radio     radio        237, 104 2017-04-21 23:47 ccci_ipc_4
crw-rw---- 1 radio     radio        237, 105 2017-04-21 23:47 ccci_ipc_5
crw-rw---- 1 radio     radio        237,  17 2017-04-21 23:47 ccci_it
crw-rw---- 1 radio     radio        237,  18 2017-04-21 23:47 ccci_lb_it
crw-rw---- 1 radio     radio        237,   2 2017-04-21 23:47 ccci_md_log_ctrl
crw-rw---- 1 radio     radio        237,  19 2017-04-21 23:47 ccci_mdl_monitor
crw-rw---- 1 radio     radio        237,   0 2017-04-21 23:47 ccci_monitor
crw-rw---- 1 radio     radio        237,  20 2017-04-21 23:47 ccci_rpc
crw------- 1 root      root           5,   1 2017-04-21 23:48 console
crw------- 1 root      root          10,  44 2017-04-21 23:47 cpu_dma_latency
dr-xr-xr-x 3 system    system              0 2017-04-21 23:47 cpuctl
drwxr-xr-x 6 system    system            120 2017-04-21 23:47 cpuset
crw------- 1 root      root          10, 236 2017-04-21 23:47 device-mapper
cr--r----- 1 root      system       196,   0 2017-04-21 23:47 devmap
crw-rw---- 1 system    media         10,  54 2017-04-21 23:47 ebc
crw------- 1 root      root         228,   0 2017-04-21 23:47 emmcrpmb0
lrwxrwxrwx 1 root      root               13 2017-04-21 23:47 fd -> /proc/self/fd
crw-rw---- 1 system    media        227,   0 2017-04-21 23:48 fm
drwxrwx--- 2 root      system             40 2017-04-21 23:50 fscklogs
crw------- 1 root      root         210,   0 2017-04-21 23:47 ft_rw_iic_drv
crw------- 1 root      root          10,  33 2017-04-21 23:47 fts_isp
crw-rw-rw- 1 root      root           1,   7 2017-04-21 23:47 full
crw------- 1 root      root          10, 229 2017-04-21 23:47 fuse
crw-rw---- 1 gps       system       234,   0 2017-04-21 23:47 gps
drwxr-xr-x 2 root      root               60 2017-04-21 23:47 graphics
crw-rw---- 1 system    system        10,  40 2017-04-21 23:47 hwmsensor
drwxr-xr-x 2 root      root              160 2017-04-21 23:47 input
crwxrwxrwx 1 system    graphics      10,  62 2017-04-21 23:47 ion
crw-rw---- 1 system    camera       238,   0 2017-04-21 23:47 kd_camera_flashlight
crw-rw---- 1 system    camera       242,   0 2017-04-21 23:47 kd_camera_hw
crw-rw---- 1 system    camera       241,   0 2017-04-21 23:47 kd_camera_hw_bus2
crw-rw-rw- 1 root      root           1,  11 2017-04-21 23:47 kmsg
crw------- 1 root      root          10, 237 2017-04-21 23:47 loop-control
crw-rw-rw- 1 root      root          10,  60 2017-04-21 23:47 mali0
drwx------ 3 root      system             60 2017-04-21 23:47 memcg
crw------- 1 root      root          10,  41 2017-04-21 23:47 memory_bandwidth
crw-rw---- 1 root      system        10,  51 2017-04-21 23:47 misc-sd
crw-rw---- 1 nfc       radio         10,  61 2017-04-21 23:47 mt6605
crw------- 1 radio     root          10,  63 2017-04-21 23:47 mtgpio
crw------- 1 root      root         248,   0 2017-04-21 23:47 mtk-adc-cali
crw------- 1 root      root          10,  53 2017-04-21 23:47 mtk-kpd
crw-r----- 1 system    system       252,   0 2017-04-21 23:47 mtk_cmdq
crw-rw---- 1 system    graphics     246,   0 2017-04-21 23:47 mtk_disp_mgr
crw-rw---- 1 system    media        249,   0 2017-04-21 23:47 mtk_sched
crw-rw---- 1 root      mtp           10,  36 2017-04-21 23:47 mtp_usb
crw------- 1 root      root          10,  43 2017-04-21 23:47 network_latency
crw------- 1 root      root          10,  42 2017-04-21 23:47 network_throughput
crw-rw-rw- 1 root      root           1,   3 2017-04-21 23:47 null
crw-r----- 1 media     media         10,  46 2017-04-21 23:47 offloadservice
crw------- 1 root      root         250,   0 2017-04-21 23:47 pmic_ftm
crw------- 1 root      root         253,   0 2017-04-21 23:47 pmsg0
crw-rw---- 1 radio     vpn          108,   0 2017-04-21 23:47 ppp
crw-rw-rw- 1 root      radio          5,   2 2017-04-22 00:33 ptmx
drwxr-xr-x 2 root      root                0 1969-12-31 19:00 pts
crw------- 1 root      root           2,   0 2017-04-21 23:47 ptyp0
crw------- 1 root      root           2,   1 2017-04-21 23:47 ptyp1
crw------- 1 root      root           2,   2 2017-04-21 23:47 ptyp2
crw------- 1 root      root           2,   3 2017-04-21 23:47 ptyp3
crw------- 1 root      root           2,   4 2017-04-21 23:47 ptyp4
crw------- 1 root      root           2,   5 2017-04-21 23:47 ptyp5
crw------- 1 root      root           2,   6 2017-04-21 23:47 ptyp6
crw------- 1 root      root           2,   7 2017-04-21 23:47 ptyp7
crw------- 1 root      root           2,   8 2017-04-21 23:47 ptyp8
crw------- 1 root      root           2,   9 2017-04-21 23:47 ptyp9
crw------- 1 root      root           2,  10 2017-04-21 23:47 ptypa
crw------- 1 root      root           2,  11 2017-04-21 23:47 ptypb
crw------- 1 root      root           2,  12 2017-04-21 23:47 ptypc
crw------- 1 root      root           2,  13 2017-04-21 23:47 ptypd
crw------- 1 root      root           2,  14 2017-04-21 23:47 ptype
crw------- 1 root      root           2,  15 2017-04-21 23:47 ptypf
drwxrwx--- 2 radio     radio             280 2017-04-21 23:48 radio
crw-rw-rw- 1 root      root           1,   8 2017-04-21 23:47 random
crw-r----- 1 system    system       251,   0 2017-04-21 23:47 rtc0
crw-rw---- 1 root      system       182,   0 2017-04-21 23:47 sec
crw------- 1 root      root          10, 231 2017-04-21 23:47 snapshot
drwxr-xr-x 2 root      root              900 2017-04-21 23:47 snd
drwxr-xr-x 2 root      root              800 2017-04-21 23:50 socket
crw-rw---- 1 bluetooth net_bt_stack 192,   0 2017-04-21 23:48 stpbt
crw-rw---- 1 gps       gps          191,   0 2017-04-21 23:48 stpgps
crw-rw---- 1 system    system       190,   0 2017-04-21 23:48 stpwmt
drwxr-xr-x 5 system    system            100 2017-04-21 23:47 stune
crw-rw---- 1 system    graphics      10,  47 2017-04-21 23:47 sw_sync
crw-rw---- 1 root      system        10,  34 2017-04-21 23:47 touch
crw------- 1 root      root          10,  52 2017-04-21 23:47 tpd_em_log
crw-rw-rw- 1 root      root           5,   0 2017-04-21 23:47 tty
crw-rw---- 1 radio     radio        237,   3 2017-04-21 23:47 ttyC0
crw-rw---- 1 radio     radio        237,   7 2017-04-21 23:47 ttyC1
crw-rw---- 1 radio     radio        237,   5 2017-04-21 23:47 ttyC2
crw-rw---- 1 radio     radio        237,   6 2017-04-21 23:47 ttyC3
crw-rw---- 1 system    root         231,   0 2017-04-21 23:47 ttyGS0
crw-rw---- 1 system    root         231,   1 2017-04-21 23:47 ttyGS1
crw-rw---- 1 bluetooth radio        231,   2 2017-04-21 23:47 ttyGS2
crw-rw---- 1 system    radio        231,   3 2017-04-21 23:47 ttyGS3
crw------- 1 root      root         231,   4 2017-04-21 23:47 ttyGS4
crw------- 1 root      root         231,   5 2017-04-21 23:47 ttyGS5
crw------- 1 root      root         231,   6 2017-04-21 23:47 ttyGS6
crw------- 1 root      root         231,   7 2017-04-21 23:47 ttyGS7
crw------- 1 root      root         204, 209 2017-04-21 23:47 ttyMT0
crw------- 1 root      root         204, 210 2017-04-21 23:47 ttyMT1
crw-rw---- 1 system    system       204, 211 2017-04-21 23:47 ttyMT2
crw------- 1 root      root         204, 213 2017-04-21 23:47 ttyMT4
crw------- 1 root      root           3,   0 2017-04-21 23:47 ttyp0
crw------- 1 root      root           3,   1 2017-04-21 23:47 ttyp1
crw------- 1 root      root           3,   2 2017-04-21 23:47 ttyp2
crw------- 1 root      root           3,   3 2017-04-21 23:47 ttyp3
crw------- 1 root      root           3,   4 2017-04-21 23:47 ttyp4
crw------- 1 root      root           3,   5 2017-04-21 23:47 ttyp5
crw------- 1 root      root           3,   6 2017-04-21 23:47 ttyp6
crw------- 1 root      root           3,   7 2017-04-21 23:47 ttyp7
crw------- 1 root      root           3,   8 2017-04-21 23:47 ttyp8
crw------- 1 root      root           3,   9 2017-04-21 23:47 ttyp9
crw------- 1 root      root           3,  10 2017-04-21 23:47 ttypa
crw------- 1 root      root           3,  11 2017-04-21 23:47 ttypb
crw------- 1 root      root           3,  12 2017-04-21 23:47 ttypc
crw------- 1 root      root           3,  13 2017-04-21 23:47 ttypd
crw------- 1 root      root           3,  14 2017-04-21 23:47 ttype
crw------- 1 root      root           3,  15 2017-04-21 23:47 ttypf
crw-rw---- 1 system    vpn           10, 200 2017-04-21 23:47 tun
crw-rw---- 1 system    net_bt_stack  10, 239 2017-04-21 23:47 uhid
crw-rw---- 1 system    net_bt_admin  10, 223 2017-04-21 23:47 uinput
crw-rw-rw- 1 root      root           1,   9 2017-04-21 23:47 urandom
drwxrwx--- 3 shell     shell              60 2017-04-21 23:48 usb-ffs
crw-rw---- 1 root      usb           10,  35 2017-04-21 23:47 usb_accessory
crw-rw---- 1 system    system       153,   0 2017-04-21 23:48 wmtWifi
crw-rw---- 1 system    system       154,   0 2017-04-21 23:47 wmtdetect
crw------- 1 root      root          10,  55 2017-04-21 23:47 xLog
crw-r--r-- 1 root      root          10,  45 2017-04-21 23:47 xt_qtaguid
crw-rw-rw- 1 root      root           1,   5 2017-04-21 23:47 zero


---------- Post added at 12:40 AM ---------- Previous post was at 12:35 AM ----------



the chown line will not run. Response was

C:\Users\Mr>adb shell chown system camera /dev/S5K4H8_CAM_CAL_DRV
chown: camera: No such file or directory

and again checking the permission i get this

C:\Users\Mr>adb shell ls -l /dev/S5K4H8_CAM_CAL_DRV
crw-rw---- 1 system root 240, 0 2017-04-21 23:47 /dev/S5K4H8_CAM_CAL_DRV
You effectively changed the permissions to 6 for the group node it was just 0600 perms now its 0660 which is right,

Android is weird but it should work like this:

adb shell
su
chown system:camera /dev/S5K4H8_CAM_CAL_DRV

notice the ':' instead of a space in system:camera
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
You effectively changed the permissions to 6 for the group node it was just 0600 perms now its 0660 which is right,

Android is weird but it should work like this:

adb shell
su
chown system:camera /dev/S5K4H8_CAM_CAL_DRV

notice the ':' instead of a space in system:camera


Ok got that one down
Code:
C:\Users\Mr>adb shell ls -l /dev/S5K4H8_CAM_CAL_DRV
crw-rw---- 1 system camera 240,   0 2017-04-21 23:47 /dev/S5K4H8_CAM_CAL_DRV
but camera still will not run , just pops up a message and closes. Cannot get to app screen to try to switch to rear camera
 

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
do you see anything significant to the camera after running the app when you run this command:

logcat -d -s *:E

Also can you paste the output of

Code:
service list|grep -i cam
logcat has a similar line that seemed like base of problem from before.

Code:
unable to initialize device: No such device (-19)
the logcat file attached is just the section added when trying to open camera. ( I pulled a logcat, then opened camera and pulled a second logcat. The attached file is just the added lines )

output from service list|grep -i cam
Code:
91	media.camera.proxy: [android.hardware.ICameraServiceProxy]
113	media.camera: [android.hardware.ICameraService]

is this just a coincidence that there is "19" and "91" both here. could it be a dyslexic problem and system is looking for camera device -19 when it should be the proxy of -91
 

Attachments

Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
............................................... I really wish I could just get a full output of the full filesystem contents of the 7.x rom that has broken camera. Most importantly I need the contents of /lib /etc /system/etc /system/lib.

..............................................
here is the contents of /system/lib and /system/etc

its 80mb so could not attach here

https://drive.google.com/open?id=0ByJNKJ8bGC50cEF0ZWFvR2dUY0k

You asked for files and here is also the file permissions
/system/etc
Code:
C:\Users\Mr>adb shell ls -l /system/etc
total 3500
-rw-r--r--  1 root root   17903 2008-08-01 08:00 CHANGELOG-CM.txt
-rw-r--r--  1 root root  212641 2008-08-01 08:00 NOTICE.html.gz
-rw-r--r--  1 root root   11674 2008-08-01 08:00 agps_profiles_conf2.xml
-rw-r--r--  1 root root  591470 2008-08-01 08:00 apns-conf.xml
-rw-r--r--  1 root root   11586 2008-08-01 08:00 audio_device.xml
-rw-r--r--  1 root root    5491 2008-08-01 08:00 audio_effects.conf
-rw-r--r--  1 root root    6234 2008-08-01 08:00 audio_policy.conf
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 bash
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 bluetooth
-rw-r--r--  1 root root    1045 2008-08-01 08:00 clatd.conf
-rw-r--r--  1 root root  338473 2008-08-01 08:00 compiled-classes
-rw-r--r--  1 root root   18941 2008-08-01 08:00 event-log-tags
drwxr-xr-x  3 root root    4096 2017-04-21 23:46 firmware
-rw-r--r--  1 root root   16984 2008-08-01 08:00 fonts.xml
-rw-r--r--  1 root root     194 2008-08-01 08:00 gps.conf
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 hostapd
-rw-r--r--  1 root root      56 2008-08-01 08:00 hosts
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 init
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 init.d
-rw-r--r--  1 root root   10791 2008-08-01 08:00 media_codecs.xml
-rw-r--r--  1 root root    5489 2008-08-01 08:00 media_codecs_ffmpeg.xml
-rw-r--r--  1 root root    4572 2008-08-01 08:00 media_codecs_google_audio.xml
-rw-r--r--  1 root root     973 2008-08-01 08:00 media_codecs_google_telephony.xml
-rw-r--r--  1 root root    5475 2008-08-01 08:00 media_codecs_google_video_le.xml
-rw-r--r--  1 root root   35705 2008-08-01 08:00 media_profiles.xml
-rw-r--r--  1 root root     592 2008-08-01 08:00 mkshrc
-rw-r--r--  1 root root    2382 2008-08-01 08:00 mtk_omx_core.cfg
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 nano
-rw-r--r--  1 root root     420 2008-08-01 08:00 perfservscntbl.txt
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 permissions
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 ppp
-rw-r--r--  1 root root  152297 2008-08-01 08:00 preloaded-classes
-rw-r--r--  1 root root     286 2008-08-01 08:00 public.libraries.txt
-rw-r--r--  1 root root 2010684 2008-08-01 08:00 recovery-resource.dat
drwxr-xr-x  3 root root    4096 2017-04-21 23:46 security
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 ssh
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 sysconfig
drwxr-xr-x 15 root root    4096 2017-04-21 23:46 terminfo
-rw-r--r--  1 root root    3286 2008-08-01 08:00 vimrc
drwxr-xr-x  2 root root    4096 2017-04-21 23:46 wifi
/system/lib is too long to put in the post so i attached the output of ls-l
 

Attachments

Last edited:

linuxsociety

Senior Member
Dec 18, 2010
431
349
0
Southern Kentucky
I've determined that beside the permissions being set properly that the .so libs for the camera2.apk to work were ported from a device that uses a different front and rear camera. After you try to run the camera app it will try to load these libs and crash the app resulting in a device not found in logcat. In order to fix we will need to move our /system/lib/hw/ .so files needed for the camera from the original working rom and also probably replace camera2.apk with the working camera2.apk from our original rom. This means you will actually be running a camera app from Android M instead of N. Another option would be to only replace the libs, remove the original camera2.apk, and install a 3rd party camera app from the play store.
 

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
I've determined that beside the permissions being set properly that the .so libs for the camera2.apk to work were ported from a device that uses a different front and rear camera. After you try to run the camera app it will try to load these libs and crash the app resulting in a device not found in logcat. In order to fix we will need to move our /system/lib/hw/ .so files needed for the camera from the original working rom and also probably replace camera2.apk with the working camera2.apk from our original rom. This means you will actually be running a camera app from Android M instead of N. Another option would be to only replace the libs, remove the original camera2.apk, and install a 3rd party camera app from the play store.

If you can tell which .so files that are needed I can swap them out.

I just swapped all the files in the HW folder.

I think this was done before, but we will do it again and have it documented here .

I just modified the boot.img so all those permissions are happening at boot, and made the HW changes, zipped it back up and flashed it.

stock camera still has error in logcat device not found

Installed camera from fdroid.

and it also fails to connect to device. just says "An Error Ocurred Accessing camera" and "camera unavailable"

new lines in logcat do not seem to help me
Code:
04-22 19:22:41.362  5610  5610 E AndroidRuntime: FATAL EXCEPTION: main
04-22 19:22:41.362  5610  5610 E AndroidRuntime: Process: com.simplemobiletools.camera, PID: 5610
04-22 19:22:41.362  5610  5610 E AndroidRuntime: a.a
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.getSelectedResolution(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.L(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.h(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.T(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.S(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.Q(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.f(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity$h.onClick(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.view.View.performClick(View.java:5637)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:22433)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:751)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6126)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Update:

now after changing the HW files I am having screen lock ups and audio server constantly stopping. This brute force method I tried is not good idea
 
Last edited:

linuxsociety

Senior Member
Dec 18, 2010
431
349
0
Southern Kentucky
If you can tell which .so files that are needed I can swap them out.

I just swapped all the files in the HW folder.

I think this was done before, but we will do it again and have it documented here .

I just modified the boot.img so all those permissions are happening at boot, and made the HW changes, zipped it back up and flashed it.

stock camera still has error in logcat device not found

Installed camera from fdroid.

and it also fails to connect to device. just says "An Error Ocurred Accessing camera" and "camera unavailable"

new lines in logcat do not seem to help me
Code:
04-22 19:22:41.362  5610  5610 E AndroidRuntime: FATAL EXCEPTION: main
04-22 19:22:41.362  5610  5610 E AndroidRuntime: Process: com.simplemobiletools.camera, PID: 5610
04-22 19:22:41.362  5610  5610 E AndroidRuntime: a.a
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.getSelectedResolution(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.L(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.d.h(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.T(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.S(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.Q(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity.f(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.simplemobiletools.camera.activities.MainActivity$h.onClick(Unknown Source)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.view.View.performClick(View.java:5637)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:22433)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:751)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6126)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
04-22 19:22:41.362  5610  5610 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Update:

now after changing the HW files I am having screen lock ups and audio server constantly stopping. This brute force method I tried is not good idea
You didn't just replace ALL /system/lib/hw files with the originals did you? Can you give me output of ls -l /system/lib/hw/ Thanks!
 

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
You didn't just replace ALL /system/lib/hw files with the originals did you? Can you give me output of ls -l /system/lib/hw/ Thanks!
I need to reflash again first. I had to reformat the phone, I was having strange permission denied problems while trying to access /sdcard/Download. Something left over on internal storage from another earlier testing I was doing.
Will update tmw.

Yes I did change all 21 files from the /lib/hw folder
 
  • Like
Reactions: meroher

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
You didn't just replace ALL /system/lib/hw files with the originals did you? Can you give me output of ls -l /system/lib/hw/ Thanks!
here is the output from the ls -l /system/lib/hw with all the files from V12
Code:
total 3900
-rw-r--r-- 1 root root   22148 2008-08-01 08:00 audio.a2dp.default.so
-rw-r--r-- 1 root root   18048 2008-08-01 08:00 audio.primary.default.so
-rw-r--r-- 1 root root 1101620 2008-08-01 08:00 audio.primary.mt6735.so
-rw-r--r-- 1 root root   38596 2008-08-01 08:00 audio.r_submix.default.so
-rw-r--r-- 1 root root   22160 2008-08-01 08:00 audio.usb.default.so
-rw-r--r-- 1 root root   96048 2008-08-01 08:00 audio_policy.default.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 audio_policy.stub.so
-rw-r--r-- 1 root root 1829580 2008-08-01 08:00 bluetooth.default.so
-rw-r--r-- 1 root root   42800 2008-08-01 08:00 camera.mt6735.so
-rw-r--r-- 1 root root   87816 2008-08-01 08:00 gps.mt6735.so
-rw-r--r-- 1 root root   22476 2008-08-01 08:00 gralloc.default.so
-rw-r--r-- 1 root root   51444 2008-08-01 08:00 gralloc.mt6735.so
-rw-r--r-- 1 root root  190204 2008-08-01 08:00 hwcomposer.mt6735.so
-rw-r--r-- 1 root root   13872 2008-08-01 08:00 keystore.default.so
-rw-r--r-- 1 root root   18052 2008-08-01 08:00 lights.mt6735.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 local_time.default.so
-rw-r--r-- 1 root root   18072 2008-08-01 08:00 memtrack.mt6735.so
-rw-r--r-- 1 root root  194412 2008-08-01 08:00 mmsdk.mt6735.so
-rw-r--r-- 1 root root   13964 2008-08-01 08:00 power.default.so
-rw-r--r-- 1 root root  124808 2008-08-01 08:00 sensors.mt6735.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 vibrator.default.so
I opened the camera.mt6735.so from the original LineageOS hw folder and the camera.mt6735.so from V12 version of stock phone in a hex editor to compare the files. They showed to be identical.


Went back to the original files in the hw folder and here is output of ls -l
Code:
total 3528
-rw-r--r-- 1 root root   22148 2008-08-01 08:00 audio.a2dp.default.so
-rw-r--r-- 1 root root   18160 2008-08-01 08:00 audio.primary.default.so
-rw-r--r-- 1 root root 1105712 2008-08-01 08:00 audio.primary.mt6735.so
-rw-r--r-- 1 root root   34544 2008-08-01 08:00 audio.r_submix.default.so
-rw-r--r-- 1 root root   22252 2008-08-01 08:00 audio.usb.default.so
-rw-r--r-- 1 root root   96100 2008-08-01 08:00 audio_policy.default.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 audio_policy.stub.so
-rw-r--r-- 1 root root 1411928 2008-08-01 08:00 bluetooth.default.so
-rw-r--r-- 1 root root   42800 2008-08-01 08:00 camera.mt6735.so
-rw-r--r-- 1 root root   87816 2008-08-01 08:00 gps.mt6735.so
-rw-r--r-- 1 root root   22476 2008-08-01 08:00 gralloc.default.so
-rw-r--r-- 1 root root   51444 2008-08-01 08:00 gralloc.mt6735.so
-rw-r--r-- 1 root root  190204 2008-08-01 08:00 hwcomposer.mt6735.so
-rw-r--r-- 1 root root   13872 2008-08-01 08:00 keystore.default.so
-rw-r--r-- 1 root root   18052 2008-08-01 08:00 lights.mt6735.so
-rw-r--r-- 1 root root   18052 2008-08-01 08:00 lights.mt6737m.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 local_time.default.so
-rw-r--r-- 1 root root   18072 2008-08-01 08:00 memtrack.mt6735.so
-rw-r--r-- 1 root root  194412 2008-08-01 08:00 mmsdk.mt6735.so
-rw-r--r-- 1 root root   13964 2008-08-01 08:00 power.default.so
-rw-r--r-- 1 root root   14080 2008-08-01 08:00 power.mt6735.so
-rw-r--r-- 1 root root  124808 2008-08-01 08:00 sensors.mt6735.so
-rw-r--r-- 1 root root   13952 2008-08-01 08:00 vibrator.default.so
I can see the audio.so files are different but the gps and camera .so files are already the same. there must be something else missing.
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
I did full logcat not filtered by "*:E" and then searched for "cam" and got a few more entries that say camera service has been disabled.

Code:
---------- C:\ANDROID\BLUR1-HD-TEST-PHONE\LINEAGEOS-TEST-FILES\LINEAGEOS-LOGCAT-CAMERA-6.TXT
04-23 11:27:52.580   720   720 W PackageManager: Unknown permission com.android.vending.BILLING in package com.sumoing.camu
04-23 11:28:18.528   720   720 I SystemServiceManager: Starting com.android.server.camera.CameraService
04-23 11:28:18.887   720   926 W PackageManager: Unknown permission com.android.vending.BILLING in package com.sumoing.camu
04-23 11:28:58.070   720   720 E RetailDemoModeService: Unable to access camera while getting camera id list
04-23 11:28:58.070   720   720 E RetailDemoModeService: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 11:28:58.070   720   720 E RetailDemoModeService: 	at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:660)
04-23 11:28:58.070   720   720 E RetailDemoModeService: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:717)
04-23 11:28:58.070   720   720 E RetailDemoModeService: 	at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:98)
04-23 11:28:58.070   720   720 E RetailDemoModeService: Caused by: android.os.ServiceSpecificException: connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 11:28:58.070   720   720 E RetailDemoModeService: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:704)
04-23 11:29:03.930   720  2004 I ActivityManager: Start proc 2397:com.android.camera2/u0a39 for broadcast com.android.camera2/com.android.camera.DisableCameraReceiver
04-23 11:29:04.003  2397  2397 I CAM_DisableCamRcver: number of camera: 2
04-23 11:29:04.120   720  2032 I ActivityManager: Start proc 2418:com.android.gallery3d/u0a21 for broadcast com.android.gallery3d/com.android.camera.DisableCameraReceiver
04-23 11:29:04.209  2418  2418 I G:DisableCameraReceiver: back camera found: 0
04-23 11:29:13.057  2047  2478 W MediaProvider: Missing volume for /system/media/audio/ui/camera_click.ogg; assuming invalid
04-23 11:29:13.061  2047  2478 W MediaProvider: Missing volume for /system/media/audio/ui/camera_focus.ogg; assuming invalid
04-23 11:29:34.708   720   759 I ActivityManager: Killing 2397:com.android.camera2/u0a39 (adj 906): empty #18
04-23 11:30:44.235  2498  2742 E AutoInstalls: Unable to add favorite: com.cyngn.cameranext/com.android.camera.CameraLauncher
04-23 11:30:44.235  2498  2742 E AutoInstalls: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.cyngn.cameranext/com.android.camera.CameraLauncher}
04-23 11:30:44.238  2498  2742 E AutoInstalls: Unable to add favorite: org.cyanogenmod.snap/com.android.camera.CameraLauncher
04-23 11:30:44.238  2498  2742 E AutoInstalls: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraLauncher}
I don't know how to find the reason though. I can see process 2004 calls process 2397 that says disable 2 cameras, but don't know where to go from there.
But that line also comes after the device not found line, which is back to the original problem .
Do you think that the "unknown" permission line could be important?
 
Last edited:

Tiggam

Senior Member
Feb 23, 2008
205
47
28
Little Rock
zionzero.us
I did full logcat not filtered by "*:E" and then searched for "cam" and got a few more entries that say camera service has been disabled.

Code:
---------- C:\ANDROID\BLUR1-HD-TEST-PHONE\LINEAGEOS-TEST-FILES\LINEAGEOS-LOGCAT-CAMERA-6.TXT
04-23 11:27:52.580   720   720 W PackageManager: Unknown permission com.android.vending.BILLING in package com.sumoing.camu
[code]

I don't know how to find the reason though. I can see process 2004 calls process 2397 that says disable 2 cameras, but don't know where to go from there. 
But that line also comes after the device not found line, which is back to the original problem .
Do you think that the "unknown" permission line could be important?[/QUOTE]

I may be completely out of bounds but does this [URL="http://stackoverflow.com/questions/15053868/unknown-permission-com-android-vending-billing"]Stackflow page[/URL] help with the unknown permissions issue? 

It states 

"You cannot use the Android emulator to test In-app Billing. "
 
  • Like
Reactions: mrmazak

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
I may be completely out of bounds but does this Stackflow page help with the unknown permissions issue?

It states

"You cannot use the Android emulator to test In-app Billing. "
that might help out. I am not using an emulator but i did not install gapps and do not have google play installed.
I will flash gapps and see if that message goes away.

Well now with gaps installed , it is different camera app and that "unknown permission billing" line is gone. And there is much more line returned that contain "cam" in the logcat line.

Code:
---------- C:\ANDROID\BLUR1-HD-TEST-PHONE\LINEAGEOS-TEST-FILES\LINEAGEOS-LOGCAT-CAMERA-8.TXT
04-23 16:11:30.265   474   474 W PackageManager: Unknown permission com.android.gallery3d.permission.STORAGE_CHANGE in package com.android.camera2
04-23 16:11:32.015   474   474 I SystemServiceManager: Starting com.android.server.camera.CameraService
04-23 16:11:32.402   474   716 W PackageManager: Unknown permission com.android.gallery3d.permission.STORAGE_CHANGE in package com.android.camera2
04-23 16:11:53.972  1591  1677 W GAv4    : CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
04-23 16:11:54.776  1613  1636 E AutoInstalls: Unable to add favorite: com.google.android.GoogleCamera/com.android.camera.CameraLauncher
04-23 16:11:54.776  1613  1636 E AutoInstalls: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.GoogleCamera/com.android.camera.CameraLauncher}
04-23 16:11:56.653  1720  1785 W GAv4    : CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
04-23 16:12:04.856  1842  1903 I GAV2    : Thread[GAThread,5,main]: No campaign data found.
04-23 16:12:10.407  2528  2547 W GAv4    : CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
04-23 16:12:11.675   474  1464 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera2/com.android.camera.CameraLauncher bnds=[18,656][189,876] (has extras)} from uid 10085 on display 0
04-23 16:12:11.708   474   487 I ActivityManager: Start proc 2610:com.android.camera2/u0a39 for activity com.android.camera2/com.android.camera.CameraLauncher
04-23 16:12:12.005  2610  2610 V CAM_QuickActivity: START onCreate: Activity = [email protected]
04-23 16:12:12.066   474   696 I ActivityManager: START u0 {cmp=com.android.camera2/com.android.camera.PermissionsActivity} from uid 10039 on display 0
04-23 16:12:12.073   474  1718 W ActivityManager: Duplicate finish request for ActivityRecord{68f28fe u0 com.android.camera2/com.android.camera.CameraLauncher t9 f}
04-23 16:12:12.074  2610  2610 V CAM_QuickActivity: END onCreate: Activity = [email protected]
04-23 16:12:12.140  2610  2610 V CAM_QuickActivity: START onCreate: Activity = [email protected]
04-23 16:12:12.178  2610  2610 V CAM_QuickActivity: END onCreate: Activity = [email protected]
04-23 16:12:12.179  2610  2610 V CAM_QuickActivity: START onStart: Activity = [email protected]
04-23 16:12:12.179  2610  2610 V CAM_QuickActivity: END onStart: Activity = [email protected]
04-23 16:12:12.184  2610  2610 V CAM_QuickActivity: START onResume: Activity = [email protected]
04-23 16:12:12.203  2610  2610 V CAM_QuickActivity: END onResume: Activity = [email protected]
04-23 16:12:12.226  2610  2610 V CAM_QuickActivity: START onPause: Activity = [email protected]
04-23 16:12:12.226  2610  2610 V CAM_QuickActivity: END onPause: Activity = [email protected]
04-23 16:12:12.522  2610  2610 V CAM_QuickActivity: START onDestroy: Activity = [email protected]
04-23 16:12:12.526  2610  2610 V CAM_QuickActivity: END onDestroy: Activity = [email protected]
04-23 16:12:14.156  2411  2511 I GAV2    : Thread[GAThread,5,main]: No campaign data found.
04-23 16:12:14.546  2732  2732 W GAv4    : CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
04-23 16:12:18.069   474  1716 I ActivityManager: START u0 {cmp=com.android.camera2/com.android.camera.CameraActivity} from uid 10039 on display 0
04-23 16:12:18.139  2610  2610 V CAM_QuickActivity: START onCreate: Activity = [email protected]
04-23 16:12:18.188  2610  2610 I CameraManagerGlobal: Connecting to camera service
04-23 16:12:18.204   299   734 I CameraService: CameraService::connect call (PID -1 "cameraserver", camera ID 0) for HAL version default and Camera API version 1
04-23 16:12:18.273   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
04-23 16:12:18.274   299   734 I CameraFlashlight: Opening camera 0
04-23 16:12:18.280   299   734 E CameraFlashlight: Could not open camera 0: -19
04-23 16:12:18.280   299   734 I CameraFlashlight: Destroying camera 0
04-23 16:12:18.289   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1
04-23 16:12:18.290   299   734 I CameraService: disconnect: Disconnected client for camera 0 for PID 299
04-23 16:12:18.290   299   734 E CameraService: initializeShimMetadata: Error initializing shim metadata: Status(-8): '10: connectHelper:946: Failed to initialize camera "0": No such device (-19)'
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: Could not get device listing from camera subsystem
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:660)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:717)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:98)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at com.android.ex.camera2.portability.AndroidCamera2AgentImpl.updateCameraDevices(AndroidCamera2AgentImpl.java:110)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at com.android.ex.camera2.portability.AndroidCamera2AgentImpl.<init>(AndroidCamera2AgentImpl.java:100)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at com.android.ex.camera2.portability.CameraAgentFactory.getAndroidCameraAgent(CameraAgentFactory.java:129)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1515)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: Caused by: android.os.ServiceSpecificException: connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 16:12:18.293  2610  2610 E CAM2PORT_AndCam2AgntImp: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:704)
04-23 16:12:18.308   299   299 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 1) for HAL version default and Camera API version 1
04-23 16:12:18.358   299   299 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=1, newStatus=0
04-23 16:12:18.359   299   299 I CameraFlashlight: Opening camera 1
04-23 16:12:18.365   299   299 E CameraFlashlight: Could not open camera 1: -19
04-23 16:12:18.365   299   299 I CameraFlashlight: Destroying camera 1
04-23 16:12:18.373   299   299 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=1, newStatus=1
04-23 16:12:18.374   299   299 I CameraService: disconnect: Disconnected client for camera 1 for PID 2610
04-23 16:12:18.375  2610  2610 W CameraBase: An error occurred while connecting to camera 1: Service not available
04-23 16:12:18.376   299   734 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 0) for HAL version default and Camera API version 1
04-23 16:12:18.416   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
04-23 16:12:18.416   299   734 I CameraFlashlight: Opening camera 0
04-23 16:12:18.422   299   734 E CameraFlashlight: Could not open camera 0: -19
04-23 16:12:18.422   299   734 I CameraFlashlight: Destroying camera 0
04-23 16:12:18.426   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1
04-23 16:12:18.427   299   734 I CameraService: disconnect: Disconnected client for camera 0 for PID 2610
04-23 16:12:18.428  2610  2610 W CameraBase: An error occurred while connecting to camera 0: Service not available
04-23 16:12:18.447   299   734 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 0) for HAL version default and Camera API version 1
04-23 16:12:18.486   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
04-23 16:12:18.487   299   734 I CameraFlashlight: Opening camera 0
04-23 16:12:18.493   299   734 E CameraFlashlight: Could not open camera 0: -19
04-23 16:12:18.493   299   734 I CameraFlashlight: Destroying camera 0
04-23 16:12:18.503   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1
04-23 16:12:18.504   299   734 I CameraService: disconnect: Disconnected client for camera 0 for PID 2610
04-23 16:12:18.504  2610  2610 W CameraBase: An error occurred while connecting to camera 0: Service not available
04-23 16:12:18.508   299  2894 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 1) for HAL version default and Camera API version 1
04-23 16:12:18.541   299  2894 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=1, newStatus=0
04-23 16:12:18.542   299  2894 I CameraFlashlight: Opening camera 1
04-23 16:12:18.549   299  2894 E CameraFlashlight: Could not open camera 1: -19
04-23 16:12:18.549   299  2894 I CameraFlashlight: Destroying camera 1
04-23 16:12:18.554   299  2894 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=1, newStatus=1
04-23 16:12:18.555   299  2894 I CameraService: disconnect: Disconnected client for camera 1 for PID 2610
04-23 16:12:18.555  2610  2610 W CameraBase: An error occurred while connecting to camera 1: Service not available
04-23 16:12:18.837  2610  2610 V CAM_CameraController: Closing camera
04-23 16:12:18.839  2610  2847 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
04-23 16:12:18.845  2610  2610 V CAM_SettingsManager: listeners: [[email protected]]
04-23 16:12:18.852  2610  2610 V CAM_SettingsManager: listeners: [[email protected], [email protected]]
04-23 16:12:18.852  2610  2610 V CAM_SettingsManager: listeners: [[email protected], [email protected], com.android.camera.widget.IndicatorIconCont[email protected]]
04-23 16:12:18.857   299   734 I CameraService: CameraService::connect call (PID -1 "cameraserver", camera ID 0) for HAL version default and Camera API version 1
04-23 16:12:18.896   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
04-23 16:12:18.896   299   734 I CameraFlashlight: Opening camera 0
04-23 16:12:18.905   299   734 E CameraFlashlight: Could not open camera 0: -19
04-23 16:12:18.905   299   734 I CameraFlashlight: Destroying camera 0
04-23 16:12:18.909   299   734 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1
04-23 16:12:18.910   299   734 I CameraService: disconnect: Disconnected client for camera 0 for PID 299
04-23 16:12:18.910   299   734 E CameraService: initializeShimMetadata: Error initializing shim metadata: Status(-8): '10: connectHelper:946: Failed to initialize camera "0": No such device (-19)'
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: Unable to get camera ID
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:660)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:717)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:98)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.one.v2.Camera2OneCameraManagerImpl.findFirstCameraIdFacing(Camera2OneCameraManagerImpl.java:156)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.one.v2.Camera2OneCameraManagerImpl.findFirstBackCameraId(Camera2OneCameraManagerImpl.java:135)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.one.v2.Camera2OneCameraManagerImpl.findCameraId(Camera2OneCameraManagerImpl.java:128)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.one.v2.Camera2OneCameraManagerImpl.findFirstCameraFacing(Camera2OneCameraManagerImpl.java:102)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.CaptureModule.updateCameraCharacteristics(CaptureModule.java:390)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.CaptureModule.init(CaptureModule.java:417)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1665)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: Caused by: android.os.ServiceSpecificException: connectHelper:946: Failed to initialize camera "0": No such device (-19)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: 	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:704)
04-23 16:12:18.912  2610  2610 W CAM_Camera2OneCamMgr: No back-facing camera found.
04-23 16:12:18.913  2610  2610 E CAM_FatalErrorHandler: 	at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
04-23 16:12:18.913  2610  2610 E CAM_FatalErrorHandler: 	at com.android.camera.CaptureModule.updateCameraCharacteristics(CaptureModule.java:396)
04-23 16:12:18.913  2610  2610 E CAM_FatalErrorHandler: 	at com.android.camera.CaptureModule.init(CaptureModule.java:417)
04-23 16:12:18.913  2610  2610 E CAM_FatalErrorHandler: 	at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1665)
04-23 16:12:18.913  2610  2610 E CAM_FatalErrorHandler: 	at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
04-23 16:12:18.969  2610  2610 V CAM_QuickActivity: END onCreate: Activity = com.a[email protected]
04-23 16:12:18.970  2610  2610 V CAM_QuickActivity: START onStart: Activity = [email protected]
04-23 16:12:18.989  2610  2610 V CAM_QuickActivity: END onStart: Activity = [email protected]
04-23 16:12:18.991  2610  2610 V CAM_QuickActivity: START onResume: Activity = [email protected]
04-23 16:12:19.086  2610  2610 V CAM_QuickActivity: END onResume: Activity = [email protected]
04-23 16:12:19.504   474   500 I ActivityManager: Displayed com.android.camera2/com.android.camera.CameraActivity: +1s415ms
04-23 16:12:19.919  2610  2610 V CAM_QuickActivity: START onStop: Activity = [email protected]
04-23 16:12:19.919  2610  2610 V CAM_QuickActivity: END onStop: Activity = [email protected]
04-23 16:12:19.919  2610  2610 V CAM_QuickActivity: START onDestroy: Activity = [email protected]
04-23 16:12:19.921  2610  2610 V CAM_QuickActivity: END onDestroy: Activity = [email protected]
04-23 16:12:25.075  2610  2610 V CAM_QuickActivity: START onPause: Activity = [email protected]
04-23 16:12:25.079  2610  2610 V CAM_CameraActivity: onPause closing camera
04-23 16:12:25.079  2610  2610 V CAM_CameraController: Closing camera
04-23 16:12:25.080  2610  2847 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
04-23 16:12:25.080  2610  2610 V CAM_QuickActivity: END onPause: Activity = [email protected]
04-23 16:12:25.796  2610  2610 V CAM_QuickActivity: START onStop: Activity = [email protected]
04-23 16:12:25.796  2610  2610 V CAM_QuickActivity: END onStop: Activity = [email protected]
04-23 16:12:25.796  2610  2610 V CAM_QuickActivity: START onDestroy: Activity = [email protected]
04-23 16:12:26.254  2610  2610 V CAM_QuickActivity: END onDestroy: Activity = [email protected]
04-23 16:12:32.327   474  1109 I ActivityManager: Start proc 3218:com.google.android.apps.photos/u0a116 for broadcast com.google.android.apps.photos/.camerashortcut.CameraShortcutBroadcastReceiver
04-23 16:12:35.609   474  1718 I ActivityManager: Start proc 3248:com.google.android.apps.photos:CameraShortcut/u0a116 for service com.google.android.apps.photos/.camerashortcut.CameraShortcutServiceImpl
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
I was talking @KazuDante , he was the one who ported a few roms for us. He also had successfully built bootable kernels from other sources that the blu-r1hd will run on.

There is a clone of this device. The "wiko u feel" sources can be downloaded from http://wikogeek.com/index.php?telephone=U+FEEL&region=EUROPE&version=% need to select "U FEEL" NOT "U FEEL LiTE"

it is Europe region but appearently boots this US phone and runs it 100% including camera, so if the camera not working is kernel problem like you suspect. The additional kernel sources should help identify the problem. I hope.

But I have a question about this, How can it be a kernel problem if the lineageOS rom is using the stock kernel?
 
Last edited: