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:
- Turn on your phone's WiFi. This gives your phone an IP you can reach it at.
- Restart your phone
- 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).
- Download an Android Telnet client (link below) and connect to localhost.
- 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

No related posts.