title: Automated Installation of an .apk from the Google Play Store
body: <p>I'm writing some end-to-end tests of an Android-TV-App using Python and my own implementation of the ADB-Protocol. This works fine so far, I can send commands, get ui-dumps ect.</p>
  
  <p>However, since the app is only available on the Google Play Store (I don't have access to any source code) and I want to update the version of the app every week, I'm wondering how I can do this using ADB. </p>
  
  <p>I thought about following solutions:</p>
  
  <ol>
  <li>Send key events to open play store on the device and navigate to to the installation / update page of the app.</li>
  <li>Download the app somehow to the Testmachine and push it to the device by ADB.</li>
  <li>Use ADB to directly install a new version of the app on the device.</li>
  </ol>
  
  <p>Whats "best practice" on this and how should i solve my problem?</p>