How To Remap The Android Power Button Elsewhere
Historical note: I wrote this in 2012 after the power button on my Nexus S failed. The instructions
below reflect that device and its software at the time, and may or may not be relevant any longer. I
figured this was probably something that people might find useful after coming across a massive
Google Groups post without a clear solution for remapping the power button on an Android device!
Basically, the other day my Nexus S power button randomly gave up on me leaving no way