← Glossary

What Is a Device Farm?

A device farm is a managed pool of phones, tablets and sometimes virtual devices that many users or test jobs can reserve, run software on and release, with scheduling, remote control and cleanup handled by the operator.

Updated:

A device farm is a collection of mobile devices, physical or virtual, that is operated as a shared resource. Instead of each tester or build pipeline owning a drawer of phones, physical devices sit in racks connected to host computers, while virtual devices run on hosts, and a scheduling layer hands them out on request: a test job asks for a particular model and operating system version, receives a device for the duration of the run, and gives it back for cleaning when finished. Cloud providers run large public farms, and organisations run private ones for their own teams. The arrangement solves a practical problem. Mobile software behaves differently across manufacturers, screen sizes, OS versions and hardware revisions, and maintaining a representative selection takes space, upkeep and scheduling. A farm turns that variety into something that can be queried and reserved like any other infrastructure.

Device Pools, Reservations and Scheduling

The core abstraction is the device pool: a set of devices grouped by shared characteristics such as platform, manufacturer, model or OS version. AWS Device Farm uses that exact term and defines a job as a request to test one app against one device, with runs fanning out across the devices in a pool. A job scheduler matches requests to idle devices, queues work when the pool is busy, and enforces limits on how many devices one account may hold at once. Device Farm's documented default concurrency for metered use is five devices at a time, with higher limits available on request, and its automated runs and interactive sessions are each capped at 150 minutes. Those numbers are specific to one provider, and other farms impose their own equivalents: a maximum parallelism, a maximum session length and a queue.

Scheduling also decides what a device looks like when a job receives it. Shared farms normally clean devices between users to reduce the risk of one tenant's app, accounts or files reaching the next. The exact procedure varies: uninstalling the app under test, clearing data, rebooting, or restoring a snapshot in the case of virtual devices. The guarantee a provider makes about this cleanup is worth reading closely, because it defines both the privacy of your test data and the cleanliness of your starting state.

Physical Devices, Emulators and Sessions

Real device testing is the reason most farms exist. Physical hardware exposes behaviour that simulation cannot: GPU drivers, camera pipelines, thermal throttling, manufacturer-specific OS modifications and real sensor data. Both AWS Device Farm and Firebase Test Lab describe their fleets as production devices hosted in their own data centres. Yet a mobile device farm is not necessarily all hardware. Test Lab also offers virtual Android devices on cloud hosts, and many private farms mix racks of phones with emulator or Cuttlefish instances for the bulk of fast, inexpensive checks. The choice between device farm vs emulator is therefore not either-or; one useful pattern is to run repeatable tests on virtual devices and reserve the hardware pool for compatibility, performance and hardware-dependent features.

Access comes in two session types. Automated sessions upload an app and a test package, run them without human involvement and produce logs, screenshots and video. Interactive remote sessions stream the device screen to a browser so a person can tap, type and reproduce a bug on a specific model in real time. Device Farm supports both and records a video and action log for interactive sessions. Under the surface, each physical device is tethered to a host machine through USB or network debugging bridges, and the streaming and input relay run over that link.

Device Farms Compared With Single Cloud Phones

A cloud phone, in the sense of one virtual or physical Android instance rented for ongoing use, overlaps with a device farm but serves a different purpose.

AspectDevice farmSingle cloud phone
Unit of allocationShort reservations from a poolOne instance held continuously
Typical useTesting across many models and versionsRunning an app or account persistently
State between usesReset after each jobPersists by design
HardwareOften real devices, sometimes mixed with virtualUsually virtual, sometimes dedicated hardware
Who controls the deviceScheduler, then the jobThe subscriber

The distinction matters for expectations. A farm is optimised for breadth and turnover; it is not a place to keep an app logged in for weeks. A cloud phone is optimised for persistence; it does not give you forty models to compare. Some providers blur the line by offering dedicated devices inside a farm, such as the private device fleets AWS deploys exclusively for one account, with certain Android models optionally configured as rooted on request. Exclusive allocation does not remove documented session limits.

Who Uses Device Farms and For What

Mobile development teams run regression suites on every commit against a matrix of devices. QA groups reproduce customer-reported crashes on the exact model involved. Game studios check frame rates and thermal behaviour on low-end hardware. Web teams verify responsive layouts and touch interactions in real mobile browsers rather than desktop emulation. Enterprises with internal apps use private farms connected to their own networks so that applications reachable only inside a VPC can be tested on real hardware. In all of these cases the farm supplies the device; the test framework, the accounts and the data are the user's responsibility.

Limits of Parallel Testing on Shared Hardware

Parallelism has ceilings. Concurrency quotas bound how many devices a job can occupy, popular models may be queued, and session time limits cut long runs. Tests that depend on network identity behave unexpectedly, because farm devices share the provider's connectivity rather than a consumer mobile network; whether a device has a SIM, can place calls or receive SMS depends entirely on the provider's configuration and should not be assumed. Devices are shared across tenants unless a private fleet is purchased, which has consequences for any data left on them and for identifiers an app might read.

A cleanup policy is not a substitute for designing tests that do not depend on prior state. Flaky results often come from timing differences between fast virtual devices and slower hardware, or from manufacturer power-management features that suspend background work. A device farm removes the logistics of owning hardware; it does not remove the need to understand the devices themselves.

Frequently asked questions

Does a device farm contain only physical phones?

Not necessarily. Many farms are built around real hardware, but providers such as Firebase Test Lab also offer virtual Android devices, and private farms often mix racks of phones with emulator instances for faster, cheaper runs.

How are devices reset between sessions?

Shared farms normally clean devices between jobs to reduce cross-tenant data exposure. Procedures may include uninstalling apps, clearing data, rebooting or restoring virtual-device snapshots. Check the stated guarantee and avoid putting unnecessary production credentials or personal data on test devices.

What are the limits of parallel testing?

Accounts have concurrency quotas, popular models queue, and sessions have maximum durations. AWS Device Farm, for example, documents a default of five simultaneous devices and a 150-minute cap per run or remote session. Other providers set their own limits.

Do farm devices have SIM cards or real mobile networks?

It depends on the provider's configuration. Farm devices typically share data-centre connectivity rather than a consumer carrier connection, and the ability to place calls or receive SMS cannot be assumed. Confirm this before planning tests that rely on it.

How is a device farm different from a cloud phone?

A farm allocates devices from a pool for short reservations and resets them afterwards, which suits testing across many models. A cloud phone is one instance held continuously with state that persists, which suits running an app or account over time.