Android testing: emulator vs physical device
Updated:
An emulator and a physical device answer different questions: a virtual device provides a fast and repeatable check, while a physical phone shows the behaviour of specific hardware and manufacturer customisations. A good testing strategy uses both layers to an appropriate extent.
What an emulator can do and what it lacks
The Android Emulator can change the system version, resolution, orientation and various hardware or network conditions. It can simulate an incoming call or message, location, different network speeds and selected sensors. It is therefore suitable for test development, fast smoke scenarios and broader coverage of Android versions without purchasing devices.
A simulation, however, is not identical to a specific phone. A virtual device may not reproduce precisely the performance of weaker hardware, the graphics driver, camera, biometric sensor or manufacturer system customisations. Differences may also appear in background process management, notifications or memory usage.
A physical device includes these characteristics, but operating it comes at a cost. Phones need to be prepared, reset, updated and managed securely. With a cloud service, model availability, waiting time, price and rules for test data also enter into the decision.
How to create a sensible device matrix
First, we divide tests according to the information they are intended to provide.
The fast layer on virtual devices verifies that the application installs, launches and handles the most important journeys. It runs after relevant changes or in a regular CI run and uses several representative Android versions.
The targeted layer on physical devices focuses on risks that depend on the hardware or manufacturer. This includes, for example, performance on a lower-powered model, the camera, biometrics, background behaviour or a problem that analytics associate with a specific group of devices. For a major release, the matrix can be expanded without requiring every test to run on it.
We base the choice of models on anonymised data about the system versions, manufacturers and devices used by customers. We supplement it with the minimum supported Android version and commercially important segments. The matrix changes regularly along with the user base.
Both Appium and Maestro can run locally on an emulator and a connected physical device. Cloud platforms differ in their types of devices and supported frameworks, so we verify compatibility before designing the entire infrastructure.
What to record for each combination
A phone name and Android version are not enough. Record the application version, server environment, language, font size, network and account state. For a virtual device, add the system image and availability of Google services. The same Android version with different capabilities may not suit the same scenario.
The AVD documentation distinguishes the hardware profile from the system image. An image labelled Google APIs provides Google Play services, but that label alone does not mean the Play Store is included. If the application depends on a particular service, check its availability before assessing a failure.
This allocation is a working example, not a mandatory device count:
| Risk | Initial check | Additional check before release |
|---|---|---|
| Sign-in and a basic purchase | Emulator with a supported version and suitable services | Critical journey on a selected physical model |
| Permission changes or returning from system screens | Repeatable emulator scenario | Physical model if the issue relates to the manufacturer |
| Image capture quality or performance on a lower-powered phone | Functional flow without claims about hardware quality | Direct verification on the relevant physical device |
Do not assume a development build result also applies to the release build. Repeat the critical journey with the release candidate and agreed test accounts. Android testing strategies also distinguish development-build tests from release-build tests.
How to prepare a repeatable starting state
Separate clean installation from updating an application already in use. The first scenario starts without its local data. The second should verify that required data survives and the application remains usable after the update. Clearing data before every test would hide this risk.
For routine regression, specify whether the user is signed in, which permissions they have granted and what their account contains. Restoring a virtual device does not itself restore orders or other server data. Concurrent tests that change that data need separate accounts or another agreed isolation method.
For scenarios involving the application lifecycle, include permission refusal, later permission changes, moving to the background, locking the screen and returning after network loss where these apply to the app. Check the outcome, such as restoring an unfinished form without creating a duplicate order. Returning to the home screen alone may not mean success.
When a test fails on only one device
First compare the build, account, server, permissions and exact steps. Attach the failure time, a screenshot and relevant logs without sensitive data. Record battery-saving settings and the network if they could affect the symptom. Avoid changing several conditions at once, or you will not know which affected the result.
If the test cannot even connect to the phone, distinguish that failure from an application defect. The physical-device guide covers debugging setup, connection and troubleshooting. Failure to create a test session does not prove that sign-in is broken.
For slow emulator runs, also check the host computer’s load and the number of concurrent devices. Without further measurement, you cannot present that duration as the performance of a particular phone. Finally, record where the scenario actually ran. An unavailable cloud model remains an untested combination requiring an alternative check or explicit acceptance of the risk.
What to watch out for
An emulator can also simulate a network outage, a call or screen rotation, so these scenarios do not automatically belong only on a physical phone. Conversely, a test on one real model does not prove compatibility with every manufacturer. It is important to identify the risk and choose an environment that can verify it credibly.
Test accounts must not contain unnecessary personal data. For videos, screenshots and logs from cloud devices, retention and access need to be set according to internal security rules.
What you gain
A well-chosen virtual layer can shorten feedback time. Targeted physical checks help use devices where the result depends on specific hardware.
At the same time, the team has a better understanding of what the result means. A successful emulator run confirms the checks performed in the selected environment. A targeted physical run adds evidence for specific hardware and a user segment.
Next step
Use analytics to select the three most commonly used combinations of manufacturer and Android version, and add one high-risk edge combination. Assign scenarios that make sense to each one and leave the rest in the fast virtual layer. The overview of mobile scenarios suitable for automation can also help with the selection. If customers use the same product in a browser, supplement the device matrix with a separate plan for automated testing of the web application.