At myYearbook, we produce our internal and release candidate builds for all of our Android applications using Jenkins CI. This allows us to automatically produce builds when changes are pushed to code review (through gerrit) as well as when they’re merged upstream. This process is great for keeping integration clean and organized, but it means that QA, product development, and sometimes developers have to download the produced APK from jenkins on to their computer, and then install from the location they downloaded to. In order to expedite this process, I wrote a wrapper script for adb to allow the installation of an APK from a URL.

To do this, simply change your usage from

adb install /path/to/app.apk

to use a URL

adb install http://my.server.com/app.apk

Additionally, use the -a flag to execute your commands on all devices.

adb -a install http://my.server.com/app.apk

Get the source: the adt-plus project on github!