How to get Root on the G1

Author: 6700Phreak  //  Category: Uncategorized

Basically anything you type into your keyboard is also being run in a
hidden console with root permissions. More information regarding that
at the bottom of this post. But, to get root access, do the following:

Instructions:

  1. Turn on your phone's WiFi. This gives your phone an IP you can reach it at.
  2. Restart your phone
  3. Type telnetd and press enter - Yes, it will start up a Contact search, do not worry about this, just type telnetd and press enter (the enter button on the keypad).
  4. Download an Android Telnet client (link below) and connect to localhost.
  5. you now have root!

Alternatively, if you want to do this without rebooting your phone (not
gauranteed to work if your console shell is in a blocking call):

  • On your phone, press enter to clear out the hidden console of any commands.
  • Type telnetd and press enter.
  • telnet into the phone.

Notes:

  • If you want to telnet into your phone from a
    computer, run netstat on your phone using either pTerminal or Telnet
    (telnet into localhost) to get your IP address. Both applications are
    available on the Android Market.
  • Direct download link to the Android Telnet Client.

I verified this by remounting the /system partition as read write and changing files around:
mount -oremount,rw /dev/block/mtdblock3 /system

Warning/Notes as I've been playing with this:
http://www.koushikdutta.com/2008/11/…mobile-g1.html

Original Threads/Posts:
http://forum.xda-developers.com/show…=441081&page=2

Why this works:
http://android.jim.sh/index.php/ConsoleShell

SocialTwist Tell-a-Friend

Share/Save/Bookmark

No related posts.

Leave a Reply