Chosen Solution
Hi I tried replacing my rear camera but after installation and restarting my phone the camera no longer works. When I open up the camera app I get a warning message that says “camera failed.” Same thing occurs when reinstalling the old camera. Am I missing something here? Note: I already tried doing a factory reset.
The answer is actually that there are two different cameras for the Galaxy S7. One is made by Sony, and the other by Samsung themselves. You need to replace the camera with the correct type of replacement, then it will work. Here is an article outlining the subtle differences between the cameras: http://www.androidauthority.com/lg-g6-lg… Here is an app you can download to see which camera you have: https://play.google.com/store/apps/detai…
Try to reconnect the camera cable, it may have disconnected.