Build a ₹10,000 Mobile Device Farm for Reliable App Testing (and the Mess You'll Maintain)

A practical, low‑cost guide to building a small mobile device farm in India for real-device testing—what to buy, how to connect, and the tradeoffs you'll face.

Written by: Rohan Deshpande

Several smartphones laid out on a table connected with charging cables for testing
Image credit: Markus Spiske / Unsplash

If you build Android or cross‑platform apps in India, you know the pain: an issue only happens on an old Redmi with Android 9, or a vendor ROM that throttles background processes. Emulators catch many bugs, but real users run real devices. I built a tiny, cheap mobile device farm (about ₹10,000) so I could reproduce problems fast without shipping devices back and forth. It’s not glamorous. It works. And it costs time to keep running.

Why a small device farm (and why not just Firebase Test Lab)

Main components I bought (approx costs in India)

Total: roughly ₹6,000–₹12,000 depending on device choices.

How I wire it up (fast, repeatable setup)

  1. Physical layout: phones on a shelf, cables neatly labeled by device name. Keep a sticky note with device build properties (ROM, Android version).
  2. Orchestrator: I use a Raspberry Pi (headless) with adb installed. It connects to all devices over USB through the powered hub. The Pi exposes SSH so I can run commands from my workstation.
  3. Per‑device udev rules and persistent adb keys: I set udev rules on the Pi so devices are stable and show deterministic names (e.g., device‑redmi‑9). This avoids the “which device is at /dev/bus/usb/003” guessing game.
  4. Remote control: scrcpy gives near‑real‑time screen control and recording. For automation, I run adb shell am instrument (Espresso) or Appium/WebDriverAgent on the orchestrator.
  5. Logs and artifacts: a script pulls logcat and app traces into timestamped folders on the Pi, compresses them, and syncs the small set of failure artifacts to my laptop.

A few practical scripts I use

When automation helps — and when it doesn’t Automated tests (Espresso/Detox/Appium) are invaluable for smoke runs across the farm: install, run, collect. But flaky vendor ROMs and background process kills mean tests will flake and need triage. I run short smoke tests nightly, but rely on manual repro for surprising platform issues. Expect to spend time debugging the test harness as much as the app.

Tradeoffs and the messy bits

Where I saved—and where I spent

Some India‑specific tips

A small, maintained farm beats ad‑hoc borrowing Before this I borrowed devices from colleagues or asked testers to repro — slow and inconsistent. The device farm gives me immediate control when a customer reports a device‑specific crash. It also changed how I debug: I can iterate on a fix, install the build, and verify on multiple real devices in 20 minutes.

If you try it, start tiny: one cheap phone, one powered hub port, and a Pi. You’ll quickly learn which devices matter for your users and whether the maintenance drift is worth the time saved in debugging. It’s not a polished lab—expect cable mess, occasional battery failure, and a checklist of “is the Pi up?”—but it’s the fastest way I’ve found to turn user reports into reproducible fixes.

Thanks for reading—if you want, tell me the three device models most of your users run and I’ll suggest which two are worth adding first.