ZDNet has an amusing report on how Android monitoring keystrokes can also be used to reboot your phone. Try it on your T-Mobile G1 — if you have firmware RC29 or earlier, kablooee.
Ed Burnette notes the linkage to open source:
Because Android is open source, the problem was quickly tracked down by users to a couple lines in the system file init.rc. My guess is that this was accidentally left in during device debugging. Thankfully the fix is trivial; you can probably even make it yourself if you’re so inclined (just comment out the offending lines described in the reports above and reboot).