[FIX] No HDCP error Miracast (Ezcast) while screen mirroring all apps fix

Search This thread
Apr 8, 2011
29
42
Tested in (probably works in other Sony devices as well):
Xperia Z2 23.1.A.1.28 5.0.2
Rooted
Unlocked bootloader

If you have been greeted by these hateful messages when trying to connect to Miracast (EZcast)

"Could not turn on Screen mirroring. The output device is not ready or does not support HDCP."

"Could not start mirroring on the screen. Make sure the output device supports HDCP."

Probably you already have tried changing /system/etc/wfdconfig.xml:
Code:
...
<ContentProtection>
    <Valid>1</Valid>
...
to
Code:
...
<ContentProtection>
    <Valid>0</Valid>
...

After that the mirroring probably worked but got greeted by

"The output device does not support HDCP. You can only mirror unprotected content of the following applications:
Xperia Home, Video, Music or Walkman, Settings
"

and then just before the mirroring get disconnected

"
Your output device does not support HDCP. Cannot mirror. You still can mirror some apps and unprotected content to the device.
"

There is a very easy fix, in this file /system/build.prop just below
Code:
persist.debug.wfd.enable=1
add
Code:
persist.debug.wfd.appmonitoring=1

and then from ADB

Code:
adb shell su setprop persist.debug.wfd.appmonitoring 1

Restart your phone, it should work.

As @s107ken mentioned in #14, In case of boot loop, go to TWRP and then
Code:
adb shell chmod 644 /system/build.prop

Cheers
 
Last edited:

makis780

Member
Dec 10, 2012
30
1
Paramythia
Tested in (probably works in other Sony devices as well):
Xperia Z2 23.1.A.1.28 5.0.2
Rooted
Unlocked bootloader

If you have been greeted by these hateful messages when trying to connect to Miracast (EZcast)

"Could not turn on Screen mirroring. The output device is not ready or does not support HDCP."

"Could not start mirroring on the screen. Make sure the output device supports HDCP."

Probably you already have tried changing /system/etc/wfdconfig.xml:
Code:
...

    1
...
to
Code:
...

    0
...

After that the mirroring probably worked but got greeted by

"The output device does not support HDCP. You can only mirror unprotected content of the following applications:
Xperia Home, Video, Music or Walkman, Settings
"

and then just before the mirroring get disconnected

"
Your output device does not support HDCP. Cannot mirror. You still can mirror some apps and unprotected content to the device.
"

There is a very easy fix, in this file /system/build.prop just below
Code:
persist.debug.wfd.enable=1
add
Code:
persist.debug.wfd.appmonitoring=1

and then from ADB

Code:
adb shell su setprop persist.debug.wfd.appmonitoring 1

Restart your phone, it should work.

Cheers


Thanks !!!
All ok with mirroring!!!
 
Last edited:
  • Like
Reactions: Anunakin

fer2503

Senior Member
Nov 7, 2012
1,545
141
and then from ADB

Code:
adb shell su setprop persist.debug.wfd.appmonitoring 1

Restart your phone, it should work.

Cheers

where i have to write this? if i use adb from pc it says that not found the file. from terminal emulator it says device not found. Can you explain it?

edit: ok now works. any mode to send 5.1 audio for film? default is 2ch
 
Last edited:

leeleo23

New member
Sep 25, 2011
1
0
after doing like what OP showed, i also got the file not found at the final step. Could someone help me sort this out

p/s: actually i received the error :
sh: persist.debug.wfd.appmonitoring: not found
 
Last edited:

fer2503

Senior Member
Nov 7, 2012
1,545
141
i see the display mirroring on tv in 720p only, not in 1080p with my z1. with other device the microsoft display adapter works at 1080p. any solution about that?
 

Toje2

Senior Member
Apr 13, 2009
113
7
Thank you so much, this worked great, I can now get my screen mirroring working again.

I had no idea that unlocking the boot loader would kill HDCP...

Thanks for the hard work.
 

mEREHAIGE

Senior Member
Nov 17, 2011
172
44
Hi, after doing everything OP described my phone went on to bootloop after restart. I restored everything from TWRP backup and tried again, same thing happened after changing the build.prop and rebooting (now I didn't even change wfdconfig.xml, so the changed build.prop must be causing the bootloop, right?). Am I doing something wrong?
 

mEREHAIGE

Senior Member
Nov 17, 2011
172
44
thanks a lot s107ken, that solved the bootloop problem, but still screen mirroring doesn't work properly and gives me HDCP error. I am on 5.1.1 btw... could that be the real issue here?
 

jobrima

Senior Member
Oct 19, 2010
168
39
Vigo
Work on Xperia M4 Aqua with unlocked bootloader!

Display mirroring on tv in 720p only, not in 1080p but I'm hapy

Thanks!
 

jobrima

Senior Member
Oct 19, 2010
168
39
Vigo
Are there way to change resolution? I see some rows about resolution in wfdconfifg.xlm

Enviado desde mi E2303 mediante Tapatalk
 

Darastrixi

Member
Oct 19, 2013
6
0
Fixed everything!

Can't believe it! That fixed everything!
Few things I want to note:
I did this on a Unlocked / Rooted Xperia Z4 LTE (v.260)
I followed all the steps listed in the original post and ended up in a bootloop.
Using the method @s107ken mentioned above ( adb shell chmod 644 /system/build.prop ) in TWRP fixed the bootloop.

Can confirm this is still working on the newer devices. Great to be able to cast to large screens again. Thanks @themightydeity and @s107ken
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    Tested in (probably works in other Sony devices as well):
    Xperia Z2 23.1.A.1.28 5.0.2
    Rooted
    Unlocked bootloader

    If you have been greeted by these hateful messages when trying to connect to Miracast (EZcast)

    "Could not turn on Screen mirroring. The output device is not ready or does not support HDCP."

    "Could not start mirroring on the screen. Make sure the output device supports HDCP."

    Probably you already have tried changing /system/etc/wfdconfig.xml:
    Code:
    ...
    <ContentProtection>
        <Valid>1</Valid>
    ...
    to
    Code:
    ...
    <ContentProtection>
        <Valid>0</Valid>
    ...

    After that the mirroring probably worked but got greeted by

    "The output device does not support HDCP. You can only mirror unprotected content of the following applications:
    Xperia Home, Video, Music or Walkman, Settings
    "

    and then just before the mirroring get disconnected

    "
    Your output device does not support HDCP. Cannot mirror. You still can mirror some apps and unprotected content to the device.
    "

    There is a very easy fix, in this file /system/build.prop just below
    Code:
    persist.debug.wfd.enable=1
    add
    Code:
    persist.debug.wfd.appmonitoring=1

    and then from ADB

    Code:
    adb shell su setprop persist.debug.wfd.appmonitoring 1

    Restart your phone, it should work.

    As @s107ken mentioned in #14, In case of boot loop, go to TWRP and then
    Code:
    adb shell chmod 644 /system/build.prop

    Cheers
    3
    I use terminal emulator:
    Write in this order:
    Su
    Press enter and after write:
    setprop persist.debug.wfd.appmonitoring 1
    now reboot and all Works
    2
    Worked for me (Sony Z3 Tablet Compact - Marshmallow) : :)

    1. in " /system/etc/wfdconfig.xml " file :
    Code:
    ...
    <ContentProtection>
        <Valid>1</Valid>
    ...

    change 1 to 0 :
    Code:
    ...
    <ContentProtection>
        <Valid>0</Valid>
    ...

    2. in " /system/build.prop " file, after :
    Code:
    persist.debug.wfd.enable=1
    in new line ,add :
    Code:
    persist.debug.wfd.appmonitoring=1

    3. restart phone.

    4. connect phone to computer.

    5. from " adb " :
    1. type " adb shell " and hit " enter key "​
    2. type " su " and hit " enter key "​
    3. type " setprop persist.debug.wfd.appmonitoring 1 " and hit " enter key "​

    6. for verifying :
    type " getprop persist.debug.wfd.appmonitoring 1 "​
    if " adb " return " 1 " , screen mirroring work well.​
    1
    Tested in (probably works in other Sony devices as well):
    Xperia Z2 23.1.A.1.28 5.0.2
    Rooted
    Unlocked bootloader

    If you have been greeted by these hateful messages when trying to connect to Miracast (EZcast)

    "Could not turn on Screen mirroring. The output device is not ready or does not support HDCP."

    "Could not start mirroring on the screen. Make sure the output device supports HDCP."

    Probably you already have tried changing /system/etc/wfdconfig.xml:
    Code:
    ...
    
        1
    ...
    to
    Code:
    ...
    
        0
    ...

    After that the mirroring probably worked but got greeted by

    "The output device does not support HDCP. You can only mirror unprotected content of the following applications:
    Xperia Home, Video, Music or Walkman, Settings
    "

    and then just before the mirroring get disconnected

    "
    Your output device does not support HDCP. Cannot mirror. You still can mirror some apps and unprotected content to the device.
    "

    There is a very easy fix, in this file /system/build.prop just below
    Code:
    persist.debug.wfd.enable=1
    add
    Code:
    persist.debug.wfd.appmonitoring=1

    and then from ADB

    Code:
    adb shell su setprop persist.debug.wfd.appmonitoring 1

    Restart your phone, it should work.

    Cheers


    Thanks !!!
    All ok with mirroring!!!
    1
    it works perfectly in a Z5 Compact with bootloader unlock, i´m using this to doplicate screen between my phone and my Asus Laptop.

    - the file build.prop is system folder..........you need to be root to acces to this file.
    - when you write in terminal emulator:
    first type "su" and enter
    then type "setprop persist.debug.wfd.appmonitoring 1" and enter
    type "exit" and enter
    the last, reboot your phone, it should work with no problem