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

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
Could you please clarify what you mean by "unpack" in the OP? Do you mean just copy the .zip to the specified location? Copy the .zip there and then [do X]? Or something else, e.g. extract-all-files from the .zip on my PC and then copy those files to the specified location?

Sorry for what is probably a dumb question but I want to be careful.

Thanks.
Extract and move to the indicated location, overwriting existing files

Root required of course, as well as a root-capable file browser
 

Tyxerakias

Senior Member
Jun 19, 2010
521
300
0
London, UK
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.
Hi,
I tried to do the above for 4.4.2... I found and changed two of the three parts you changed in 4.3, but the third one is different. There are no separate references to HDCP2.0 and 2.1, but a general "HDCP2."
I'm not at all sure what needs changing here...:( I tried altering 14F0A from #6 to #0, the change that most closely matches what you did for the 4.3 cases, but no luck. Here is the bit in question:

Code:
.text:000140A8 ; ---------------------------------------------------------------------------
.text:000140A8
.text:000140A8 loc_140A8                               ; CODE XREF: MMCapability::setKeyValue(char *,char *)+F4j
.text:000140A8                 LDR.W           R1, =(aWfd_3d_video_f - 0x140B2)
.text:000140AC                 MOV             R0, R5  ; s1
.text:000140AE                 ADD             R1, PC  ; "wfd_3d_video_formats"
.text:000140B0                 BLX             strcmp
.text:000140B4                 CMP             R0, #0
.text:000140B6                 BEQ.W           loc_14526
.text:000140BA                 LDR.W           R1, =(aWfd_content_pr - 0x140C4)
.text:000140BE                 MOV             R0, R5  ; s1
.text:000140C0                 ADD             R1, PC  ; "wfd_content_protection"
.text:000140C2                 BLX             strcmp
.text:000140C6                 CMP             R0, #0
.text:000140C8                 BNE             loc_14154
.text:000140CA                 LDR.W           R1, =(aHdcp2_ - 0x140D4)
.text:000140CE                 MOV             R0, R6  ; haystack
.text:000140D0                 ADD             R1, PC  ; "HDCP2."
.text:000140D2                 BLX             strstr
.text:000140D6                 MOV             R5, R0
.text:000140D8                 CBZ             R0, loc_14114
.text:000140DA                 ADDS            R0, R6, #6 ; nptr
.text:000140DC                 LDR.W           R5, [R4,#0x200]
.text:000140E0                 BLX             atoi
.text:000140E4                 ADDS            R3, R0, #1
.text:000140E6                 MOVW            R0, #0x177D
.text:000140EA                 STRB.W          R3, [R5,#0x2A]
.text:000140EE                 BLX             GetLogMask
.text:000140F2                 LSLS            R0, R0, #0x1C
.text:000140F4                 BPL             loc_1412A
.text:000140F6                 LDR.W           R2, [R4,#0x200]
.text:000140FA                 MOVS            R0, #6
.text:000140FC                 LDR.W           R1, =(aMmcapability_c - 0x14108)
.text:00014100                 LDRB.W          R3, [R2,#0x2A]
.text:00014104                 ADD             R1, PC  ; "MMCapability_CPP"
.text:00014106                 LDR.W           R2, =(aWfd_cfg_parser - 0x14110)
.text:0001410A                 SUBS            R3, #1
.text:0001410C                 ADD             R2, PC  ; "wfd_cfg_parser->getSupportedHDCPVersion"...
.text:0001410E                 BLX             __android_log_print
.text:00014112                 B               loc_1412A
.text:00014114 ; ---------------------------------------------------------------------------
.text:00014114
Do you have any suggestions/advice?

Thanks a lot!
 
  • Like
Reactions: gsmyth

Tyxerakias

Senior Member
Jun 19, 2010
521
300
0
London, UK
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.
 

Attachments

Last edited:

Chaos ^_^

Senior Member
Jan 23, 2013
2,255
3,104
0
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.
Thanks

i will include this in my ROM for sure with credits :)
 

Razor29

Senior Member
Dec 7, 2012
105
26
0
Do you think the same method could work (with slight modifications if needed) for galaxy note 3 4.4.2 octa?

Sent from my SM-N900 using Tapatalk
 

mgmate

Senior Member
May 14, 2011
210
27
48
It is much more than that.

Amusing! Now I can control the mobile screen with the Tv remote as a mouse !!.

This is new for me. I guess it's new on kit Kat.

I own a LG LA860V series. The button is not working is back button.

Many thanks!

Enviado desde mi GT-I9505 mediante Tapatalk
 

Tyxerakias

Senior Member
Jun 19, 2010
521
300
0
London, UK
Do you think the same method could work (with slight modifications if needed) for galaxy note 3 4.4.2 octa?

Sent from my SM-N900 using Tapatalk
If you can find which file is responsible for this in the octa note 3 library and if it's similar to the above, I can give it a go, but sorg is the master, if anyone can help it's him ;)
 

brave978

New member
Sep 7, 2010
4
1
0
I tried it on 4.4.2 jamal but does not work. Does anyone have a solution or someone with the same ROM manages to make it work

Inviato dal mio GT-I9505G utilizzando Tapatalk
 

Razor29

Senior Member
Dec 7, 2012
105
26
0
maybe you guys could help point me to a possible way of figuring out what file is in charge of this specific function perhaps trying to record event with log cat during an attempt at mirroring :confused: