yashsingh1/xdaforums huggingface dataset:
[Google Chromecast] runandhide05:
LG guys with chomexast app not showing screen cast option. Try this

In terminal emulator type this

su

screenrecord /sdcard/mirrorenable.mp4

Then open another window in terminal and type

su

logcat > /sdcard/nosc.txt

Press home

Open the #enable mirror app

Press the enable mirror and the fix play service buttons. (Do not press the quick setting tile one)

Open chomecast app and Open the side menu and show that the screen cast option is not there.

Now return to the terminal emulator app and close both Windows and shut down the app. Now upload both the files on the sd card the .txt file to paste in or upload it someone and link here. And upload the .mp4 file to YouTube or anywhere and also give the link here so we can. see what's going on. Both the video and the log will help determine what's going on .

sent from(:::§:::)
[Google Chromecast] jamesking420:
Is there a change log for this?
[Google Chromecast] baxtex:
LG Optimus 4x running kk rom.

The mirroring works great, except it is also casting sound from my microphone for some reason. So everything is echoing.
[Google Chromecast] campotino:
perfect on N7100 4.4.2

Work fine on my N7100 Note 2 4.4.2 Stock.

Thanks :good:
[Google Chromecast] hwong96:
What version of Google Play Services do you have? It should be 5.0.84 or higher. Go to setting-apps-all and click on Google Play Services.
[Google Chromecast] Sleeepy2:
This is now working on the Asus Transformer TF701 with the new kitkat update

When I selected cast screen it connected but I had a black screen so I figured it didn't work. I just left it and continued using my tablet and then after a minute or 2 it appeared on my TV.

:)
[Google Chromecast] hwong96:
Try unplugging chrome cast from HDMI port and plug back in while chrome cast app is connected.
[Google Chromecast] Old_Daddy_Rock:
It is 5.0.84
[Google Chromecast] hwong96:
LG Optimus GPro stock kitkat already is miracast enabled. Go to settings-display-cast screen. Connect chrome cast to TV. Does chrome cast appear as an available device to connect?

Also try mirrorenabler v1.
[Google Chromecast] 4_Weasel:
[MENTION=4732871]r3pwn[/MENTION] Your app works great on S3 with Stock rom, S5 frankenport rom and AOSP (clean install) rom. Thanks for all your hard work.
[Google Chromecast] Old_Daddy_Rock:
[ATTACH[/ATTACH]

I attached the logcat and link to video

cast screen logcat: http://youtu.be/V7Mp3z8znCI
[Google Chromecast] Old_Daddy_Rock:
No. Miracast doesn't recognize the CC. I have tried all 4 versions of #ME
[Google Chromecast] r3pwn:
To all of the people with option not showing up, try rebooting the device then checking again.
[Google Chromecast] r3pwn:
There is now. :)
[Google Chromecast] runandhide05:
thank you, looking through it currently, do have a question,

can you try the following manually

go to /data/data/com.google.android.gsf/databases/gservices.db

open that database with sqlite editor and open the overrides and add

name

gms:cast:mirroring_enabled

value

true

save exit reboot
[Google Chromecast] Old_Daddy_Rock:
Rebooted. Still no cast screen option

---------- Post added at 03:48 PM ---------- Previous post was at 03:34 PM ----------

---------- Post added at 03:55 PM ---------- Previous post was at 03:48 PM ----------

Can't find that folder

NM. Got it. Let grab the actual SQ Lite editor and try that
[Google Chromecast] hwong96:
Looks like you have a buffer overflow issue. See first line of attached screenprint of your logcat. There were several instances of this error.
[Google Chromecast] Old_Daddy_Rock:
I have no idea what that means or how to address it. The last method mentioned worked like a charm. I used SQLite Editor for the add and it works great now. A little lag on HD video, but everything else works amazingly well. Thank you

---------- Post added at 04:29 PM ---------- Previous post was at 04:24 PM ----------

That did the trick. Awesome. Much thanks

---------- Post added at 04:33 PM ---------- Previous post was at 04:29 PM ----------

I want to thank all of you guys for helping me and everybody else. I have literally never used SQLite, terminal, or anything of the sort. I'm a noob, but apparently I'm learning quickly. You guys make it easy. Your assistance is much appreciated. Special thanks to R3pwn. Keep on rockin fellas
[Google Chromecast] runandhide05:
From the log it was not creating the database entries

that was from me having him run the screen record while logcat ing

Glad you got it working bud. Enjoy

For never having used terminal or sqlite might I say, hold your head high bud, for someone that has never used those you did a great job first time around and I/others didn't have to say the same thing over and over. High five and congrats on leaving the "noob" level

sent from(:::§:::)
[Google Chromecast] theronkinator:
I've got the option but Force Closes on a HP Touchpad running JCSullin's CM11, it's missing "audio.r_submix.default.so" so that's probably why. Definitely no way for me to just drop this file in myself?
[Google Chromecast] hwong96:
No, its not that simple. The audio.r_submix.default package has to be added to the device.mk file and recompiled. The ROM maintainer has to do it unless you know how to build it.
[Google Chromecast] stansoltz:
Awesome. Screen mirroring works with my Galaxy Tab 8" SM-T310 with KitKat 4.4.2 Cheers!
[Google Chromecast] yuppicide:
I thanked you, but I can't find if I ever came back to say it worked or not, since I am at work on a slow connection/old computer.

Anyway, works great for me on the HTC One M8. Love how it also changes orientation with the phone. This is what makes Chromecast worth the $35. Before I hardly used it. Now I'll use it all the time.

My Aunt and Uncle come over for coffee every 2 nights. If I ever have to pull something up to show them it was a pain in the butt to walk in my bedroom and navigate something such as Google Earth or eBay. Now I can do it right in front of them!
[Google Chromecast] ominousnimbus:
If I'm understanding correctly, there's a file (or files) that's modified by the script which has the potential to cause unwanted side effects on device audio. Some older version(s) of the script failed to create a backup of this file, while the latest version does so and restores it when you disable MirrorEnabler.

I'm having some audio problems with my phone (Bluetooth is misbehaving and all voice calls are coming through speakerphone), and disabling MirrorEnabler isn't helping. I've tried each version from v1-v4 as it came out. Now on v4, when I try to disable the FC fix, it says "Backup Not Found." Is it possible that one of the older versions overwrote an original system file, and if so, can I get it back without re-flashing my ROM and starting from scratch?
[Google Chromecast] r3pwn:
The only thing that has a potential to mess anything up is the Force Close fix.

It shouldn't have, though - That's odd, but you should be able to reflash the ROM without wiping data and that should solve your issue. I apologize that this has caused some inconvenience.
[Google Chromecast] r3pwn:
Surprise! v5 is out!

v5

- Added PurpleHoloLight Theme!

- Added an audio remote submix file check.
[Google Chromecast] hwong96:
You can unzip the rom and copy from /system/etc/audio_policy.conf and adb push audio_policy.conf to phone's /system/etc folder. Reboot phone.

Or restore from nandroid backup. You do backup your device, right?
[Google Chromecast] catta202000:
Thanks a lot for your work.

From the v2 perfectly working on Xiaomi Mi3

EDIT: wow, i just installed the v4, and the v5 is already out? XD
[Google Chromecast] r3pwn:
If you are already on v4 and it works, there is no need to update, unless you just want it cool looking all white and purple and stuff.
[Google Chromecast] catta202000:
of course i want all white and purple and stuff :p
[Google Chromecast] hugerobot:
So if I'm reading this correctly... I have the Verizon Note 2. If cyanogenmod built that audio submix so file into the nightly and I updated to that nightly I should be able to cast? Or is there still an issue if it's not a tw rom?

Second question... Has anyone built cm11 with that module included? I'm surprised given the interest in this thread that there's not a little cottage industry based on including module into existing roms. Maybe there is... Just not for my phone...
[Google Chromecast] r3pwn:
If the audio remote submix file was added to your ROM, you should be fine. Contact the device maintainer to see if they could add it.
[Google Chromecast] hugerobot:
I find it hard to believe that no one has tried to get this added to cm11 nightlies...

What the hell I'll send them an email.
[Google Chromecast] Asphyx:
I can't speak directly to the Note 2...

But the Audio package is just one piece of a VERY complicated puzzle as to what is required to get mirroring to work.

I can speak to the Droid4 version of CM in that they have tried to build with that module but could not get it compile properly.

It has to do with some Kernel drivers not really being compatible with the modules if I read their explanation correctly.

Some usng CM11 users have got it working, Not sure if it was via the Settings version of cast screen or the CCast App only.

But the whole issue of what is required to get Mirroring is so complex no one can say one way or the other EXACTLY what your result might be unless they have it working on the same unit you have and can tell you what they did to get it working.

If it's not on the OP that your device is tested and working, The next best place to check is on the forum for your particular unit's rom...

The Devs there will know what they have baked in, If they can Bake it in and if there is something else that is precluding you from getting Mirroring.

---------- Post added at 07:29 PM ---------- Previous post was at 07:27 PM ----------

It's not just CM that needs to include it it is the maintainers of each individual device that have to add it...
[Google Chromecast] hugerobot:
Thanks. Great explanation.
[Google Chromecast] Daiskei:
Anyone else get REALLY bad lag on the HTC One M8? I can't even use it. It won't display in anything but 480p as well...
[Google Chromecast] Asphyx:
I may be over simplifying this a bit...

But this Enabler is really just changing a few key identifiers to allow you to see the Cast Option in the CCast App and to Add your device to the database of supported devices in Google Services (to stop the FC)

But the actual support of Mirroring is likely already there when it works, It's just disabled by Google and this enables it back.

Which is why the results vary from unit to unit and Rom to Rom with different combinations giving different results as well.

It would seem that if there is even one little thing not right somewhere the entire Mirroring fails...

In time I am betting everyone will get it working as long as their Kernel is able to do it or a custom Kernel can be flashed to allow it.

Which is not good news for anyone with a unit that has been left in the dust of Jelly Bean by it's Manufacturer (Like the Droid4) and has a very old CPU that really isn't capable of doing the encoding needed to send Video.
[Google Chromecast] runandhide05:
I have added it to teameos gerrit review. There is more than just adding the r_submix and I have posted the needed changes to everything in the device tree.

http://review.teameos.org/#/c/389/

And a CM contributor has added it to CM ferrite review on my behalf

http://review.cyanogenmod.org/#/c/68962/

That's what is needed.

I'm sure a droid 4 could do it as its newer than the galaxy nexus (which was based on the galaxy s2 )

I do not have more maintain the droid4 but if you know how does send them my comments or the cm comments and have them cherry pick it over their device tree.

sent from(:::§:::)
[Google Chromecast] r3pwn:
Actually, not quite. The Chromecast app checks for "gms:cast:mirroring_enabled" in the google services framework database. On official devices, this is defaulted to 'true', but 'false' for everyone else. This app just sets it to 'true'. And the force closes were due to a lack of a certain audio module. Everything else is correct.
[Google Chromecast] nelsonw:
V4 works in my ROM. But v5 says don't have audio file and can't enable FC fix. But V4 works. I don't think that file check it's a good idea. Or that check don't disable something. It just warn people. Just saying...
[Google Chromecast] tonydd:
Working on HTC Desire 601. Thanks
[Google Chromecast] Frank67:
Samsung Galaxy Note II (as of v4) (ROM MUST HAVE APPLIED FIX, CHECK ABOVE IN RED)

Works on my Note 2 with Kitkat 4.4.2 without the Fix in red !
[Google Chromecast] r3pwn:
Are you sure the fix hasn't been applied? If you run v5, does it notify you of an audio submix file not being found?
[Google Chromecast] r3pwn:
I fixed it. It was such a minor change, that it's still v5. Just re download from the OP. I forgot the "!" character. So it checked for if it existed, rather than if it didn't exist.
[Google Chromecast] dsEVOlve:
I installed v1 when it first came out on my VZW M8 and it works pretty well with occasional audio glitches and a little lag. Would I benefit from upgrading to v5? If so, should I disable with v1 before upgrading and re-enabling?
[Google Chromecast] runandhide05:
No. Stay with what works new versions have no improvements over what already worked.

sent from(:::§:::)
[Google Chromecast] Asphyx:
Thanks [MENTION=3900214]runandhide05[/MENTION] I will pass it onto them...

Is this working on TeamEOS Xoom currently? If it works on Xoom it will work on anything! LOL

Thanks for the clarification! Like I said overly simplistic and mostly guess work on my part.

Whatever it does it works for a whole lot of people! LOL
[Google Chromecast] runandhide05:
Not at the moment works on the (tuna) galaxy nexus.

Still working on getting it on xoom however it's likely hardware limitations on the tegra chip. When it starts to cast the xoom reboots. It's still got a ton of egl issues and non neon compile issues that have plagued the xoom for some time now, also a lot of p2p support was dropped at jelly been 4.1.1 but I'm working on it still

sent from(:::§:::)
[Google Chromecast] Frank67:
Hmmm i only run the v5 and it did notify me of an audio submix file not being found.. But everything i tried was working.. What would be an issue not working then?
[Google Chromecast] Asphyx:
LOL The fact that you guys have Kit Kat even running on it is amazing...I lovingly refer to my Xoom as "The Prototype"

I was wondering why Goo was telling me there was updates until I checked the threads recently!

Ok Enough Thread Hijacking from me..

Thanks for the Info I passed it onto the Droid4 Devs and we will see how it goes.
[Google Chromecast] sensei_sai:
Works great on Xperia Z2 4.4.2!

Thanks a lot!!!
[Google Chromecast] catta202000:
On my xiaomi Mi3 the screen cast is Very smooth, i can Even play Games (like angry birds go!) in real time!
[Google Chromecast] texraid:
This works perfectly on my 2 week old and freshly rooted Samsung Galaxy Tab S 10.5 (SM-T800).

I have a Note 3, Nexus 7 (2013), and Nexus 10 and this app now makes my Tab S screen cast exactly like those devices. Thanks a million!
[Google Chromecast] philippe734:
Good idea, thanks.
[Google Chromecast] toki12345:
Hi,

do you have any info if the change is added into the official CM11 for the SIII i9300 (or will be added) Is there any way of tracking it (besides looking at the source)
[Google Chromecast] hermeticist:
Read the second link. It shows that it is still being fixed.
[Google Chromecast] toki12345:
Thanks! Let's hope they add it.
[Google Chromecast] extrem0:
I created an unnoficial build with the required changes described in OP. If youŕe interested: http://d-h.st/nM9 - This is an emmc build.
[Google Chromecast] shaunhoop1981:
What Rom are you using
[Google Chromecast] toki12345:
Can you build for SIII international?
[Google Chromecast] dawnbringer:
WORKING!!

Working on Nexus 7 2012
[Google Chromecast] xlxcrossing:
Try extracting audio_policy.conf from your original ROM zip and placing into system/etc. Set permissions to rw-r--r-- and reboot.
[Google Chromecast] r3pwn:
Don't you mean 2012?
[Google Chromecast] dawnbringer:
changed :D
[Google Chromecast] hwong96:
Have you tried other versions of HTC one m8 roms?
[Google Chromecast] pedro5148:
I downloaded and installed the app, and now I do WHAT?

I am using Moto X XT1058

sorry, I am a bit noob ...
[Google Chromecast] r3pwn:
Now you open the app, grant superuser access, and click the first and third options. Then open the Chromecast app and tap the "Cast Screen" option.
[Google Chromecast] pedro5148:
For real! Easy as that!?

When you get home I will do the test, now I'm at work!

Thanks for understanding and help.
[Google Chromecast] androidmenow:
gt-n8000 note 10.1

Are there any Roms with the audio.r_submix.default.so in it already? I have been searching and cannot fine anything on note 10.1. Thank you
[Google Chromecast] phillipssat:
V5 installed in Sony Tablet Z windy.Pollux with latest nightly Omnirom.

After push button to mirror it says "Google-Play-Dienste" beendet!

No mirror in TV :(

After activate all 3 options from your v5 AND Reboot its all OK !!!!

Thanks a lot !!

Sent from my SGP311
[Google Chromecast] MWisBest:
Still having issues with Galaxy Nexus. Added the audio submix thing to my device tree, verified it is in /system/lib/hw, but still get this:

W/AudioPolicyManagerBase( 129): getInput() could not find device for inputSource 8
E/AudioRecord( 4748): Could not get audio input for record source 8
E/AudioRecord-JNI( 4748): Error creating AudioRecord instance: initialization check failed.
E/android.media.AudioRecord( 4748): Error code -20 when initializing native AudioRecord object.

8 is the submix source.

I'm thinking maybe I need to monkey with the audio policy too?

EDIT: Yep yep, https://github.com/MWisBest/android...mmit/7065cbccd3c213956a557ad5cf8b589a8d30c4bb
[Google Chromecast] runandhide05:
Look at my source for tuna in Op published a while ago. There is more than just adding the remote submix

You'll find all you need to add here

http://review.teameos.org/#/c/389/

Hit me up if u need any addition help on hangout

My name at gmail dot com

sent from(:::§:::)
[Google Chromecast] MWisBest:
Heh, didn't see that. Did it independently anyway.
[Google Chromecast] runandhide05:
All good. If u get caught anywhere feel free to chat

sent from(:::§:::)
[Google Chromecast] coosawatchie:
When it talks about adding audio.r_submix.default.so to device.mk file. Can I do that as a user who is running kit kat ROM on a HP touchpad? Or is that up to the person who compiles the ROM?
[Google Chromecast] runandhide05:
Compiles the Rom, what Rom are you on? I think I have tenderloin source on eos

sent from(:::§:::)
[Google Chromecast] coosawatchie:
I'm on jcsullins tenderloin 4.4.4 6.24.2014 built.
[Google Chromecast] tpuserhp:
The pacman ROM for HP touchpad works OK with Chromecast screen mirroring. I'm running that now. The developer was kind enough to compile the ROM with the fix.
[Google Chromecast] coosawatchie:
Yeah but my Netflix app crashes :( on that rom. It's a really nice rom tho.
[Google Chromecast] kenmorgan:
Has anyone tried this on the Galaxy Note 3 running CleanRom 1.6 by Scrosler? Android version 4.3 ... I will try it out this evening when I get home and report back.
[Google Chromecast] XellossMetallium:
Hi, I can report the force close problem on S3 with Archiport beta 1 (4.4). Thanks anyway :)

By the way, out of curiosity, the workaround you used could be applied to other device restricted functionalities, like autoawesome movies?
[Google Chromecast] apelamod:
Works great for moto g stock rooted.
[Google Chromecast] r3pwn:
I believe so.
[Google Chromecast] fitzpete:
Works great on Sony Xperia Z1!
[Google Chromecast] turilo:
I will have to give this a try on my note 3 running xnote 18
[Google Chromecast] r3pwn:
When I looked, Google Plus has nothing that can be enabled like this, but I'm still looking into everything. :)
[Google Chromecast] Darknites:
Lol its happens to the best of us.
[Google Chromecast] silasje1:
Works on Find7a (with CM11 nightly)
[Google Chromecast] DonToolBag:
Hello, it works for me!

Android Version: 4.4.4

ROM: CM11

Build: M8 Snapshot

Phone: Galaxy S4

There is a little bit of lag as others have reported.

Thanks for the work on this!

(For any other idiots like me that can't figure out how to enable, you open the MirrorEnabler.apk, grant it Super User access, then "Enable" within the app. The ability to Cast Screen shows up in the Chromecast app. right away. I assumed executing the APK was enough to give me the new functionality.)

DTB
[Google Chromecast] Mazgula:
Not that I was expecting it to.. But did not work on my VZW SGT (SCH-I800)
[Google Chromecast] jmo:
Moto G - Working

I have a US Moto G running the stock (but rooted) Retail image (Android 4.4.3).

It works very well. Possibly not as well as my officially supported Nexus 7, but if this were the best I could get, I would still be very happy with it. Nicely done.
[Google Chromecast] cole_himself:
Tested and working on my LG G2 running PA 4.4 (really close to AOSP). Thanks, r3pwn!
[Google Chromecast] chicks0315:
workssssssssssssssssssssss great :)

I tried on oneplus one :)
[Google Chromecast] dd66:
Works fine on my Xperia Z2! Thanks! :good:
[Google Chromecast] Ja_som:
Hi, I can also confirm that it works on stock Moto G (US 4.4.3)

Thank you.

From Android L preview :)
[Google Chromecast] prog19:
Tested and not working with my tablet transformer tf101.

Thank you for your work. [MENTION=4732871]r3pwn[/MENTION]

Edit: Running KitKat 4.4.4 katkiss rom by [MENTION=3951330]timduru[/MENTION]

GPS 5.0.84

Chromecast APP 1.7.4

The cast screen appears bit google play servics crashes. Im just reporting for your estatistics. I have a nexus 4 that works great

I'm a Brazilian without English Course, sorry and be comprehensive :)
[Google Chromecast] r3pwn:
I am not familiar with that device (I know it's ASUS). Does it have a KitKat update?
[Google Chromecast] fndpena:
I have manually added the entry in gservices.db and it's working great! :)

XT1058, 4.4.3 stock.

Thanks a lot [MENTION=4732871]r3pwn[/MENTION] !
[Google Chromecast] r-l:
Works on Nexus 7 (2012) on cyanogenmod 11 (nightly)

Doesn't work on Sony Xperia T with Omnirom (homemade). Google play services crashes when trying to connect
[Google Chromecast] jamie_lee142000:
V5 seems to stream a lot smoother than v4 on xperia z1
[Google Chromecast] travisjshepherd:
still getting a google play service crash every time I try to cast. galaxy tab 2 7.0 liquid smooth rom with the audio file added to /system/lib/hw.
[Google Chromecast] hwong96:
Please attach logcat. Did you use mirrorenabler? If yes which version?The audio_policy.conf also has to have the r_sub mix section added if you didn't use v2-v5.
[Google Chromecast] travisjshepherd:
using v.5
[Google Chromecast] aj.guyver:
Tried V5, still Google play force close in my note 8 n5120
[Google Chromecast] philippe734:
For the Galaxy Tab 2 owners :

There is a ROM experimental which add support mirroring. Build by Markox89, based on CM11, who has injected the elements in red text in OP. Test to report : http://bit.ly/1upFx9B
[Google Chromecast] MWisBest:
Actually that's required, unless it's not supposed to be, in that case it's broken for some/all devices...
[Google Chromecast] Markox89:
Good news from I9100!

Applied the fix to my self-compiled CM 11 et voilà!
[Google Chromecast] hwong96:
Your audio_policy.conf r_sub mix section sampling rate has 44100/48000, try just using 48000. Just edit /system/etc/audio_policy.conf and reboot.

---------- Post added at 07:45 AM ---------- Previous post was at 07:15 AM ----------

Read the item that is red highlighted in the op. . Also attach logcat.

---------- Post added at 07:46 AM ---------- Previous post was at 07:45 AM ----------
[Google Chromecast] cocoinasia:
Galaxy note 8 5110

Tried V5, still Google play force close in my note 8 v5110 (kitkat)
[Google Chromecast] tomerstern:
Does anybody know if the fix in red is enabled in the latest aokp for Galaxy S3?