0

I have some number of Android devices in real world, I want to deploy and run new versions of application from git on it.

Currently I use Bitrise to run tests and .apk compilation upon commits, how can I deploy that binaries on my devices and autorun it without user interaction?

I don't know such services/application, but I think there are such services/tools in the world, just I don't know about it.

Edit 1: My devices are not connected physically, so I can't run gradle to deploy new builds there, devices have access to internet, but they have no direct cable connection to build server.

Vasily
  • 3,740
  • 3
  • 27
  • 61

1 Answers1

0

If your devices connected to CI build machine you need setup execution:

  1. get device list adb devices

1.1 Install app with gradle like "./gradlew installDebug"

1.2 Install app with adb "adb -s your_device install your_app.apk"

  1. Then run specific activity "adb -s your_device shell am start -n com.package.name/com.package.name.ActivityName"

You can write shell script or even create gradle task for this.

once2go
  • 1,452
  • 1
  • 13
  • 21
  • I added "Edit 1": My devices are not connected physically, so I can't run gradle to deploy new builds there, devices have access to internet, but they have no direct cable connection to build server. – Vasily Jun 01 '17 at 13:20
  • Does your devices placed to common local network with CI machine? You can setup adb via TCP, theoretically you can forward adb ports to remote devices – once2go Jun 01 '17 at 13:49
  • No, they are not connected to the same local network, that's why I'm looking for 3rd party services that can make such "updates" to applications. – Vasily Jun 01 '17 at 13:51
  • You need install your own service manually, similar to Instant App, wich can download your signed!!! build variant from any sources and will be installed progrannatically like this https://stackoverflow.com/questions/4967669/android-install-apk-programmatically – once2go Jun 01 '17 at 16:47