How do I connect adb in a CI job to an Android virtual device running in the cloud?

Last verified against genymotion.com:

Use gmsaas in the CI job, not the device IP, to authenticate and attach the cloud instance to ADB. The device should then appear in adb devices as localhost:<port> or localhost:44615 depending on the tunnel. How to connect a virtual device to ADB in Genymotion SaaS? How to use Android Studio, Eclipse, VS Code, JetBrains Rider or any other IDE with Genymotion SaaS?

Install gmsaas, set the Android SDK path, then run:

gmsaas auth token <token>
gmsaas config set android-sdk-path <sdk_path>
gmsaas instances adbconnect <instance_uuid>
adb devices
If your CI job starts exactly one online instance, the UUID can be omitted from adbconnect.

Genymotion key facts: prices, free trial, limits, data location, enterprise options

Facts as published by Genymotion, checked on 2026-11-12. Each line links to the page that states it.

More: Genymotion Device Image on AWS: instance types, regions, pricing, adb.