title: How to disable Home and other system buttons in Android?
body: <p>I need to disable Home and other system buttons in my Android application.</p>
  
  <p><strong>Example:</strong> <code>MX Player</code> (<a href="https://play.google.com/store/apps/developer?id=J2%20Interactive" rel="noreferrer">see at Google Play</a>) - you can press "lock" icon at player screen and it locks all hardware and software system buttons. </p>
  
  <p>It works fine WITHOUT ROOTING. </p>
  
  <p>I tested it on some devices with different Android versions. I tried to disassemble Kids Lock (plugin) but has no clue how it works yet.</p>
  
  <p>I need same solution like the Kids Lock (plugin) for <code>MX Player</code>: 
  - disable Home, Back and all other system buttons.</p>
  
  <p>Any suggestions?</p>