AllShareCast/ScreenMirror fix for custom ROMs (I9500, I9505, I9506, E330, N9005)

Search This thread

dark_day

New member
Jun 16, 2012
2
7
Following the brief guide posted by androidrouen in #35,
Using the hdcpoff_N9005_4.4.2.zip posted by sorg and the N9005_libstagefright_wfd.so.zip posted by jackyaway,

I've managed to patch my copy of the libstagefright_wfd.so for the S5.

That's right, Galaxy S5 SM-G900 (4.4.2) !

Screen Mirroring now works for me running Omega v8.0 and ChronicKernel (SM-G900I).

@sorg feel free to add my patched lib to your OP.

Also, Don't forget to update the permissions on the patched libstagefright_wfd.so (644 (rw-r--r--))

S5 owners and rom chefs, Feel free to redistribute the patched libstagefright_wfd.so but give me some credit where its due.

Thanks to:
sorg
Tyxerakias
androidrouen
 

Attachments

  • hdcpoff_SM900_4.4.2.zip
    91.8 KB · Views: 610
Last edited:

THEDEVIOUS1

Senior Member
Nov 26, 2009
808
928
EXYNOS 4.4.2 fix...works on qulacolm also

no solution for sm-n900 note 3 exynos ?

Attn all exynos users...simply add the line wlan.wfd.hdcp=disable to the bottom of your build prop & reboot then u should have working screen mirror with custom kernel and/or recovery. This is not my finding but I have personally tested on my tab S...not sure of the original source of this info so please thk @esgie
 
Last edited:

sorg

Senior Member
Sep 5, 2006
1,059
1,136
台灣
Actually, this switch is in ROMs already long time (it was present in 4.3 at least in both Qualcomm and Exynos), but didn't actually switch HDCP off completely. So, i didn't relay on this. May be now it works. If so, then probably this suitable for all 4.4.2 ROMs including both Qualcomm and Exynos versions (thus, requires no patches).
As i've told in the OP, my E330S (converted to I9506) works with Screen Mirror without any patches (and even uses HDCP!) on custom ROM with custom kernel.
 

didik.wahyono

Member
Nov 3, 2012
32
6
Working on Rooted SM-N900 4.4.2

Attn all exynos users...simply add the line wlan.wfd.hdcp=disable to the bottom of your build prop & reboot then u should have working screen mirror with custom kernel and/or recovery. This is not my finding but I have personally tested on my tab S...not sure of the original source of this info so please thk @esgie

I have tried the hdcpoff_5410_4.4.2.zip in my Note 3 running on rooted N900DXUDNA1 and it works like a charm. Thanks for the fix.:good:
 

sebdigital

Senior Member
Aug 3, 2007
506
182
Avignon
Following the brief guide posted by androidrouen in #35,
Using the hdcpoff_N9005_4.4.2.zip posted by sorg and the N9005_libstagefright_wfd.so.zip posted by jackyaway,

I've managed to patch my copy of the libstagefright_wfd.so for the S5.

That's right, Galaxy S5 SM-G900 (4.4.2) !

Screen Mirroring now works for me running Omega v8.0 and ChronicKernel (SM-G900I).

@sorg feel free to add my patched lib to your OP.

Also, Don't forget to update the permissions on the patched libstagefright_wfd.so (644 (rw-r--r--))

S5 owners and rom chefs, Feel free to redistribute the patched libstagefright_wfd.so but give me some credit where its due.

Thanks to:
sorg
Tyxerakias
androidrouen

Congratulations and thank you very much mate, I can confirm your file is working like a charm on my S5 G900F and Phoenix rom!
 

btemtd

Senior Member
Aug 8, 2012
2,052
1,002
following the brief guide posted by androidrouen in #35,
using the hdcpoff_n9005_4.4.2.zip posted by sorg and the n9005_libstagefright_wfd.so.zip posted by jackyaway,

i've managed to patch my copy of the libstagefright_wfd.so for the s5.

That's right, galaxy s5 sm-g900 (4.4.2) !

Screen mirroring now works for me running omega v8.0 and chronickernel (sm-g900i).

@sorg feel free to add my patched lib to your op.

Also, don't forget to update the permissions on the patched libstagefright_wfd.so (644 (rw-r--r--))

s5 owners and rom chefs, feel free to redistribute the patched libstagefright_wfd.so but give me some credit where its due.

Thanks to:
Sorg
tyxerakias
androidrouen

you my friend are awesome
 

btemtd

Senior Member
Aug 8, 2012
2,052
1,002
Maybe I spoke to early, It worked once - and now it doesn't work again. Very Strange!

Now this is getting TOO weird, So I reflashed Stock Kernel, then put back on the stock Libstagefright_wfd.so file

Everything works as per normal.

then I say to myself I am going to try this one more time, I flashed the Ktoonez kernel Copied the Modded HDCP OFF file libstagefright thingo again. CHanged permissions.

anyway tried , It worked. Great! As it Always does for the first time, then I D/C and tried to connect again. Guess what? Doesnt work again. this time I said HMMMMMMM maybe I need to clear some data in the screen mirror app, I went to app manager and found that there is no data to clear everything is on 0KB..... While I was there I ddecided to try again, pulled down the notification dropdown >> Notification buttons > Screen Mirror>> WORKS Again.

This time I tried it 15 times in a row and and 11/15 Times it worked and 4 times came up with an error. I am lost for words I dont get it! Now I am wondering if I am getting too picky, and this is possible wifi intereference. I have not even tested it this much when it was stock kernel
 

jhanson

Senior Member
Sep 14, 2007
66
15
I tried the modded libstagefright_wfd.so file made by dark_day and while, unlike the stock libstagefright_wfd.so, it connects without error, I only get a green screen when connected. After comparing his libstagefright_wfd.so to my stock one, I noticed it seemed to be vastly different. So, I compared the hdcpoff_n9005_4.4.2.zip posted by sorg and the n9005_libstagefright_wfd.so.zip posted by jackyaway in order to mod my own, and again I get only the green screen. When I put the stock kernel on and the stock libstagefright_wfd.so, mirroring works absolutely perfectly. Unfortunately I still need selinux to permissive for my appradio. Anyone have an ideas for me?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 92
    This fix is for those who like to use AllShareCast/ScreenMirrorwhile on custom ROM (i.e. custom flag is set).

    Disclamer: You apply the fix at your own risk. I'm not responsible for any software or hardware damage it can lead. The only thing i can assure is that i've tested fix on my I9500 and I9506 devices and they work fine.

    Disclamer 2: I don't provide any technical support for my fixes through PM. So, please don't write PM about porting it to other ROM versions or other devices. I share what i'm doing for myself and have no intention to port it to devices i don't have.

    This fix is not really fixes the problem, but turns off HDCP protection. So, the video signal will go to HDMI in clear(unprotected) form. As a side effect, this fix also will be useful for those, who has non-HDCP TV and thus cannot use Screen Mirror function.

    I've made versions for 3 different SoCs, thus it should be compatible with almost full range of Samsung top devices:

    • Exynos 5410 for GT-I9500 Android 4.3 ROM MJ8
    • Snapdragon 600 for GT-I9505 Android 4.3 ROM MK8
    • Snapdragon 800 for GT-I9506(SHV-E330S/K/T) Android 4.3 ML5, SM-N9005 (and other SD800 versions of Note 3)

    To install the fix, your device should be rooted!
    You need to use file explorer which is able to write to /system partition. I recommend to use Root Explorer.
    1) Open /system partition with write access ("mount R/W" button in Root Explorer)
    2) Unpack following archive to specified folder:

    for Android v4.3:

    • for Exynos 5410: unpack hdcpoff_5410.zip to /system/lib
    • for Snapdragon 600: unpack hdcpoff_sd600.zip to /system/lib
    • for Snapdragon 800: unpack hdcpoff_sd800.zip to /system/vendor/lib

    for Android v4.4.2:


    • for Exynos 5410: unpack hdcpoff_5410_4.4.2.zip to /system/lib
    • for Snapdragon 600: unpack hdcpoff_sd600_4.4.2.zip to /system/lib
    • for Snapdragon 800: unpack hdcpoff_sd800_4.4.2.zip to /system/lib (not really required. HDCP should work fine on custom ROMS 4.4.2)
    3) reboot your device.

    That's all!

    I didn't test my fix neither on I9505 nor N9005, but in theory it should work.

    Update (30/Aug/2014):
    I've added Android 4.4.2 HDCP OFF version for I9500 (I9500XXUGNG3), for I9505 (I9505XXUGNG8). It should work on any 4.4.2 ROM.

    About Snapdragon 800 version (i9506, E330S, Note 3 Qualcomm version): it's funny, but my E330S (with old 4.2.2 bootloader and I9506 4.4.2 system) works without any fix. It uses HDCP although my kernel and system are custom with a lot of bloatware (including KNOX) removed. It works with both Samsung AllShareCast and Netgear PTV3000.
    I've uploaded patched lib for SD800 (I9506XXUCNG3) for any case (unpack to /system/lib).

    Update 2:
    added N9005 4.4.2 version. You can try it on other N900x models as well (SD800 only!).

    For Galaxy S5 (SM-G900 not sure Exynos or Qualcomm) look here (not tested by me)
    For generic Exynos solution look here (not tested by me)


    P.S.: If you are skilled enough, then you can port this fix to other version of ROM. Quick hint: Disassemble my fix and original file in IDA Pro, then compare listing to find the difference. And then, using some keywords near modified part, you can locate required places in the new version.
    Generally, the versions I provide should work in any ROM within the same Android version.
    32
    It worked :) Thank you! :highfive:

    I attach it for everyone interested.
    This works for the I9505 on 4.4.2 KitKat, just copy in /system/lib and set the permissions to 644 (rw-r--r--).

    Alternatively, for convenience, I also attach a .zip to flash with custom recovery.
    10
    I plan to update the mod to KK (if it will be possible) approximately in the mid of March (when i will move to KK).

    Others are welcome to port it to KK and post here if they will do this before me.
    8
    EXYNOS 4.4.2 fix...works on qulacolm also

    no solution for sm-n900 note 3 exynos ?

    Attn all exynos users...simply add the line wlan.wfd.hdcp=disable to the bottom of your build prop & reboot then u should have working screen mirror with custom kernel and/or recovery. This is not my finding but I have personally tested on my tab S...not sure of the original source of this info so please thk @esgie
    7
    I replaced the lib in my N9005 SD800 with android 4.4.2 but screen mirroring is not working. When i try to connect to my tv, the phone reboot itself. I attached the original lib here https://www.dropbox.com/s/ekfrblciynr4ncb/N9005_libstagefright_wfd.so.zip?dl=0

    Try attached one.