Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,079 Members 54,500 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Chromecast command line primer

Tip us?
 
bobcat987
Old
#1  
Member - OP
Thanks Meter 28
Posts: 46
Join Date: Mar 2011
Default [Q] Chromecast command line primer

Apologies if this has already been covered but a quick search turned up nothing. I recently rooted and was wondering if there was any resource to describe the ins and outs of the chromecast shell. Specifically I wanted to know if there is a way to define a custom start up script. For the moment I would just like to auto update the PATH env variable to include my own bin directory on /data with some of the more useful busybox commands symlinked and maybe add some cooler stuff later. I've done something similar in dd-wrt with a special nvram variable to point to a script, but I don't know if there is an equivalent here. Thanks.
 
Mape0661
Old
#2  
Junior Member
Thanks Meter 1
Posts: 7
Join Date: Aug 2014
Quote:
Originally Posted by bobcat987 View Post
Apologies if this has already been covered but a quick search turned up nothing. I recently rooted and was wondering if there was any resource to describe the ins and outs of the chromecast shell. Specifically I wanted to know if there is a way to define a custom start up script. For the moment I would just like to auto update the PATH env variable to include my own bin directory on /data with some of the more useful busybox commands symlinked and maybe add some cooler stuff later. I've done something similar in dd-wrt with a special nvram variable to point to a script, but I don't know if there is an equivalent here. Thanks.
I think we need to edit /init.rc

but it's write protected =/
The Following User Says Thank You to Mape0661 For This Useful Post: [ Click to Expand ]
 
ddggttff3
Old
#3  
ddggttff3's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 1,036
Posts: 718
Join Date: Dec 2009
Location: Twin Cities, MN
Quote:
Originally Posted by bobcat987 View Post
Apologies if this has already been covered but a quick search turned up nothing. I recently rooted and was wondering if there was any resource to describe the ins and outs of the chromecast shell. Specifically I wanted to know if there is a way to define a custom start up script. For the moment I would just like to auto update the PATH env variable to include my own bin directory on /data with some of the more useful busybox commands symlinked and maybe add some cooler stuff later. I've done something similar in dd-wrt with a special nvram variable to point to a script, but I don't know if there is an equivalent here. Thanks.
Quote:
Originally Posted by Mape0661 View Post
I think we need to edit /init.rc

but it's write protected =/
You can, but you would have to do the modifications with an extracted system image, re-squashfs it back up, and then flash it back to the device.
Devices:
OnePlus One
Nexus 7 2013
Samsung Note 10.1
Too Many Chromecasts

Retired/Sold/Dead:
Nexus 5, Nexus Q, GS3, Droid Bionic, N7 2012, Droid X, HTC Vogue
The Following User Says Thank You to ddggttff3 For This Useful Post: [ Click to Expand ]
 
bobcat987
Old
#4  
Member - OP
Thanks Meter 28
Posts: 46
Join Date: Mar 2011
Thanks for the replies. If I'm feeling bold this weekend I'll take a look at creating a one-off /system for this.
 
Mape0661
Old
#5  
Junior Member
Thanks Meter 1
Posts: 7
Join Date: Aug 2014
Quote:
Originally Posted by bobcat987 View Post
Thanks for the replies. If I'm feeling bold this weekend I'll take a look at creating a one-off /system for this.
I've been writing some, gonna post it later on git if you want to see it.

mostly stuff to make it easy to start ftp, samba etc.

/mape
 
Asphyx
Old
#6  
Senior Member
Thanks Meter 302
Posts: 1,791
Join Date: Dec 2007
Quote:
Originally Posted by ddggttff3 View Post
You can, but you would have to do the modifications with an extracted system image, re-squashfs it back up, and then flash it back to the device.
Seeing this you guys are making me think (always dangerous!)
Is it possible to code and inject an on device player app that could be inserted into the system (similar to Netflix) that could be triggered by another app for local playback without the need for an Internet connection?

Something like that would really increase the streaming capability for areas where Internet connection is not available.
And if the right code is found could even give local streams DHT capability if we had the ability to add those codecs to the player system.
 
Mape0661
Old
#7  
Junior Member
Thanks Meter 1
Posts: 7
Join Date: Aug 2014
Quote:
Originally Posted by ddggttff3 View Post
You can, but you would have to do the modifications with an extracted system image, re-squashfs it back up, and then flash it back to the device.
I've been looking at system.img from 19084.001.zip

it seems it only got this then I unsquashfs it

root@debian:~/squashfs-root# ls
bin boot chrome etc lib netflix res usr

I'm I looking in the wrong file?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


MediaTek Continues Steps Towards Being Developer-Friendly

Not too long ago MediaTek was very closed off towards the mobile developer … more

Sony PS4 Remote Play Ported to All Android Devices

Im pretty sure that every informed gamer out there perked their ears up when Sony came out … more

Change Your Samsung Galaxy S2’s Dialer Background in Real Time

As with anything, if youve looked at something long enough, things can … more

Increase Your Multitasking Workflow with C-Floating Windows

Technology has put life on the fast track. Lazy, relaxed days have turned into … more