[One (M8) Original Android Development] tsukasayeo:
ya, I did it.

I can cast my phone to TV originally, but only sound and green screen appeared.

After push libstagefright_hdcp.so into /system/lib, I can't connect to dongle anymore. Just connecting and disconnecting immediately.

This post attached with newest catlog, please look into it.

Sorry for my poor english, and highest regards to you teams for making best rom.

05-15 11:02:02.635 I/WifiDisplaySource(7303): We now have a client (2) connected.
05-15 11:02:02.688 I/WifiDisplaySource(7303): Picked video resolution 1280 x 720 p30
05-15 11:02:02.688 I/WifiDisplaySource(7303): Picked AVC profile 1, level 1
05-15 11:02:02.688 I/WifiDisplaySource(7303): Using AAC audio.
05-15 11:02:02.690 I/WifiDisplaySource(7303): Initiating HDCP negotiation w/ host 192.168.49.229:10100
05-15 11:02:02.692 I/WifiDisplaySource(7303): Deferring SETUP trigger until HDCP initialization completes.
05-15 11:02:02.701 I/WifiDisplaySource(7303): Saw HDCP notification code 1, ext1 0, ext2 0
05-15 11:02:02.701 E/WifiDisplaySource(7303): HDCP failure, shutting down.
05-15 11:02:02.701 I/WifiDisplayController(961): Lost RTSP connection with Wifi display due to error 1: HERAN Smart LED-5088
05-15 11:02:02.701 I/WifiDisplayController(961): Wifi display connection failed!
05-15 11:02:03.202 I/WifiDisplayController(961): Retrying Wifi display connection. Retries left: 2
05-15 11:02:03.202 I/WifiDisplayController(961): Stopped listening for RTSP connection on 192.168.49.1:7236 from Wifi display: HERAN Smart LED-5088
05-15 11:02:03.203 I/WifiDisplaySource(7303): Initiating HDCP shutdown.
05-15 11:02:03.203 I/WifiDisplaySource(7303): Saw HDCP notification code 2, ext1 0, ext2 0
05-15 11:02:03.215 I/NetworkSession(7303): incoming connection from 192.168.49.229:47464 (socket 21)
05-15 11:02:03.215 I/NetworkSession(7303): added clientSession 3
05-15 11:02:03.215 F/WifiDisplaySource(7303): frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp:236 CHECK_EQ( mState,AWAITING_CLIENT_CONNECTION) failed: 10 vs. 1
05-15 11:02:03.216 F/libc (7303): Fatal signal 6 (SIGABRT), code -6 in tid 7958 (wfd_looper)
05-15 11:02:03.216 I/DEBUG (310): property debug.db.uid not set; NOT waiting for gdb.
05-15 11:02:03.216 I/DEBUG (310): HINT: adb shell setprop debug.db.uid 100000
05-15 11:02:03.216 I/DEBUG (310): HINT: adb forward tcp:5039 tcp:5039
05-15 11:02:03.317 F/DEBUG (310): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-15 11:02:03.317 F/DEBUG (310): Build fingerprint: 'htc/m8_google/htc_m8:6.0/MRA58K.H6/648564:user/release-keys'
05-15 11:02:03.317 F/DEBUG (310): Revision: '0'
05-15 11:02:03.317 F/DEBUG (310): ABI: 'arm'
05-15 11:02:03.317 F/DEBUG (310): pid: 7303, tid: 7958, name: wfd_looper >>> /system/bin/mediaserver <<<
05-15 11:02:03.317 F/DEBUG (310): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-15 11:02:03.319 W/NativeCrashListener(961): Couldn't find ProcessRecord for pid 7303
05-15 11:02:03.328 F/DEBUG (310): Abort message: 'frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp:236 CHECK_EQ( mState,AWAITING_CLIENT_CONNECTION) failed: 10 vs. 1'
05-15 11:02:03.328 E/DEBUG (310): AM write failed: Broken pipe
05-15 11:02:03.328 F/DEBUG (310): r0 00000000 r1 00001f16 r2 00000006 r3 b0e7c978
05-15 11:02:03.328 F/DEBUG (310): r4 b0e7c980 r5 b0e7c930 r6 00000002 r7 0000010c
05-15 11:02:03.328 F/DEBUG (310): r8 000003e8 r9 b5fa47e8 sl b0d7e000 fp b6b09c59
05-15 11:02:03.328 F/DEBUG (310): ip 00000006 sp b0e7c2a8 lr b69c8d99 pc b69cb188 cpsr 400f0010
05-15 11:02:03.338 F/DEBUG (310):
05-15 11:02:03.338 F/DEBUG (310): backtrace:
05-15 11:02:03.338 F/DEBUG (310): #00 pc 00042188 /system/lib/libc.so (tgkill+12)
05-15 11:02:03.338 F/DEBUG (310): #01 pc 0003fd95 /system/lib/libc.so (pthread_kill+32)
05-15 11:02:03.338 F/DEBUG (310): #02 pc 0001c497 /system/lib/libc.so (raise+10)
05-15 11:02:03.338 F/DEBUG (310): #03 pc 00019649 /system/lib/libc.so (__libc_android_abort+34)
05-15 11:02:03.338 F/DEBUG (310): #04 pc 00017500 /system/lib/libc.so (abort+4)
05-15 11:02:03.339 F/DEBUG (310): #05 pc 00008af7 /system/lib/libcutils.so (__android_log_assert+86)
05-15 11:02:03.339 F/DEBUG (310): #06 pc 0001b58d /system/lib/libstagefright_wfd.so (_ZN7android17WifiDisplaySource17onMessageReceivedERKNS_2spINS_8AMessageEEE+2628)
05-15 11:02:03.339 F/DEBUG (310): #07 pc 0000b2ed /system/lib/libstagefright_foundation.so (_ZN7android8AHandler14deliverMessageERKNS_2spINS_8AMessageEEE+16)
05-15 11:02:03.339 F/DEBUG (310): #08 pc 0000d2b7 /system/lib/libstagefright_foundation.so (_ZN7android8AMessage7deliverEv+54)
05-15 11:02:03.339 F/DEBUG (310): #09 pc 0000bcf7 /system/lib/libstagefright_foundation.so (_ZN7android7ALooper4loopEv+222)
05-15 11:02:03.339 F/DEBUG (310): #10 pc 00010119 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112)
05-15 11:02:03.339 F/DEBUG (310): #11 pc 0003f697 /system/lib/libc.so (_ZL15__pthread_startPv+30)
05-15 11:02:03.339 F/DEBUG (310): #12 pc 00019ccb /system/lib/libc.so (__start_thread+6)
05-15 11:02:03.774 F/DEBUG (310):
05-15 11:02:03.774 F/DEBUG (310): Tombstone written to: /data/tombstones/tombstone_01
05-15 11:02:03.774 I/BootReceiver(961): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
05-15 11:02:03.784 I/WifiDisplayController(961): Disconnecting from Wifi display: HERAN Smart LED-5088