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:
to
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
add
and then from ADB
Restart your phone, it should work.
As @s107ken mentioned in #14, In case of boot loop, go to TWRP and then
Cheers
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>
...
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
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: