Palahepitiya Gamage Amila · Weekly Learnings
Why I moved my AI agents' phone checks from the emulator to a real phone
· Palahepitiya Gamage Amila
At 00:41 UK time on 14 November, partway through a build run, I changed one line in the plan. My AI agents had been checking the rebuilt phone app on an emulator, a simulated phone running on the computer. From then on, every phone check had to run on a real Android phone instead.
The short answer. An emulator is useful, but it isn't the phone your users hold. After I moved my agents' phone checks to a real Android phone over ADB, a re-test found a fault in a capture screen's footer that a surveyor on that phone would have hit. Test where your users actually are.
Some context. I work as a fractional CTO, and I run a setup where several AI agents build a client's product together and check it before anything is merged. Earlier that week, Claude had walked the client's twelve-year-old app on a real phone to map it. This time it was the rebuild the agents were working on, the same app with the same features on a new tech stack.
Why move phone checks off the emulator?
The plan said emulator only, and until just before midnight on 13 November that's how the phone checks ran. My note at the time said what to change and how, not a long reason. What the real phone found later is the best reason I can give.
What had to change to test on a real phone?
The test build of the app had an address baked in that only works inside the emulator. On the real phone, the app couldn't reach the test services.
So the check was rebuilt for the real phone. The phone is plugged into the computer by USB, and the app's test traffic is forwarded over ADB (Android Debug Bridge, the connection that lets a computer control a phone). The emulator path still works for other uses.
I also gave the agents rules for that phone:
- Stay inside the one app.
- Keep Do Not Disturb on.
- Don't touch the PIN, messages, photos or settings.
What did the real-phone re-test catch?
A layout fault on a capture screen. A batch-number box sat behind the navigation bar footer at the bottom of the screen. On the photos screen, the footer buttons had no size, so Finish couldn't be tapped.
The test summary said a real surveyor on this phone would hit both.
Did the fault get fixed before the run was merged?
No. The last re-test on 14 November ran 132 checks and 6 failed. Three of those weren't product faults. The footer was one of the real ones.
After four full re-tests, I accepted the run as it stood that evening and carried the footer fault forward as a known issue, rather than letting the agents keep looping on it.
How do you test where your users actually are?
- Run your automated phone checks on a real phone, not only the emulator.
- Before you switch, look for addresses or settings that only work inside the emulator.
- Lock the phone down for the agents: one app, Do Not Disturb on, hands off the PIN, messages, photos and settings.
Keep the emulator for quick checks if it helps. Just don't treat a pass there as a pass on your users' phones.
Questions this note answers
Is an Android emulator enough for testing a phone app?
It's useful for quick checks, but it isn't the phone your users hold. A re-test on a real Android phone found a footer fault that stopped a Finish button being tapped, which a surveyor on that phone would have hit.
How do AI agents test an app on a real Android phone?
Over ADB, with the phone plugged into the computer by USB. If your test build only works inside the emulator, point it at the computer and forward the traffic over ADB.
What should you change before moving tests from an emulator to a real phone?
Check for addresses and settings that only work inside the emulator. Ours had one baked in, so the app couldn't reach the test services until the check was rebuilt.