Android, log / disable physical buttons?
<p>Context: Galaxy S2, last Android OS, rooted. Physical 'power' button not responding, probably being switched by itself, causing the phone to wake up / have odd behaviour randomly.</p>

<p>I'd like to be sure it's not a software problem, and try to solve this.</p>

<p>How could I:</p>

<p>1rst: log phusical buttons ?
I'd like to be able to see 'physical buttons events' fired on a log, for instance.</p>

<p>2nd: if it's proven that it's broken physically, how could I disable the power key ?
I've seen it was possible to do it (catch evt, maybe disable evt) in an App, but how to do it for the entire OS ?</p>

<p>Thnx</p>
