[Lineage] Cannot connect to camera / Rear camera and flash not working

gaglia83

Senior Member
May 7, 2017
55
1
8
I'm getting seriously mad at this crazy issue. My rear camera and flash stopped working a few days ago for no reason at all. I'm running the latest Lineage OS nightly (2018-02-22) but I also tried a couple of older builds, with the same result. I do not have Gapps installed, I only use F-Droid. Phone is rooted.

If I try to open the default camera app I get "Camera Error - can't connect to camera". Then it closes.

Using Barcode Scanner says "Sorry, the Android camera encountered a problem. You may need to restart the device".

Taking pictures or videos with Signal says "camera unavailable" and closes the video window.

Open Camera works if I select the front camera, but selecting the rear camera says "Failed to open camera. Camera may be in use by another application"

Also the flashlight doesn't work: neither the stock widget, nor the "Search Light" app ("The camera is in use by another application").

I killed the stock camera process and cleared cache and data. Nothing.

I did the same for any other app which might be potentially connected to the use of the camera, I had even to reset settings of Signal etc.

I opened a teminal and run
Code:
su
killall mediaserver
killall cameraserver
to no avail.

Eventually I freshly reinstalled another Lineage image, clearing Cache and Dalvik - but no data.

As far as I understand, at this point the next logical step would be a full reset. Either that works or it's an hardware fault. Before arriving at that point, does anyone have some other idea? I would be really thankful.

Thanks and cheers.
 

alb108

New member
Apr 7, 2018
1
0
0
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
 

gaglia83

Senior Member
May 7, 2017
55
1
8
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
Oh gosh, I hope you're wrong! Actually, since I could not manage to solve the problem myself I assumed it was indeed a hardware problem, so I have just ordered a replacement! It will arrive soon! I will let you know as soon as it arrives. Please remind me here if I forget (I do receive notifications)
 

gaglia83

Senior Member
May 7, 2017
55
1
8
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
Hi, I can confirm that (luckily) the new phone's camera works fine :) it was probably a hardware problem on my old phone (also the flash was not working). Maybe it is the case for your HTC as well?
 

gaglia83

Senior Member
May 7, 2017
55
1
8
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
I forgot to mention: the replacement phone I got is exactly the same as the old one (S4 mini LTE, serranoltexx) and also the Lineage version and apps installed.