[Moto G 2015 Q&A, Help & Troubleshooting] Pacer_456:
I am building 7.0 for osprey and got it to boot fine, but the camera is not working; cannot connect to camera. Can anyone help with this?

Also tried different camera apps but they also didn't work.
[MENTION=4480917]Alberto97[/MENTION] How did you get it to work on your rom?

Logcat when I open the Google camera app:

09-25 09:45:56.205 12357 12374 D CAM_UsageStats: checking signing for package: com.google.android.GoogleCamera

09-25 09:45:56.254 12357 12357 D CAM_ActivityLifetime: onCreate()

09-25 09:45:56.263 12357 12357 I CAM_Instrumentation: CameraActivity: App OnCreate duration: 101ms

09-25 09:45:56.263 12357 12357 I CAM_Instrumentation: CameraActivity: App OnCreate End to Activity OnCreate Start: 130ms

09-25 09:45:56.263 12357 12357 I CAM_CameraUiModule: Checking for SecureActivity

09-25 09:45:56.264 12357 12357 I CAM_CameraUiModule: Initializing Window Flags

09-25 09:45:56.354 12357 12357 I CAM_CameraUiModule: Initializing Camera Ui

09-25 09:45:56.474 12357 12357 I CAM_CameraUiModule: Checking for Capture Intent

09-25 09:45:56.476 12357 12357 I CAM_CameraUiModule: Initializing Action Bar

09-25 09:45:56.515 12357 12357 D CAM_Camera2OneCamMgr: Getting First BACK Camera

09-25 09:45:56.526 12357 12357 I CameraManagerGlobal: Connecting to camera service

09-25 09:45:56.567 12357 12357 W CAM_Camera2OneCamMgr: No back-facing camera found.

09-25 09:45:56.567 12357 12357 D CAM_Camera2OneCamMgr: Getting First FRONT Camera

09-25 09:45:56.567 12357 12357 W CAM_Camera2OneCamMgr: No front-facing camera found.

09-25 09:45:56.573 12357 12357 D CAM_GoogleCameraInit: Futures.transform: PermissionsStartupTask

09-25 09:45:56.583 12357 12357 D CAM_GoogleCameraInit: Futures.transform: WaitForCameraDevicesTask

09-25 09:45:56.584 12357 12357 D CAM_GoogleCameraInit: Futures.transform: CaptureModuleStartupTask

09-25 09:45:56.584 12357 12357 D CAM_GoogleCameraInit: Futures.transform: ActivityControllerStartTask

09-25 09:45:56.585 12357 12357 I CAM_Instrumentation: CameraActivity: OnCreate duration: 322ms

09-25 09:45:56.587 12357 12357 D CAM_ActivityLifetime: onStart()

09-25 09:45:56.590 12357 12357 D CAM_ActivityLifetime: onResume()

09-25 09:45:56.596 12357 12384 I CAM_PermissionsChecker: Checking for critical permissions.

09-25 09:45:56.606 12357 12384 I CAM_GoogleCameraInit: Future@7b54d22: DONE: PermissionsStartupTask

09-25 09:45:56.616 12357 12384 W CAM_CamDeviceVerify: Attempting to reconnect to the camera service with a 7000ms timeout in 200ms increments.

09-25 09:45:56.682 2785 2785 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'

09-25 09:45:56.694 12357 12385 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: (Ifd751822f5)

09-25 09:45:56.694 12357 12385 I Adreno-EGL: OpenGL ES Shader Compiler Version: XE031.06.00.05

09-25 09:45:56.694 12357 12385 I Adreno-EGL: Build Date: 01/26/16 Tue

09-25 09:45:56.694 12357 12385 I Adreno-EGL: Local Branch: AU12_SBA

09-25 09:45:56.694 12357 12385 I Adreno-EGL: Remote Branch:

09-25 09:45:56.694 12357 12385 I Adreno-EGL: Local Patches:

09-25 09:45:56.694 12357 12385 I Adreno-EGL: Reconstruct Branch:

09-25 09:45:56.703 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x11

09-25 09:45:56.705 12357 12385 I OpenGLRenderer: Initialized EGL, version 1.4

09-25 09:45:56.705 12357 12385 D OpenGLRenderer: Swap behavior 1

09-25 09:45:56.707 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x12

09-25 09:45:56.713 12385 12385 I RenderThread: type=1400 audit(0.0:132): avc: denied { read } for uid=10075 name="gpuclk" dev="sysfs" ino=11499 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

09-25 09:45:56.713 12385 12385 I RenderThread: type=1400 audit(0.0:133): avc: denied { open } for uid=10075 path="/sys/devices/soc.0/1c00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpuclk" dev="sysfs" ino=11499 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

09-25 09:45:56.713 12385 12385 I RenderThread: type=1400 audit(0.0:134): avc: denied { getattr } for uid=10075 path="/sys/devices/soc.0/1c00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpuclk" dev="sysfs" ino=11499 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

09-25 09:45:56.718 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x13

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=17

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 17

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=18

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 18

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=19

09-25 09:45:56.728 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 19

09-25 09:45:56.774 1696 1738 I ActivityManager: Displayed com.google.android.GoogleCamera/com.android.camera.CameraLauncher: +1s208ms

09-25 09:45:56.809 1696 6273 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.AppWindowToken.notifyAppStopped:389 com.android.server.wm.WindowManagerService.notifyAppStopped:4456 com.android.server.am.ActivityStack.activityStoppedLocked:1252 com.android.server.am.ActivityManagerService.activityStopped:6899

09-25 09:45:56.978 1696 1738 I WindowManager: Destroying surface Surface(name=Starting com.google.android.GoogleCamera) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.WindowStateAnimator.finishExit:565 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:491 com.android.server.wm.WindowAnimator.updateWindowsLocked:303 com.android.server.wm.WindowAnimator.animateLocked:704

09-25 09:45:59.734 2785 2785 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'

09-25 09:45:59.745 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x11

09-25 09:45:59.750 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x12

09-25 09:45:59.760 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x13

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=17

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 17

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=18

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 18

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=19

09-25 09:45:59.762 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 19

09-25 09:46:00.646 1696 1706 I art : Background partial concurrent mark sweep GC freed 43667(2MB) AllocSpace objects, 17(600KB) LOS objects, 33% free, 15MB/23MB, paused 1.830ms total 121.916ms

09-25 09:46:01.971 12146 12151 I art : Do partial code cache collection, code=111KB, data=125KB

09-25 09:46:01.972 12146 12151 I art : After code cache collection, code=111KB, data=125KB

09-25 09:46:01.972 12146 12151 I art : Increasing code cache capacity to 512KB

09-25 09:46:02.765 2785 2785 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'

09-25 09:46:02.787 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x11

09-25 09:46:02.791 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x12

09-25 09:46:02.801 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x13

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=17

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 17

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=18

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 18

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=19

09-25 09:46:02.812 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 19

09-25 09:46:03.634 12357 12384 E CAM_CamDeviceVerify: Camera Manager reconnect failed, or there are no cameras on this device.

09-25 09:46:03.649 12357 12374 D CAM_GcaClearcutLog: Connecting Clearcut GoogleApiClient...

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: Handling Camera Reconnect Failure:

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: java.lang.Exception

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.error.FatalErrorHandlerImpl.onCameraReconnectFailure(FatalErrorHandlerImpl.java:85)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.activity.main.WaitForCameraDevices$1.onSuccess(WaitForCameraDevices.java:40)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.activity.main.WaitForCameraDevices$1.onSuccess(WaitForCameraDevices.java:38)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.Futures$6.run(Futures.java:1231)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.device.CameraDeviceVerifier$1.run(CameraDeviceVerifier.java:116)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.async.MainThreadThrowingExecutor$MainThreadThrowingRunnable.run(MainThreadThrowingExecutor.java:21)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at java.lang.Thread.run(Thread.java:761)

09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler:	at com.android.camera.async.AndroidPriorityThread.run(AndroidPriorityThread.java:32)

09-25 09:46:03.661 12357 12384 I CAM_GoogleCameraInit: Future@8fae49f: DONE: WaitForCameraDevicesTask

09-25 09:46:03.664 12357 12386 I CAM_GoogleCameraInit: Future@f727ad8: DONE: CaptureModuleStartupTask

09-25 09:46:03.664 12357 12386 I CAM_GoogleCameraInit: Future@938cf1d: DONE: ActivityControllerStartTask

09-25 09:46:03.664 12357 12386 W CAM_GoogleCameraInit: Initialization failed! One of the tasks did not succeed.

09-25 09:46:03.676 12357 12357 E CAM_FatalErrorHandler: Show fatal error dialog

09-25 09:46:03.812 12357 12357 I CAM_UsageStats: GooglePlayServices connected.

09-25 09:46:05.491 1696 2646 D MotoSensors: ALS 110

09-25 09:46:05.819 2785 2785 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'

09-25 09:46:05.841 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x11

09-25 09:46:05.845 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x12

09-25 09:46:05.856 1696 2784 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x13

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=17

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 17

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=18

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 18

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Drv Event 103 (NL80211_CMD_VENDOR) received for wlan0

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Vendor event: wiphy=0 vendor_id=0x1374 subcmd=19

09-25 09:46:05.866 2785 2785 D wpa_supplicant: nl80211: Ignore unsupported QCA vendor event 19

09-25 09:46:06.102 1696 2726 D AudioService: Stream muted, skip playback

09-25 09:46:06.157 1696 2729 I WindowManager: Destroying surface Surface(name=com.google.android.GoogleCamera/com.android.camera.CameraLauncher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193

09-25 09:46:06.177 12357 12357 D CAM_ActivityLifetime: onPause()

09-25 09:46:06.573 12357 12357 D CAM_ActivityLifetime: onStop()

09-25 09:46:06.573 12357 12357 D CAM_ActivityLifetime: onDestroy()

09-25 09:46:06.597 1696 2646 D MotoSensors: ALS 56

09-25 09:46:06.744 1696 1738 I WindowManager: Destroying surface Surface(name=com.google.android.GoogleCamera/com.android.camera.CameraLauncher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.AppWindowToken.destroySurfaces:365 com.android.server.wm.WindowStateAnimator.finishExit:565 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:491 com.android.server.wm.WindowAnimator.updateWindowsLocked:303

Rom Download: https://www.androidfilehost.com/?fid=457084094631641880

Thanks,

Pacer_456