[HOW-TO] [PICTURES] ADB Working On the Google Chromecast

Search This thread

death2all110

Senior Member
Sep 21, 2010
515
296
Illinois
Hey everyone,

I got the Android Debugging Bridge (ADB) working on the Google Chromecast.

A video is currently uploading. A how-to will follow shortly after.

Videos have been uploaded!

Thanks!

Part 1:
http://www.youtube.com/watch?v=vYICywxdUfM

Part 2:
http://www.youtube.com/watch?v=mjedUnv7tkM

Logcat made in Part 2:

http://pastebin.com/WZtHzrak

[Prerequisites]
  • A Rooted Chromecast (I recommend tvall's image..Here).
  • PuTTY or another Telnet Client
  • Android SDK
  • Active internet connection
  • Chromecast's IP Address

[How To]

Full Gallery here: http://imgur.com/a/ORiL0#0

Assuming you already have a rooted Chromecast and it is ON;

  1. Open your preferred Telnet client, I prefer PuTTY.

    xLN18eP.png

  2. Type in your Chromecast's IP Address and choose telnet as the connection type (I won't tell you how to get this, hint: check your router).

    FAD65ZM.png

  3. Click open and you should now see a black terminal window.

    2i4GVz9.png

  4. Type:
    Code:
    mount -o rw,remount /
    and press enter
  5. Then type:
    Code:
    setprop service.adb.tcp.port 5555
    and press enter

    mz9k3up.png

  6. Next type:
    Code:
    busybox vi default.prop
  7. Press the letter 'i' on the keyboard for 'insert'
  8. Use the arrow keys on your keyboard to navigate.

    Wb48emA.png

  9. Change:
    Code:
    ro.secure=1
    to
    Code:
    ro.secure=0
  10. Change:
    Code:
    ro.debuggable=0
    to
    Code:
    ro.debuggable=1
  11. Press the 'ESC' key on your keyboard so VI goes back to accepting commands
  12. Type ':wq' without the quotes and with the colon....Press enter.

    EHen29R.png

  13. You should now be back at the / # prompt..
  14. Type
    Code:
    busybox wget http://goo.gl/TnbG99 -O adbd
    and press enter

    s45qSia.png

  15. Type
    Code:
    chmod 777 adbd
    and press enter

    9rKyPPk.png

  16. Type
    Code:
    ./adbd &

    It may not say anything and drop back to the prompt, this is normal

    vX6xTc7.png

  17. Type
    Code:
    ps | grep 'adbd'
    and press enter to make sure adbd is running

    MBX3V4i.png

  18. Open a command prompt and cd to the SDK's platform-tools folder

    Your path will be different than mine.

    2Mo2qyv.png

  19. Type
    Code:
    adb devices
    and press enter

    It will probably not list any devices; this is normal. We just need to tell adb what device to connect to over wifi.

    c5QR241.png

  20. Type
    Code:
    adb connect X.X.X.X
    where X.X.X.X is the IP Address of your Chromecast
  21. Press Enter

    Should say

    Code:
    Connected to X.X.X.X:5555
    where X.X.X.X is the IP of your chromecast.

    dWgBeCv.png

  22. Type:
    Code:
    adb devices
    and press enter

    It should list your chromecast by its IP Address.

    FUCt9la.png

  23. Type:
    Code:
    adb shell
    and press enter
You should be greeted with a # prompt.

C1eEF96.png


Congratulations! You now have ADB access to your chromecast.

Please note that this DOES NOT survive across reboots.
 
Last edited:

death2all110

Senior Member
Sep 21, 2010
515
296
Illinois
Just to clarify, this really doesn't do much yet.

As of right now you can't make persistent changes to the filesystem, because they revert after a reboot.

Heck you can't even remount the /system partition as RW at this point. Not sure why, but not too worried about it at the moment
 

tvall

Senior Member
Oct 10, 2010
2,230
792
29
Springfield
/system is squashfs, a compressed readonly fs. Not difficult to modify, but requires reflashing the while partition (like gtvhackers image)

Sent from my Evo V 4G using Tapatalk 2
 

death2all110

Senior Member
Sep 21, 2010
515
296
Illinois
/system is squashfs, a compressed readonly fs. Not difficult to modify, but requires reflashing the while partition (like gtvhackers image)

Sent from my Evo V 4G using Tapatalk 2

Awesome. I'm assuming it just unpacks the system after every reboot, I mean since the system seems to revert to not having any added items unless its in the image tahat was flashed?
 

djvinz

Member
Aug 18, 2007
30
1
great!
adb push works well,
I suppose you could make persistent changes to /cache (this partition is mounted rw!)
 

labiba

Member
Mar 26, 2014
6
0
Hi,

i have a question, it's possible to have adb with chromecast if this one is not root?

Thanks,
 

labiba

Member
Mar 26, 2014
6
0
Hello,
i don't now if i'm in the good forum to ask for help.

I have a GTV100 de netgear that i routed. after a problem of the remote i did a hard reset and after my device don't work.

in the beginin i have the trace in the uart that all go fine, But now i have the message :

NAND: Read mkbootimg header error!
FATAL ERROR! There is no bootable image on this machine!
tbdzz---- Img_Ld_And_Start error! Spinning now!
[109]I(SM): SM starts, enters warmup state!
[112]I(SM): begin to run tasks

there is any solution to write another bootable image?

thanks for your help :)
 

labiba

Member
Mar 26, 2014
6
0
ChromeCast mapping memory

Hello,
I have a chromecast and i want to show its mapping memory.
the objectif is to verify when the chromecast play a video if its buffer is secure or not ?
and how can where the kernel do the allocation for memory?

can you help me please ?


thanks :good:
 

GusCaplan

New member
Aug 26, 2014
3
0
When I attempt to download "busybox" from "Goo", it comes back with: server returned error: HTTP/1.1 404 not found !!
Any input/help is much appreciated.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Hey everyone,

    I got the Android Debugging Bridge (ADB) working on the Google Chromecast.

    A video is currently uploading. A how-to will follow shortly after.

    Videos have been uploaded!

    Thanks!

    Part 1:
    http://www.youtube.com/watch?v=vYICywxdUfM

    Part 2:
    http://www.youtube.com/watch?v=mjedUnv7tkM

    Logcat made in Part 2:

    http://pastebin.com/WZtHzrak

    [Prerequisites]
    • A Rooted Chromecast (I recommend tvall's image..Here).
    • PuTTY or another Telnet Client
    • Android SDK
    • Active internet connection
    • Chromecast's IP Address

    [How To]

    Full Gallery here: http://imgur.com/a/ORiL0#0

    Assuming you already have a rooted Chromecast and it is ON;

    1. Open your preferred Telnet client, I prefer PuTTY.

      xLN18eP.png

    2. Type in your Chromecast's IP Address and choose telnet as the connection type (I won't tell you how to get this, hint: check your router).

      FAD65ZM.png

    3. Click open and you should now see a black terminal window.

      2i4GVz9.png

    4. Type:
      Code:
      mount -o rw,remount /
      and press enter
    5. Then type:
      Code:
      setprop service.adb.tcp.port 5555
      and press enter

      mz9k3up.png

    6. Next type:
      Code:
      busybox vi default.prop
    7. Press the letter 'i' on the keyboard for 'insert'
    8. Use the arrow keys on your keyboard to navigate.

      Wb48emA.png

    9. Change:
      Code:
      ro.secure=1
      to
      Code:
      ro.secure=0
    10. Change:
      Code:
      ro.debuggable=0
      to
      Code:
      ro.debuggable=1
    11. Press the 'ESC' key on your keyboard so VI goes back to accepting commands
    12. Type ':wq' without the quotes and with the colon....Press enter.

      EHen29R.png

    13. You should now be back at the / # prompt..
    14. Type
      Code:
      busybox wget http://goo.gl/TnbG99 -O adbd
      and press enter

      s45qSia.png

    15. Type
      Code:
      chmod 777 adbd
      and press enter

      9rKyPPk.png

    16. Type
      Code:
      ./adbd &

      It may not say anything and drop back to the prompt, this is normal

      vX6xTc7.png

    17. Type
      Code:
      ps | grep 'adbd'
      and press enter to make sure adbd is running

      MBX3V4i.png

    18. Open a command prompt and cd to the SDK's platform-tools folder

      Your path will be different than mine.

      2Mo2qyv.png

    19. Type
      Code:
      adb devices
      and press enter

      It will probably not list any devices; this is normal. We just need to tell adb what device to connect to over wifi.

      c5QR241.png

    20. Type
      Code:
      adb connect X.X.X.X
      where X.X.X.X is the IP Address of your Chromecast
    21. Press Enter

      Should say

      Code:
      Connected to X.X.X.X:5555
      where X.X.X.X is the IP of your chromecast.

      dWgBeCv.png

    22. Type:
      Code:
      adb devices
      and press enter

      It should list your chromecast by its IP Address.

      FUCt9la.png

    23. Type:
      Code:
      adb shell
      and press enter
    You should be greeted with a # prompt.

    C1eEF96.png


    Congratulations! You now have ADB access to your chromecast.

    Please note that this DOES NOT survive across reboots.
    2
    Reserved

    Update:
    [08/15/13 2:40PM CST] Videos Posted
    [08/16/13 2:05PM CST] How-To Posted with Pictures