Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,551 Members 37,540 Now Online
XDA Developers Android and Mobile Development Forum

[FLASHER] [v1.3 - 2014-07-07] FlashCast: Quickly and easily mod your Chromecast

Tip us?
 
tchebb
Old
(Last edited by tchebb; 7th July 2014 at 05:44 PM.) Reason: Release FlashCast v1.3
#1  
Senior Member - OP
Thanks Meter 210
Posts: 185
Join Date: Jul 2010
Location: Waltham, MA
Storage [FLASHER] [v1.3 - 2014-07-07] FlashCast: Quickly and easily mod your Chromecast



What is it?

FlashCast is a USB image that provides a standardized way to mod your Chromecast. Think of it like a recovery which runs off of a USB drive. No more struggling with the limitations of the GTVHacker image, which is hard to modify and can only flash the /system partition. FlashCast is based on shell scripts, so it you can use it to do anything you can do with a root shell. It also comes with a comprehensive suite of helper functions, so many tasks actually become much easier than they would be using a regular shell.

How do I use it?

If you prefer to follow a video tutorial, @ddggttff3 has made one here. Otherwise, read on for written instructions.

Preparation

Before you begin, you'll need some materials:
  • A Chromecast with a vulnerable bootloader. (For the bootloader to be vulnerable, the Chromecast must have never been connected to the internet and have a rootable serial number.)
  • The latest version of FlashCast (the download link is at the bottom of this post).
  • A USB drive (minimum size 256MB) which you are willing to have erased.
  • A powered Micro-USB OTG cable such as this one. (Alternatively, an unpowered USB hub and unpowered OTG cable can be used as shown here. I have not tested this method and cannot help you if your USB drive is not detected.)

Installation

Once you've gathered everything required, you can install FlashCast to your USB drive. To do so, you need to write the .bin file contained in the FlashCast .zip file you've downloaded to your drive. Simply using a file explorer to drag the .bin file to your USB drive is not correct and will not work. The specifics of doing a low-level write differ depending on OS, but, in general, Linux and OS X users should use dd and Windows users should use Win32DiskImager. This operation will erase your flash drive.

After you've written the .bin file to your USB drive, your computer will no longer recognize a filesystem on it. This is normal. In order for FlashCast to set up the drive's filesystem, you need to boot your Chromecast from the drive. To do this, perform the following steps:
  1. Connect the male end of your Micro-USB OTG cable to your Chromecast.
  2. Plug your USB drive into the USB-A female connector of the OTG cable.
  3. Simultaneously hold the button on your Chromecast and connect the Micro-USB power connector to the female Micro-USB port of the OTG cable.
The power must be connected last. If it is not, your Chromecast may fail to detect the USB drive and boot up normally. If this happens, simply repeat the process, making sure to perform the steps in the correct order.

If FlashCast was copied correctly, you will see a red light on your Chromecast for approximately 9 seconds. It will then turn white and your TV will display a screen containing the FlashCast logo (shown at the top of this post) and various instructions. Once you see this screen, you may release the button. The screen will appear for another 9 seconds or so, after which your Chromecast will reboot on its own to the stock image. After it has rebooted (you may disconnect the power when it starts to boot into the stock image if you're worried about it updating), FlashCast is installed on your USB drive and ready for use. Your device is NOT rooted at this point and can still be updated by Google. To root, you need to flash a mod such as Team Eureka's Eureka-ROM. When you plug the drive into your computer, it should appear as an empty drive which you can copy files to.

Usage

FlashCast-compatible mods are distributed as .zip files. To flash a mod, simply copy it to the USB drive with the name eureka_image.zip. Do NOT use dd as you did in the previous section. If you do, you will have to repeat the whole process. Instead, just copy it onto the drive's filesystem as you would any other file. FlashCast is also capable of flashing a GTVHacker-style raw system image; if there are no native FlashCast mods present and the system image is in a file called Chromecast-Rooted-System-GTVHacker-cj_000-July27-635PM.bin, it will be flashed. This method of flashing is very inflexible and is not recommended.

How do I develop for it?

If you are interested in creating mods for FlashCast, please see the developer thread.

Who made it?

FlashCast is based on a generic Buildroot Linux image. Its mod framework was written entirely by me, but I couldn't have done it without the help of various individuals. Thanks, @cj_000, for helping me and putting up with my stupid questions in IRC. And thank you, @tvall, for releasing your update-free images so promptly up until now. Without those, FlashCast would have a much smaller potential user base.

Where do I get it?

Downloads and source code are available at FlashCast's GitHub repository. The latest version is currently v1.3.
The Following 69 Users Say Thank You to tchebb For This Useful Post: [ Click to Expand ]
 
xredjokerx
Old
#2  
Senior Member
Thanks Meter 157
Posts: 956
Join Date: Nov 2009
Cool! First

Sent from my SCH-I605 using Tapatalk 4
Currently running: Galaxy Note II

If you don't have drop box, please help me out and use my referral link http://db.tt/XJuRP3T
 
ddggttff3
Old
#3  
ddggttff3's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 954
Posts: 698
Join Date: Dec 2009
Location: Twin Cities, MN
Oh yeah, finally we can update kernels! Thanks for this, got some work to do now.
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
 
cj_000
Old
#4  
Junior Member
Thanks Meter 10
Posts: 6
Join Date: Aug 2013
tchebb, awesome work. Your flasher seems so much more flexible than what we put out (but hell, we did it in 3 days), and it's never a problem to help out. In fact, we LOVE it when someone actually picks up on what we did and makes it so much better.

Can't wait to give it a try, once I get some free time!

CJ
 
stewwmann
Old
#5  
stewwmann's Avatar
Senior Member
Thanks Meter 42
Posts: 159
Join Date: Feb 2013
Location: San Diego
Default vulnerable bootloader ?

How do I know if I have A Chromecast with a vulnerable bootloader ?
SGH-I317UCUCNE5 -- MJ4 bootloader--DN3 V4 4.4.2 beta 1
Nexus 7 32Gb (2012) 4.4.4 Stock
The Following User Says Thank You to stewwmann For This Useful Post: [ Click to Expand ]
 
twist
Old
#6  
twist's Avatar
Senior Member
Thanks Meter 46
Posts: 384
Join Date: Feb 2006
Looks super cool man, I am about to check it out and update my chromecasts now! Great work!!
 
SOHKis
Old
#7  
SOHKis's Avatar
Senior Member
Thanks Meter 147
Posts: 565
Join Date: Apr 2008
Location: VA
just flashed over, working great. thanks so much!
 
tchebb
Old
#8  
Senior Member - OP
Thanks Meter 210
Posts: 185
Join Date: Jul 2010
Location: Waltham, MA
Quote:
Originally Posted by stewwmann View Post
How do I know if I have A Chromecast with a vulnerable bootloader ?
The initial software which the Chromecast shipped with, build 12072, had a vulnerable bootloader. In all following software versions (12840, 12940, and 13300), the vulnerability is patched and FlashCast can't be used. If your Chromecast has been allowed to access the internet, it will have updated itself and will not be vulnerable. If you have not set up your Chromecast and it still has the software from the factory, it may or may not be vulnerable, depending on when you bought it. To check, you can plug it in (but not set it up), and check its "Build" in the Chromecast app. Alternatively, you can simply try to boot FlashCast on it. If it's patched, nothing bad will happen; the USB drive will simply fail to boot.
The Following 9 Users Say Thank You to tchebb For This Useful Post: [ Click to Expand ]
 
twist
Old
#9  
twist's Avatar
Senior Member
Thanks Meter 46
Posts: 384
Join Date: Feb 2006
Quote:
Originally Posted by tchebb View Post
The initial software which the Chromecast shipped with, build 12072, had a vulnerable bootloader. In all following software versions (12840, 12940, and 13300), the vulnerability is patched and FlashCast can't be used. If your Chromecast has been allowed to access the internet, it will have updated itself and will not be vulnerable. If you have not set up your Chromecast and it still has the software from the factory, it may or may not be vulnerable, depending on when you bought it. To check, you can plug it in (but not set it up), and check its "Build" in the Chromecast app. Alternatively, you can simply try to boot FlashCast on it. If it's patched, nothing bad will happen; the USB drive will simply fail to boot.
I just got 2 units this week from Amazon and they have not been updated from the factory and thus, vulnerable.
The Following User Says Thank You to twist For This Useful Post: [ Click to Expand ]
 
raydekok
Old
#10  
raydekok's Avatar
Senior Member
Thanks Meter 18
Posts: 355
Join Date: Mar 2009
Location: Amersfoort
Quote:
Originally Posted by tchebb View Post
The initial software which the Chromecast shipped with, build 12072, had a vulnerable bootloader. In all following software versions (12840, 12940, and 13300), the vulnerability is patched and FlashCast can't be used. If your Chromecast has been allowed to access the internet, it will have updated itself and will not be vulnerable. If you have not set up your Chromecast and it still has the software from the factory, it may or may not be vulnerable, depending on when you bought it. To check, you can plug it in (but not set it up), and check its "Build" in the Chromecast app. Alternatively, you can simply try to boot FlashCast on it. If it's patched, nothing bad will happen; the USB drive will simply fail to boot.
damm, i have this 13300 version. and this will never happen or is there a way?
T-Mobile
Phone :nokia E61, SE P1i, G1, iphone 3gs, blackberry bold, desire, Desire Z, current:sony xperia s
RADIO :
Rom : JB

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes