Mobile QA Agent
An LLM agent that tests real Android apps by itself: it reads the screen, decides what to do, and drives the phone over ADB.
Overview
I built this for my QualGent internship application. Instead of using an existing agent framework, I wrote the loop from scratch, so every step of the control flow is visible. In Obsidian it handled routine tasks (opening the app, setting up an account, creating notes, changing settings) with 95% accuracy.
How it works
There are three parts, each with one job:
- Supervisor: a Python loop that tracks test state, enforces step limits, and recovers from errors.
- Planner: looks at the current screenshot and the UI hierarchy and picks the next action.
- Executor: sends taps, swipes, and text input to the device over ADB.
A shared memory keeps track of finished tasks and what the agent has learned about the app's layout, so later steps go faster instead of rediscovering the interface every time.
Why not use a framework
I looked at existing options like Simular's Agent S and Google's Agent Development Kit. I went custom for three reasons: I'd learn more about how these agents work, there's less overhead so it runs faster, and I could control the hardest decision myself, which is when to trust the screenshot and when to trust the UI hierarchy. It also means the whole decision path is easy to inspect, which matters for a testing tool.
What it can do
- Finishes routine Obsidian tasks with 95% accuracy, from onboarding to note creation and settings.
- Notices when a feature it expects isn't there, instead of looping on it.
- Moves on when it decides a task is impossible, instead of stalling.
Fernando Guzman