Bug In Android Passes Keystrokes To Root Shell
pasokon writes "ZDNet reports on an Android bug in T-Mobile G1s with early versions of the firmware: 'When the phone booted it started up a command shell as root and sent every keystroke you ever typed on the keyboard from then on to that shell. Thus every word you typed, in addition to going to the foreground application would be silently and invisibly interpreted as a command and executed with superuser privileges. ... open the keyboard tray on your G1, ignore anything you see on the screen, and type these 8 keystrokes: (enter)-r-e-b-o-o-t-(enter). Poof, your phone will reboot.'"
Update: oops. it's real!
I restarted my phone manually, and tried this on a fresh boot. My phone did immediately restart. Yikes.
I know more than you drink.
Read this:
http://android.jim.sh/index.php/ConsoleShell
Looks like debugging code left behind...
- Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
If you want to keep from fubar-ing your G1 by typing in the wrong stuff accidentally, just type "cat [enter]" first thing when you power on the device, and it will be defused from then on. All input will be harmlessly filed away to stdout.
"With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea...."
RFC 1925
The latest OTA update is RC30, which patches the issue (I confirmed this on my G1).