{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "knifelemon-droidline--test-your-app-on-real-phones",
 "repo": "KnifeLemon/Droidline",
 "repo_url": "https://github.com/KnifeLemon/Droidline",
 "repo_slug": "knifelemon-droidline",
 "title": "Test your Android app on real phones from a script",
 "page_title": "How to test your Android app on real phones from a script with Droidline",
 "summary": "Write a Python or Node.js test that taps, types, and checks text on a real phone.",
 "who": "A mobile developer or QA engineer who needs to check a login or other flow on real hardware, without setting up developer options or USB debugging on the phone.",
 "problem": "Emulators miss real device behavior, and wiring up ADB and USB debugging for each test phone is slow to set up and fragile to maintain.",
 "outcome": "A script that launches your app, fills in a field, taps a button, and reads back a greeting from the screen, running against a phone paired over Wi-Fi.",
 "steps": [
  "Run `droidline serve` on your PC and leave it running.",
  "Install droidline-agent.apk on the phone, turn on the accessibility service, the Droidline keyboard, notifications and unrestricted battery use, then run `droidline pair` and scan the QR code in the app's Pair tab.",
  "Install the client with `pip install droidline` or `npm install droidline`.",
  "Write a script that calls connect(), launch(), input(), touch() and get_text() against your app's package name and element ids.",
  "Run the script and check the printed text matches what your app should show."
 ],
 "agent_prompt": "Using the Droidline repo at https://github.com/KnifeLemon/Droidline, write a Python script that connects to the paired phone, launches <app package name>, enters <test value> into the field with id <field id>, taps <button text>, and prints the text of the element with id <result id>. Verify the printed text equals <expected text> and report pass or fail.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Droidline only uses permissions an ordinary app can get, so it cannot unlock a PIN, pattern or password lock screen, and games or custom-drawn apps may expose no elements to target.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "A PC running Windows, macOS, or Linux",
  "An Android phone running Android 9 or later",
  "The droidline archive for your system from the Releases page",
  "droidline-agent.apk from the same release page, installed on the phone",
  "Python 3.9+ or Node.js 18+ if you want to script, or an MCP-capable agent app"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/knifelemon-droidline/test-your-app-on-real-phones/",
 "md": "https://dedupedai.com/use-cases/knifelemon-droidline/test-your-app-on-real-phones/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/knifelemon-droidline--test-your-app-on-real-phones.json",
 "api_version": "v1"
}
