diff --git a/lib/commands/device/utils.js b/lib/commands/device/utils.js index b0128f56..5a2f5192 100644 --- a/lib/commands/device/utils.js +++ b/lib/commands/device/utils.js @@ -110,6 +110,7 @@ export async function prepareEmulator(adb) { const avdName = avd.replace('@', ''); let isEmulatorRunning = true; try { + // This API implicitly modifies curDeviceId and emulatorPort properties of the adb instance await adb.getRunningAVDWithRetry(avdName, 5000); } catch (e) { this.log.debug(`Emulator '${avdName}' is not running: ${e.message}`);