arisguimera/mobiai-core/mobiai-android-device
Claude Code and agent skill by arisguimera/mobiai-core
- community
Checking that the SKILL.md file is still in the repository.
Use when interacting with an Android device or emulator — run adb commands, automate UI, capture screenshots, read logcat, manage emulators.
Install
npx vskill@latest install arisguimera/mobiai-core/mobiai-android-deviceSKILL.md
Android Device Interaction
Expert-level knowledge for interacting with Android devices and emulators via ADB.
When to Use
- Reproducing a bug on an Android emulator or device
- Taking screenshots or capturing logs
- Automating UI interactions for testing
- Managing emulators
Device Setup
Detect Connected Devices
This shows all connected devices and emulators. Use -s <serial> to target a specific device, or -e for the only running emulator.
Start an Emulator
Use the helper script or run manually:
Wait for boot to complete:
Screen Size
UI Inspection — CRITICAL
Always dump the UI before every interaction. This is the most important rule.
Dump UI Hierarchy
Never `cat` the full XML — it can be thousands of lines and will blow up your context. Instead, search for the element you need:
Only cat ./ui-dump.xml as a last resort if grep doesn't find what you need.
The XML contains every visible element with:
text— visible text on the elementresource-id— programmatic ID (e.g.,com.example.app:id/btn_submit)content-desc— accessibility labelbounds="[x1,y1][x2,y2]"— pixel coordinates
To find tap coordinates: center = ((x1+x2)/2, (y1+y2)/2)
Element Targeting Priority
- Text — most reliable, search for
text="Submit" - Resource ID — search for
resource-id=".*btn_submit" - Content description — search for
content-desc="Submit button" - Coordinates — last resort, computed from bounds
UI Interaction
Tap + Observe Pattern (USE THIS FOR EVERY TAP)
Critical: Every tap MUST be followed by a UI dump AND logcat check in a single command. Dialogs auto-dismiss in 2-3 seconds — if you dump UI separately, the dialog is gone.
Other Interactions
Typing Text
Never use `adb shell input text` for text that goes into app fields — it triggers an Android "pasted from clipboard" notification that can break the app.
Type digits using keyevents:
| Digit | Keycode | |
|---|---|---|
| 0 | 7 | |
| 1 | 8 | |
| 2 | 9 | |
| 3 | 10 | |
| 4 | 11 | |
| 5 | 12 | |
| 6 | 13 | |
| 7 | 14 | |
| 8 | 15 | |
| 9 | 16 |
Example — type "1234":
For text fields where keyevents won't work (search, filters), use input text as a fallback.
Logcat — Why It Matters More Than UI Dumps
Dialogs, toasts, and error popups auto-dismiss in 2-3 seconds. The UI dump may miss them entirely. But logcat always contains the error message that triggered the popup.
Check for Crashes
Filter Logcat by App
Clear Logcat
Always clear logcat before a test sequence to get clean logs.
Screenshots
Screen Recording
For sessions longer than 180s, use segmented recording (start a new segment before the previous one ends).
App Management
Handling Common Issues
"Display over other apps" dialog
Emulator not responding
adb server issues
Wait Times
- After tap: 1-2 seconds (included in the standard tap command)
- After screen transition: 2-3 seconds
- After network call: 3-5 seconds
- After app launch: 5-10 seconds
- After emulator boot: check
sys.boot_completedproperty
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/android/skills/mobiai-android-device/SKILL.md
Popularity
- Repository stars
- 391
- Repository forks
- 12
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arisguimera/mobiai-core/mobiai-android-device)