Hi ,
My speaker at ear was not working due to oil went inside ear speaker. I removed the speaker and cleaned and put it back. Now the issue with speaker is fixed. But Camera and flash light stopped working. Error is "Failed to open " camera. Also YouTube app stopped working.
I tried keeping back side open of and It is working when screws are not inserted. While inserting screws it stops working. What may be the reason for that
Right, I spent the last few days wracking my brain over this problem and similar, so hopefully my solution actually sheds light, and I think in your case it might!
I needed to replace my screen so had to do a full opening. I thought maybe I damaged the motherboard or something as I stupidly had to remove the screen first (not good) so thought the heat I applied did something to the camera module. Nope. Basically, when I put the phone back together the following wasn't working: Camera, Flashlight, YouTube. The camera would fail in safe mode, it would fail in the *#808# hardware check, I did a factory reset multiple times, flashed different stock ROMS (my phone is vanilla and not rooted, so I only used official ROMs)... not a single thing helped. I realised very few posts complaining about the issue actually transparently say they opened their device, for embarrassment or ego, or I dunno, but it was super vague as if the camera/YouTube failed all on its own, which is odd to say the least.
Anyway, in my case, do not tighten the screws tightly when you reassemble the phone. This is part of the problem. Screw enough that it catches and then leave it. Don't screw it any more. Next is where yours might relate to mine in terms of camera. There is a tiny wire that trails from the motherboard (near the vibration motor) down to the loudspeaker. In my case, that wire was getting pinched when I put the loudspeaker module back in place. This is what caused my issues for the most part. So check the wire is seated in the frame outlines where they should be.
TLDR: Check the very thin wire from mobo to speaker - that might getting pinched during reassembly.
I really hope this helps you because it was getting on my nerves that noone suggested it. And if it does not help... I'm sorry... I hope you find a solution soon!