title: How to automate installation of play store apps by package name?
body: <p>Is it possible to batch install regular play store apps by passing the package name to some activity in the <code>adb</code> shell or in some other way (with or without root)?</p>
  <p>I am <em>not</em> looking for installing an APK file, but using the play store functionality to download and install an app silently (or with a confirmation) given its package such as <code>com.android.chrome</code>.</p>
  <p>For example, when you click the 'Install' button for an app on the desktop version of <a href="https://play.google.com" rel="nofollow noreferrer">https://play.google.com</a> the app will be silently downloaded and installed to the selected device for the gmail account that you used in the desktop browser. I would imagine this is an intent triggered by Google Cloud Messaging platform (<a href="https://firebase.google.com/docs/cloud-messaging" rel="nofollow noreferrer">FCM/GCM</a>). Is it possible to trigger the same functionality directly on the device by invoking the corresponding gapps activity with the package name?</p>