title: How to automate unlocking the screen on android for testing?
body: <p>I need to run some automated tests on an android device, the problem is that the screen needs to be unlocked first. I have tried:</p>
  
  <pre><code>input keyevent KEYCODE_MENU
  </code></pre>
  
  <p>But this hasn't worked.</p>
  
  <p>I have access to a rooted device for this purpose and have removed the password. Just need a way to unlock the screen.</p>