[Kernel Development] Cannot access camera with custom kernel

ryanguy426

Senior Member
Jul 18, 2013
160
44
0
Hello all, I'm trying to get into kernel development for personal use (at the moment :D). Currently, the kernel boots and has the features I currently wish for it to have (and it actually performs amazingly well!), but it won't connect to the camera for whatever reason. I know it's an issue with "my" kernel because I restored the stock one, and the camera opened up just fine.

Below I've provided some links to help with diagnosis. Although I am looking into this myself, I'd appreciate some crowd sourced help with this!

Logs
Logcat (via ADB): http://pastebin.com/efH0SXny
Logcat (via ADB, grep'd for "camera"): http://pastebin.com/Dwuf9C96
dmesg (via adb shell dmesg): http://pastebin.com/uTF3YRAs
Kernel Source: https://github.com/ryanguy426/Flyme-Shamu-Kernel/
Java Error:
E/CAM_FatalErrorHandler( 5729): Handling Camera Access Failure:
E/CAM_FatalErrorHandler( 5729): java.lang.Exception
E/CAM_FatalErrorHandler( 5729): at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
E/CAM_FatalErrorHandler( 5729): at com.android.camera.one.v2.Camera2OneCameraOpenerImpl$1.onError(Camera2OneCameraOpenerImpl.java:154)
E/CAM_FatalErrorHandler( 5729): at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks$1.run(CameraDeviceImpl.java:1207)
E/CAM_FatalErrorHandler( 5729): at android.os.Handler.handleCallback(Handler.java:739)
E/CAM_FatalErrorHandler( 5729): at android.os.Handler.dispatchMessage(Handler.java:95)
E/CAM_FatalErrorHandler( 5729): at android.os.Looper.loop(Looper.java:135)
E/CAM_FatalErrorHandler( 5729): at android.os.HandlerThread.run(HandlerThread.java:61)
E/CAM_CameraUtil( 5729): Show fatal error dialog


Software/ROM/Device information
Android/Kernel Version: 5.1.1
ROM Version: Flyme 5.1.10.24R beta
Device: Nexus 6 (shamu)
Firmware: Factory 7.0 firmware (NBD90Z)

(User) Modifications to the ROM after flash
Although I believe it's unrelated, as I've tested the stock ROM kernel with these as well. Just covering all the bases.

Magisk V8, Xposed.

Other info

Note: If I managed to miss important information which can help track down the issue, please let me know so I can provide it!

Yes, I know I'm running Flyme, and a beta version of it at that. Yes, I understand there's going to be issues since it's a highly modified OEM ROM. I also admit I'm a bit of a noob when it comes to this and that I have very little coding experience with C (other than C#, which doesn't apply to this situation). But I'm looking at this as a personal learning project, and I hope to get some insight on how to fix these sorts of issues in the future on my own!
 
Last edited:
  • Like
Reactions: duttyend