Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,011 Members 38,778 Now Online
XDA Developers Android and Mobile Development Forum

[EXPERIMENTAL] Enable Mirroring from any device

Tip us?
 
r3pwn
Old
(Last edited by r3pwn; 26th July 2014 at 09:01 PM.)
#1  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 947
Posts: 826
Join Date: Jul 2012
Hello, fellow XDA members!
Some of you may have heard of me before, and for the ones that haven't, let this be a warm introduction.
After hearing of the new Chromecast app with Beta support for mirroring, I decided to see if it's possible to enable for all devices. Apparently it is!
I assumed that some devices just wouldn't stream well, so I decided to mark this as [EXPERIMENTAL]. Please note that I did not make the feature, just the method to enable it.
Please note that you need the latest version of the Chromecast companion app and root access on your device (not your chromecast) for this to work properly. I believe the mirroring functionality requires KitKat, too.


For those STILL having issues,
Check /system/lib/hw directory for the file "audio.r_submix.default.so".
If it doesn't exist, ask your device maintainer to add audio.r_submix.default to
the product_packages in the device.mk file. (You may not know what it means, but they will.)
EXAMPLE (Thanks, @runandhide05!):
http://review.teameos.org/#/c/389/

(Thanks, @hwong96.)

LINK: (v5)
http://www.androidfilehost.com/?fid=23578570567717826

Here is all of the previous releases: http://www.androidfilehost.com/?a=sh...les&flid=16506

Changelog:
v5
- Added PurpleHoloLight Theme!
- Added an audio remote submix file check.

v4
- Fixed critical bugs

v3
- Added fix that may work for some
- Added " QuickSettings Mirror Tile" option

v2
- Added preinstalled sqlite3 binaries
- Fixed critical bugs

v1
- Initial release


Please note that I tried to provide a safe, universal fix, but unfortunately, this may STILL not work on some devices. If it does not work for you, let me know and I will try to fix it (again).
Please note that this has the potential to mess up audio on your device, but it creates a backup that you can restore from by "Disabling" the fix.


For the paranoid:
Source can be found here: https://github.com/r3pwn/MirrorEnabler

Tested Working:
(Aside from the officially supported devices)
ASUS PadFone X
ASUS PadFone 2
Nook HD+ (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE)
Droid RAZR MAXX HD
Droid RAZR M
Sony Xperia Z
Sony Xperia Z Ultra
Sony Xperia Z1
Sony Xperia Z1 Tablet
Sony Xperia Z1 Compact
Sony Xperia Z2
Sony Xperia Z2 Tablet
Sony Xperia ZL
Huawei Honor 3C
HTC One M8 (Including GPE)
HTC Droid DNA (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE IN RED)
Motorola Moto X
Motorola Moto G
Samsung Galaxy S II (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE)
Samsung Galaxy S III (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE)
Samsung Galaxy Note II (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE IN RED)
Samsung Note 8 Tab
Samsung Note 10.1 Tab
Samsung Note Pro 12.2 Tab
Samsung Galaxy Tab 2 (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE)
Samsung Galaxy Tab Pro 8.4
Samsung Galaxy Tab S 10.5
Samsung Galaxy Tab 4
Nexus 7 2012
Galaxy Nexus (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE IN RED)
Oppo Find 7
Oppo Find 7a
OnePlus One
LG GPad 8.3
LG G2 Mini
LG Optimus G
LG G Flex
NVIDIA SHIELD
Xiaomi Mi2
Sero 7 Pro (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE)
And possibly your smartphone/tablet! Test it out and let me know!

Tested Not Working:
HTC EVO 3D
Droid 4
Samsung Galaxy S I
Most older devices

TO THOSE WITH PLAY SERVICES FORCE CLOSE:
A fix is out (v4). Thank these guys:
@alex3305
@pabx
@mattgyver83

ROMs that allow Screen Mirroring
Samsung Galaxy Tab 2: http://bit.ly/1upFx9B
Samsung Galaxy S2 i9100: http://bit.ly/1nHuByH
Samsung Galaxy S III International: http://forum.xda-developers.com/show...php?p=54395318
Verizon Galaxy Nexus: http://forum.xda-developers.com/show....php?t=2822892

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 312 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
Lolento
Old
#2  
Senior Member
Thanks Meter 45
Posts: 591
Join Date: Jul 2007
Works!
 
r3pwn
Old
#3  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 947
Posts: 826
Join Date: Jul 2012
Quote:
Originally Posted by Lolento View Post
Works!
Can you stream properly? If so, please be sure to hit that thanks button and tell all of your buddies!

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 7 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
ksd316
Old
#4  
Member
Thanks Meter 12
Posts: 56
Join Date: Dec 2010
Location: Zanesville Ohio
My S3 running quantum makes the attempt but then it said "Google services has stopped" then just says disconnecting.

AT&T Samsung Galaxy S III
The Following 2 Users Say Thank You to ksd316 For This Useful Post: [ Click to Expand ]
 
cnotes2019
Old
#5  
Senior Member
Thanks Meter 5
Posts: 173
Join Date: Nov 2012
Does it still have to be running at least 4.4.1?


Sent from my iPhone using Tapatalk
 
r3pwn
Old
#6  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 947
Posts: 826
Join Date: Jul 2012
Quote:
Originally Posted by ksd316 View Post
My S3 running quantum makes the attempt but then it said "Google services has stopped" then just says disconnecting.

AT&T Samsung Galaxy S III
Sounds like it *might* be a hardware limitation. I don't know how to help, sorry.
Quote:
Originally Posted by cnotes2019 View Post
Does it still have to be running at least 4.4.1?


Sent from my iPhone using Tapatalk
I have honestly no idea. All of my android devices are running KitKat, so I wouldn't even be able to test. My guess is probably, but you can feel free to go ahead and give it a shot.

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 3 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
ksd316
Old
#7  
Member
Thanks Meter 12
Posts: 56
Join Date: Dec 2010
Location: Zanesville Ohio
No worries, glad to provide a test.

Sent from my SAMSUNG-SGH-I747
The Following 2 Users Say Thank You to ksd316 For This Useful Post: [ Click to Expand ]
 
dsEVOlve
Old
#8  
dsEVOlve's Avatar
Senior Member
Thanks Meter 103
Posts: 353
Join Date: Sep 2010
Just tested on Verizon M8 running Skyfall ROM (almost stock) and works pretty well. There was a little lag in places but not bad for an "experimental" workaround.

Thanks!
The Following User Says Thank You to dsEVOlve For This Useful Post: [ Click to Expand ]
 
r3pwn
Old
#9  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 947
Posts: 826
Join Date: Jul 2012
I started setting up a list, as they come in, of devices that this does/doesn't work with. Please, as you test this, leave what device you are testing it on, ROM, and whether or not it worked.

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 3 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
bjcoenen
Old
#10  
Member
Thanks Meter 74
Posts: 91
Join Date: Feb 2011
Location: Wisconsin
Default You are a god

HEY MAN YOU JUST MADE MY YEAR. I have been stuck on terrible TouchWiz Stock Roms on my Galaxy Note 2 for the past 1.5 years because I use my screen mirroring with allshare cast dongle a lot. I have been trying EVERYTHING to get screen mirroring or cast screen to work on this device for over a year. When I heard it worked on the CCast I pulled out my Nexus 7 2013 and it instantly work perfectly. I was so bummed when I saw the Note 2 was not on the list of supported devices. I just installed your app then the sqlite binary from the playstore and used that to install the binary. Then enabled your app, launched chromecast and am now mirroring my screen FLAWLESSLY on my US Cellular SCH-R950 t0lteusc Note 2 using stock rooted deodexed 4.4.2 TW rom and latest agni-kernel. YOU ARE THE MAN. Seriously, thank you so much. Seriously. You have freed me from the samsung prison.

The Following 2 Users Say Thank You to bjcoenen For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes