⚠️ Malware / Trojaner / VirenAnthropic Says Russian Hackers Used Claude AI to Automate Malware Evasion(11.09.2026 um 10:47 Uhr)
🕵️ SicherheitslückenCheck Point Patches Critical VPN Vulnerabilities(11.09.2026 um 13:10 Uhr)
⚠️ Malware / Trojaner / VirenUkrainian Conti Ransomware Developer Sentenced to 4 Years in US Prison(11.09.2026 um 13:29 Uhr)
🕵️ SicherheitslückenGitLab Vulnerability Exploited One Day After Disclosure(11.09.2026 um 18:11 Uhr)
🔧 AI Nachrichten OpenAI Targets Work of Wall Street Junior Bankers(10.09.2026 um 21:02 Uhr)
🔧 AI Nachrichten Altman Considers Slowing Down AI Development(11.09.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenMessengerdienste: Ermittler lesen Telegram und Whatsapp ohne Trojaner mit(03.09.2026 um 09:57 Uhr)
⚠️ Malware / Trojaner / VirenAnthropic Says Russian Hackers Used Claude AI to Automate Malware Evasion(11.09.2026 um 10:47 Uhr)
🕵️ SicherheitslückenCheck Point Patches Critical VPN Vulnerabilities(11.09.2026 um 13:10 Uhr)
⚠️ Malware / Trojaner / VirenUkrainian Conti Ransomware Developer Sentenced to 4 Years in US Prison(11.09.2026 um 13:29 Uhr)
🕵️ SicherheitslückenGitLab Vulnerability Exploited One Day After Disclosure(11.09.2026 um 18:11 Uhr)
🔧 AI Nachrichten OpenAI Targets Work of Wall Street Junior Bankers(10.09.2026 um 21:02 Uhr)
🔧 AI Nachrichten Altman Considers Slowing Down AI Development(11.09.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenMessengerdienste: Ermittler lesen Telegram und Whatsapp ohne Trojaner mit(03.09.2026 um 09:57 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 5 Min Lesezeit
0

How to Automate Android Without Appium

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

You do not need Appium for every Android automation task.



Appium is the right tool when you need a full WebDriver-based mobile testing framework. But many Android workflows are smaller than that. You may only need to open an app, tap visible buttons, type into fields, wait for a result, and collect a screenshot on failure.



For those jobs, a CLI can be enough.



Handsets lets you automate Android from the terminal without root and without installing a visible helper app on the phone.






Quick answer



The fastest way to automate Android without Appium is:




CODE
hs use
hs tap "Continue"
hs fill "Email" "[email protected]"
hs wait "Dashboard"






That gives you the core automation loop: connect to the device, act on visible UI labels, and wait for the next state. You still use normal Android debugging access. You do not need root, WebDriver, or an Appium server.






What you need



You need:




  • An Android phone or emulator.

  • USB debugging enabled.


  • adb on your path.

  • Handsets installed on your host machine.



Install:




CODE
curl -fsSL https://raw.githubusercontent.com/elliotgao2/handsets/main/install.sh | bash






Connect:




CODE
hs use






Now you can control the device with commands.






Tap by text



Raw adb can tap coordinates:




CODE
adb shell input tap 540 860






That is brittle. It depends on screen size, density, orientation, and layout.



With Handsets, tap the visible label:




CODE
hs tap "Continue"






Use --visible and --unique when a script should fail rather than guess:




CODE
hs tap "Continue" --visible --unique --timeout 5s






This is the main difference from raw adb shell input tap. The script says what it means. It does not encode where a button happened to be on one device.






Fill fields



Use fill for text fields:




CODE
hs fill "Email" "[email protected]"
hs fill "Password" "$PASSWORD"
hs tap "Sign in"






If labels are repeated, use selectors:




CODE
hs fill 'EditText:below(TextView[text=Email])' "[email protected]"
hs fill 'EditText:below(TextView[text=Password])' "$PASSWORD"






The selector syntax is CSS-like and built for real Android UI trees.






Wait for the next screen



Do not write sleeps unless you truly need a fixed delay.



Instead of:




CODE
hs tap "Continue"
sleep 5






Use:




CODE
hs tap "Continue"
hs wait "Dashboard" --timeout 15s






This makes the script faster on fast devices and more reliable on slow devices.






A complete script



Here is a no-Appium Android login script:




CODE
#!/usr/bin/env bash
set -euo pipefail

hs use
hs go com.example.app
hs wait "Sign in" --timeout 15s

hs fill "Email" "$APP_EMAIL"
hs fill "Password" "$APP_PASSWORD"
hs tap "Continue" --visible --unique
hs wait "Dashboard" --timeout 20s






Add failure artifacts:




CODE
ARTIFACTS="/tmp/android-run-$$"
mkdir -p "$ARTIFACTS"
trap 'hs ui > "$ARTIFACTS/ui.txt"; hs see --size 768 "$ARTIFACTS/screen.jpg"; hs logs --tail 200 > "$ARTIFACTS/logs.txt"; echo "$ARTIFACTS"' ERR






Now the script leaves behind the UI, screenshot, and logs when something breaks.






Can I just use adb?



Sometimes, yes.



Raw adb is great for low-level device commands:




CODE
adb shell am start -n com.example/.MainActivity
adb shell input keyevent BACK
adb shell wm size






It becomes awkward when you need semantic UI automation:




  • Tap the button labeled "Continue".

  • Fill the password field below "Password".

  • Wait until "Dashboard" appears.

  • Fail if there are two matching buttons.



That is where a higher-level tool helps. Handsets still uses adb underneath, but it gives you label-based actions and structured failure modes.






When Appium is still better



Use Appium if you need:




  • iOS support.

  • WebDriver compatibility.

  • A full test framework.

  • Cloud device farm integrations.

  • Rich reports and recorders.

  • A large QA ecosystem.



Those are real strengths.



But if your goal is Android-only CLI automation, Appium may be more stack than you need.






Why this matters for LLM agents



LLM-driven Android automation benefits from a small text interface.



Handsets can print the current screen as an action table:




CODE
fill  EditText  "Email"     #email     540,540
fill EditText "Password" #password 540,640 [password]
tap Button "Continue" #continue 540,860






That is easier for a model to consume than a full XML tree. It also reduces prompt size for long trajectories.






Summary



You can automate Android without Appium if your workflow is:




  • Android only.

  • CLI-first.

  • Label-based.

  • No-root.

  • Scripted from shell or Python.



Start with:




CODE
hs use
hs ui
hs tap "Continue"
hs wait "Welcome"






That covers more Android automation work than you might expect.






FAQ






Do I need Appium to automate Android?



No. Appium is useful for full mobile test frameworks, especially cross-platform suites, but Android can also be automated from the command line with adb and tools like Handsets.






Can I automate Android without root?



Yes. For normal UI automation, root is not required. You can tap, type, swipe, inspect visible UI, wait for text, and capture screenshots when the current app allows it.






Is this better than Appium?



It depends. Handsets is better for Android-only CLI scripts, LLM agents, and fast tap-heavy flows. Appium is better for cross-platform QA infrastructure and WebDriver-based test suites.






Can I run this in CI?



Yes, as long as your CI runner can access an Android emulator or connected device with adb. The commands are shell-friendly and return normal exit codes.






Related guides



Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Anthropic Says Russian Hackers Used Claude AI to Automate Malware Evasion
1 Quelle
Check Point Patches Critical VPN Vulnerabilities
1 Quelle
Ukrainian Conti Ransomware Developer Sentenced to 4 Years in US Prison
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Automate Android Without Appium

Thematisch verwandte Begriffe: Automate, Android, Without, Appium · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...