[Xiaomi Mi 5s Plus ROMs, Kernels, Recoveries, & Oth] Brentolinni:
Switching camera issue still present. Running Lineage 14.1, latest nightly (02-11-17).

I tested two camera apps, Google Camera with HDR+ and Open Camera. However, I also noticed strange behaviour on social media apps that can snap pictures/videos. In Whatsapp the 'switch camera' button switches to the rear camera twice (one without and one with flash), then the selfie camera. In Discord the 'switch camera' button ignores the selfie camera entirely. My suspicion is that the second rear monochrome camera is sometimes seen as the selfie camera, an extra third camera, or disregarded depending on how apps are handling it.

Google camera error crashes when swtiching to the front camera:

11-05 14:56:24.106 6844 6844 E AndroidRuntime: FATAL EXCEPTION: main
11-05 14:56:24.106 6844 6844 E AndroidRuntime: Process: com.google.android.GoogleCamera, PID: 6844
11-05 14:56:24.106 6844 6844 E AndroidRuntime: java.lang.RuntimeException: java.lang.IllegalArgumentException: createDefaultRequest - invalid templateId specified
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at dij.run(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:751)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:95)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6186)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
11-05 14:56:24.106 6844 6844 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: createDefaultRequest - invalid templateId specified
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:694)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.hardware.camera2.impl.ICameraDeviceUserWrapper.createDefaultRequest(ICameraDeviceUserWrapper.java:159)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:668)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at hko.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at fut.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at fvc.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at dlc.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at ebs.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at dii.run(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at ixa.a(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at iwh.run(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at iwz.run(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at java.lang.Thread.run(Thread.java:761)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at asu.run(PG)
11-05 14:56:24.106 6844 6844 E AndroidRuntime: Caused by: android.os.ServiceSpecificException: createDefaultRequest - invalid templateId specified
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.hardware.camera2.legacy.CameraDeviceUserShim.createDefaultRequest(CameraDeviceUserShim.java:608)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	at android.hardware.camera2.impl.ICameraDeviceUserWrapper.createDefaultRequest(ICameraDeviceUserWrapper.java:157)
11-05 14:56:24.106 6844 6844 E AndroidRuntime:	... 15 more

OpenCamera crashes when switching back from the front camera to the rear camera:

11-05 14:56:30.555 7570 7570 D AndroidRuntime: Shutting down VM
11-05 14:56:30.556 7570 7570 E AndroidRuntime: FATAL EXCEPTION: main
11-05 14:56:30.556 7570 7570 E AndroidRuntime: Process: net.sourceforge.opencamera, PID: 7570
11-05 14:56:30.556 7570 7570 E AndroidRuntime: java.lang.RuntimeException: Error retrieving camcorder profile params
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.media.CamcorderProfile.native_get_camcorder_profile(Native Method)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.media.CamcorderProfile.get(CamcorderProfile.java:471)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.getCamcorderProfile(Preview.java:2417)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.setPreviewFps(Preview.java:3322)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.startCameraPreview(Preview.java:5114)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.setupCamera(Preview.java:1644)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.cameraOpened(Preview.java:1476)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview.access$800(Preview.java:89)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview$1.onPostExecute(Preview.java:1329)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at net.sourceforge.opencamera.Preview.Preview$1.onPostExecute(Preview.java:1312)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.os.AsyncTask.finish(AsyncTask.java:667)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.os.AsyncTask.-wrap1(AsyncTask.java)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6186)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
11-05 14:56:30.556 7570 7570 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

Here is the logcat file from the moment I started the apps and then crashed:

puu.sh/yfjHm/b2826ac00e.txt