title: Jenkins build hangs if Android device not available
body: <p>We have a step in our Jenkins build script that attempts to uninstall some unit tests from a device using a command that looks like this:</p>
  
  <pre><code>adb uninstall com.company.test
  </code></pre>
  
  <p>If the physical device that we normally have connected to our build machine is not present or off for some reason, the build will just hang saying:</p>
  
  <pre><code>waiting for device -
  </code></pre>
  
  <p>Does anyone know how to work around this? I've heard rumors of some plugin? Ideally, we'd like it to just spit out a warning after some timeout period and then just continue. Next most ideal would be to fire up an emulator instead.</p>