yashsingh1/xdaforums huggingface dataset:
[Google Chromecast] HomerSp:
I've released a new version that should work on API level 15 or higher. In addition to that it includes a fixed signed version (it wasn't working at all, sorry about that), as well as disabling logging to file which should significantly reduce the app's data size.

[MENTION=4196928]shardul_seth[/MENTION] [MENTION=4744024]pctv4you[/MENTION] [MENTION=4544860]osm0sis[/MENTION] see above :)
[Google Chromecast] HomerSp:
Unfortunately it does not. It tells me that it's using AAC which should be supported on pretty much every Android device out there. But other than that it doesn't tell me anything interesting at all :(
[Google Chromecast] craun:
Thanks! Got it to play from Android to Android anyway!

Installed the new signed version (the one in the OP, guess thats the latest) on my unrooted Nexus 5, but Google Cast on Chrome still says it cant find any devices and it still doesn't show up as running, only installed...
[Google Chromecast] HomerSp:
Did you reboot after installing the new apk? If you did I will need a log from the receiver after a reboot.
[Google Chromecast] craun:
Yes, I did.

Here's the log!

As I said earlier, my device is not rooted.... yet.

--------- beginning of /dev/log/main
I/dalvikvm( 2956): Enabling JNI app bug workarounds for target SDK version 11...
D/dalvikvm( 2956): GC_CONCURRENT freed 163K, 2% free 16996K/17192K, paused 2ms+1ms, total 16ms
W/InputEventReceiver( 2956): Attempted to finish an input event but the input event receiver has already been disposed.
D/dalvikvm( 2956): GC_CONCURRENT freed 69K, 1% free 17319K/17420K, paused 2ms+1ms, total 36ms
W/InputEventReceiver( 2956): Attempted to finish an input event but the input event receiver has already been disposed.
W/IInputConnectionWrapper( 2956): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2956): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 2956): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper( 2956): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 2956): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2956): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 2956): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper( 2956): getTextAfterCursor on inactive InputConnection
D/dalvikvm( 2956): GC_FOR_ALLOC freed 190K, 2% free 17477K/17704K, paused 10ms, total 10ms
I/dalvikvm-heap( 2956): Grow heap (frag case) to 17.409MB for 328336-byte allocation
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 2% free 17796K/18028K, paused 12ms, total 12ms
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 2% free 17797K/18028K, paused 13ms, total 13ms
I/dalvikvm-heap( 2956): Grow heap (frag case) to 17.721MB for 328336-byte allocation
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 2% free 18118K/18352K, paused 12ms, total 12ms
D/dalvikvm( 2956): GC_FOR_ALLOC freed 2K, 2% free 18117K/18352K, paused 10ms, total 10ms
I/dalvikvm-heap( 2956): Grow heap (frag case) to 18.178MB for 479536-byte allocation
D/dalvikvm( 2956): GC_FOR_ALLOC freed 129K, 2% free 18456K/18824K, paused 12ms, total 12ms
D/dalvikvm( 2956): GC_CONCURRENT freed 32K, 3% free 18425K/18824K, paused 2ms+1ms, total 10ms
D/dalvikvm( 2956): WAIT_FOR_CONCURRENT_GC blocked 7ms
I/dalvikvm-heap( 2956): Grow heap (frag case) to 18.334MB for 328336-byte allocation
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 3% free 18745K/19148K, paused 11ms, total 11ms
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 3% free 18746K/19148K, paused 11ms, total 11ms
I/dalvikvm-heap( 2956): Grow heap (frag case) to 18.792MB for 479536-byte allocation
D/dalvikvm( 2956): GC_FOR_ALLOC freed 0K, 3% free 19214K/19620K, paused 12ms, total 12ms
D/dalvikvm( 2956): GC_FOR_ALLOC freed <1K, 3% free 19536K/19944K, paused 10ms, total 10ms
[Google Chromecast] HomerSp:
Hmm, that's only the first few lines of the log. I will need the full log :)
[Google Chromecast] HomerSp:
Reading logs from an app requires that the phone is rooted, otherwise the app will only be able to read the output that the app itself has generated. The preferred way to read logs is via adb (logcat) from the Android SDK, if you're not able to do that the only other option will be to root.
[Google Chromecast] jarayn:
Should installing this be possible of adb wireless?

I appreciate its not entirely related to this app but rather the whole process however im stuck.

I can connect remotely to adb shell. But when I try any adb remount it says operation not permitted.
[Google Chromecast] craun:
Ok, guess I made it finally. You can find the log HERE
[Google Chromecast] death2all110:
Amazon Fire TV has not been tested. And it most likely will not work. Main reason being that Amazon's android is stripped of any google services.
[Google Chromecast] puppinoo:
Thanks for info,

Being my Fire TV rooted I actually have Google play and Google Services running, so maybe missing stuff can be added but I'm not expert enough to say... just a speculation.

I'm available for tests though.

Bye.

Puppinoo..
[Google Chromecast] HomerSp:
I've updated the Running instructions in the OP slightly, basically if you are using the signed version, it's not enough to just reboot, you also need to run:

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -n com.google.android.apps.mediashell/.AutoStartListener

This is because user installed apps are not allowed to start automatically on boot unless the user has actually interacted with the app (due to a security measure). Running that will enable the app to run automatically on boot, as well as start the service.

Thanks to [MENTION=6117705]craun[/MENTION] for testing :)

[MENTION=1031356]puppinoo[/MENTION] Are you using the signed version or the system install? If you are using the signed version, please follow the instructions above. However, if you are using the system install I'm not really sure what's wrong... Does it show as installed?
[Google Chromecast] puppinoo:
Thanks for your reply.

Actually I tried both methods.

With system install I received this exception

http://xdaforums.com/showpost.php?p=56342878&postcount=108

With signed nothing happened so I truied you booting suggestion and still nothing.

This is the answer

puppinoo.
[Google Chromecast] darren1:
Have tried your signed version on a Jelly Bean tablet and seems to be working well thanks. Could you provide a version with a minimum sdk of 13? I would like to try it on a Logitech Revue running Google TV (Honeycomb), just interested to see if it works.
[Google Chromecast] jarayn:
Same, rooted with playstore installed etc.

This would be an amzing thing to get working.
[Google Chromecast] n1gh7mar3:
After testing sling player is another app not currently working. Tested with a slingbox 500 and newest version of the app with the media shell installed on a rooted note 3.
[Google Chromecast] death2all110:
Did you do the rooted install or the non-root install for this?

Neither of us have Fire TVs so it's going to require assistance from those of you that do.
[Google Chromecast] jarayn:
I tried both actually ...

The non rooted seems to install but does not show up in the installed apps list (it does show up in TiBU)

The rooted I cant get to work with the ADB commands, im not expert on it but it gives me lots of simple errors like file not found or no permissions.

So what i did was move the 2 files to the respective folders and change their permissions. I dont know if that is even a legitimate way to do it or not. But it doesnt work. Doesnt seem to be listed or doing anything.

Im not sure how to find out if its its running even.
[Google Chromecast] puppinoo:
I have a rooted Fire TV too.

I tried both installations too.

Signed install successfully but service doesn't start even with broadcast command line.

System install good but services never starts. (ps | grep com.google.* doesnt show it).

I can test if needed.

Regards.

Puppinoo.
[Google Chromecast] HomerSp:
I will need a log of when you install the signed version and attempt to start the service (via the broadcast).
[Google Chromecast] puppinoo:
I'mk not that expert in logging. I used logcat from adb while launching the broadcast command. I hope it's useful

http://pastebin.com/GmJLZS8B
[Google Chromecast] HomerSp:
Thank you, it's very useful indeed :)

I can see that the app is crashing, but why that is I'm not really sure (the log tells me it could be several things). Could you upload /data/data/com.google.android.apps.mediashell/app_cast_shell/crashes/10f570fd-b7e2-1ffd-0fac5327-4c587be6.dmp for me please? That file should tell me more exactly what is happening and why it's crashing.
[Google Chromecast] puppinoo:
Couldn't find the one with that name so I simply uploaded the most recent one. I hope it' helps.

Regards.

View attachment 744890b2-4929-386e-2a4fb47a-0f53f174.zip
[Google Chromecast] HomerSp:
Thank you, I will have a look at what's going on tomorrow :)
[Google Chromecast] HomerSp:
Okay, it seems like something is using port 8008, which the Cast Receiver app requires to be open to function properly (it crashes otherwise). You can find out what app is using the port by using something like OS Monitor (https://play.google.com/store/apps/details?id=com.eolwral.osmonitor).
[Google Chromecast] puppinoo:
Hi,

Took me forever to find out from the list (I didnt realize there was a PAUSE button in OS Monitor to pause the refresh not to mention Fire OS dosn't love mouse gestures that much).

BTW I found out Whisperplay uses that port which makes much sense because the whisper protocol is if im not wrong the AMAZON implementation of the DIAL protocol needed to cast to CC.

Now I have no idea if I can disable it or if theres a way to formard the port to a different one.
[Google Chromecast] HomerSp:
Would that be the com.amazon.whisperplay.cds app? You can try disabling it by running:

adb shell pm disable com.amazon.whisperplay.cds

then check the list again, if it's not listed there anymore you should be able to start the Cast receiver service using the broadcast command.
[Google Chromecast] Pierreken:
Thank you for this great mod. The disadvantage of Chromecast is that it only has HDMI output which made it not very useable as a media player for the bedroom (no TV). I 've now installed this on an old Minix Neo G4 stick and it's running well.

During the installation I also tried some video streams from Youtube but that crashed the app after a few seconds. But since I'm only going to use the stick as an audio streamer I wasn't too concerned about it (My Chromecast in the living room is also used as audio-only player actually).
[Google Chromecast] puppinoo:
It's two of them

com.amazon.whisperplay.cds

and

com.amazon.whisperlink.core.android

using the ps disable on both disables them but they actually still run (or got restarted)

Since ps disable resists at reboot I dont want to reboot with them disabled until get confirm they are not vital for booting process to avoid bricks (I've never reflashed a AFTV and I dont want to start now).

Is there a way to kill them as process (tried the kill <process id> but they always restart).

Regards.
[Google Chromecast] HomerSp:
adb shell am force-stop <pkg>

should work ☺
[Google Chromecast] puppinoo:
I forgot to mention I tried that method on both.

com.amazon.whisperplay.cds stops as wished

instead com.amazon.whisperlink.core.android just restarts and if I check in OS Monitor the 8008 is still used so I guess it's that one who keeps it busy.

Maybe it depends on some other process.

Normally disabling stuff should be pretty safe. Unfortunately Fire OS is heavily customized by Amazon and in the past even disabling default DNS caused brick.

I'm waiting comfirmation by the person who unlocked the bootloader and realized the custom rom. I think he will say I can disable everything... but until then...

Puppinoo.
[Google Chromecast] puppinoo:
Well on suggestion by [MENTION=3991724]rbox[/MENTION] (this all is possible because of his work on bootloader, recovery and rom) I renamed the WhisperplayCore.apk and rebooted and now the Cast receiver service (signed version) started successfully.

Screen casting from Chromecast official app didn't work (but if I didnt musunderstand the signed version of the receiver wasnt supposed to do that), but worked fine Youtube casting.

I'll test better with other sites or sending local contents.

I'd like screen casting to work so I'll test System app version.

Thanks a lot HoperSp for this app.

Regards.

Puppinoo.
[Google Chromecast] HomerSp:
That's good to hear :)

Could you try restoring WhisperPlayCode.apk? I have an apk for you to test, if you don't mind, that should work even with port 8008 being in use.

Here's the apk:

https://dl.dropboxusercontent.com/u...hell/v2/testfire/AndroidMediaShell-signed.apk

It might take a minute or two for it to appear in the cast list (due to port 8008 being used, but it should still show up).
[Google Chromecast] tigger2014:
Blue stacks

What are the chances of getting this to work on blue stacks, would be great if it did as i could use it on my computer then, i did give it a quick try but it was crashing to do the the mdns part i think.
[Google Chromecast] meg0n00b:
Hello, [MENTION=2266182]HomerSp[/MENTION], first off all - thanks for your work!

I have the same situation as [MENTION=1031356]puppinoo[/MENTION]. (I have Amazon Fire TV)

I'am trying everything that you said to puppinoo. I tried to delete WhisperPlayCode.apk and service works.

Now I repaired this apk and install your new AndroidMediaShell-signed.apk and it works, service working fine.(but I can't find my device through app ChromeCast).

I can see it in youtube app, but when I sending video it is trying to do it for 10 second and get the error "There was a problem connecting to.."
[Google Chromecast] puppinoo:
Hi,

I reenabled whysperplayCore and tried the new version.

Unfortunately service starts but no cast works (youtube or localcast).

Unfortunately it doesnt seem to save a log to the path you gave me so I tried to capture a logcat while I try to cast... hoping it can be useful. Here it is.

http://pastebin.com/yJu9zcHs

Regards and thanks.
[Google Chromecast] HomerSp:
That's a shame, I guess the casting requires a valid DIAL handler to work correctly (even though it's deprecated). There's really not much else I can do I'm afraid :(
[Google Chromecast] puppinoo:
Well it depends on what is really WhysperPlay protocol for...

I can say I've never used it so far, and frankly I think that if Google implementation will be robust and supported I won't miss WhysperPlay much... so no problem at all... and thanks a lot for your efforts :)

Regards

Puppinoo.

---------- Post added at 08:51 PM ---------- Previous post was at 08:49 PM ----------

oh,

Sorry for the lazy question but I havent had time to test System installation yet...

Do you think it will work on Fire TV with proper mirroring?

regards.

Pino.
[Google Chromecast] HomerSp:
I know it's working fine here, so I don't see why it wouldn't work for you. But then again, it might require KitKat api's or something.
[Google Chromecast] daleski75:
Just stumbled upon this thread and tried the cast app and although my phone see's AFTB (Fire TV) it cannot cast music etc to it.

Running 100% stock with no root etc.
[Google Chromecast] puppinoo:
Daleski, I'm afraid you need root to rename a system app (WhisperplayCore.apk). :'(

---------- Post added at 09:13 PM ---------- Previous post was at 09:11 PM ----------

Ok,

I uninstalled the signed and moved the System files but unfortunately service doesnt start (No whysperplay enabled).

Logs are not present iinto the folder you told me... is there any way I can send you a log?

(I'd really like screen mirroring to work).

regards.

Pino.
[Google Chromecast] daleski75:
Ah crap will keep an eye on this thread anyway just in case I can ever root my UK AFTV.
[Google Chromecast] HomerSp:
I forgot to mention that the non-signed version requires KitKat, which I'm guessing the Fire TV doesn't have....
[Google Chromecast] daleski75:
It runs 4.2 I believe so yeah your right.
[Google Chromecast] puppinoo:
hehe, now THAT is a shame... well I guess we will have to wait for a serious update then (reinstall the signed).

Thanks everybody for all the help.

Pino.
[Google Chromecast] DaveKid:
I'm a little confused (unfortunately). So what exactly does this do. I keep thinking that it allows me to cast TO my android device but it may be that it basically acts as a second chromecast dongle? So I would hook it to my TV in my living room and then I cant cast to it? if so how do I set it's name. If not, could you explain to me what it does exactly. I keep missing it.
[Google Chromecast] death2all110:
http://www.androidpolice.com/2014/0...op-box-that-justifies-gary-buseys-enthusiasm/

Yep the FireTV's FireOS is based on 4.2.2

Looks like a new OTA is enabling screen casting. BUT I bet it requires WhisperPlay..

http://www.androidpolice.com/2014/1...ablet-games-set-top-box-adds-guest-mirroring/

---------- Post added at 03:25 PM ---------- Previous post was at 03:22 PM ----------

You can install this on another android device like a generic android set top box connected to your tv and cast to it as if it is/was a chromecast.

----------------------------

[MENTION=2266182]HomerSp[/MENTION], hopefully google posts factory images for ADT-1/Nexus 5,6,7,9,10 soon and I can get you an updated system image so you can see if the google cast app changed
[Google Chromecast] DaveKid:
Ok, so it acts as a second chromecast, correct? If so it's either not working for me which is highly possible considering I'm on the L preview right now OR I have to connect it to the device first and then it shows up in my list?
[Google Chromecast] HomerSp:
I've updated the OP with a recovery zip for people who prefer that (I'm actually surprised no one has asked for it yet :P). I also took the liberty of updating the layout slightly :)

Yeah, I hope so too. Unfortunately a factory image from the Nexus Player won't really help due to it being x86, but one from the ADT-1 will. Though I doubt the app has changed much, not as much as it did between the developer preview version and the 5.0 preview on the ADT-1 anyway.
[Google Chromecast] jarayn:
Hi,

I just did the recovery install.

Its still not wokring (firetv) and there is no AndroidMediaShell.apk in /system/app. Should there be?

EDIT: nevermind , i see that the system install doesnt support firetv anyway. And the signed isnt that handy.

Thanks for the work. hopefully one day the system install can work with pre-kitkat devices.

thanks again
[Google Chromecast] HomerSp:
Yeah, sorry. I should have made that more clear - the system install and recovery install only works on KitKat or newer.

The only difference between the signed and system install versions should be that screen casting works on the system install while on the signed version it does not. Did you notice something else that's not working?

There are two ways to make the system install version work on devices older than KitKat, one is by modifying the system to disable the SDK version check, the other is to write an Xposed module that does that for you. In fact, I'll have a go at writing the Xposed module. Does the Fire TV support Xposed?
[Google Chromecast] meg0n00b:
Yes, it supports
[Google Chromecast] HomerSp:
[MENTION=1031356]puppinoo[/MENTION] [MENTION=4779405]jarayn[/MENTION] [MENTION=1724988]meg0n00b[/MENTION] I've added an Xposed module to the OP that should allow you to use the system install version on your Fire TV (it overrides the min SDK version) :)
[Google Chromecast] jarayn:
Wow. Thanks I'll try now.

...

Any idea why the recovery install didn't put the app in /system/app

I'll just manually do it I guess
[Google Chromecast] death2all110:
What are you trying to cast from, and to? Also, the cast device will not appear in the chromecast app.
[Google Chromecast] HomerSp:
The zip was only supposed to support KitKat or higher, so it would only copy the apk to /system/priv-app. I've updated the zip with fallback support to /system/app though, so you can redownload that.

I also noticed a problem in the xposed module that would make it not work, so could you redownload and reinstall that as well?
[Google Chromecast] jarayn:
i just noticed that xposed problem too :)

...

No the xposed mod says there was a problem parsing the package. Its only 53kb too .. if thats of interest
[Google Chromecast] HomerSp:
Sorry, try it now. I accidentally had the min SDK version of the xposed module set to 19 -_-
[Google Chromecast] meg0n00b:
Xposed module installed fine, I activate it in xposed, and reboot the device.

After that I copied file in system and lib. ( I noticed that before I activated module AndroidMediaShell.apk have no icon , after reboot I saw the same icon as AndroidMediaShell-signed.apk - it means that module works fine)

But.. service won't to start(

What kind of log can I send to you?
[Google Chromecast] death2all110:
[MENTION=1724988]meg0n00b[/MENTION]. Did you rename WhisperPlayCore.apk? Its using port 8008, which is preventing the service from starting.

[MENTION=2266182]HomerSp[/MENTION] Might need to add the 'Rename WhisperPlayCore.apk' to the OP for Amazon Fire TV Users Nevermind, you already have ;)
[Google Chromecast] meg0n00b:
Yes , I do.
[Google Chromecast] death2all110:
Ok.

Send us a logcat from your fire tv. After a reboot.
[Google Chromecast] meg0n00b:
Here it is, this is a full logcat after reboot
[XDA Assist] knyll3112:
HI guys!!! I AM using a CM flare 2.1, I was trying to update my phone.. when i turn it off, remove its battery and Press VOlume up + down and the power button at the same times.. That was when a Pop-up message appear saying that Removable Disk is not formatted.. i Press format ... after the formatting is done.. my device wont turn on,...

i don't barely know what exactly happen to my device.. Please could some one help me????
[XDA Assist] Razvan:
Hi,

I'm sorry, but we don't have a dedicated forum for your device, so you must ask in the general forum for Q&A from here:

> General discussion > Questions and Answers or > Android Development and Hacking > Android Q&A, Help & Troubleshooting

Good Luck
[XDA Assist] knyll3112:
tnx

tnx man but for some reason.. my device suddenly works..
[XDA Assist] Shankz28:
is there anybody here know how to reformat/reprogram Alcatel one touch pop c7?
[XDA Assist] PulseDroid:
Hello [MENTION=6077301]Shankz28[/MENTION],

Settings -> Backup & Reset -> Factory Data Reset

Cheers! Thread closed. :cowboy: