[BLU R1 HD ROMs, Kernels, Recoveries, & Other Devel] KazuDante:
[MENTION=2472806]vampirefo[/MENTION] ive already been tweaking around for the camera , im getting newer logs that i never got on the port , ame accross this in the logs and found the patch for it.

links : https://gist.github.com/ishantvivek/ba0ec07f0e8cdf8ca3f2 and https://review.cyanogenmod.org/#/c/77502/

---------- Post added at 07:04 PM ---------- Previous post was at 06:33 PM ----------

Another error log regarding FlashLight:

01-02 19:58:03.044 842 842 E FlashlightController: Couldn't initialize.

01-02 19:58:03.044 842 842 E FlashlightController: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): connectHelper:946: Failed to initialize camera "0": No such device (-19)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:660)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:717)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:98)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.policy.FlashlightController.getCameraId(FlashlightController.java:241)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.policy.FlashlightController.tryInitCamera(FlashlightController.java:108)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.policy.FlashlightController.addListener(FlashlightController.java:219)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.qs.tiles.FlashlightTile.<init>(FlashlightTile.java:48)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.QSTileHost.createTile(QSTileHost.java:428)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.QSTileHost.onTuningChanged(QSTileHost.java:344)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.tuner.TunerService.addTunable(TunerService.java:217)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.tuner.TunerService.addTunable(TunerService.java:193)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.QSTileHost.<init>(QSTileHost.java:154)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.SystemUIFactory.createQSTileHost(SystemUIFactory.java:114)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:1054)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3712)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3708)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:769)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:793)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:230)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.ServiceMonitor.-wrap5(ServiceMonitor.java)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.os.Handler.dispatchMessage(Handler.java:102)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.os.Looper.loop(Looper.java:154)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.app.ActivityThread.main(ActivityThread.java:6126)

01-02 19:58:03.044 842 842 E FlashlightController:	at java.lang.reflect.Method.invoke(Native Method)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

01-02 19:58:03.044 842 842 E FlashlightController:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

01-02 19:58:03.044 842 842 E FlashlightController: Caused by: android.os.ServiceSpecificException: connectHelper:946: Failed to initialize camera "0": No such device (-19)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.os.Parcel.readException(Parcel.java:1698)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.os.Parcel.readException(Parcel.java:1637)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:404)

01-02 19:58:03.044 842 842 E FlashlightController:	at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:704)

01-02 19:58:03.044 842 842 E FlashlightController:	... 27 more

https://android.googlesource.com/platform/frameworks/base/+/fa81d21