title: Run UI automation tests with gradle without uninstalling
body: <p>When I run instrumentation tests from within Android Studio, I see that the app remains on the device afterwards. But I can't figure out to do this from the command line with gradlew. My intention is to run tests that save screenshots in e.g /data/data/MyApp/cache/screenshots and download these with <code>adb pull</code> afterwards.</p>
  
  <pre><code>./gradlew connectedAndroidTest
  </code></pre>
  
  <p>causes the app to be uninstalled. I also tried</p>
  
  <pre><code>./gradlew connectedAndroidTest -x uninstallAndroidTest
  </code></pre>
  
  <p>but that didn't make any difference. What's causing the uninstallation, and how can I avoid it?</p>