title: Android - create alarm with adb commands
body: <p>I would like to create an alarm with adb commands, e.g. the phone should wake up in 50 seconds. I have tried shell script with sleep command but when the phone goes in sleep mode the device does not wake up in time.</p>
  
  <p>Is there a way to do this?</p>
  
  <p>My test procedure is as following:</p>
  
  <ul>
  <li>enable a wake up in 50 seconds (still researching the commands)</li>
  <li>turn off the screen (adb shell input keyevent 26)  </li>
  <li>wait 50 seconds (sleep 50)</li>
  <li>turn on the screen and unlock the device (adb shell input keyevent 3 &amp; adb shell swipe x1 y1 x2 y2)</li>
  </ul>
  
  <p>Once the device is in sleep mode the <strong>sleep 50</strong> take longer than expected. Therefore I need to know if I can enable a wake up using the alarm manager.</p>