DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to test your Android app on real phones from a script with Droidline

Write a Python or Node.js test that taps, types, and checks text on a real phone.

Short answer: Run droidline serve on your PC and leave it running; then 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. All steps.

Authorization notice. Droidline is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA 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.

The problemEmulators miss real device behavior, and wiring up ADB and USB debugging for each test phone is slow to set up and fragile to maintain.

The outcomeA 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.

What you need first

  • 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

Steps

  1. Run droidline serve on your PC and leave it running.
  2. 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.
  3. Install the client with pip install droidline or npm install droidline.
  4. Write a script that calls connect(), launch(), input(), touch() and get_text() against your app's package name and element ids.
  5. Run the script and check the printed text matches what your app should show.

Prompt for your agent

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.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for KnifeLemon/Droidline and "Test your Android app on real phones from a script"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer