yashsingh1/xdaforums huggingface dataset:
[Google Chromecast] zul8er:
Works on Galaxy S3 running the Sprint ND8 4.4.2 port. Just no sound. Started a movie and it didn't appear to lag at all. Played a game and it was smooth.

Awesome job!
[Google Chromecast] Moscha:
Good work!

ChromeCast mirror works on my Nexus 7 2012 (Stock 4.4.4, rootet).

Difference from my Nexus 5, which supports ChromeCast mirror out of the box (just for information):

- No Quicktile to enable mirroring

- Performance on the Nexus 5 is smoother (Videos are a little laggy, but usable for demonstrating short clips).

Hope there will be an Xposed Module soon ?

Gesendet von meinem Nexus 7 mit Tapatalk
[Google Chromecast] ZenInsight:
Sq lite installed. Mirror enabled, but my Chromecast app doesn't have the screen cast option when I slide it out.

Does anyone have an apk with the screen cast option enabled?
[Google Chromecast] r3pwn:
Pssh, this is better than an Xposed module. It works on ART. :P

(I have nothing against Rovo89 or all the work he has put in to the Xposed Framework, I was just stating a general limitation.)
[Google Chromecast] metaljr81:
Works just fine with moto x on 4.4.3
[Google Chromecast] r3pwn:
Just woke up and added everything to the OP. Yes, even some of the stuff from Reddit (Thanks, guys!).
[Google Chromecast] ariw182:
Is this app works for other dongle ??

Sorry for silly question
[Google Chromecast] PsHegger:
It works on my Stock Moto G with ART, but Google Play Services force closes on my CM11 Galaxy Tab 2
[Google Chromecast] r3pwn:
I don't believe so. It modifies one of the files that the Chromecast app reads from. Unless the other dongles read the same value from that same file, no.
[Google Chromecast] r3pwn:
There's a few threads with the apk posted. Even a Google search might do the trick.
[Google Chromecast] glimmling:
Sorry, my fault. The MirrorEnabler is just showing "Disabled", but it is still working.
[Google Chromecast] indexmonkey:
I have tested this on :

Samsung Galaxy Tab GT-i7510 - does not work - upgraded rom to CM 11.2 (Android version 4.4.4)

Samsung Galaxy S1 i9000 - does not work - upgraded fw to slimroms.net (Android version 4.4.2)

not criticism! =) just feeding back so you can update op if you wish.

thanks for your great efforts.
[Google Chromecast] Shouheng:
Oppo Find 5 with Omni rom 4.4.4 not working. When I try to cast, Google play service will stop working. Any idea why?
[Google Chromecast] meduza:
...well, this is something the most of us would like to know... ;)

m.
[Google Chromecast] toki12345:
Let's be patient :)

Though it seems the mirroring being among the biggest features, I think we'll need to wait for Google to bring the next iteration.

It seems that there is still room for improvement of mirroring performance. (be it direct connection omitting the router and/or using some improved protocol...)
[Google Chromecast] blestsol:
Nice! Thanks

Sent from my HTCM8
[Google Chromecast] loc626:
For those who are having trouble getting this to work on your device....if I am correct from what I found and was told within this thread, your device might need to be updated to actual 4.4.2.

Meaning that you might have to flash/upgrade whether manually or OTA the actual update for your device. It seems like it might have to do with the bootloader.

For example, My Galaxy S3 [SGH-I747] still has the bootloader that came with the update from Jelly Bean but is running CM11 4.4.2.

My current bootloader is I747UCUEMJB. I need to flash KK upgrade so that my bootloader is I747UCUFNE4.

Like I said, this is what I was told and what info I found for my device. But this might be why the mirror enabler apk does not work with your device. Check to see what is the most recent bootloader for your device.

Hope this is helpful and I gave enough info or if theres anyone that can add on or correct me if I am not accurate.
[Google Chromecast] alex3305:
Although I can't talk for other devices. For the Xperia Z AOSP rom it seemed that a single line in /system/etc/audio_policy.conf was the problem. The rom author (pabx) fixed this and casting works great now!
[Google Chromecast] bhiga:
European SGS3 is a different animal from North America.

See http://xdaforums.com/galaxy-s3/general/american-canadian-sgs3-read-flashing-t1757755

Cast Screen via

Chromecast

requires KitKat 4.4.1 or higher. Thus, it doesn't work on Jellybean 4.1-4.3 or anything older.

Miracast came in somewhere between 4.2 and 4.3 (depending on the ROM) so you might see the "Cast Screen" icon in some apps, but it won't work for Chromecast without 4.4.1 or newer.

Be very careful flashing bootloaders on the Galaxy S3 (SGH-i747) - you cannot go back.

I had, umm, a mishap in my upgrade and found that the NE4 bootloader/kernel/modem, at least in my case, worked for WiFi on 4.3 but did not work for phone (it showed no signal) - I did finally manage to get 4.4.2 going though (follow instructions carefully and make sure you have proper versions of all the required elements) and now all is well.

I'm quite happy with the upgrade from 4.3 though the first few hours my phone was BURNING because Google Play and Samsung Store wanted to download all the updates under the sun at once. :rolleyes:
[Google Chromecast] r3pwn:
Link to ROM? I could PM him and see if he can help me.
[Google Chromecast] texasex1998:
Not working on my LG G Pad 8.3 but seems to be for others
[Google Chromecast] stang48317:
Looks like this is the rom - http://www.blinkenlights.ch/ccms/android/yuga.html
[Google Chromecast] mattgyver83:
I don't have the device and this is all speculation but doing some quick poking around it looks like he might be talking about this ROM http://www.blinkenlights.ch/ccms/android/yuga.html

The devs (pabx) XDA signature says he doesnt answer tech questions via PM and I could not find the rom listed on XDA anymore (dead thread it seems). His site shows in the changelog that he added an r_submix section to audio_policy.conf. Based on the name of the file this likely only deals with the audio side of casting (ie: video works/audio does not). Though my device doesnt cast due to FC (Droid DNA CM11-M8 snapshot) I looked at its audio_policy.conf file to see if it contained an r_submix section section and it does, heres the version on git https://github.com/CyanogenMod/android_device_htc_dlx/blob/7cba2a5d191e1a9c7c8212ed4d20cc7409a9b818/configs/audio_policy.conf
[Google Chromecast] r3pwn:
In the logcats, quite a few of the FCs were due to audio codec issues (weird, I know, they should just disclude that if it doesn't work), but he doesn't have the changes pushed to github, yet. Does anyone feel like extracting the file from his ROM and sending it to me on Hangouts or something? (PM me for hangouts email address)
[Google Chromecast] mattgyver83:
I can try to extract it to look. I am also finding information about this "fixing" chromecasty issues as it related to mirracast so yeah maybe it is related. Here are a few other sources I found, it might be good for nothing but just for review;

r_submix is defined in audio.h

https://source.android.com/devices/reference/audio_8h_source.html#l00069

the audio.h sources are here

https://source.android.com/devices/reference/audio_8h_source.html

Looks like they kinda define what a REMOTE SUBMIX is in the android reference docs.

http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html#REMOTE_SUBMIX
[Google Chromecast] newb4r9o:
Thanks for your work, mattgyver83

My n7100 resurrection remix playservices crashes; so I took a quick look at the /system/etc/audio_policy.conf and found the exact same r_submix configuration as revealed by you: indicated by pabx. No joy there for me :(

However, I do note that hdmi sampling_rates 44100|48000 were used by pabx, whereas mine is 44100. Could this be an issue (anyone else, before I start making some blind changes)?

TIA
[Google Chromecast] mattgyver83:
So, im not a developer im just trying to peel back layers but what I did notice when looking earlier is that those values did differentiate between devices (cant find the post but there was a post on XDA with a bunch of people posting their audio_policy.config files) so I would say dont muck with it. I am sure you could and just make a copy of the original file and put it back into play via adb or like twrp recovery if you were so inclined but as of right now I don't see any reason that would change anything though.

---------- Post added at 01:34 PM ---------- Previous post was at 01:29 PM ----------

audio_policy.conf

http://pastebin.com/eC2y8Vws
[Google Chromecast] bhiga:
I can't say for certain, but I do know that digital audio generally prefers 48 KHz (48000)
[Google Chromecast] kibmcz:
Tested and works great on my 2012 nexus 7 running cm11 m8 :)

Edit: Some games might be issue but for 99% of the uses id use it works flawlessly.
[Google Chromecast] r3pwn:
That fixed it for me - Picture freezes immediately after mirroring, though. I'll have to add this as an optional fix. I just replaced my audio_policy.conf completely on a device that had the Play Services FC. Now, ta-da, no more FC.

EDIT: Check bottom of the OP. I updated it for you. :)
[Google Chromecast] poopsmith777:
Which bootloader are you using? MJB or higher?

Interesting. It sounds like the S3 devices have an issue with Google Services force closing. I'd be happy to give the fix a try if that may help address the issue with the S3. May also allow me to test my headunit mirroring functionality ;)
[Google Chromecast] borijess:
Working on ATT NOTE 2 running custom rom DN3 V5.

Sent from the TermiNOTEr 2! ;)
[Google Chromecast] sgloki77:
when I installed the app I was on MJB now I'm on NE4, either case working perfect

I tried with CM11 m8 didn't work, only TW
[Google Chromecast] r3pwn:
For the curious: a fix is incoming soon(v3), it will not work on the HTC One M8 on stock (it will work on CM). It fixes the Google Play Services Force Close issues once and for all!

Oh, it might also have a little surprise. :) Stay tuned.
[Google Chromecast] newb4r9o:
Sigh...... No Joy!

Replaced the audio_policy.conf file; installed the latest V2 (fd515ac2fbbfa4631db270221576c88d).

V2 patched chromcast fine; selected cast screen; play services crashed.

(Am posting this as I suspect V3 might be V2 with an update to audio_policy.conf)

n7100; 4.4.2 RR
[Google Chromecast] r3pwn:
Just wait. :)
[Google Chromecast] mattgyver83:
Verified, the changes we discussed fix the FC issue on my Droid DNA running CM11 Snapshot M8, it looks like scaling is a bit off but thats not a deal breaker. This may be TV/Receiver specific as well. Finally no more FCs :)
[Google Chromecast] poopsmith777:
Ah I see. I'm still hesitant to upgrade from LK3 :p

:victory: :good:
[Google Chromecast] ThatKidDrew:
Screen Mirroring and audio working on LG G2 VS980 running vanir custom ROM, only issues was a little bit of the nav bar was cut out and maybe half of the status, not huge problem just something I noticed, thanks for this!
[Google Chromecast] bronx:
Awww gawd... Please say that it is a "no root required" kind of surprise... xD
[Google Chromecast] Metehan90:
Thanks

GT-N7100 cihazımdan Tapatalk kullanılarak gönderildi
[Google Chromecast] mattgyver83:
Not to be a debbie downer but I think just based on the sheer nature of the changes required in just getting the casting initially enabled w/v1 or v2 root is and will be a requirement going forward until google pushes out an official update enabling for all devices.
[Google Chromecast] nelsonw:
Need help testing?
[Google Chromecast] r3pwn:
No, sorry. :/

No, I think I got it. I am working on actually coding the fix now.
[Google Chromecast] bronx:
I know I know... What to do? Cannot/won't root, so I guess I have to wait for darn Google... (-_-) zzzzz......
[Google Chromecast] pabx:
You probably already figured it out - but the key to get chromecast working on my AOSP rom was this commit:

https://github.com/adrian-bl-yuga/device-sony-lagan/commit/c56f7b44698bf7100faf474e31c4ff05e78333b7

#1: You need to load the submix module - this is required and the chromecast app will crash if it can not find this output device

#2: Chromecast (or the chromecast app?) has issues with some sampling rates: It doesn't seem to like 44100. Setting 48000 as the only output choice fixes the 'audio too fast' issue.
[Google Chromecast] r3pwn:
Yep. I am already in the works on v3 with this fix applied. Many thanks!
[Google Chromecast] Ayocuz:
On the first version my Google services crashed it was because I was running art soon as I switch back to dalvik it worked perfectly reset my phone and try to get the apk and it was v. 2 which didn't work
[Google Chromecast] cristiano.elias:
I replaced the audio_policy.conf file on my I9300 (CM11, latest nightly and gapps) but GPS still crashes. Guess I'll have to manage my anxiety, wait for the new version and hope for the best!
[Google Chromecast] hwong96:
Look in /system/lib/hw directory. Do you see a file audio.r_submix.default.so? If not, add it to the directory. The r_submix section in audio_policy.conf relies in the audio.r_submix.so file.
[Google Chromecast] stang48317:
So I was finally able to get my google play services to stop force closing by adding three files (libgcastv2_base.so, libgcastv2_support.so, and libjgcastservice.so) to my /system/lib/arm directory (because this is an x86 device)... you'd add them to /system/lib/ if it is an "arm" device. I can click connect, and I do not get a force close anymore, I can hear audio, however all I see is a black screen. Has anyone else been stuck with a black screen?
[Google Chromecast] cristiano.elias:
Well... After I read your post it sounded so obvious... I guess one can't prevent oneself from being a noob.. :/

I downloaded the following file, from github (sbdags/CROMi-X_DEODEX_5.4/blob/master/kernel/me301t/system/lib/hw/audio.r_submix.default.so) but it didn't do the trick. Am I missing something here?
[Google Chromecast] hwong96:
The file needs to be loaded at device boot. When you check su logcat you should see audio.r_submix.default.so loaded.

If not, recompile ROM with audio.r_submix option checked.
[Google Chromecast] cristiano.elias:
Well... Now this is waaaaaayyy out of my league. Thanks anyway!:good:
[Google Chromecast] nelsonw:
Anxiety is killing me!
[Google Chromecast] Piaband:
Droid MAXX running 4.4.4. I tried with both version 1 and 2. After choosing my Chromecast to cast too, it says connecting and then very quickly disconnecting.

Updating from 4.4 to 4.4.4 solved my problem of no cast option showing up in the side menu.

Scratch that. After rebooting both it works flawlessly. Very slight lag, but really impressed.
[Google Chromecast] r3pwn:
Just got my NVIDIA SHIELD. I'll be testing with #MirrorEnabler v3 and if it works, I'll ship it (v3, not my SHIELD. lol) tonight!
[Google Chromecast] timmyd463229:
I'll take the shield even though I don't know what it is
[Google Chromecast] nelsonw:
I'm about to get a Tegra Note 7, so I hope it works too! Thanks for the hard work!
[Google Chromecast] loc626:
Not to sound impatient but when will we see v3? Maybe this is all... I'll need unless I definitely need to switch my bootloader from MJB to NE4.
[Google Chromecast] r3pwn:
Soon today or tomorrow. I need to ensure that the fix works 100% before shipping it.
[Google Chromecast] loc626:
Maybe you can confirm for me... Do I need to switch my bootloader from MJB to NE4 in order for this to work? Or do I just have to wait for v3?

I am running CM11 4.4.2 (d2att m3) with mjb bootloader.
[Google Chromecast] r3pwn:
Wait for v3 just to be safe.
[Google Chromecast] loc626:
Thanks! Hopefully that will do it for me. I've been wanting to use this feature for Chromecast as I just bought one over the weekend!
[Google Chromecast] EarlyMon:
If M8 stock rooted not supported in v3, will you also be leaving up the v2?

V2 works great with ViperOneM8 (Sprint), and that's pretty much stock, with settings tweaks, themes, and deodexed.

I know you are really conscientious about the feedback you've gotten (seriously - kudos on a great thread, and likewise to the many fine contributors here) and therefore I know you know what roms work, so if I'm over-thinking the question, please just point and laugh with my blessings, I've been having that kind of day. :D :D
[Google Chromecast] r3pwn:
The app still supports the m8, just not the fix I am using.

Updated OP. Go get v3! :D
[Google Chromecast] timmyd463229:
Still got Google play services fc
[Google Chromecast] r3pwn:
Did you apply the fix from in-app and reboot?
[Google Chromecast] timmyd463229:
Yeah i clicked ebabled the fix then rebooted
[Google Chromecast] blitz_7:
I too still get gps fc on my asus transformer tf101 running katkiss rom android 4.4.4. Thanks for your efforts.
[Google Chromecast] timmyd463229:
Yeah I mean I'm very happy your trying ..thank you...I'm going to put a tw ROM on my note so I can use this lol
[Google Chromecast] r3pwn:
Try it without the TW ROM. Try v3 normal.
[Google Chromecast] timmyd463229:
I did I'm on slimkat now its 4.4.4
[Google Chromecast] pvaldeben:
How to tell if it working or not. What do I have to do?

I search play store for chromecast companion and it does not find anything with that name but it finds just "Chromecast" so i installed it

then I turned on the Enable Mirror Status.

What do I do next to see if this is working or not?

Do I have to enable Screen Mirroring from notifications, if so it does not find any devices?

little help please

T mobile Note2 with eZKAT_v2.0_n3feat.zip rom
[Google Chromecast] timmyd463229:
If you have the chromecast app it should have cast screen in the menu on the left and then hit cast screen
[Google Chromecast] stang48317:
My TV screen is still black with V3. I am thinking there is some video codec or something that is not being satisfied on my tablet.

I can also post my log if you'd like to take a look at it.
[Google Chromecast] nelsonw:
Well, I tried everything, disabled, reboot, enable, reboot, installed latest CM build, cleared caches, etc. Still FC. Want a log?
[Google Chromecast] cristiano.elias:
I hate to say it, but I got the same result here... It seems the I9300 is beyond salvation... :/
[Google Chromecast] nelsonw:
https://www.dropbox.com/s/ycmrrg7dgeuqj1b/2014-07-15-22-31-27.txt

I know its huge. But look on the last 3 minutes. I saw a lot of errors. Hope it helps. Thanks! (I9300 CM today's build)
[Google Chromecast] pvaldeben:
Hey Thanks glad to say the screen is casting ok but no audio. Im on Tmobile note 2 with a ATT rom.

Very cool mod Thanks.
[Google Chromecast] blitz_7:
Here is the log for the gps fc on my tf101. I believe it should only reflect the error.

https://www.dropbox.com/s/nptx6mzrc8a1lpy/tf101 mirror fail log.txt
[Google Chromecast] jdiamond7:
It works! Verizon Galaxy S3 with CM11!

Steps I took:

Opened v2 and disabled.

Uninstalled v2.

Installed v3.

Enabled.

Reboot.
[Google Chromecast] preusstang:
v3 fixed the FC for Google play services and has enabled error-free mirroring on my Verizon S3 (SCH-i535) running AOSP ROM SlimKat (4.4.4).

Big thanks to r3pwn for the development efforts and nailing down the issue for the S3.

Other folks might want to post logcats cause a "this won't work! Its broken." doesn't help anyone.

Cheers :)
[Google Chromecast] Moscha:
v3 Works like a charm on my Nexus 7 2012 with stock android, Tile in Quicksettings works perfect. Second option is not needed for my device, because already v1 worked for me.

Now a patch on boot would be cool and adding the app to f-droid for updating (I think Google wouldn't like this tool in their Google Playstore)

Gesendet von meinem Nexus 7 mit Tapatalk
[Google Chromecast] hwong96:
I took a snapshot of your log where the error occurred. See attached pic. The file audio.r_submix.default.so is not in /system/lib/hw. see http://xdaforums.com/showpost.php?p=54173842&postcount=622
[Google Chromecast] Flowah:
You people are gods. Thank you to everyone who helped solve this problem!
[Google Chromecast] r3pwn:
Did it fix the issue for you?
[Google Chromecast] runandhide05:
From your log...are you running 4.0.3? If so this will likely never work. Need to be on kitkat 4.4.x
[Google Chromecast] blitz_7:
No. I'm on 4.4.4
[Google Chromecast] ominousnimbus:
FWIW...

SGH-I747 (d2att) on CM11 - works almost perfectly with v3. Playback of 720p video is slightly choppy, but everything else is perfect. Audio works.

NOOK HD+ (ovation) on CM11 - Google Play Services still FC after applying all three fixes from v3 and rebooting. Packing 1 GB of RAM and a low-end CPU from 2012, I'm fully expecting hardware limitations to prevent this feature from ever working... but not sure if GPS FC would be a reflection of that or something more fixable.
[Google Chromecast] orlans21:
it works! S3 sgh-i747m PA 4.4.4 although it messed up when i went into landscape mode but that could have possibly been my internet since its being really weird tonight
[Google Chromecast] mobilecj:
I loaded v3 and not nothing shows up on my chrome cast on Sprint m8

---------- Post added at 09:03 PM ---------- Previous post was at 09:00 PM ----------

Nevermind restarted it a few times
[Google Chromecast] ksd316:
V3 to no avail on my Quantum 5 wBMS kernel

AT&T Samsung Galaxy S III
[Google Chromecast] supergogeta:
Im using asusTf700 with crombikkrom after i press the cast screen i just get a black screen on my tv. is there anyway to implement some video codecs.
[Google Chromecast] srikanth003:
Works beautifully on my att galaxy s3 running latest d2lte cm11 nightly. Big thanks to r3pwn.

For those who still having FC, make sure both device and chromecast are rebooted.
[Google Chromecast] itsdandandan:
Still getting force closes on International s3 (i9300) running SlimKat
[Google Chromecast] Asphyx:
Still no joy on droid4 (I'll keep testing just FYI but I'm sure the hardware is not capable so I personally don't expect a breakthrough)

All works as you would expect, NO FC and it will even turn the CCast screen black...But at that point the Phone disconnects Screen goes back to default but the Phone is left with the impression that it is still connecting or connected.

After that GServices FCs if you make a second attempt.

I am convinced you need to have a unit with an official 4.4.1+ Kernel for this to work. or a very good custom one with all the info needed for casting.
[Google Chromecast] wjazdbitu:
V3 resolved the FC issue at LG G Pro CM11. Big thanks.
[Google Chromecast] thycpt737:
Still having FC with GS3 International. I'm on Omnirom 4.4.4 with Boeffla .

Here is what i've done.

Disabled mirroring on V2.

Uninstalled V2 and installed V3

Enabled everything.

Rebooted phone.

Reboted Chromecast.

By the way while rebooting chromecast it updated to software version 17977 .

Basically done everything but still having FC.Thanks everyone for the effort.
[Google Chromecast] mally2:
At&t LGOG works perfect with V2 onward, probably coz it has the same hardware as N4
[Google Chromecast] basrawi:
Works OK with nexus 7 2012. A bit laggy but i think this had to do with the performance of the tablet itself
[Google Chromecast] gluni:
Note 2 7105 still FC with cm11.

But thx for keeping trying for us.
[Google Chromecast] vinaysharma76:
V3 is not working on my LG 4x HD P880 with TOT CM11. Still same GPS FC. :(
[Google Chromecast] ricarva:
[MENTION=4732871]r3pwn[/MENTION]

Any idea if the International Galaxy S 3 (i9300) with AOSP ROMs is at all salvageable? Running latest CM 11 Nightly.

Thanks in advance.
[Google Chromecast] rlyeh7:
It seems to be working on my Oppo N1 with latest CM11 nightly. I'll keep testing and report if I find any bug.

Thanks a bunch r3pwn and everyone that's contributing.:good:
[Google Chromecast] L3st:
Ok, so on my GALAXY S3 (Europe) with QS-i9300-KK ROM works fine!!!!

Only have 1s of delay with the TV. Thats normal?

If i wanna come back to CM11 from QS-i9300-KK will have any problem? The Odin is the good way?

Thanks
[Google Chromecast] apelamod:
Moto g stock v3 not connect. Google play has stopped.

Edit. Moto g with latest cm11 night work.
[Google Chromecast] helob:
International Galaxy S 3 (i9300)

Try V3 on above with latest chromecast app and chromecast FW.

Screen Cast is no showing in chromecast app.:(

Any help greatly appreciate.

TQ
[Google Chromecast] L3st:
What Android version have you? At least must be 4.4

Regards