Sunday, September 25, 2016

AOSP- 7.0 Camera not working

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.
@Alberto97 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.destroyS urface:2014 com.android.server.wm.WindowStateAnimator.destroyS urfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSur face:2073 com.android.server.wm.AppWindowToken.destroySurfac es:363 com.android.server.wm.AppWindowToken.notifyAppStop ped:389 com.android.server.wm.WindowManagerService.notifyA ppStopped:4456 com.android.server.am.ActivityStack.activityStoppe dLocked:1252 com.android.server.am.ActivityManagerService.activ ityStopped: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.destroyS urface:2014 com.android.server.wm.WindowStateAnimator.destroyS urfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSur face:2073 com.android.server.wm.AppWindowToken.destroySurfac es:363 com.android.server.wm.WindowStateAnimator.finishEx it:565 com.android.server.wm.WindowStateAnimator.stepAnim ationLocked:491 com.android.server.wm.WindowAnimator.updateWindows Locked: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.onC ameraReconnectFailure(FatalErrorHandlerImpl.java:8 5)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.android.camera.activity.main.WaitForCameraDevi ces$1.onSuccess(WaitForCameraDevices.java:40)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.android.camera.activity.main.WaitForCameraDevi ces$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(Fu tures.java:1231)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.google.common.util.concurrent.MoreExecutors$Sa meThreadExecutorService.execute(MoreExecutors.java :297)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.google.common.util.concurrent.ExecutionList.ex ecuteListener(ExecutionList.java:156)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.google.common.util.concurrent.ExecutionList.ex ecute(ExecutionList.java:145)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.google.common.util.concurrent.AbstractFuture.s et(AbstractFuture.java:185)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.google.common.util.concurrent.SettableFuture.s et(SettableFuture.java:53)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.android.camera.device.CameraDeviceVerifier$1.r un(CameraDeviceVerifier.java:116)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at com.android.camera.async.MainThreadThrowingExecuto r$MainThreadThrowingRunnable.run(MainThreadThrowin gExecutor.java:21)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:428)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at java.util.concurrent.FutureTask.run(FutureTask.jav a:237)
09-25 09:46:03.657 12357 12384 E CAM_FatalErrorHandler: at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.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.destroyS urface:2014 com.android.server.wm.WindowStateAnimator.destroyS urfaceLocked:881 com.android.server.wm.WindowState.removeLocked:144 9 com.android.server.wm.WindowManagerService.removeW indowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeW indowLocked:2436 com.android.server.wm.WindowManagerService.removeW indowLocked:2305 com.android.server.wm.WindowManagerService.removeW indow: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.destroyS urface:2014 com.android.server.wm.WindowStateAnimator.destroyS urfaceLocked:881 com.android.server.wm.WindowState.removeLocked:144 9 com.android.server.wm.WindowManagerService.removeW indowInnerLocked:2478 com.android.server.wm.AppWindowToken.destroySurfac es:365 com.android.server.wm.WindowStateAnimator.finishEx it:565 com.android.server.wm.WindowStateAnimator.stepAnim ationLocked:491 com.android.server.wm.WindowAnimator.updateWindows Locked:303


Rom Download: http://ift.tt/2d9gssF

Thanks,
Pacer_456


from xda-developers http://ift.tt/2cCCd6X
via IFTTT

No comments:

Post a Comment