[Galaxy Grand Prime Android Development] Zippy Dufus:
After several builds reverting different commits, I was unable to figure out which one(s) caused the camera issue.

Then I saw the commit on Aug 11 with a large number of changes and built a 08/12 build which resolved the camera's problems with taking pictures. However, video capture is broken with the error message "Camera error Can't connect to camera". Both the default camera app and OpenCamera share the same issue.

Also, I DL'ed and installed lineage-15.1_j118_20180811_NIGHTLY-gprimelte.zip and it has the same issue with both camera apps.

On thing that I didn't do was a clean flash. I wiped the cache and Dalvik cache only.

I remember enabling video being a problem originally.

Below is a logcat snippet from my build showing where the problem apparently starts.

...

08-12 14:30:17.308 3744 3744 E MediaRecorder: start failed: -2147483648

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: Could not start media recorder.

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: java.lang.RuntimeException: start failed.

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.media.MediaRecorder.start(Native Method)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1382)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2413)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.os.AsyncTask.finish(AsyncTask.java:695)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.os.AsyncTask.-wrap1(Unknown Source:0)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.os.Handler.dispatchMessage(Handler.java:106)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.os.Looper.loop(Looper.java:164)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at android.app.ActivityThread.main(ActivityThread.java:6494)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at java.lang.reflect.Method.invoke(Native Method)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)

08-12 14:30:17.309 3744 3744 E CAM_VideoModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: Handling Camera Access Failure:

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: java.lang.Exception

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1385)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2413)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.os.AsyncTask.finish(AsyncTask.java:695)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.os.AsyncTask.-wrap1(Unknown Source:0)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.os.Handler.dispatchMessage(Handler.java:106)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.os.Looper.loop(Looper.java:164)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at android.app.ActivityThread.main(ActivityThread.java:6494)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at java.lang.reflect.Method.invoke(Native Method)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)

08-12 14:30:17.309 3744 3744 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

08-12 14:30:17.310 3744 3744 E CAM_CameraUtil: Show fatal error dialog

...

​