[FR] Option for mobile-install command to install to all connected devices
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).
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