android-testing

An Android and Wear OS testing guide with workflows and ADB commands. ADB is the command-line tool for controlling and inspecting Android devices.

In plain words
What is it for?
Use it to check Android phones and Wear OS apps, automate interface tests, simulate system and network problems, and test watch features such as tiles, complications, and watch faces.
Why use it?
It helps you test difficult device conditions, such as low battery, Doze mode, lost connections, location changes, and sensor behavior, without relying only on manual testing.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ithinkihaveacat/dotfiles/android-testing
Any agent
npx skills add ithinkihaveacat/dotfiles --skill android-testing
Clone the repo
git clone --depth 1 https://github.com/ithinkihaveacat/dotfiles

Made for: Claude Code, Codex.

Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,098 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00086 $0.01098
Opus 5 $0.00043 $0.00549
Sonnet 5 $0.00017 $0.00220
Haiku 4.5 $0.00009 $0.00110

Measured 2d ago against content hash 4dce581badb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

android-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/android-testing/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android & Wear OS Testing Guide

This skill provides comprehensive workflows, guidelines, and ADB commands to test Android applications reliably across mobile phones and Wear OS devices. It focuses on triggering system state changes, validating real-time synchronization, implementing robust UI automation, and simulating complex edge cases (Doze mode, data layer disconnection, and Fused Location spoofing limits).

Procedural Workflows & Testing Recipes

1. Power & Doze Mode Simulation

Test how applications handle background execution, power constraints, and Doze mode transitions:

# Force device into Doze (Idle) mode
adb shell dumpsys deviceidle force-idle

# Exit Doze mode
adb shell dumpsys deviceidle unforce

# Simulate low battery level (5%)
adb shell dumpsys battery unplug
adb shell dumpsys battery set level 5

# Reset battery state to default hardware behavior
adb shell dumpsys battery reset

2. Connectivity & Network Edge Cases

Simulate network isolation and diagnose Bluetooth proxy / Wi-Fi fallback:

# Isolate device (disable Bluetooth and Wi-Fi simultaneously)
adb shell svc bluetooth disable
adb shell svc wifi disable

# Restore connectivity
adb shell svc bluetooth enable
adb shell svc wifi enable

# Direct Wi-Fi credential injection (bypasses stale watch credentials)
adb shell 'cmd wifi connect-network "<SSID>" wpa2 <PASSWORD>'

[!NOTE] Wear OS Wi-Fi Delay: Wear OS delays activating Wi-Fi for 45–60 seconds after Bluetooth disconnection to conserve power. Wait at least 60 seconds before evaluating Wi-Fi fallback.

3. Headless Emulator Setup & Tutorial Bypass

Bootstrap fresh or headless emulators to ensure tests run without blocking overlays or keyguard locks:

# Wake up and dismiss keyguard
adb shell input keyevent KEYCODE_WAKEUP
adb shell wm dismiss-keyguard

# Dismiss charging animation overlay (if present)
adb shell dumpsys battery unplug

# Bypass Wear OS tutorial and initial setup overlays
adb shell am broadcast -a com.google.android.clockwork.action.TEST_MODE
adb shell am broadcast -a com.google.android.clockwork.action.TUTORIAL_SKIP

Read the full file on GitHub · 128 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 128 lines · 86 tokens per session scan A 4dce581badb1

Subscribe to this mod's changes

android-testing is a skill published in the GitHub repository ithinkihaveacat/dotfiles (48 stars, last pushed 3d ago), licensed Apache-2.0. It adds 86 tokens to every session and 1,098 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aish-add-skills

Create new skills from documents, tutorials, or examples. Use when user wants to create a skill from learning materials or existing content.

AI-Shell-Team/aish · 32 tokens

diagnose_system_lag

Local Linux lag and performance diagnosis. Run read-only probes based on the user's symptoms to find CPU, memory, disk, or local network bottlenecks, then give safe advice. Never auto-remediate. Also matches Chinese requests such as 系统卡顿、机器好慢、内存不足、突然重启、OOM、磁盘很慢.

AI-Shell-Team/aish · 78 tokens

devops-docker-patterns

Docker containerization expert specializing in multi-stage builds, image optimization, Docker Compose patterns, and production container security. Use for Dockerfile optimization, compose configurations, and container best practices.

AI-Shell-Team/aish · 43 tokens

devops-platform-engineering

Platform engineering expert specializing in internal developer platforms, self-service infrastructure, Backstage service catalogs, GitOps with ArgoCD, and golden path templates. Use for building developer portals and platform-as-a-product.

AI-Shell-Team/aish · 47 tokens

dns-diagnose

Local DNS resolution troubleshooting with dig/resolvectl/whois. Investigate NXDOMAIN, wrong answers, records not taking effect, and resolver failures. Read-only; do not change DNS config. Also matches Chinese requests such as DNS 解析失败、域名解析不了、NXDOMAIN、解析不到.

AI-Shell-Team/aish · 66 tokens

network-path-diagnose

Diagnose network path quality from this host to a target using ping/mtr/curl. Investigate packet loss, high latency, jitter, and reachability failures; interpret hop results and suggest follow-up tests. Do not change network config. Also matches Chinese requests such as 网络丢包、延迟高、链路质量、ping 不通、网络抖动.

AI-Shell-Team/aish · 82 tokens