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

Search This thread

sorg

Senior Member
Sep 5, 2006
1,059
1,136
台灣
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.
 

Attachments

  • hdcpoff_5410.zip
    106.9 KB · Views: 1,725
  • hdcpoff_sd600.zip
    61.8 KB · Views: 1,815
  • hdcpoff_sd800.zip
    61.6 KB · Views: 1,044
  • hdcpoff_5410_4.4.2.zip
    92.2 KB · Views: 1,599
  • hdcpoff_sd800_4.4.2.zip
    92 KB · Views: 1,114
  • hdcpoff_sd600_4.4.2.zip
    62.8 KB · Views: 2,338
  • hdcpoff_N9005_4.4.2.zip
    92.2 KB · Views: 1,819
Last edited:

lahceneamine

Senior Member
Jul 8, 2011
667
275
Algiers
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 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
3) reboot your device.

That's all!

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

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.

Thank you so much, I can confirm, it works on i9505 with ML6 :)
 
  • Like
Reactions: demon-knight

studentjunk

Senior Member
Sep 24, 2007
640
201
  • Like
Reactions: notmyepic

Tronman

New member
Jan 18, 2014
2
0
@sorg, this is currently working on my I9505 running Omega v19. Wish there was some way I could properly thank you?
 

CNexus

Senior Member
May 17, 2012
9,010
14,000
~/android
Google Pixel 7
The original libs that match the patched libs from the OP are attached to this post for comparison and porting purposes

Will update when I track down the snapdragon 600 lib

EDIT: Snapdragon 600 added
 

Attachments

  • 5410_hdcp_stock.zip
    109.1 KB · Views: 76
  • sd800_hdcp_stock.zip
    63.2 KB · Views: 79
  • sd600_hdcp_stock.zip
    109.1 KB · Views: 100
Last edited:
  • Like
Reactions: notmyepic

sorg

Senior Member
Sep 5, 2006
1,059
1,136
台灣
I don't think sorg likes to do that kind of stuff. Maybe he think's it's too easy. In any case, I got it started before going to work...

https://www.dropbox.com/s/dvgpy0c21rjm47m/allsharework.zip

Some ppl first throw *hit to me simply because they didn't get what they wanted and then come here to ask something. I have no feeling to answer such blacklisted person. If their insulting posts have been deleted, it doesn't change my attitude to them.
 
  • Like
Reactions: billavg

CNexus

Senior Member
May 17, 2012
9,010
14,000
~/android
Google Pixel 7

I've already found and posted the stock libs for myself and others. Thanks for extending the patch to snapdragon devices, I'll be porting it to other devices soon.
 
Last edited:
  • Like
Reactions: notmyepic

Mussels84

Senior Member
May 18, 2013
4,094
1,774
oh thank god, i spent ages looking for this on my i9305... at least now my S4 has it fixed :)

thanks mate!
 

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.