[Galaxy Grand Duos i9082 Android Development] GHsR:
[MENTION=3117667]pawitp[/MENTION]

Here are the patches that fix some bugs:

Camera rotate issue - https://github.com/CyanogenMod/andr...mmit/48f63f9296d615f456bc1706f8b3ccb8c498bbcd

AutoRotation issues after sleep - https://github.com/timduru/platform-frameworks-base/commit/fb83a2d184e655d83405d80dd07fc737bd73a37e

Widevine - https://github.com/ghsr/proprietary...mmit/1d6ca5a6cd9417495b802232c2fb8fc95b089c25

Also we have a problem with prebuilt webview, it's crashing when use stock browser:

11-20 00:21:54.236 3810 3857 F chromium: [FATAL:gl_fence_egl.cc(52)] Check failed: g_ignore_egl_sync_failures.
...
11-20 00:21:54.386 3810 3857 E chromium: ### WebView Version 44.0.2403.119 (code 246011900)
11-20 00:21:54.386 3810 3857 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 3857 (RenderThread)
11-20 00:21:54.456 204 204 I SELinux : SELinux: Loaded file_contexts contexts from /file_contexts.
11-20 00:21:54.456 204 204 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-20 00:21:54.456 204 204 F DEBUG : Build fingerprint: 'samsung/s2vepxx/s2vep:4.2.2/JDQ39/I9105PXXUBNG1:user/release-keys'
11-20 00:21:54.456 204 204 F DEBUG : Revision: '0'
11-20 00:21:54.456 204 204 F DEBUG : ABI: 'arm'
11-20 00:21:54.456 204 204 F DEBUG : pid: 3810, tid: 3857, name: RenderThread >>> com.android.browser <<<
11-20 00:21:54.456 204 204 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-20 00:21:54.506 204 204 F DEBUG : Abort message: '[FATAL:gl_fence_egl.cc(52)] Check failed: g_ignore_egl_sync_failures.
11-20 00:21:54.506 204 204 F DEBUG : '
11-20 00:21:54.506 204 204 F DEBUG : r0 00000000 r1 00000f11 r2 00000006 r3 92fc8978
11-20 00:21:54.506 204 204 F DEBUG : r4 92fc8980 r5 92fc8930 r6 00000016 r7 0000010c
11-20 00:21:54.516 204 204 F DEBUG : r8 403aae40 r9 92fc7910 sl 00000000 fp 0000025f
11-20 00:21:54.516 204 204 F DEBUG : ip 00000006 sp 92fc7428 lr 40388c71 pc 4038a9ac cpsr 400f0010
11-20 00:21:54.526 204 204 F DEBUG :
11-20 00:21:54.526 204 204 F DEBUG : backtrace:
11-20 00:21:54.526 204 204 F DEBUG : #00 pc 000439ac /system/lib/libc.so (tgkill+12)
11-20 00:21:54.536 204 204 F DEBUG : #01 pc 00041c6d /system/lib/libc.so (pthread_kill+32)
11-20 00:21:54.536 204 204 F DEBUG : #02 pc 0001b823 /system/lib/libc.so (raise+10)
11-20 00:21:54.536 204 204 F DEBUG : #03 pc 00018a91 /system/lib/libc.so (__libc_android_abort+34)
11-20 00:21:54.536 204 204 F DEBUG : #04 pc 0001677c /system/lib/libc.so (abort+4)
11-20 00:21:54.536 204 204 F DEBUG : #05 pc 002b9125 /system/app/webview/webview.apk (offset 0x7f2000)
11-20 00:21:56.468 204 204 F DEBUG :
11-20 00:21:56.468 204 204 F DEBUG : Tombstone written to: /data/tombstones/tombstone_05
11-20 00:21:56.468 204 204 E DEBUG : AM write failed: Broken pipe

To fix this, you just need add ignore_egl_sync_failures for broadcom driver and change version to 6.0.0 in libwebviewchromium.so. This is easily done using a hex editor.

dsim libril.so still crash, I tried it from 4.1.2 (i9082) and from 4.4.2 (SM-G313HN)

logcat with libril.so from SM-G313HN:

11-21 18:07:03.717 223 223 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-21 18:07:03.717 223 223 F DEBUG : Build fingerprint: 'samsung/cm_i9152/i9152:6.0/MDB08M/b45134c6be:userdebug/test-keys'
11-21 18:07:03.717 223 223 F DEBUG : Revision: '0'
11-21 18:07:03.717 223 223 F DEBUG : ABI: 'arm'
11-21 18:07:03.717 5183 5358 W NativeCrashListener: Couldn't find ProcessRecord for pid 7043
11-21 18:07:03.717 223 223 F DEBUG : pid: 7043, tid: 7046, name: rild >>> /system/bin/rild <<<
11-21 18:07:03.717 223 223 E DEBUG : AM write failed: Broken pipe
11-21 18:07:03.717 223 223 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
11-21 18:07:03.720 223 223 F DEBUG : r0 00000000 r1 40acb820 r2 40acb824 r3 00000002
11-21 18:07:03.720 223 223 F DEBUG : r4 00000000 r5 401a4da8 r6 401a4e50 r7 401a4e74
11-21 18:07:03.720 223 223 F DEBUG : r8 401a4e74 r9 401a4e28 sl 00000001 fp 4019ac6d
11-21 18:07:03.720 223 223 F DEBUG : ip 401a3f50 sp 40acb800 lr 4019abbf pc 400f41ac cpsr 40070030
11-21 18:07:03.728 223 223 F DEBUG :
11-21 18:07:03.728 223 223 F DEBUG : backtrace:
11-21 18:07:03.728 223 223 F DEBUG : #00 pc 000011ac /system/bin/rild (record_stream_get_next+3)
11-21 18:07:03.728 223 223 F DEBUG : #01 pc 00003bbb /system/lib/libril.so
11-21 18:07:03.728 223 223 F DEBUG : #02 pc 00008617 /system/lib/libril.so (ril_event_loop()+318)
11-21 18:07:03.728 223 223 F DEBUG : #03 pc 00003cef /system/lib/libril.so
11-21 18:07:03.728 223 223 F DEBUG : #04 pc 0004174f /system/lib/libc.so (__pthread_start(void*)+30)
11-21 18:07:03.729 223 223 F DEBUG : #05 pc 00019223 /system/lib/libc.so (__start_thread+6)
11-21 18:07:03.926 223 223 F DEBUG :
11-21 18:07:03.926 223 223 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00

P.S.

Patch for fix flashlight issue - https://github.com/CyanogenMod/android_frameworks_av/commit/980a04afdce28a6c6159d31864967ded86815c7b