Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scaling Android Emulators with Cloud

Avatar for Amanjeet Singh Amanjeet Singh
November 08, 2025
21

Scaling Android Emulators with Cloud

Reliable Android emulator infrastructure is the backbone of effective UI test automation.

This session demystifies production-grade emulator management for automated UI testing. Learn how we manage following:

1. Cloud-Based Emulator Infrastructure
3. Emulator Stability Techniques
4. Different configurations for emulators before running tests.

Avatar for Amanjeet Singh

Amanjeet Singh

November 08, 2025
Tweet

Transcript

  1. • Open source • Community > 5k+ members • Stars

    ~ 9k ⭐ • Cross Platform Maestro: E2E testing Framework
  2. Why Self Hosted? • Buying digital gold via UPI under

    fl aky network. • Launching JAR app on TvOS/WearOS/Custom ROM
  3. Why Self Hosted? • Buying digital gold via UPI under

    fl aky network. • Launching JAR app on TvOS/WearOS/Custom ROM • Supporting JAR app for multi-lingual users
  4. Why Self Hosted? • Buying digital gold via UPI under

    fl aky network. • You don’t want to spend money 🤣 • Launching JAR app on TvOS/WearOS/Custom ROM • Supporting JAR app for multi-lingual users
  5. Why Self Hosted? • Buying digital gold via UPI under

    fl aky network. • You don’t want to spend money 🤣 • Launching JAR app on TvOS/WearOS/Custom ROM • Supporting JAR app for multi-lingual users More Control
  6. Why Prepare Device? Stability Issues: Test fails due to welcome

    screen of google chrome Con fi gurability Issues: Prepare device to test on different api, locale, etc 👉 👉 Debuggability Issues: I want to see why it didn’t work on emulator but on local?: 👉
  7. Runtime Configurations • Setting device locale • No need of

    shipping drivers to play store 😍 • No root required 😍 • Why? Catch layout, incorrect currency/time, and text over fl ows, etc.
  8. Runtime Configurations • Setting API levels • Why? Fix crashes

    on API 29 to get upto 96% crash free rate 🤦
  9. Build time Configurations • Applied during creating AVDs • Reduce

    execution time to avoid runtime overhead. • Constant for better debuggability and stability of tests
  10. What Else? • Patch screen recording for more than 3

    mins < API 35 • Pointer location on recordings ✅ ✅ • Skipping chrome welcome screen ✅
  11. How? • Emulator is like time machine or a VM

    (QEMU system) Used for Snapshots
  12. What happens at Ctrl + C? • The qcow2 saves

    references to snapshot : RAM and CPU state
  13. What happens at Ctrl + C? • The qcow2 saves

    references to snapshot : RAM and CPU state • On Launch: emulator -avd pixel_6 • Load system and vendor images 👉
  14. What happens at Ctrl + C? • The qcow2 saves

    references to snapshot : RAM and CPU state • On Launch: emulator -avd pixel_6 • Load system and vendor images • Mount qcow2 image 👉
  15. What happens at Ctrl + C? • The qcow2 saves

    references to snapshot : RAM and CPU state • On Launch: emulator -avd pixel_6 • Load system and vendor images • Mount qcow2 image • Restore ram from snapshot reference 👉
  16. What happens at Ctrl + C? • The qcow2 saves

    references to snapshot : RAM and CPU state • On Launch: emulator -avd pixel_6 • Load system and vendor images • Mount qcow2 image • Restore ram from snapshot reference • Resume execution 👉
  17. Prepare Maestro Golden Baseline: Backup 1. Apply Con fi guration

    2. Shutdown emulator 3. Save backup with qcow2