Official TWRP Recovery Lands on Micromax Canvas Magnus

With the recent release of Android One, Micromax and MediaTek released fully buildable … more

Update Overload: SuperSU Heavily Updated

There are apps and apps out there. Very few can reach the level of popularity required to stay at … more

Lollipop Leak Available for the Sprint Galaxy S5

Since the Android 5.0Lollipop’s official release not too long ago, we’ve seen … more

CPU Spy Gets an Android Lollipop Makeover

At some point in the distant past, you probably heard of CPU Spy for Android by XDARetired … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Where the chromecast gets its app list?

OP nano351

4th February 2014, 06:53 PM   |  #1  
OP Junior Member
Thanks Meter: 4
 
10 posts
Join Date:Joined: Oct 2013
So the official SDK is released! But the app list doesn't seem to come from: https://clients3.google.com/cast/chr.../device/config anymore.

I've looked around some and there doesn't seem to be any documentation of how the new configs are being retrieved and even how the serial information from the chromecast is being transmitted either. I know it's definitely not the old config URL anymore because that doesn't list new apps like AllCast which works on my chromecast perfectly fine. Anyone know how the new app list is constructed?
4th February 2014, 07:49 PM   |  #2  
bhiga's Avatar
Recognized Contributor
Thanks Meter: 872
 
2,236 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by nano351

So the official SDK is released! But the app list doesn't seem to come from: https://clients3.google.com/cast/chr.../device/config anymore.

I've looked around some and there doesn't seem to be any documentation of how the new configs are being retrieved and even how the serial information from the chromecast is being transmitted either. I know it's definitely not the old config URL anymore because that doesn't list new apps like AllCast which works on my chromecast perfectly fine. Anyone know how the new app list is constructed?

Are you rooted or stock?

If you're rooted, probably you are using the Team Eureka whitelist which is the Google whitelist + Team Eureka.
You can go into the web panel and switch to the Google whitelist if you want to test.
4th February 2014, 08:03 PM   |  #3  
OP Junior Member
Thanks Meter: 4
 
10 posts
Join Date:Joined: Oct 2013
Quote:
Originally Posted by bhiga

Are you rooted or stock?

If you're rooted, probably you are using the Team Eureka whitelist which is the Google whitelist + Team Eureka.
You can go into the web panel and switch to the Google whitelist if you want to test.

So I'm using stock but the reason why I'm interested is that I'm the author of a chromecast receiver emulator with the goal of allowing any device that can run desktop chrome can run this app and be a chromecast receiver. However, the method by which a chromecast builds its app list isn't as simple as querying https://clients3.google.com/cast/chr.../device/config since that doesn't contain all the apps that are available on the device and I've never found any documentation about how the serial of the device is transmitted
4th February 2014, 08:04 PM   |  #4  
mathorv's Avatar
Senior Member
Thanks Meter: 77
 
154 posts
Join Date:Joined: Jun 2011
Angry
Rooted Chromecast takes application list from here:
http://pwl.team-eureka.com/applist.php
Last edited by mathorv; 4th February 2014 at 09:22 PM.
4th February 2014, 08:07 PM   |  #5  
bhiga's Avatar
Recognized Contributor
Thanks Meter: 872
 
2,236 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by nano351

So I'm using stock but the reason why I'm interested is that I'm the author of a chromecast receiver emulator with the goal of allowing any device that can run desktop chrome can run this app and be a chromecast receiver. However, the method by which a chromecast builds its app list isn't as simple as querying https://clients3.google.com/cast/chr.../device/config since that doesn't contain all the apps that are available on the device and I've never found any documentation about how the serial of the device is transmitted

Ahh, I see. You're beyond my knowledge. Maybe @Team-Eureka can help.
5th February 2014, 12:09 AM   |  #6  
Senior Member
Thanks Meter: 317
 
1,846 posts
Join Date:Joined: Dec 2007
Quote:
Originally Posted by nano351

So I'm using stock but the reason why I'm interested is that I'm the author of a chromecast receiver emulator with the goal of allowing any device that can run desktop chrome can run this app and be a chromecast receiver. However, the method by which a chromecast builds its app list isn't as simple as querying https://clients3.google.com/cast/chr.../device/config since that doesn't contain all the apps that are available on the device and I've never found any documentation about how the serial of the device is transmitted

What apps do you think are missing from the list returned in the json.txt?

It seems like they are all there to me....
5th February 2014, 12:12 AM   |  #7  
OP Junior Member
Thanks Meter: 4
 
10 posts
Join Date:Joined: Oct 2013
Quote:
Originally Posted by Asphyx

What apps do you think are missing from the list returned in the json.txt?

It seems like they are all there to me....

Which app corresponds to AllCast by Koushik Dutta? https://play.google.com/store/apps/d...shikdutta.cast

Also the homescreen app in that url points to: https://clients3.google.com/cast/chromecast/home?chs=1

Whereas the current official homescreen is at: https://clients3.google.com/cast/chr...ome/v/c9541b08
Last edited by nano351; 5th February 2014 at 12:16 AM.
5th February 2014, 12:41 AM   |  #8  
Senior Member
Thanks Meter: 317
 
1,846 posts
Join Date:Joined: Dec 2007
Quote:
Originally Posted by nano351

Which app corresponds to AllCast by Koushik Dutta? https://play.google.com/store/apps/d...shikdutta.cast

Also the homescreen app in that url points to: https://clients3.google.com/cast/chromecast/home?chs=1

Whereas the current official homescreen is at: https://clients3.google.com/cast/chr...ome/v/c9541b08

Well the Homescreen stuff is built into the ROM I'm pretty sure.

As for AllCast are we sure he is using a Player App that gets loaded to the CCast or is he merely sending a link to directly connect to the unit running Allcast?

Koush would be the best one to answer that.
6th February 2014, 10:17 AM   |  #9  
mathorv's Avatar
Senior Member
Thanks Meter: 77
 
154 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by nano351

Which app corresponds to AllCast by Koushik Dutta? https://play.google.com/store/apps/d...shikdutta.cast

Also the homescreen app in that url points to: https://clients3.google.com/cast/chromecast/home?chs=1

Whereas the current official homescreen is at: https://clients3.google.com/cast/chr...ome/v/c9541b08

If I were you I'd go for:
android SDK sources
https://www.youtube.com/watch?v=Qsw9Ogb6t4Y#t=92
https://developers.google.com/cast/docs/sender_apps
https://developers.google.com/cast/docs/receiver_apps
https://developers.google.com/cast/a...ackage-summary
and then is not satisfied contact Team-Eureka info@team-eureka.com

Eventually:
Reverse android apk code of allcast(this tool is widely discussed on xda):
https://code.google.com/p/android-apktool/

Look at posted sourcecode:
https://github.com/googlecast/
https://code.google.com/p/chromecast-mirrored-source/
https://github.com/team-eureka/

Also if you are really bored you can sniff communication between Chromecast and any app for instance AllCast with wireshark on linux distro.
Last edited by mathorv; 6th February 2014 at 11:52 AM.
6th February 2014, 06:14 PM   |  #10  
OP Junior Member
Thanks Meter: 4
 
10 posts
Join Date:Joined: Oct 2013
So I talked to one of the Team Eureka members and he gave me some very useful information.

The current URL for looking up available apps is this:
https://clients3.google.com/cast/chr...ice/baseconfig

The response is the same format s the old URL except this one has an extra field in it called "enabled_app_ids". This is a list of IDs that the chromecast device should show as existing. Once the app is requested to load, the metadata for the app is loaded from:
https://clients3.google.com/cast/chromecast/device/app?a={appid}
where {appid} is the id of the app.

It seems google opted for this to increase the number of apps that can be loaded into the manifest before they reach the limit

The Following 3 Users Say Thank You to nano351 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes