Closed Bug 1527097 Opened 6 years ago Closed 4 years ago

Workflow for using multiple emulators at once?

Categories

(Firefox for Android Graveyard :: Testing, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: botond, Unassigned)

References

Details

Is it possible to run multiple Android emulators at once, with different builds (from different trees) installed onto them?

Lately I've been spending the majority of my time debugging Android tests locally in emulators, and I'm trying to work on multiple bugs (with different patch series checked out in different trees with different builds) at once, and I'm currently rather constrained by having to go back and forth between installing different builds on the same emulator.

'mach android-emulator' refuses to start a new emulator if one is already running...but that's just to avoid confusion in the common/simple case.

You can run 'emulator' manually multiple times easily enough. You can also have multiple physical devices plugged in -- it's all the same. 'adb devices' shows the list of known devices (physical or emulator).

To install apks, I think the easiest approach is to just use adb directly:

adb -s <serial1> install /path/to/apk1
adb -s <serial2> install /path/to/apk2

or you could set environment variable ANDROID_SERIAL

export ANDROID_SERIAL=<serial1>
adb install /path/to/apk1
export ANDROID_SERIAL=<serial2>
adb install /path/to/apk2

or even

export ANDROID_SERIAL=<serial1>
mach install
export ANDROID_SERIAL=<serial2>
mach install

Bug 1521996 may be able to make 'mach install' (and 'mach run') more flexible with respect to multiple devices.)

Priority: -- → P3
See Also: → 1522661, 1521996
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.