[G4 Android Development] Dragooon123:
I am having media playback error for DRM protected content in apps (Hotstar and Zee5, but Netflix works fine).

The full logcat was too big for pastebin, but I think this is the relevant portion:

01-12 04:47:58.033 23800 8511 D SurfaceUtils: connecting to surface 0x6f8b118010, reason connectToSurface(reconnect)
01-12 04:47:58.035 4772 4772 E OMX-VDEC-1080P: Extension: OMX.google.android.index.storeANWBufferInMetadata not implemented
01-12 04:47:58.035 4772 4772 E OMX-VDEC-1080P: OMX_QcomIndexParamVideoMetaBufferMode not supported for port: 0
01-12 04:47:58.035 4772 4772 E OMX-VDEC-1080P: set_parameter: Error: 0x80001019, setting param 0x7f00001c
01-12 04:47:58.035 4772 4772 E OMXNodeInstance: setParameter(0xf5011184:qcom.decoder.avc.secure, OMX.google.android.index.storeMetaDataInBuffers(0x7f00001c): Input:0 en=0 type=1) ERROR: UnsupportedSetting(0x80001019)
01-12 04:47:58.035 4772 4772 E OMX-VDEC-1080P: Enable/Disable android-native-buffers allowed only on output port!
01-12 04:47:58.035 4772 4772 E OMX-VDEC-1080P: set_parameter: Error: 0x80001019, setting param 0x7f000017
01-12 04:47:58.035 4772 4772 E OMXNodeInstance: setParameter(0xf5011184:qcom.decoder.avc.secure, OMX.google.android.index.enableAndroidNativeBuffers(0x7f000017): Input:0 en=0) ERROR: UnsupportedSetting(0x80001019)
01-12 04:47:58.035 4772 8024 E OMX-VDEC-1080P: Extension: OMX.google.android.index.storeANWBufferInMetadata not implemented
01-12 04:47:58.045 4772 4792 E OMX-VDEC-1080P: Extension: OMX.google.android.index.describeColorAspects not implemented
01-12 04:47:58.045 4772 8153 E OMX-VDEC-1080P: Extension: OMX.google.android.index.describeHDRStaticInfo not implemented
01-12 04:47:58.129 728 728 I /system/bin/tombstoned: received crash request for pid 4772
01-12 04:47:58.144 4772 8153 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-12 04:47:58.144 4772 8153 F DEBUG : LineageOS Version: '16.0-20191217-UNOFFICIAL-h811'
01-12 04:47:58.144 4772 8153 F DEBUG : Build fingerprint: 'lge/p1_tmo_us/p1:6.0/MRA58K/1731216298e5b:user/release-keys'
01-12 04:47:58.144 4772 8153 F DEBUG : Revision: '0'
01-12 04:47:58.144 4772 8153 F DEBUG : ABI: 'arm'
01-12 04:47:58.144 4772 8153 F DEBUG : pid: 4772, tid: 8153, name: omx@1.0-service >>> media.codec <<<
01-12 04:47:58.144 4772 8153 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18
01-12 04:47:58.144 4772 8153 F DEBUG : Cause: null pointer dereference
01-12 04:47:58.144 4772 8153 F DEBUG : r0 d035e864 r1 00000014 r2 00000000 r3 00000000
01-12 04:47:58.144 4772 8153 F DEBUG : r4 f5301788 r5 00000014 r6 f5301468 r7 00000000
01-12 04:47:58.145 4772 8153 F DEBUG : r8 00000000 r9 f5301470 r10 00000000 r11 f5bb88e4
01-12 04:47:58.145 4772 8153 F DEBUG : ip f707eefc sp f5301398 lr f7071acd pc f70718cc
01-12 04:47:58.169 4772 8153 F DEBUG :
01-12 04:47:58.169 4772 8153 F DEBUG : backtrace:
01-12 04:47:58.169 4772 8153 F DEBUG : #00 pc 000128cc /system/lib/libhwbinder.so (android::hardware::Parcel::writeNativeHandleNoDup(native_handle const*, bool, unsigned int, unsigned int)+28)
01-12 04:47:58.169 4772 8153 F DEBUG : #01 pc 00012ac9 /system/lib/libhwbinder.so (android::hardware::Parcel::writeNativeHandleNoDup(native_handle const*)+12)
01-12 04:47:58.169 4772 8153 F DEBUG : #02 pc 00042121 /system/lib/android.hardware.media.omx@1.0.so (_ZNSt3__110__function6__funcIZN7android8hardware5media3omx4V1_011BnHwOmxNode26_hidl_allocateSecureBufferEPNS2_4hidl4base4V1_08BnHwBaseERKNS3_6ParcelEPSD_NS_8functionIFvRSD_EEEE3$_4NS_9allocatorISL_EEFvNS6_6StatusEjRKNS3_11hidl_handleEEEclEOSO_OjSR_+112)
01-12 04:47:58.169 4772 8153 F DEBUG : #03 pc 00036647 /system/lib/libstagefright_omx.so (android::hardware::media::omx::V1_0::implementation::TWOmxNode::allocateSecureBuffer(unsigned int, unsigned long long, std::__1::function<void (android::hardware::media::omx::V1_0::Status, unsigned int, android::hardware::hidl_handle const&)>)+330)
01-12 04:47:58.169 4772 8153 F DEBUG : #04 pc 0003c077 /system/lib/android.hardware.media.omx@1.0.so (android::hardware::media::omx::V1_0::BnHwOmxNode::_hidl_allocateSecureBuffer(android::hidl::base::V1_0::BnHwBase*, android::hardware::Parcel const&, android::hardware::Parcel*, std::__1::function<void (android::hardware::Parcel&)>)+222)
01-12 04:47:58.169 4772 8153 F DEBUG : #05 pc 0003d67f /system/lib/android.hardware.media.omx@1.0.so (android::hardware::media::omx::V1_0::BnHwOmxNode::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+1166)
01-12 04:47:58.170 4772 8153 F DEBUG : #06 pc 000165ad /system/lib/libhwbinder.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+48)
01-12 04:47:58.170 4772 8153 F DEBUG : #07 pc 0000f7b7 /system/lib/libhwbinder.so (android::hardware::IPCThreadState::executeCommand(int)+802)
01-12 04:47:58.170 4772 8153 F DEBUG : #08 pc 0000f389 /system/lib/libhwbinder.so (android::hardware::IPCThreadState::getAndExecuteCommand()+128)
01-12 04:47:58.170 4772 8153 F DEBUG : #09 pc 0000fc33 /system/lib/libhwbinder.so (android::hardware::IPCThreadState::joinThreadPool(bool)+186)
01-12 04:47:58.170 4772 8153 F DEBUG : #10 pc 00015f61 /system/lib/libhwbinder.so (android::hardware::PoolThread::threadLoop()+12)
01-12 04:47:58.170 4772 8153 F DEBUG : #11 pc 0000c087 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+166)
01-12 04:47:58.170 4772 8153 F DEBUG : #12 pc 00064059 /system/lib/libc.so (__pthread_start(void*)+22)
01-12 04:47:58.170 4772 8153 F DEBUG : #13 pc 0001df2d /system/lib/libc.so (__start_thread+24)
01-12 04:47:58.186 998 4694 I MediaFocusControl: abandonAudioFocus() from uid/pid 10120/23800 clientId=android.media.AudioManager@263c778org.chromium.content.browser.AudioFocusDelegate@fcbab67
01-12 04:47:58.189 23800 23800 D AudioManager: dispatching onAudioFocusChange(1) to android.media.AudioManager@263c778com.graymatrix.did.player.PlaybackManager@535b24e
01-12 04:47:58.215 728 728 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_13
01-12 04:47:58.227 23800 8512 E ACodec : Failed to allocate buffers after transitioning to IDLE state (error 0x80000000)
01-12 04:47:58.227 23800 8512 E ACodec : signalError(omxError 0x80001001, internalError -2147483648)
01-12 04:47:58.228 23800 8501 E ACodec : OMX/mediaserver died, signalling error!
01-12 04:47:58.228 23800 8501 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-12 04:47:58.228 23800 8501 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6
01-12 04:47:58.228 23800 8511 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 5
01-12 04:47:58.229 23800 8512 E ACodec : OMX/mediaserver died, signalling error!
01-12 04:47:58.229 23800 8512 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-12 04:47:58.258 23800 8511 D SurfaceUtils: disconnecting from surface 0x6f8b118010, reason disconnectFromSurface
01-12 04:47:58.258 998 1091 I BootReceiver: Copying /data/tombstones/tombstone_13 to DropBox (SYSTEM_TOMBSTONE)
01-12 04:47:58.259 23800 8511 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 0
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal: Playback error.
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal: com.google.android.exoplayer2.ExoPlaybackException
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.throwDecoderInitError(SourceFile:450)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(SourceFile:437)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(SourceFile:929)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(SourceFile:506)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:566)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(SourceFile:518)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:301)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at android.os.Handler.dispatchMessage(Handler.java:102)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at android.os.Looper.loop(Looper.java:193)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at android.os.HandlerThread.run(HandlerThread.java:65)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal: Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc.secure, Format(video/avc1/4, null, video/avc, 506577, null, [852, 480, 25.0], [-1, -1])
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	... 9 more
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal: Caused by: android.media.MediaCodec$CodecException: start failed
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.native_start(Native Method)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.start(MediaCodec.java:2068)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(SourceFile:430)
01-12 04:47:58.284 23800 8489 E ExoPlayerImplInternal:	... 8 more
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal: Stop failed.
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal: java.lang.IllegalStateException
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.native_stop(Native Method)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.stop(MediaCodec.java:2084)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.releaseCodec(SourceFile:527)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.releaseCodec(SourceFile:477)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onDisabled(SourceFile:483)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onDisabled(SourceFile:365)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.BaseRenderer.disable(SourceFile:153)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.disableRenderer(SourceFile:972)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.resetInternal(SourceFile:768)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.stopInternal(SourceFile:731)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:343)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at android.os.Handler.dispatchMessage(Handler.java:102)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at android.os.Looper.loop(Looper.java:193)
01-12 04:47:58.288 23800 8489 E ExoPlayerImplInternal:	at android.os.HandlerThread.run(HandlerThread.java:65)
01-12 04:47:58.292 377 377 W hwservicemanager: getTransport: Cannot find entry android.hidl.memory@1.0::IMapper/ in either framework or device manifest.
01-12 04:47:58.296 580 14467 E libhidlmemory: Could not fetch mapper for shared memory
01-12 04:47:58.296 580 14467 E android.hardware.drm@1.0-impl: mapMemory returns nullptr
01-12 04:47:58.298 580 580 D DrmWidevineDash: OEMCrypto_CloseSession: starts! SID=2
01-12 04:47:58.299 580 580 D DrmWidevineDash: OEMCrypto_CloseSession: ends! returns 0
01-12 04:47:58.299 580 580 D DrmWidevineDash: _oecc10: function time: 1ms (0s 1028802ns)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal: Stop failed.
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal: java.lang.IllegalStateException
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.native_stop(Native Method)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at android.media.MediaCodec.stop(MediaCodec.java:2084)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.releaseCodec(SourceFile:527)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onDisabled(SourceFile:483)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.audio.MediaCodecAudioRenderer.onDisabled(SourceFile:462)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.BaseRenderer.disable(SourceFile:153)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.disableRenderer(SourceFile:972)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.resetInternal(SourceFile:768)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.stopInternal(SourceFile:731)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:343)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at android.os.Handler.dispatchMessage(Handler.java:102)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at android.os.Looper.loop(Looper.java:193)
01-12 04:47:58.305 23800 8489 E ExoPlayerImplInternal:	at android.os.HandlerThread.run(HandlerThread.java:65)
01-12 04:47:58.340 23800 23800 E EventLogger: playerFailed [1.92]
01-12 04:47:58.340 23800 23800 E EventLogger: com.google.android.exoplayer2.ExoPlaybackException
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.throwDecoderInitError(SourceFile:450)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(SourceFile:437)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(SourceFile:929)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(SourceFile:506)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:566)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(SourceFile:518)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:301)
01-12 04:47:58.340 23800 23800 E EventLogger:	at android.os.Handler.dispatchMessage(Handler.java:102)
01-12 04:47:58.340 23800 23800 E EventLogger:	at android.os.Looper.loop(Looper.java:193)
01-12 04:47:58.340 23800 23800 E EventLogger:	at android.os.HandlerThread.run(HandlerThread.java:65)
01-12 04:47:58.340 23800 23800 E EventLogger: Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc.secure, Format(video/avc1/4, null, video/avc, 506577, null, [852, 480, 25.0], [-1, -1])
01-12 04:47:58.340 23800 23800 E EventLogger:	... 9 more
01-12 04:47:58.340 23800 23800 E EventLogger: Caused by: android.media.MediaCodec$CodecException: start failed
01-12 04:47:58.340 23800 23800 E EventLogger:	at android.media.MediaCodec.native_start(Native Method)
01-12 04:47:58.340 23800 23800 E EventLogger:	at android.media.MediaCodec.start(MediaCodec.java:2068)
01-12 04:47:58.340 23800 23800 E EventLogger:	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(SourceFile:430)
01-12 04:47:58.340 23800 23800 E EventLogger:	... 8 more
01-12 04:47:58.347 998 1086 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
01-12 04:47:58.351 998 1086 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
01-12 04:47:58.391 8521 8521 I media.codec: mediacodecservice starting
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: failed to get path of fd 5: No such file or directory
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: allowing syscall: clock_gettime
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: allowing syscall: connect
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: allowing syscall: fcntl64
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: allowing syscall: socket
01-12 04:47:58.424 8521 8521 W media.codec: libminijail[8521]: allowing syscall: writev
01-12 04:47:58.440 8521 8521 W media.codec: libminijail[8521]: logging seccomp filter failures
01-12 04:47:58.443 8287 8304 E QcrilMsgTunnelSocket: IOException - java.io.IOException: Connection refused Reason: Connection refused
01-12 04:47:58.444 8287 8304 I QcrilMsgTunnelSocket: Couldn't find 'qmux_radio/rild_oem0' socket; retrying after timeout
01-12 04:47:58.462 8521 8521 W MediaCodecsXmlParser: unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml
01-12 04:47:58.462 8521 8521 W MediaCodecsXmlParser: parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed
01-12 04:47:58.463 8521 8521 E MediaCodecsXmlParser: Cannot find the role for a decoder of type video/divx
01-12 04:47:58.463 8521 8521 E MediaCodecsXmlParser: Cannot find the role for a decoder of type video/divx311
01-12 04:47:58.463 8521 8521 E MediaCodecsXmlParser: Cannot find the role for a decoder of type video/divx4
01-12 04:47:58.463 8521 8521 E MediaCodecsXmlParser: Cannot find the role for a decoder of type video/x-ms-wmv
01-12 04:47:58.463 8521 8521 E MediaCodecsXmlParser: Cannot find the role for a decoder of type video/x-ms-wmv
01-12 04:47:58.465 8521 8521 I ServiceManagement: Removing namespace from process name android.hardware.media.omx@1.0-service to omx@1.0-service.