I like the dock idea! You could even just make a hacking dongle out of an old Dock connector with the specific pins shorted together, that you just plug in at the right moment.
Does anyone know the pinouts for the iPhone? I can only gather that some of them are different the well known iPod dock connector pinouts!

