/android:mobiai-android-devicefrom android
Interacts with Android devices and emulators via ADB: runs commands, automates UI, captures screenshots, reads logcat, and manages emulators.
Ships in android. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Expert-level knowledge for interacting with Android devices and emulators via ADB.
adb devices -l
This shows all connected devices and emulators. Use -s <serial> to target a specific device, or -e for the only running emulator.
Use the helper script or run manually:
# List available AVDs
emulator -list-avds
# Start with recommended flags for automation
emulator -avd <avd-name> \
-no-window \
-no-audio \
-no-boot-anim \
-gpu swiftshader_indirect \
-no-snapshot-load
Wait for boot to complete:
adb -e wait-for-device
adb -e shell getprop sys.boot_completed # Returns "1" when ready
adb shell wm size
# Output: Physical size: 1080x2340
Always dump the UI before every interaction. This is the most important rule.
adb shell uiautomator dump /sdcard/ui.xml && adb pull /sdcard/ui.xml ./ui-dump.xml
Never cat the full XML — it can be thousands of lines and will blow up your context. Instead, search for the element you need:
# List all visible text elements with their bounds
grep -o 'text="[^"]*"[^/]*bounds="[^"]*"' ./ui-dump.xml
# Search for a specific element by text
grep -o '[^<]*text="Submit"[^/]*' ./ui-dump.xml
# Search by resource-id
grep -o '[^<]*resource-id="[^"]*btn_submit[^"]*"[^/]*' ./ui-dump.xml
# Search by content-desc
grep -o '[^<]*content-desc="[^"]*Close[^"]*"[^/]*' ./ui-dump.xml
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 coordinatesTo find tap coordinates: center = ((x1+x2)/2, (y1+y2)/2)
text="Submit"resource-id=".*btn_submit"content-desc="Submit button"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.
adb shell input tap <x> <y> && sleep 1 && adb shell uiautomator dump /sdcard/ui.xml && adb pull /sdcard/ui.xml ./ui-dump.xml && grep -o 'text="[^"]*"[^/]*bounds="[^"]*"' ./ui-dump.xml && echo "=== LOGCAT ===" && adb logcat -d -t 30
# Back button
adb shell input keyevent 4
# Home button
adb shell input keyevent 3
# Enter/OK
adb shell input keyevent 66
# Delete/Backspace
adb shell input keyevent 67
# Swipe (scroll down)
adb shell input swipe 540 1500 540 500 300
# Long press (swipe with same start/end)
adb shell input swipe <x> <y> <x> <y> 1000
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":
adb shell input keyevent 8 9 10 11
For text fields where keyevents won't work (search, filters), use input text as a fallback.
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 fatal exceptions
adb logcat -d | grep -A 10 "FATAL EXCEPTION"
# Check for ANR (Application Not Responding)
adb logcat -d | grep "ANR in"
# Dump last 50 lines with timestamps
adb logcat -d -t 50
# Get the app's PID
adb shell pidof com.example.myapp
# Filter by PID
adb logcat -d | grep <pid>
adb logcat -c
Always clear logcat before a test sequence to get clean logs.
adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png ./screenshot.png
adb shell rm -f /sdcard/screenshot.png
# Start recording (max 180 seconds per Android limit)
adb shell screenrecord /sdcard/recording.mp4 &
# Stop recording
adb shell pkill -INT screenrecord
# Wait for finalization, then pull
sleep 3
adb pull /sdcard/recording.mp4 ./recording.mp4
For sessions longer than 180s, use segmented recording (start a new segment before the previous one ends).
# Launch an app
adb shell monkey -p com.example.myapp -c android.intent.category.LAUNCHER 1
# Force stop an app
adb shell am force-stop com.example.myapp
# Clear app data
adb shell pm clear com.example.myapp
# Install APK
adb install -r app-debug.apk
# Install split APKs
adb install-multiple base.apk config.apk
# Grant permissions
adb shell pm grant com.example.myapp android.permission.ACCESS_FINE_LOCATION
adb shell appops set <package> SYSTEM_ALERT_WINDOW allow
adb shell am force-stop com.android.settings
adb emu kill # Graceful kill
# If that fails:
taskkill /F /IM qemu-system-x86_64.exe # Windows
pkill qemu-system-x86_64 # macOS/Linux
adb kill-server && adb start-server
sys.boot_completed propertyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arisguimera/mobiai-core --plugin android35 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs./agp-9-upgradeUpgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects./android-cliProvides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, install APKs onto devices and emulators and launch and run apps on them, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, look up official Android documentation, and discover and install official Android skills./android-for-cars-parked-appsAdapt existing Android video streaming apps, games, and web browsers to run as parked apps on Android Auto and Android Automotive OS. Covers manifest configuration, Google Play hardware feature declarations, compatibility mode, back navigation affordances, orientation and display continuity, controllable system bar insets, irregular display cutouts, driver distraction lifecycle handling, MediaSession playback restrictions with CarUxRestrictionsManager, background audio while driving, and browser sensitive data protection. Use this skill when migrating, building, or auditing parked apps for cars to meet Car App Quality guidelines. Don't use for media audio apps, templated Car App Library navigation, point of interest, internet of things, weather, or communication apps designed for use while driving./android-intent-securityBest practices for Android Intent security. Use this skill when auditing component configurations in AndroidManifest.xml activities, services, receivers) or source code handling incoming Intents (getIntent, getParcelableExtra) to prevent Intent Redirection and unauthorized access./android-permissions-securityAudits, detects gaps, and remediates Android permissions and IPC component security vulnerabilities. Use when reviewing AndroidManifest.xml, defining custom permissions, securing Services, Receivers, and Providers, verifying caller signatures and UID using Binder, or implementing runtime permission flows.2 plugins ship this exact skill · first indexed Jul 20, 2026
Other plugins' skills for the same job