[Galaxy Tab S Android Development] :
cm-13.0

As promised yesterday I updated and pushd my gits:

<project name="proprietary_vendor_samsung" path="vendor/samsung" remote="nvertigo" revision="insignal-13.0" />
<project name="android_device_samsung_chagallwifi.git" path="device/samsung/chagallwifi" remote="nvertigo" revision="insignal-13.0" />
<project name="android_kernel_samsung_chagallwifi.git" path="kernel/samsung/chagallwifi" remote="nvertigo" revision="13-work" />
<project name="android_hardware_samsung_slsi_exynos" path="hardware/samsung_slsi/exynos" remote="schischu" revision="marshmallow-release" />
<project name="android_hardware_samsung_slsi_exynos5-insignal" path="hardware/samsung_slsi/exynos5-insignal" remote="schischu" revision="marshmallow-release" />
<project name="android_hardware_samsung_slsi_exynos5420" path="hardware/samsung_slsi/exynos5420" remote="schischu" revision="marshmallow-release" />
<project name="android_hardware_samsung_slsi_openmax" path="hardware/samsung_slsi/openmax" remote="schischu" revision="marshmallow-release" />
<remove-project name="CyanogenMod/android_system_core" />
<project path="system/core" name="android_system_core" remote="nvertigo" revision="insignal-13.0" />
<remove-project name="CyanogenMod/android_frameworks_native" />
<project path="frameworks/native" name="android_frameworks_native" remote="nvertigo" revision="insignal-13.0" />
<remove-project name="CyanogenMod/android_frameworks_av" />
<project path="frameworks/av" name="android_frameworks_av" remote="nvertigo" revision="insignal-13.0" />

Adfing the SHIM_LIBS reintroduced this libc error, which wasn't present without, but I have seen them in slsi-cm:

F libc : page record for 0xb6ba304c was not found (block_size=64)

In slsi-cm the block_size was 16. Even with LD_SHIM_LIBS the gralloc errors are still present:

E hwcomposer: invalid gralloc handle (at 0x0)

I will try to add hwcomposer_exynos5.so to LD_SHIM_LIBS.

I jave alos some egl errors:

logcat -d *:F *:E |grep -i egl
02-02 00:46:47.609 5644 5644 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 00:46:47.609 5644 5644 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 01:21:50.561 12605 12605 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 01:21:50.561 12605 12605 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 08:48:39.870 12099 12099 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 08:48:39.870 12099 12099 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-02 10:57:22.629 5766 6502 F OpenGLRenderer: Encountered EGL error 12291 EGL_BAD_ALLOC during rendering
02-02 10:57:22.803 2441 2441 F DEBUG : Abort message: 'Encountered EGL error 12291 EGL_BAD_ALLOC during rendering'
02-02 11:01:55.936 30837 30864 F OpenGLRenderer: Encountered EGL error 12291 EGL_BAD_ALLOC during rendering
02-02 11:01:56.095 2441 2441 F DEBUG : Abort message: 'Encountered EGL error 12291 EGL_BAD_ALLOC during rendering'
02-02 11:26:58.844 31302 31329 F OpenGLRenderer: Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering
02-02 11:26:59.007 2441 2441 F DEBUG : Abort message: 'Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering'

DRM has not only missing the widevine check patch (BTW: can you push that to a temp branch, please), but also the unresolved symbol regarding RSA key:

02-02 11:43:01.309 8790 8814 E Drm : Testing lib /vendor/lib/mediadrm/libdrmclearkeyplugin.so
02-02 11:43:01.309 8790 8814 E Drm : index 0
02-02 11:43:01.309 8790 8814 E Drm : !mLibrary.get()
02-02 11:43:01.309 8790 8814 E Drm : SharedLibrary dlopen(/vendor/lib/mediadrm/libdrmclearkeyplugin.so, RTLD_NOW);
02-02 11:43:01.312 8790 8814 E Drm : index 0
02-02 11:43:01.313 8790 8814 E Drm : createDrmFactory failed
02-02 11:43:01.313 8790 8814 E Drm : Testing lib /vendor/lib/mediadrm/libwvdrmengine.so
02-02 11:43:01.313 8790 8814 E Drm : index 1
02-02 11:43:01.313 8790 8814 E Drm : !mLibrary.get()
02-02 11:43:01.313 8790 8814 E Drm : SharedLibrary dlopen(/vendor/lib/mediadrm/libwvdrmengine.so, RTLD_NOW);
02-02 11:43:01.325 8790 8814 E Drm : SharedLibrary dlopen failed: cannot locate symbol "RSA_verify_PKCS1_PSS" referenced by "/system/vendor/lib/mediadrm/libwvdrmengine.so"...
02-02 11:43:01.325 8790 8814 E Drm : new SharedLibrary failed
02-02 11:43:01.325 8790 8814 E Drm : Failed to find drm plugin (ED:EF:8B:A9:79:D6:4A:CE:A3:C8:27:DC:D5:1D:21:ED)
02-02 11:43:03.349 8790 8813 E Drm : Testing lib /vendor/lib/mediadrm/libdrmclearkeyplugin.so
02-02 11:43:03.349 8790 8813 E Drm : index 0
02-02 11:43:03.349 8790 8813 E Drm : !mLibrary.get()
02-02 11:43:03.349 8790 8813 E Drm : SharedLibrary dlopen(/vendor/lib/mediadrm/libdrmclearkeyplugin.so, RTLD_NOW);
02-02 11:43:03.357 8790 8813 E Drm : index 0
02-02 11:43:03.359 8790 8813 E Drm : createDrmFactory failed
02-02 11:43:03.359 8790 8813 E Drm : Testing lib /vendor/lib/mediadrm/libwvdrmengine.so
02-02 11:43:03.359 8790 8813 E Drm : index 1
02-02 11:43:03.359 8790 8813 E Drm : !mLibrary.get()
02-02 11:43:03.359 8790 8813 E Drm : SharedLibrary dlopen(/vendor/lib/mediadrm/libwvdrmengine.so, RTLD_NOW);
02-02 11:43:03.381 8790 8813 E Drm : SharedLibrary dlopen failed: cannot locate symbol "RSA_verify_PKCS1_PSS" referenced by "/system/vendor/lib/mediadrm/libwvdrmengine.so"...
02-02 11:43:03.381 8790 8813 E Drm : new SharedLibrary failed
02-02 11:43:03.381 8790 8813 E Drm : Failed to find drm plugin (ED:EF:8B:A9:79:D6:4A:CE:A3:C8:27:DC:D5:1D:21:ED)

GPS:

02-02 11:47:30.628 3101 3155 D libgps : SendGpsExtensionMessage: Waiting for IPC connection...
02-02 11:47:31.007 3101 3194 I ActivityManager: Displayed com.eclipsim.gpsstatus2/.GPSStatus: +1s219ms
02-02 11:47:31.633 3101 3155 D libgps : SendGpsExtensionMessage: Waiting for IPC connection - timeout
02-02 11:47:31.633 3101 3155 E libgps : LIBGPS: Cannot communicate (write) with a GPSD
02-02 11:47:31.633 3101 3155 E libgps : IPC Communication Error, /tmp/13632271_219420/customers/samsung/KGFandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:617 SendGpsExtensionMessage
02-02 11:47:31.633 3101 3155 D libgps : gps_set_position_mode: Waiting for IPC connection...
02-02 11:47:32.641 3101 3155 D libgps : gps_set_position_mode: Waiting for IPC connection - timeout
02-02 11:47:32.641 3101 3155 E libgps : LIBGPS: Cannot communicate (write) with a GPSD
02-02 11:47:32.641 3101 3155 E libgps : IPC Communication Error, /tmp/13632271_219420/customers/samsung/KGFandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1392 gps_set_position_mode
02-02 11:47:32.641 3101 3155 E GpsLocationProvider: set_position_mode failed in startNavigating()

Camera (only *:F *:E)

02-02 11:55:22.041 8790 8815 E camera-llv: llv_init, E
02-02 11:55:22.144 8790 8815 E ExynosCamera: [CAM-BACK]-ERR(bool ExynosCamera::cancelAutoFocus()):Camera was closed
02-02 11:55:22.164 8790 8815 E camera-llv: llv_release, E
02-02 11:55:22.164 8790 8815 E camera-llv: llv_release, E
02-02 11:55:22.169 8790 8814 E CameraService: getCameraPriorityFromProcState: Received invalid process state -1 from ActivityManagerService!
02-02 11:55:22.229 8790 8814 E ExynosCameraHWInterface: DEBUG(int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**)):open camera 1
02-02 11:55:22.232 8790 8814 E camera-llv: llv_init, E
02-02 11:55:22.366 8790 8814 E camera-llv: llv_release, E
02-02 11:55:22.369 8790 8814 E camera-llv: llv_release, E
02-02 11:55:23.168 8790 8814 E ExynosCameraHWInterface: DEBUG(int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**)):open camera 0
02-02 11:55:23.177 8790 8814 E camera-llv: llv_init, E
02-02 11:55:23.401 8790 1757 E ExynosCamera: [CAM-BACK]-ERR(bool ExynosCamera::allocMemSinglePlane(ion_client, ExynosBuffer*, int, bool, unsigned int, unsigned int)):ion_alloc(0, 3584) (reserved : 0) fail
02-02 11:55:23.401 8790 1757 E ExynosCamera: [CAM-BACK]-ERR(bool ExynosCamera::allocMem(ion_client, ExynosBuffer*, int, unsigned int, unsigned int)):allocMemSinglePlane(0) fail
02-02 11:55:23.401 8790 1757 E ExynosCamera: [CAM-BACK]-ERR(bool ExynosCamera::startSensor()):allocMem() fail
02-02 11:55:23.401 8790 1757 E ExynosCameraHWImpl: [CAM-BACK]-ERR(bool android::ExynosCameraHWImpl::m_startThreadFuncMain()):Fail on m_secCamera->startSensor()
02-02 11:55:23.404 8790 1759 E ExynosCameraHWImpl: invalid gralloc handle (at 0xb5fd67c0)
02-02 11:55:23.406 8790 1759 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 1759 (CameraStartThre)
02-02 11:55:23.513 2441 2441 F DEBUG : pid: 8790, tid: 1759, name: CameraStartThre >>> /system/bin/mediaserver <<<
02-02 11:55:23.587 2441 2441 F DEBUG : #00 pc 000466fc /system/lib/libexynoscamera.so (android::ExynosCameraHWImpl::m_getPreviewCallbackBuffer()+1179)
02-02 11:55:23.587 2441 2441 F DEBUG : #01 pc 00046b3f /system/lib/libexynoscamera.so (android::ExynosCameraHWImpl::m_startThreadFuncBufAlloc()+146)
02-02 11:55:23.587 2441 2441 F DEBUG : #02 pc 00046c69 /system/lib/libexynoscamera.so
02-02 11:55:24.312 1656 1763 E RequestThread-0: at android.hardware.Camera.native_getParameters(Native Method)
02-02 11:55:24.312 1656 1763 E RequestThread-0: at android.hardware.Camera.getParameters(Camera.java:1965)
02-02 11:55:24.312 1656 1763 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:856)
02-02 11:55:24.314 1656 1704 E CAM_FatalErrorHandler: Handling Camera Access Failure:
02-02 11:55:24.314 1656 1704 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
02-02 11:55:24.314 1656 1704 E CAM_FatalErrorHandler: at com.android.camera.one.v2.Camera2OneCameraOpenerImpl$1.onError(Camera2OneCameraOpenerImpl.java:154)
02-02 11:55:24.314 1656 1704 E CAM_FatalErrorHandler: at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks$1.run(CameraDeviceImpl.java:1697)
02-02 11:55:24.314 1656 1747 E Camera : Error 100
02-02 11:55:24.314 1656 1747 E RequestThread-0: Received error 100 from the Camera1 ErrorCallback
02-02 11:55:24.315 1656 1704 E CAM_CameraUtil: Show fatal error dialog
02-02 11:55:24.896 1784 1784 E ExynosCameraHWInterface: DEBUG(int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**)):open camera 0
02-02 11:55:24.902 1784 1784 E camera-llv: llv_init, E
02-02 11:55:25.006 1784 1784 E ExynosCamera: [CAM-BACK]-ERR(bool ExynosCamera::cancelAutoFocus()):Camera was closed
02-02 11:55:25.013 1784 1784 E CameraWrapper: Camera window is null
02-02 11:55:25.032 1784 1784 E camera-llv: llv_release, E
02-02 11:55:25.033 1784 1784 E camera-llv: llv_release, E
02-02 11:55:25.036 1784 1784 E ExynosCameraHWInterface: DEBUG(int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**)):open camera 1
02-02 11:55:25.049 1784 1784 E camera-llv: llv_init, E
02-02 11:55:25.169 1784 1784 E CameraWrapper: Camera window is null
02-02 11:55:25.188 1784 1784 E camera-llv: llv_release, E
02-02 11:55:25.189 1784 1784 E camera-llv: llv_release, E
02-02 11:55:28.314 1656 1763 E CameraDeviceState: Cannot call capture while in state: 0

The segmentation fault in libc is not good at all... ;)

EDIT: just a thought: maybe we need to force some libs to use gralloc.exynos5.so?