Workflow for using multiple emulators at once?
Categories
(Firefox for Android Graveyard :: Testing, enhancement, P3)
Tracking
(Not tracked)
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.
Comment 1•6 years ago
|
||
'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.)
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Description
•