FORUMS
Remove All Ads from XDA

[MOD][XPOSED+MAGISK][2018/10/05 1.0]Xperia Screen Mirroring/Miracast Fix (Oreo)

2,372 posts
Thanks Meter: 1,353
 
By itandy, Senior Member on 5th October 2018, 07:37 AM
Post Reply Email Thread
This Xposed and Magisk combo allows Xperia Oreo devices to use Screen Mirroring with non HDCP Miracast TV/devices. The solution was originally published by M-Rom. I just put them into Xposed and Magisk modules.

Requirements
Instructions
  1. Install the Xposed module Xperia Wifi Display fix (Oreo)
  2. Download the Magisk module (attachment in this post)
  3. Download the /system/etc/wfdconfig.xml file from your device
  4. Follow the instructions in post #2 to edit the wfdconfig.xml file
  5. Replace the wfdconfig.xml file in Xperia-Wifi-Display-fix.zip with the edited version. Remember to put it in the folder /system/etc/. 7-Zip can do the job easily.
  6. Install the updated Xperia-Wifi-Display-fix.zip in Magisk Manager
  7. Run Xposed Installer and enable the module Xperia Wifi Display fix (Oreo)
  8. Reboot

Download
Xposed Module Repository

Credits
Original mod by M-Rom
Attached Files
File Type: zip Xperia-Wifi-Display-fix.zip - [Click for QR Code] (8.5 KB, 310 views)
The Following 2 Users Say Thank You to itandy For This Useful Post: [ View ] Gift itandy Ad-Free
 
 
5th October 2018, 07:37 AM |#2  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Instructions to update wfdconfig.xml file:

Update the value highlighted below in Red from 1 to 0.

Quote:

<!-- enable HDCP by default -->
<ContentProtection>
<Valid>1</Valid>
<!--
Valid values WFD_HDCP_2_0,
WFD_HDCP_2_1 and WFD_HDCP_2_2
-->
<Version>WFD_HDCP_2_2</Version>
<CPPort>6789</CPPort>
<!--
turn on/off audio encryption
-->
<EncryptAudio>1</EncryptAudio>
</ContentProtection>

The Following User Says Thank You to itandy For This Useful Post: [ View ] Gift itandy Ad-Free
5th October 2018, 08:57 AM |#3  
Senior Member
Thanks Meter: 609
 
More
magisk modul should solve the problem with some build.prop mod
5th October 2018, 09:01 AM |#4  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by karrouma

magisk modul should solve the problem with some build.prop mod

Yes Magisk module solves the problem of editing the build.prop and wfdconfig.xml files. But on Oreo, the system package WfdService.apk needs to be modded too. That's why the Xposed module is also needed.
5th October 2018, 01:33 PM |#5  
Senior Member
Thanks Meter: 609
 
More
Quote:
Originally Posted by itandy

Yes Magisk module solves the problem of editing the build.prop and wfdconfig.xml files. But on Oreo, the system package WfdService.apk needs to be modded too. That's why the Xposed module is also needed.

Installed xposed
Restart and install xposed module
Restart and installed magisk module
Restart
Now my smart watch can't connect and phone not showing it

Restore and all is fine
5th October 2018, 01:50 PM |#6  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by karrouma

Installed xposed
Restart and install xposed module
Restart and installed magisk module
Restart
Now my smart watch can't connect and phone not showing it

Restore and all is fine

But can you use Screen Mirroring on non HDCP device using these modules?
5th October 2018, 02:41 PM |#7  
Senior Member
Thanks Meter: 609
 
More
Quote:
Originally Posted by itandy

But can you use Screen Mirroring on non HDCP device using these modules?

yes with my smart sony tv and with miracast
6th October 2018, 04:46 AM |#8  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by karrouma

yes with my smart sony tv and with miracast

Can you disable the Magisk module, reboot and send me the following system file?

system\etc\wfdconfig.xml
6th October 2018, 05:41 AM |#9  
Senior Member
Thanks Meter: 609
 
More
Quote:
Originally Posted by itandy

Can you disable the Magisk module, reboot and send me the following system file?

system\etc\wfdconfig.xml

Attached as zip
Attached Files
File Type: zip wfdconfig.zip - [Click for QR Code] (4.1 KB, 36 views)
6th October 2018, 02:27 PM |#10  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by karrouma

Attached as zip

Please update the Magisk module with the attachment in this post.
Attached Files
File Type: zip Xperia-Wifi-Display-fix.zip - [Click for QR Code] (8.4 KB, 44 views)
6th October 2018, 02:43 PM |#11  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
IMPORTANT!

Anyone using this module should follow the new instructions in OP to customize your own Magisk module. I found that one of the system file /system/etc/wfdconfig.xml varies from device to device. So the version in the Xperia-Wifi-Display-fix.zip file might not be appropriate for you. The new instructions tell you how to customize your own version.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes