[Android] aoleary:
Issue with camera on DU12 for MSM8974 chips

Hi guys,

I have this issue with my build of DU for the D855, in that there is no camera app in the app drawer, and the only way to access it is to enable the gesture "Double tap power button to launch camera".

I took the logs from the initial startup of the camera, from just before where it asks for permissions:

My phone, the D855 has an msm8974 chip. I know another guy with a different phone which also have the same chip as the D855, and he has the same issue. Since I know DU like to clean out old stuff from their repo trees, I'm sure the error is due to something they removed something that is needed by my camera..

Condensed log of just the specific PID assigned to the cammera when it errored:

07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.Activity.performCreate(Activity.java:7009)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.Activity.performCreate(Activity.java:7000)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2732)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2857)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.ActivityThread.-wrap11(Unknown Source:0)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1590)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.os.Handler.dispatchMessage(Handler.java:106)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.os.Looper.loop(Looper.java:164)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at android.app.ActivityThread.main(ActivityThread.java:6499)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at java.lang.reflect.Method.invoke(Native Method)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
07-16 08:12:19.994 5416 5416 E CAM_FatalErrorHandler:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
07-16 08:12:19.995 5416 5416 E CAM_CameraUtil: Show fatal error dialog
07-16 08:12:20.016 5416 5416 I CAM_Profiler: [393.325ms][ui] GUARD: CameraActivity.onCreateTasks - [28.222ms] Init CurrentModule
07-16 08:12:20.026 5416 5416 I CAM_Profiler: [404.317ms][ui] GUARD: CameraActivity.onCreateTasks - STOP
07-16 08:12:20.078 5416 5437 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
07-16 08:12:20.084 5416 5437 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
07-16 08:12:20.130 5416 5437 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
07-16 08:12:20.136 5416 5437 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
07-16 08:12:20.141 5416 5416 W CAM_CameraActivity: Storage warning: Insert an SD card before using the camera.
07-16 08:12:20.182 2779 2779 I Binder:1188_3: type=1400 audit(0.0:109): avc: denied { getattr } for path="/sys/kernel/debug/kgsl/proc/5416/mem" dev="debugfs" ino=97733 scontext=u:r:system_server:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=file permissive=1
07-16 08:12:20.253 5416 5416 I CAM_FocusRingView: Computing center via view bounds.
07-16 08:12:20.358 5416 5437 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
07-16 08:12:20.362 5416 5437 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
07-16 08:12:30.344 5416 5460 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
07-16 08:12:30.753 5416 5416 E WindowManager:
07-16 08:12:30.753 5416 5416 E WindowManager: android.view.WindowLeaked: Activity com.android.camera.CameraActivity has leaked window android.widget.LinearLayout{7be1e6c V.E...... ......ID 0,0-930,66} that was originally added here
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.view.ViewRootImpl.<init>(ViewRootImpl.java:485)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
07-16 08:12:30.753 5416 5416 E WindowManager:	at com.android.camera.OnScreenHint.handleShow(OnScreenHint.java:146)
07-16 08:12:30.753 5416 5416 E WindowManager:	at com.android.camera.OnScreenHint.-wrap1(Unknown Source:0)
07-16 08:12:30.753 5416 5416 E WindowManager:	at com.android.camera.OnScreenHint$1.run(OnScreenHint.java:165)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.os.Handler.handleCallback(Handler.java:790)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.os.Handler.dispatchMessage(Handler.java:99)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.os.Looper.loop(Looper.java:164)
07-16 08:12:30.753 5416 5416 E WindowManager:	at android.app.ActivityThread.main(ActivityThread.java:6499)
07-16 08:12:30.753 5416 5416 E WindowManager:	at java.lang.reflect.Method.invoke(Native Method)
07-16 08:12:30.753 5416 5416 E WindowManager:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
07-16 08:12:30.753 5416 5416 E WindowManager:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Full camera log: https://del.dog/eyegahoxer.pl

I cleared all logcat logs before taking the logcat ( C:\adb>adb logcat -b all -c ).

Device Trees

https://github.com/aoleary/android_device_lge_d855/tree/du

https://github.com/aoleary/android_device_lge_g3-common

Kernel

https://github.com/crdroidandroid/android_kernel_lge_g3