rules_android icon indicating copy to clipboard operation
rules_android copied to clipboard

[FR] Option for mobile-install command to install to all connected devices

Open veniversum opened this issue 1 year ago • 1 comments

This is a feature request to support the use case of running mobile-install on multiple connected devices. Currently mobile-install needs to be invoked multiple times with --adb_arg=-s --adb_arg=<SERIAL> for each ADB connected device.

Buck's install command has a multi-install mode which enumerates connected devices and installs to all of them, a similar option would be helpful in Bazel.

-all (-x) Install APK on all connected devices and/or emulators (multi-install mode).

veniversum avatar Aug 07 '24 21:08 veniversum

We currently don't have an internal usecase for this. Most or all app developers at Google work on a single test device at a time, at least for the "inner loop" during which they'd use Bazel/Blaze.

However, the mobile-install deployer binary is implemented separately from the internal one. PRs are welcome for this directory tree: https://github.com/bazelbuild/rules_android/blob/main/src/tools/mi/deployment_oss/deploy_binary.go

ted-xie avatar Jan 24 '25 19:01 ted-xie